E2EE module base

This commit is contained in:
Jiiks 2018-08-09 10:56:44 +03:00
parent 1288e0361a
commit 356e8f0934
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,27 @@
/**
* BetterDiscord E2EE Module
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import BuiltinModule from './BuiltinModule';
export default new class E2EE extends BuiltinModule {
get settingPath() {
return ['security', 'default', 'e2ee'];
}
enabled(e) {
}
disabled(e) {
}
}

View File

@ -161,6 +161,25 @@
"id": "security",
"text": "Security",
"headertext": "Security Settings",
"settings": []
"settings": [
{
"id": "default",
"settings": [
{
"id": "e2ee",
"type": "bool",
"text": "E2EE",
"hint": "End-to-end encryption",
"value": false
}
]
},
{
"id": "e2eedb",
"name": "E2EE Database",
"type": "drawer",
"settings": []
}
]
}
]

View File

@ -42,6 +42,7 @@ export const BdMenuItems = new class {
this.addSettingsSet('Internal', 'core', 'Core');
this.addSettingsSet('Internal', 'ui', 'UI');
this.addSettingsSet('Internal', 'emotes', 'Emotes');
this.addSettingsSet('Internal', 'security', 'Security');
this.add({category: 'Internal', contentid: 'css', text: 'CSS Editor'});
this.add({category: 'External', contentid: 'plugins', text: 'Plugins'});