From 3170bc4be6c1ef5ba00bc6f93d0cac8b10dbea75 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Tue, 14 May 2024 12:44:37 +0530 Subject: [PATCH] chore: Update shareMode default value to false --- README.md | 8 +++++++- src/components/Layouts/Layout.tsx | 2 +- src/components/Option/Share/index.tsx | 13 ++++++++++--- wxt.config.ts | 2 +- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c1fdc5a..3b0e408 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ want more features? Create an issue and let me know. You can install the extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo) -Note: You can install the extension on any Chromium-based browser. It is not limited to Chrome. ### Manual Installation @@ -126,6 +125,13 @@ This will start a development server and watch for changes in the source files. - [ ] More Customization Options - [ ] Better UI/UX + +## Privacy + +Page Assist does not collect any personal data. The only time the extension communicates with the server is when you are using the share feature, which can be disabled from the settings. + +All the data is stored locally in the browser storage. You can view the source code and verify it yourself. + ## Contributing Contributions are welcome. If you have any feature requests, bug reports, or questions, feel free to create an issue. diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 03916be..0c3673a 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -29,7 +29,7 @@ export default function OptionLayout({ }) { const [sidebarOpen, setSidebarOpen] = useState(false) const { t } = useTranslation(["option", "common"]) - const [shareModeEnabled] = useStorage("shareMode", true) + const [shareModeEnabled] = useStorage("shareMode", false) const { selectedModel, diff --git a/src/components/Option/Share/index.tsx b/src/components/Option/Share/index.tsx index 9ab128a..cd46f72 100644 --- a/src/components/Option/Share/index.tsx +++ b/src/components/Option/Share/index.tsx @@ -11,7 +11,10 @@ import { useStorage } from "@plasmohq/storage/hook" export const OptionShareBody = () => { const queryClient = useQueryClient() const { t } = useTranslation(["settings"]) - const [shareModeEnabled, setShareModelEnabled] = useStorage("shareMode", true) + const [shareModeEnabled, setShareModelEnabled] = useStorage( + "shareMode", + false + ) const { status, data } = useQuery({ queryKey: ["fetchShareInfo"], @@ -25,8 +28,12 @@ export const OptionShareBody = () => { }) const onSubmit = async (values: { url: string }) => { - const isOk = await verifyPageShareURL(values.url) - if (isOk) { + if (shareModeEnabled) { + const isOk = await verifyPageShareURL(values.url) + if (isOk) { + await setPageShareUrl(values.url) + } + } else { await setPageShareUrl(values.url) } } diff --git a/wxt.config.ts b/wxt.config.ts index 0f5aeba..9e49dc8 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -48,7 +48,7 @@ export default defineConfig({ outDir: "build", manifest: { - version: "1.1.7", + version: "1.1.8", name: process.env.TARGET === "firefox" ? "Page Assist - A Web UI for Local AI Models"