aboutsummaryrefslogtreecommitdiffstats
path: root/apps/browser-extension
diff options
context:
space:
mode:
Diffstat (limited to 'apps/browser-extension')
-rw-r--r--apps/browser-extension/.eslintrc.cjs3
-rw-r--r--apps/browser-extension/src/BookmarkSavedPage.tsx1
-rw-r--r--apps/browser-extension/src/Layout.tsx1
-rw-r--r--apps/browser-extension/src/SignInPage.tsx1
-rw-r--r--apps/browser-extension/src/utils/settings.ts4
-rw-r--r--apps/browser-extension/tsconfig.json3
6 files changed, 6 insertions, 7 deletions
diff --git a/apps/browser-extension/.eslintrc.cjs b/apps/browser-extension/.eslintrc.cjs
deleted file mode 100644
index 450106a4..00000000
--- a/apps/browser-extension/.eslintrc.cjs
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- ignorePatterns: ["dist/"],
-};
diff --git a/apps/browser-extension/src/BookmarkSavedPage.tsx b/apps/browser-extension/src/BookmarkSavedPage.tsx
index f25a83ba..5ff2cd39 100644
--- a/apps/browser-extension/src/BookmarkSavedPage.tsx
+++ b/apps/browser-extension/src/BookmarkSavedPage.tsx
@@ -35,6 +35,7 @@ export default function BookmarkSavedPage() {
<Link
className="flex gap-2 rounded-md p-3 text-black hover:text-black"
target="_blank"
+ rel="noreferrer"
to={`${settings.address}/dashboard/preview/${bookmarkId}`}
>
<ArrowUpRightFromSquare className="my-auto" size="20" />
diff --git a/apps/browser-extension/src/Layout.tsx b/apps/browser-extension/src/Layout.tsx
index f8279a18..6ca05fdd 100644
--- a/apps/browser-extension/src/Layout.tsx
+++ b/apps/browser-extension/src/Layout.tsx
@@ -26,6 +26,7 @@ export default function Layout() {
<a
className="flex gap-2 text-black"
target="_blank"
+ rel="noreferrer"
href={`${settings.address}/dashboard/bookmarks`}
>
<Home />
diff --git a/apps/browser-extension/src/SignInPage.tsx b/apps/browser-extension/src/SignInPage.tsx
index 6db7c348..5c49965c 100644
--- a/apps/browser-extension/src/SignInPage.tsx
+++ b/apps/browser-extension/src/SignInPage.tsx
@@ -17,7 +17,6 @@ export default function SignInPage() {
setSettings((s) => ({ ...s, apiKey: resp.key }));
navigate("/options");
},
- onError: () => {},
});
const [formData, setFormData] = useState<{
diff --git a/apps/browser-extension/src/utils/settings.ts b/apps/browser-extension/src/utils/settings.ts
index 37f474c0..f20e9827 100644
--- a/apps/browser-extension/src/utils/settings.ts
+++ b/apps/browser-extension/src/utils/settings.ts
@@ -1,9 +1,9 @@
import { useChromeStorageSync } from "use-chrome-storage";
-export type Settings = {
+export interface Settings {
apiKey: string;
address: string;
-};
+}
export default function usePluginSettings() {
const [settings, setSettings, _1, _2, isInit] = useChromeStorageSync(
diff --git a/apps/browser-extension/tsconfig.json b/apps/browser-extension/tsconfig.json
index a7fc6fbf..3a88f0af 100644
--- a/apps/browser-extension/tsconfig.json
+++ b/apps/browser-extension/tsconfig.json
@@ -20,6 +20,7 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
- "include": ["src"],
+ "include": ["src", "vite.config.ts"],
+ "exclude": ["node_modules"],
"references": [{ "path": "./tsconfig.node.json" }]
}