chore: Update shareMode default value to false

This commit is contained in:
n4ze3m 2024-05-14 12:44:37 +05:30
parent 8f8fac826e
commit 3170bc4be6
4 changed files with 19 additions and 6 deletions

View File

@ -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) 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 ### Manual Installation
@ -126,6 +125,13 @@ This will start a development server and watch for changes in the source files.
- [ ] More Customization Options - [ ] More Customization Options
- [ ] Better UI/UX - [ ] 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 ## Contributing
Contributions are welcome. If you have any feature requests, bug reports, or questions, feel free to create an issue. Contributions are welcome. If you have any feature requests, bug reports, or questions, feel free to create an issue.

View File

@ -29,7 +29,7 @@ export default function OptionLayout({
}) { }) {
const [sidebarOpen, setSidebarOpen] = useState(false) const [sidebarOpen, setSidebarOpen] = useState(false)
const { t } = useTranslation(["option", "common"]) const { t } = useTranslation(["option", "common"])
const [shareModeEnabled] = useStorage("shareMode", true) const [shareModeEnabled] = useStorage("shareMode", false)
const { const {
selectedModel, selectedModel,

View File

@ -11,7 +11,10 @@ import { useStorage } from "@plasmohq/storage/hook"
export const OptionShareBody = () => { export const OptionShareBody = () => {
const queryClient = useQueryClient() const queryClient = useQueryClient()
const { t } = useTranslation(["settings"]) const { t } = useTranslation(["settings"])
const [shareModeEnabled, setShareModelEnabled] = useStorage("shareMode", true) const [shareModeEnabled, setShareModelEnabled] = useStorage(
"shareMode",
false
)
const { status, data } = useQuery({ const { status, data } = useQuery({
queryKey: ["fetchShareInfo"], queryKey: ["fetchShareInfo"],
@ -25,10 +28,14 @@ export const OptionShareBody = () => {
}) })
const onSubmit = async (values: { url: string }) => { const onSubmit = async (values: { url: string }) => {
if (shareModeEnabled) {
const isOk = await verifyPageShareURL(values.url) const isOk = await verifyPageShareURL(values.url)
if (isOk) { if (isOk) {
await setPageShareUrl(values.url) await setPageShareUrl(values.url)
} }
} else {
await setPageShareUrl(values.url)
}
} }
const onDelete = async ({ const onDelete = async ({

View File

@ -48,7 +48,7 @@ export default defineConfig({
outDir: "build", outDir: "build",
manifest: { manifest: {
version: "1.1.7", version: "1.1.8",
name: name:
process.env.TARGET === "firefox" process.env.TARGET === "firefox"
? "Page Assist - A Web UI for Local AI Models" ? "Page Assist - A Web UI for Local AI Models"