E2EE module base
This commit is contained in:
parent
1288e0361a
commit
356e8f0934
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -161,6 +161,25 @@
|
|||
"id": "security",
|
||||
"text": "Security",
|
||||
"headertext": "Security 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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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'});
|
||||
|
|
Loading…
Reference in New Issue