UI tweaks, finish proxy settings input

This commit is contained in:
NBTX
2019-08-29 23:58:10 +01:00
parent bac9dd1eec
commit ca568cd3eb
5 changed files with 68 additions and 37 deletions

View File

@@ -31,9 +31,14 @@ export const SETTINGS_KEYS = [
*/
"PROXY_ENABLED",
/**
* The URL of the proxy to connect to for requests.
*/
"PROXY_URL",
"PROXY_AUTH"
/**
* The security key of the proxy.
*/
"PROXY_KEY"
];
export const state = () => ({
@@ -52,9 +57,9 @@ export const mutations = {
// Add your settings key to the SETTINGS_KEYS array at the
// top of the file.
// This is to ensure that application settings remain documented.
if(!SETTINGS_KEYS.includes(key)) throw new Error("The settings key does not include the key " + key);
if(!SETTINGS_KEYS.includes(key)) throw new Error("The settings structure does not include the key " + key);
state.settings[key] = value;
}
};
};