chore(deps): bump + fix: only allow one from extension and proxy
This commit is contained in:
26612
package-lock.json
generated
26612
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -57,7 +57,7 @@
|
|||||||
"@nuxtjs/google-analytics": "^2.4.0",
|
"@nuxtjs/google-analytics": "^2.4.0",
|
||||||
"@nuxtjs/google-fonts": "^1.3.0",
|
"@nuxtjs/google-fonts": "^1.3.0",
|
||||||
"@nuxtjs/pwa": "^3.3.5",
|
"@nuxtjs/pwa": "^3.3.5",
|
||||||
"@nuxtjs/tailwindcss": "^4.0.1",
|
"@nuxtjs/tailwindcss": "^4.0.2",
|
||||||
"@testing-library/jest-dom": "^5.11.9",
|
"@testing-library/jest-dom": "^5.11.9",
|
||||||
"@types/lodash": "^4.14.168",
|
"@types/lodash": "^4.14.168",
|
||||||
"@vue/test-utils": "^1.1.3",
|
"@vue/test-utils": "^1.1.3",
|
||||||
|
|||||||
@@ -219,6 +219,9 @@ export default Vue.extend({
|
|||||||
|
|
||||||
PROXY_URL: "",
|
PROXY_URL: "",
|
||||||
PROXY_KEY: "",
|
PROXY_KEY: "",
|
||||||
|
|
||||||
|
EXTENSIONS_ENABLED: true,
|
||||||
|
PROXY_ENABLED: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
subscriptions() {
|
subscriptions() {
|
||||||
@@ -252,6 +255,12 @@ export default Vue.extend({
|
|||||||
applySetting(key, value)
|
applySetting(key, value)
|
||||||
},
|
},
|
||||||
toggleSetting<K extends KeysMatching<SettingsType, boolean>>(key: K) {
|
toggleSetting<K extends KeysMatching<SettingsType, boolean>>(key: K) {
|
||||||
|
if (key === "EXTENSIONS_ENABLED" && this.PROXY_ENABLED) {
|
||||||
|
toggleSetting("PROXY_ENABLED")
|
||||||
|
}
|
||||||
|
if (key === "PROXY_ENABLED" && this.EXTENSIONS_ENABLED) {
|
||||||
|
toggleSetting("EXTENSIONS_ENABLED")
|
||||||
|
}
|
||||||
toggleSetting(key)
|
toggleSetting(key)
|
||||||
},
|
},
|
||||||
toggleSettings<K extends KeysMatching<SettingsType, boolean>>(name: K, value: SettingsType[K]) {
|
toggleSettings<K extends KeysMatching<SettingsType, boolean>>(name: K, value: SettingsType[K]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user