Commit Graph

486 Commits

Author SHA1 Message Date
Jiiks df7d9fa0da User ContentConfig and bug fix 2018-02-14 15:35:35 +02:00
Jiiks b1f4fb637e add a base for content config object 2018-02-14 15:32:19 +02:00
Jiiks a37bccfbb2 Some commenting 2018-02-14 15:00:15 +02:00
Jiiks 287e2c9cd2 Some commenting 2018-02-14 14:55:06 +02:00
Jiiks b23a5ba7ac Pass deps to plugins directly. Should be used when a plugin must have a module to function. 2018-02-14 10:05:34 +02:00
Jiiks 4fba4049e1 Check that plugin dependencies exist 2018-02-14 09:56:55 +02:00
Samuel Elliott cebaba2de3
Fix file setting 2018-02-14 01:52:45 +00:00
Samuel Elliott 8e71ee5a5c
Undo stuff from samuelthomas2774/add-setting-events 2018-02-14 01:49:23 +00:00
Samuel Elliott 145df5e7cc
Add Plugin.config 2018-02-14 01:45:41 +00:00
Samuel Elliott f13726d8e2
Remove old settings modals 2018-02-14 01:42:10 +00:00
Samuel Elliott 4b9084bee4
Add generic settings modal and recursive compare 2018-02-14 01:40:47 +00:00
Samuel Elliott 6b96bdbc3b
Add category names 2018-02-14 01:37:47 +00:00
Samuel Elliott 227b2cc0d8
Fix events for themes and extmodules 2018-02-13 23:36:40 +00:00
Samuel Elliott 08271deea1
Add plugin settings events
- Moved the Theme class to it’s own file
2018-02-13 23:26:39 +00:00
Samuel Elliott d3c3de5a79
Merge remote-tracking branch 'upstream/master' into add-setting-events
# Conflicts:
#	client/src/modules/pluginapi.js
2018-02-13 23:07:46 +00:00
Samuel Elliott 9b9162346b
Add internal settings access to the plugin API 2018-02-13 22:37:24 +00:00
Samuel Elliott 210d085caf
Fix “cannot read property ‘width’ of undefined” 2018-02-13 22:33:17 +00:00
Samuel Elliott 8b85c829d6
Add setting updated event 2018-02-13 22:30:58 +00:00
Samuel Elliott 79af725f7f
Move error event struct 2018-02-13 22:28:58 +00:00
Jiiks 728aab8e95 Import modulemanager, add modules path to config, requires core rebuild 2018-02-14 00:24:04 +02:00
Samuel Elliott 1bded3121e Add event structs 2018-02-13 22:23:40 +00:00
Jiiks 01b54a37bc load modules 2018-02-14 00:17:02 +02:00
Jiiks 44832fb11a Exports 2018-02-14 00:15:46 +02:00
Jiiks fca1d49506 add class name to Plugin 2018-02-14 00:14:50 +02:00
Jiiks 842f0d6229 Move module stuff to it's own module 2018-02-14 00:14:26 +02:00
Jiiks 0ac1cf240d Ext module base and ext module manager base 2018-02-14 00:10:22 +02:00
Alexei Stukov 13e9c53520
Merge pull request #128 from samuelthomas2774/css-editor
Add SCSS and saving support to the CSS editor
2018-02-14 00:06:00 +02:00
Samuel Elliott c581ba1b75
Add save/restore of CSS editor window bounds 2018-02-13 21:03:48 +00:00
Samuel Elliott 729657f345
Add saving to the CSS editor 2018-02-13 20:06:04 +00:00
Samuel Elliott 5ca04f0652
Add SCSS support to the CSS editor 2018-02-13 19:56:01 +00:00
Samuel Elliott a965dc9515
Tidy modal SCSS files 2018-02-13 17:50:01 +00:00
Samuel Elliott 98261a864d Hide lower modals 2018-02-13 17:39:32 +00:00
Samuel Elliott 2ec2df6efd Tidy and tweak modal SCSS files 2018-02-13 17:39:32 +00:00
Samuel Elliott 21c70124e5 Bring back the logo animation on menu open/close 2018-02-13 17:39:31 +00:00
Samuel Elliott 10abf0353f Rename the tooltips container to bd-tooltips and move it above the settings and modals elements 2018-02-13 17:39:31 +00:00
Samuel Elliott 1f85d4d2f4 Added Plugin/Theme.showSettingsModal 2018-02-13 17:39:31 +00:00
Samuel Elliott 3b66d320e8 Move plugin/theme settings modals to the modal manager 2018-02-13 17:39:31 +00:00
Samuel Elliott 21a8554d6f Change lower modals’ opacity 2018-02-13 17:39:31 +00:00
Samuel Elliott 8706e9ef0f Merge plugin/theme manager errors 2018-02-13 17:39:31 +00:00
Samuel Elliott 64ac3677b1 Add modal manager 2018-02-13 17:39:31 +00:00
Jiiks 66721d80b5 Rename require to bridge 2018-02-13 18:43:44 +02:00
Jiiks ebeae46991 Wait for all plugins to load before starting them 2018-02-13 18:22:48 +02:00
Jiiks 9a652e3748 add import to api 2018-02-13 18:18:01 +02:00
Jiiks 1f1d748687 Module loading 2018-02-13 18:06:36 +02:00
Samuel Elliott 7664266dfe
Add plugin exports 2018-02-12 22:51:22 +00:00
Alexei Stukov 663af3ca83
Merge pull request #123 from samuelthomas2774/add-core-settings-storage
Fixed setting loading
2018-02-12 22:12:06 +02:00
Samuel Elliott e793a8d380
Change Settings.get to return undefined when a setting isn’t found 2018-02-12 19:48:36 +00:00
Samuel Elliott 61c913b55b
Renamed Settings.getSetting to Settings.get 2018-02-12 19:31:50 +00:00
Samuel Elliott cc1aee6842
Fixed setting loading 2018-02-12 19:23:35 +00:00
Alexei Stukov 80ce233e6d
Merge pull request #122 from samuelthomas2774/add-core-settings-storage
Add core settings storage
2018-02-12 21:22:10 +02:00
Samuel Elliott f085364760
Fix drawer header size 2018-02-12 19:05:28 +00:00
Samuel Elliott 1f4c2df3ae
Add functions to get a set, category and setting value 2018-02-12 19:01:07 +00:00
Samuel Elliott 32326471b1
Tidy switches Vue files 2018-02-12 19:00:42 +00:00
Samuel Elliott 8d7261a24a
Remove old components 2018-02-12 17:56:22 +00:00
Samuel Elliott 7e2fca9059
Add update hook 2018-02-12 17:54:40 +00:00
Samuel Elliott 26fbac6bbc
Add support for disabled settings 2018-02-12 17:54:16 +00:00
Samuel Elliott eaa8d3a03a
Fix CSS editor panel 2018-02-12 17:46:29 +00:00
Samuel Elliott 4fa91563a5
Tidy switches SCSS files 2018-02-12 17:46:02 +00:00
Samuel Elliott 09cff282cb
Update internal settings format and use a generic settings panel 2018-02-12 17:33:32 +00:00
Samuel Elliott 52f8c1cf31
Rename PluginSetting to Setting 2018-02-12 16:52:09 +00:00
Samuel Elliott 15f683d4c9
Fix Plugin.getSetting 2018-02-12 15:20:27 +00:00
Samuel Elliott 4dfe349802
Add core settings storage 2018-02-12 15:19:11 +00:00
Jiiks 194c1c1ff8 Change dropdown/radio structure 2018-02-12 04:54:15 +02:00
Jiiks f37058779a Radio functional 2018-02-12 02:48:44 +02:00
Jiiks 44b9450efa Dropdown functional 2018-02-12 02:44:12 +02:00
Jiiks 4e46675f94 add events for plugins 2018-02-12 01:04:07 +02:00
Jiiks 4a7a9ae1db add base plugin api and pass vendor to plugins 2018-02-12 00:07:23 +02:00
Samuel Elliott 14822ab51a Don't save unnecessary information with plugin/theme configuration 2018-02-11 21:30:35 +00:00
Jiiks 2453797400 add slider theme setting 2018-02-11 22:35:29 +02:00
Jiiks da702bd40a Ensure forward slashes 2018-02-11 22:25:15 +02:00
Samuel Elliott 8d70e9cd54 Add theme reloading 2018-02-11 20:12:15 +00:00
Samuel Elliott 9301ad627c Add SCSS theme configuration and compile caching 2018-02-11 19:31:24 +00:00
Jiiks fa9c0d2f94 Compile theme scss 2018-02-11 17:42:24 +02:00
Jiiks 31655e558c add sass compiler and reject to ipc 2018-02-11 16:59:55 +02:00
Samuel Elliott 01655f0c04 Fix position of the settings menu button on Linux 2018-02-09 15:48:58 +00:00
Alexei Stukov aa7e6ab160
Merge pull request #106 from samuelthomas2774/macos-linux-fixes
macOS and Linux fixes
2018-02-09 17:16:29 +02:00
Samuel Elliott d4c71452bc
Enable theme on start if enabled 2018-02-08 23:53:39 +00:00
Samuel Elliott 08b791e547
Add theme configuration and saving 2018-02-08 20:19:26 +00:00
Samuel Elliott f3aef1d61d
macOS and Linux fixes 2018-02-08 20:15:18 +00:00
Jiiks 0ec190612b add socket event structs 2018-02-08 00:03:39 +02:00
Jiiks 39c83b7fa6 Select all for stacktrace 2018-02-07 18:07:17 +02:00
Jiiks 67f7111f66 Content manager error modal 2018-02-07 18:02:27 +02:00
Jiiks bf0c74b516 add error struct 2018-02-07 16:41:10 +02:00
Jiiks 208ca763ab add header 2018-02-07 14:21:51 +02:00
Jiiks 51f5a93da2 add modal footer, styling and error modal on plugin load fail 2018-02-07 14:15:46 +02:00
Jiiks f69ea55967 Make additional modal backdrops transparent 2018-02-07 13:56:10 +02:00
Jiiks b395ed767d add error mi, event based modals 2018-02-07 13:52:59 +02:00
Alexei Stukov 18c71fe7da
Merge pull request #100 from JsSucks/theme-manager
Theme manager
2018-02-05 19:02:31 +02:00
Jiiks 72b024c4f3 User a card base for both plugin and theme cards 2018-02-05 18:58:35 +02:00
Jiiks e7b488316b Initial themes view with enable/disable functional 2018-02-05 18:48:03 +02:00
Samuel Elliott 6e4d6307e8
Save plugin config when enabled/disabled 2018-02-05 14:33:30 +00:00
Jiiks 2472743660 Theme manager base 2018-02-05 16:19:24 +02:00
Jiiks ca3ce86dc5 Correctly toggle changed state 2018-02-05 15:58:30 +02:00
Jiiks c5a011012f Functional bool setting 2018-02-05 15:57:41 +02:00
Samuel Elliott 5b87a928ba
Add preset points along a slider 2018-02-05 13:36:43 +00:00
Jiiks 45448e23d3 add value tooltip to slider 2018-02-05 12:45:59 +02:00
Alexei Stukov 93607fde0c
Merge branch 'master' into add-multiline-text 2018-02-05 10:54:29 +02:00
Samuel Elliott 30121ecc9c
Add multiline text 2018-02-05 01:14:19 +00:00
Samuel Elliott 64dd9cd6fb
Moved scrollbar styles to a mixin 2018-02-05 01:13:11 +00:00
Samuel Elliott 4c414e80d4
Removed 2s timeout before saving plugin config 2018-02-05 01:12:16 +00:00
Samuel Elliott 7250ab6cf9
Add sliders 2018-02-05 00:34:22 +00:00
Jiiks 5165094a1b Set the divider colour for changed settings to green 2018-02-05 01:14:28 +02:00
Samuel Elliott 9245e921ce
Add drawer open/close animation 2018-02-04 22:47:27 +00:00
Jiiks 4ba99b654e Wheel to increment number 2018-02-05 00:40:01 +02:00
Jiiks a783072cca Full width radio 2018-02-05 00:30:24 +02:00
Samuel Elliott 4ef24b8b85
Organised form SCSS files and updated styles for dropdowns and radios 2018-02-04 22:09:24 +00:00
Samuel Elliott ba4a02b501
Fix file setting open button 2018-02-04 22:07:03 +00:00
Jiiks c73346292e Give plugins an option to set an icon 2018-02-04 23:19:05 +02:00
Samuel Elliott 1a95a7db4b
Fixed merging user config into default config 2018-02-04 20:17:22 +00:00
Jiiks a706e6f2fc Plugin setting saving 2018-02-04 21:06:08 +02:00
samfun123 7cfd141260 Make the cursor be a pointer 2018-02-04 11:44:13 -05:00
samfun123 5bcd43bb48 Fixed two bugs in the Number type 2018-02-04 11:32:03 -05:00
samfun123 75410b4ce9 Add Number, Radio and Dropdown setting types 2018-02-04 11:12:38 -05:00
Alexei Stukov 4480458bd6
Merge pull request #84 from JsSucks/ui
Merge
2018-02-04 16:23:17 +02:00
Jiiks 932d91876b Drawer button animation 2018-02-04 16:20:57 +02:00
Samuel Elliott ace7bab65e
Fix modal backdrop animation 2018-02-04 14:04:17 +00:00
Jiiks 3034ea4934 User chevron and make entire header clickable 2018-02-04 15:51:11 +02:00
Jiiks fc6bb75229 Add chevron-down material icon 2018-02-04 15:44:55 +02:00
Jiiks 3edceebd89 typo 2018-02-04 14:34:09 +02:00
Alexei Stukov 996ab6a73f
Merge branch 'master' into add-modal-animation 2018-02-04 14:28:56 +02:00
Jiiks 267a545ea5 Remove debug 2018-02-04 14:19:55 +02:00
Jiiks 18926dd58a add keyup to close modal 2018-02-04 14:19:12 +02:00
Jiiks 230e9e6560 Fix footer save alert 2018-02-04 14:08:28 +02:00
Jiiks 8a799f29f7 Fullscreen modals
fixes #80
2018-02-04 14:00:08 +02:00
Jiiks bf648dce6c Remove transforms so fixed positioning actually works. Chrome: 20574 wontfix lel 2018-02-04 11:51:35 +02:00
Samuel Elliott 21025e759e
Add animation on modal open/close 2018-02-03 21:52:56 +00:00
Samuel Elliott 915db146e8
Added plus icon 2018-02-03 15:00:36 +00:00
Samuel Elliott c5442f709d
Add drawers and hairline when scrolling in a modal and organise form SCSS files 2018-02-03 14:52:58 +00:00
Jiiks 39da2ffdb8 Change how plugin config works and set z index for modals 2018-02-03 11:25:34 +02:00
Jiiks e0ce4c00c1 coom != com 2018-02-03 07:46:18 +02:00
Jiiks 889e4916ef Sidebar should be col 2018-02-03 07:45:18 +02:00
Jiiks b1edcf5810 add twitter 2018-02-03 07:44:18 +02:00
Jiiks b8116ddc58 Remove grow from info and add padding 2018-02-03 07:39:56 +02:00
Jiiks 071b60b986 Move info to sidebar footer and set scroller padding 2018-02-03 07:38:28 +02:00
Jiiks 801235e50b add minus and open-in-new 2018-02-03 02:36:05 +02:00
Alexei Stukov 4d716439b6
Merge pull request #74 from JsSucks/ui
Material icons
2018-02-03 02:29:49 +02:00
Alexei Stukov 7ab6daf626
Merge pull request #73 from samuelthomas2774/add-file-setting
Add file setting
2018-02-03 02:26:07 +02:00
Jiiks e05b5c3377 add and use material/close 2018-02-03 02:17:35 +02:00
Jiiks 2f463fad32 Like so instead 2018-02-03 02:00:18 +02:00
Jiiks f18c594744 Start baking material icons straight in 2018-02-03 01:45:00 +02:00
Samuel Elliott 2d0ba0cc0e
Add file setting 2018-02-02 23:42:12 +00:00
Jiiks 20c9dacf71 Category support for plugin settings 2018-02-02 22:47:50 +02:00
Jiiks 853e2a03aa Move backdrop to modal and add a warning when attempting to close with unsaved changes 2018-02-02 21:43:35 +02:00
Samuel Elliott 67e6a22ca7
Made the close button in the plugin settings modal work 2018-02-02 18:07:05 +00:00
Alexei Stukov aefab7c677
Merge pull request #69 from JsSucks/plugins
Merge
2018-02-02 19:55:33 +02:00
Jiiks fe06db3d3c Functional plugin settings(almost) 2018-02-02 19:52:38 +02:00
Samuel Elliott 26de9a3197
Fix tooltip positioning
JsSucks/BetterDiscordApp#67
2018-02-02 15:14:12 +00:00
Jiiks eec595185c Unsaved changes alert footer 2018-02-02 16:40:17 +02:00
Jiiks 1647f8d8c2 Single bd-modal container 2018-02-02 16:10:53 +02:00
Jiiks a7a2e6b08b Correct settings body structure 2018-02-02 16:05:44 +02:00
Jiiks b6489cefaa add repo and site links #42 2018-02-02 15:23:02 +02:00
Jiiks c046f5f92f Extend below 2018-02-02 14:58:25 +02:00
Jiiks 48a086c29d Cleanup index 2018-02-02 14:56:23 +02:00
Jiiks 415d196954 Space 2018-02-02 14:49:05 +02:00
Jiiks fce24e6a6a Eventhook base, structures, add lodash 2018-02-02 14:45:06 +02:00
Jiiks 600eed9dbc Eventlistener module base 2018-02-01 05:00:28 +02:00
Jiiks c92a293d31 Module manager 2018-02-01 04:36:47 +02:00
Jiiks c078c7b686 https 2018-01-31 21:12:36 +02:00
Jiiks 2104770c9d Fix badge wrap 2018-01-31 21:10:33 +02:00
Jiiks c01f022ede Fix props passing for now 2018-01-31 18:25:41 +02:00
Jiiks eca427ce46 Cleanup 2018-01-31 17:47:47 +02:00
Jiiks 14de558305 Profilebadges. Implements #55 2018-01-31 17:45:25 +02:00
Jiiks 92634a2f98 BD Dev/Contributor badge 2018-01-31 16:10:35 +02:00
Jiiks 6b800d94e3 For is faster 2018-01-31 15:46:57 +02:00
Jiiks 76730d38d4 add dom observer 2018-01-31 15:35:22 +02:00
Jiiks 7d09b38963 Logger imports 2018-01-31 14:17:40 +02:00
Jiiks 9f094a08cc Plugin settings modal 2018-01-31 13:35:38 +02:00
Jiiks 8621898558 Local refresh 2018-01-31 13:29:19 +02:00
Jiiks 235b373f1a Plugin Start/Stop switch 2018-01-31 10:32:20 +02:00
Jiiks e0df52b6ab Plugin reloading 2018-01-31 10:17:15 +02:00
Jiiks 1896a0d558 Content refresh 2018-01-31 00:21:06 +02:00
Jiiks a19570c205 PluginCard 2018-01-30 19:12:13 +02:00
Jiiks 5ad5eeff64 New util functions and pluginmanager 2018-01-30 17:59:27 +02:00
Jiiks 2a8c6189e4 WebpackModules 2018-01-30 15:48:25 +02:00
Jiiks 9d7bc8a058 Utils 2018-01-30 15:38:34 +02:00
Jiiks cb8b448da9 params 2018-01-30 15:27:39 +02:00
Jiiks ca8a421a9c Globals module 2018-01-30 15:25:35 +02:00
Jiiks 85db5af655 Module resolves and base pluginmanager 2018-01-30 15:20:24 +02:00
Jiiks 6385c15236 Css editor view 2018-01-30 13:20:42 +02:00
Jiiks 031e93185a Css editor and ipc module 2018-01-30 13:14:16 +02:00
Jiiks 9c14b44d22 add settings and consistency 2018-01-30 12:01:24 +02:00
Jiiks 30b4a8a55d Add components 2018-01-30 11:28:28 +02:00
Jiiks 5cdd9948e8 Consistency, add settings component, trigger ready 2018-01-29 20:15:58 +02:00
Jiiks ca5467addb add vue usings 2018-01-29 20:00:31 +02:00
Jiiks 5791368a75 add main ui module and id to dom 2018-01-29 19:56:48 +02:00
Jiiks 88ad25ecc7 add events module 2018-01-29 19:46:24 +02:00
Jiiks 4c5ff964e6 Refactor base, add DOM 2018-01-29 19:34:31 +02:00
Alexei Stukov 28c573e5c5
Merge pull request #52 from samuelthomas2774/check-plugin-directory
Make sure plugins are directories
2018-01-28 19:10:22 +02:00
samogot e41b289eb5 Fix The "components" property should be above the "template" property [Error/vue/order-in-components] ESLint error
FYI: https://vuejs.org/v2/style-guide/#Component-instance-options-order-recommended
2018-01-27 16:58:48 +02:00
samogot 8e7c6b45b8 Fix 'reject' is not defined. [Error/no-undef] ESLint error
Fix Unnecessary semicolon. [Error/no-extra-semi] ESLint error
2018-01-27 16:58:37 +02:00
samogot 63c239f36f Extract global BetterDiscord.vendor into separate module, so it can be used through require 2018-01-27 16:40:35 +02:00
Samuel Elliott a27d586d38
Check if plugin directory is a directory 2018-01-25 16:49:02 +00:00
Samuel Elliott d11cfbcdaa
Fix FileUtils promises 2018-01-25 16:47:13 +00:00
Jiiks 7bd1fc2eea add tooltips 2018-01-25 15:26:42 +02:00
Jiiks 366deb02fc Remove test timeout 2018-01-25 14:54:02 +02:00
Jiiks 271101ba0b Open plugin dir when edit is clicked 2018-01-25 14:53:37 +02:00
Jiiks e66c1ce447 Hide settings button if plugin doesn't have any settings 2018-01-25 14:50:07 +02:00
Jiiks 5faaaa0276 add todo 2018-01-25 14:47:26 +02:00
Jiiks a509495b9f Functional plugin reload 2018-01-25 14:46:53 +02:00
Jiiks 0a05c0d68a Styles 2018-01-25 13:11:36 +02:00