diff --git a/client/src/builtin/E2EE.js b/client/src/builtin/E2EE.js new file mode 100644 index 00000000..c22f29a8 --- /dev/null +++ b/client/src/builtin/E2EE.js @@ -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) { + + } + +} diff --git a/client/src/data/user.settings.default.json b/client/src/data/user.settings.default.json index c0691dd2..a9f1ed45 100644 --- a/client/src/data/user.settings.default.json +++ b/client/src/data/user.settings.default.json @@ -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": [] + } + ] } ] diff --git a/client/src/ui/bdmenu.js b/client/src/ui/bdmenu.js index e21de6db..4fe59f07 100644 --- a/client/src/ui/bdmenu.js +++ b/client/src/ui/bdmenu.js @@ -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'});