diff --git a/web/i18n/en/button.json b/web/i18n/en/button.json index 39d2f733..a60de75d 100644 --- a/web/i18n/en/button.json +++ b/web/i18n/en/button.json @@ -11,5 +11,6 @@ "import": "import", "continue": "continue", "star": "star", - "follow": "follow" + "follow": "follow", + "save": "save" } diff --git a/web/i18n/en/dialog.json b/web/i18n/en/dialog.json index 3039a4b4..43fb622c 100644 --- a/web/i18n/en/dialog.json +++ b/web/i18n/en/dialog.json @@ -15,5 +15,7 @@ "import.body": "importing unknown or corrupted files may unexpectedly alter or break cobalt functionality. only import files that you've personally exported and haven't modified. if you were asked to import this file by someone - don't do it.\n\nwe are not responsible for any harm caused by importing unknown setting files.", "api.override.title": "processing instance override", - "api.override.body": "{{ value }} is now the processing instance. if you don't trust it, press \"cancel\" and it'll be ignored.\n\nyou can change your choice later in processing settings." + "api.override.body": "{{ value }} is now the processing instance. if you don't trust it, press \"cancel\" and it'll be ignored.\n\nyou can change your choice later in processing settings.", + + "safety.custom_instance.body": "custom instances can potentially pose privacy & safety risks.\n\nbad instances can:\n1. redirect you away from cobalt and try to scam you.\n2. log all information about your requests, store it forever, and use it to track you.\n3. serve you malicious files (such as malware).\n4. force you to watch ads, or make you pay for downloading.\n\nafter this point, we can't protect you. please be mindful of what instances to use and always trust your gut. if anything feels off, come back to this page, reset the custom instance, and report it to us on github." } diff --git a/web/i18n/en/settings.json b/web/i18n/en/settings.json index 63d4ede3..ddae9eae 100644 --- a/web/i18n/en/settings.json +++ b/web/i18n/en/settings.json @@ -6,7 +6,7 @@ "page.download": "downloading", "page.advanced": "advanced", "page.debug": "debug information", - "page.processing": "processing", + "page.instances": "instances", "section.general": "general", "section.save": "save", @@ -112,5 +112,10 @@ "processing.override": "default instance override", "processing.override.title": "use instance-provided processing server", - "processing.override.description": "cobalt will use the processing server from DEFAULT_API when this is enabled. this is a temporary description." + "processing.override.description": "if web instance provides its own default processing server, you can choose to use it over the main processing server. make sure it's a server by someone you trust.", + + "processing.community": "community instances", + + "processing.enable_custom.title": "use a custom processing server", + "processing.enable_custom.description": "cobalt will use a custom processing server if you choose to. even though cobalt has some security measures in place, we are not responsible for any damage done via a community instance, as we have no control over them.\n\nplease be mindful of what instances you use and make sure they're hosted by people you trust." } diff --git a/web/src/components/buttons/SettingsToggle.svelte b/web/src/components/buttons/SettingsToggle.svelte index 1e37aa3e..75a564e5 100644 --- a/web/src/components/buttons/SettingsToggle.svelte +++ b/web/src/components/buttons/SettingsToggle.svelte @@ -10,28 +10,37 @@ import Toggle from "$components/misc/Toggle.svelte"; - export let settingContext: Context; export let settingId: Id; + export let settingContext: Context; export let title: string; export let description: string = ""; + export let disabled = false; + export let disabledOpacity = false; + $: setting = $settings[settingContext][settingId]; $: isEnabled = !!setting; -