mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-17 20:55:28 +00:00
chore: rename prefix to /go
This commit is contained in:
parent
7da715d3d5
commit
eb162a0087
@ -4,7 +4,7 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"omnibox": {
|
"omnibox": {
|
||||||
"keyword": "o/"
|
"keyword": "go/"
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
@ -14,5 +14,5 @@
|
|||||||
"type": "module"
|
"type": "module"
|
||||||
},
|
},
|
||||||
"permissions": ["tabs", "activeTab", "storage"],
|
"permissions": ["tabs", "activeTab", "storage"],
|
||||||
"host_permissions": ["*://o/*"]
|
"host_permissions": ["*://go/*"]
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ func aclMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if common.HasPrefixes(path, "/o/:shortcutName", "/api/workspace/:workspaceName/shortcut/:shortcutName") && c.Request().Method == http.MethodGet {
|
if common.HasPrefixes(path, "/go/:shortcutName", "/api/workspace/:workspaceName/shortcut/:shortcutName") && c.Request().Method == http.MethodGet {
|
||||||
return next(c)
|
return next(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ const ShortcutListView: React.FC<Props> = (props: Props) => {
|
|||||||
|
|
||||||
const handleCopyButtonClick = (shortcut: Shortcut) => {
|
const handleCopyButtonClick = (shortcut: Shortcut) => {
|
||||||
const workspace = workspaceService.getWorkspaceById(workspaceId);
|
const workspace = workspaceService.getWorkspaceById(workspaceId);
|
||||||
copy(`${location.host}/${workspace?.name}/o/${shortcut.name}`);
|
copy(`${location.host}/${workspace?.name}/go/${shortcut.name}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEditShortcutButtonClick = (shortcut: Shortcut) => {
|
const handleEditShortcutButtonClick = (shortcut: Shortcut) => {
|
||||||
|
@ -62,7 +62,7 @@ const router = createBrowserRouter([
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/:workspaceName/o/:shortcutName",
|
path: "/:workspaceName/go/:shortcutName",
|
||||||
element: <ShortcutRedirector />,
|
element: <ShortcutRedirector />,
|
||||||
loader: async () => {
|
loader: async () => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user