mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 13:15:27 +00:00
chore: fix linter
This commit is contained in:
parent
0fc3497a5b
commit
f98a61ba94
@ -39,7 +39,7 @@
|
||||
"autoprefixer": "^10.4.19",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-react": "^7.34.1",
|
||||
"long": "^5.2.3",
|
||||
"postcss": "^8.4.38",
|
||||
|
9407
frontend/extension/pnpm-lock.yaml
generated
9407
frontend/extension/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@ chrome.webRequest.onBeforeRequest.addListener(
|
||||
}
|
||||
})();
|
||||
},
|
||||
{ urls: ["*://s/*", "*://*/search*"] }
|
||||
{ urls: ["*://s/*", "*://*/search*"] },
|
||||
);
|
||||
|
||||
const getShortcutNameFromUrl = (urlString: string) => {
|
||||
|
@ -109,7 +109,7 @@ const CreateShortcutButton = () => {
|
||||
link: state.link,
|
||||
tags,
|
||||
visibility: context.defaultVisibility as Visibility,
|
||||
})
|
||||
}),
|
||||
);
|
||||
toast.success("Shortcut created successfully");
|
||||
setShowModal(false);
|
||||
|
@ -22,7 +22,7 @@ const ShortcutView = (props: Props) => {
|
||||
<>
|
||||
<div
|
||||
className={classNames(
|
||||
"group w-auto px-3 py-2 flex flex-col justify-start items-start border rounded-lg hover:bg-gray-100 hover:shadow dark:border-zinc-800 dark:hover:bg-zinc-800"
|
||||
"group w-auto px-3 py-2 flex flex-col justify-start items-start border rounded-lg hover:bg-gray-100 hover:shadow dark:border-zinc-800 dark:hover:bg-zinc-800",
|
||||
)}
|
||||
>
|
||||
<div className="w-full flex flex-row justify-start items-center">
|
||||
@ -37,7 +37,7 @@ const ShortcutView = (props: Props) => {
|
||||
<div className="w-full flex flex-row justify-start items-center">
|
||||
<button
|
||||
className={classNames(
|
||||
"max-w-full flex flex-row px-1 mr-1 justify-start items-center cursor-pointer rounded-md hover:underline"
|
||||
"max-w-full flex flex-row px-1 mr-1 justify-start items-center cursor-pointer rounded-md hover:underline",
|
||||
)}
|
||||
onClick={handleShortcutLinkClick}
|
||||
>
|
||||
|
@ -49,7 +49,7 @@ const useShortcutStore = create(
|
||||
set({ shortcutMapById: shortcutMap });
|
||||
return shortcut;
|
||||
},
|
||||
}))
|
||||
})),
|
||||
);
|
||||
|
||||
export default useShortcutStore;
|
||||
|
@ -69,11 +69,10 @@ func (s *APIV1Service) GetGRPCServer() *grpc.Server {
|
||||
}
|
||||
|
||||
// RegisterGateway registers the gRPC-Gateway with the given Echo instance.
|
||||
func (s *APIV1Service) RegisterGateway(ctx context.Context, e *echo.Echo) error {
|
||||
func (s *APIV1Service) RegisterGateway(_ context.Context, e *echo.Echo) error {
|
||||
// Create a client connection to the gRPC Server we just started.
|
||||
// This is where the gRPC-Gateway proxies the requests.
|
||||
conn, err := grpc.DialContext(
|
||||
ctx,
|
||||
conn, err := grpc.NewClient(
|
||||
fmt.Sprintf(":%d", s.grpcServerPort),
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user