Commit Graph

970 Commits

Author SHA1 Message Date
Samuel Elliott bee869340d
Disable errors for __[non_]webpack_require__ 2018-05-28 04:17:38 +01:00
Samuel Elliott bba1165c77
Wrap Discord’s preload script instead of enabling Node integration 2018-05-28 01:43:25 +01:00
Samuel Elliott a5c7aaab3b
Allow patching arrays 2018-05-21 20:49:21 +01:00
Samuel Elliott cfaf581ae1
Don’t use Moment.js
Plugins can still use Discord’s Moment.js with WebpackModules
2018-05-21 16:41:41 +01:00
Samuel Elliott 665c1d5fe4
Use local Moment.js instead of Discord’s
Fixes a recursive dependency issue
2018-05-20 00:46:15 +01:00
Samuel Elliott 8d8c1a8080
Add getting webpack modules as properties of the WebpackModules object
`WebpackModules.React` instead of `WebpackModules.getModuleByName('React')`
2018-05-20 00:36:14 +01:00
Samuel Elliott 8827bdb8b0
Fix messages with emotes not being updated when emotes are disabled 2018-05-20 00:27:02 +01:00
Samuel Elliott cd81f925cb
Fix for webpack 4 2018-05-20 00:24:21 +01:00
Samuel Elliott d7f4c651b6
Fix errors 2018-05-15 20:07:34 +01:00
Samuel Elliott f2159f1031
Fix error when unmounting a component 2018-05-15 16:54:22 +01:00
Samuel Elliott 581c94f6b3
Add React wrapper for Vue 2018-05-14 17:56:23 +01:00
Samuel Elliott 9eb8eaa906
Add DOM, DOMObserver and VueInjector to the plugin API 2018-05-14 16:34:40 +01:00
Samuel Elliott 9915ef8b19 Fix for Linux 2018-05-13 16:16:51 +01:00
Zack Rauen 2d784b48f4 add toasts 2018-05-12 23:17:04 -04:00
Samuel Elliott cee2a6ec34
Fix badges not being rendered when jumping to a message without a flash 2018-05-05 11:51:08 +01:00
Samuel Elliott 64e855ab2d
Fix badges not being rendered when jumping to a message 2018-05-05 11:39:56 +01:00
Samuel Elliott 5aa921ae4b
Fix EventsWrapper not unsubscribing from events
Also changed it to use removeListener so it can be used with normal EventEmitters
2018-05-05 11:17:26 +01:00
Samuel Elliott 40a72458e2
Fix Channel component 2018-05-03 19:52:23 +01:00
Samuel Elliott dc2be5c410
Add ReactHelpers to the plugin API 2018-05-03 15:56:07 +01:00
Samuel Elliott 640ec66abc
Some comments and fix updateSystemChannel 2018-04-30 21:12:50 +01:00
Samuel Elliott 3aedcfdd06
Add updating a guild’s icon/splash image from a file 2018-04-30 20:46:55 +01:00
Samuel Elliott 71fe549ee6
Add some permission checks 2018-04-30 20:19:54 +01:00
Samuel Elliott cbe1de98a5
Add updating guilds 2018-04-30 20:18:25 +01:00
Samuel Elliott 5a58c1c6ce
Add updating channel attributes 2018-04-30 19:17:04 +01:00
Samuel Elliott 591d44dee4
Add creating channels 2018-04-30 19:16:06 +01:00
Samuel Elliott 6da58ef6bb
Move Channel.openSettings to GuildChannel.openSettings, rename defaultChannel to isDefaultChannel and add GroupChannel names 2018-04-30 19:14:34 +01:00
Samuel Elliott 85d5de9791
Fix ChannelMember returning wrong component 2018-04-30 19:12:21 +01:00
Samuel Elliott 5ce78f4b32
Update layer classes 2018-04-29 17:56:23 +01:00
Samuel Elliott 2499f8c0ab
Get class names from internal modules 2018-04-29 17:41:12 +01:00
Samuel Elliott 3f2eb1047e
Use top/left to position tooltips/popovers and remove BdMenuItems from global 2018-04-29 17:35:30 +01:00
Samuel Elliott ac79bbb99b
Update classes 2018-04-29 16:30:21 +01:00
Samuel Elliott 1c4fb0b5ea
Rename HTMLUtils to SimpleMarkdown 2018-04-29 02:19:08 +01:00
Samuel Elliott 2e2d0dd6f6
Make some Vue components available to plugins, add highlight.js module and some tidying 2018-04-29 01:57:09 +01:00
Samuel Elliott a6c91d5e27
Add updating a user’s roles 2018-04-28 00:15:17 +01:00
Samuel Elliott 949206738b
Add user notes 2018-04-27 23:51:37 +01:00
Samuel Elliott 4dc715a39a
Patch all components at once instead of waiting for the previous component to be found 2018-04-27 19:05:00 +01:00
Samuel Elliott 36d7554b46
Add user popout data attributes 2018-04-27 19:02:35 +01:00
Samuel Elliott d42e8f66ca
Fix badges not being rendered on update 2018-04-27 17:39:28 +01:00
Samuel Elliott 244b7e5bd1
Move filters to common 2018-04-27 17:33:05 +01:00
Samuel Elliott ca7a7c1f91
Fix injected profile badges being removed 2018-04-27 16:12:46 +01:00
Samuel Elliott 504221ce28
Fix getComponentByRegex and add Filters to the plugin API 2018-04-27 16:06:51 +01:00
Samuel Elliott 1e643b8164
Patch the UserProfileModal component instead of injecting badges when the modal is opened 2018-04-27 16:00:27 +01:00
Samuel Elliott 0944c0708f
Add user profile modal data attributes 2018-04-27 15:53:49 +01:00
Samuel Elliott 17575fc6a1
Add filtering all components to ReactComponents 2018-04-27 15:52:43 +01:00
Samuel Elliott 1354b884b4
Add getting all components to reflection 2018-04-27 15:51:59 +01:00
Samuel Elliott 1ace26b67f
Select the channel when sending messages 2018-04-26 19:52:56 +01:00
Samuel Elliott d1cce95abe
Fix colour picker/dropdown options being hidden when in a drawer 2018-04-26 01:08:14 +01:00
Samuel Elliott 22fbb7b5bd
Fixed favourite emotes array being undefined
https://cdn.discordapp.com/attachments/400734824740028419/438847211325882370/unknown.png
2018-04-26 00:47:42 +01:00
Samuel Elliott 34ebab7c21
Use APIModule directly to edit messages 2018-04-25 23:57:07 +01:00
Samuel Elliott 5e8579e4dc
Use APIModule directly to delete messages 2018-04-25 23:56:10 +01:00
Samuel Elliott 4721f66dab
Comments 2018-04-25 23:54:26 +01:00
Samuel Elliott 02b313f2e6
Add checks for whether the user can delete a message 2018-04-25 23:02:47 +01:00
Samuel Elliott b0ae424adb
Change all properties to camel case 2018-04-25 22:54:41 +01:00
Samuel Elliott 5a6fb990c7
Add sending local bot messages 2018-04-25 13:54:33 +01:00
Samuel Elliott c294df6b26
Fix nickname checks and add changing nicknames programmatically 2018-04-25 13:40:18 +01:00
Samuel Elliott c3e4563aeb
Add multi option radios 2018-04-25 13:21:18 +01:00
Samuel Elliott 525fd3145d Merge branch 'master' into discord-api 2018-04-17 20:17:04 +01:00
Samuel Elliott 32452d918a
Fix guild member methods and set the guild/channel settings window section before opening it 2018-04-15 02:27:01 +01:00
Samuel Elliott e524c50b65
Add opening the user’s profile modal 2018-04-15 02:26:21 +01:00
Samuel Elliott 96952c3fef
Fix guild.owner 2018-04-15 00:54:33 +01:00
Samuel Elliott ad710de008
Fixes and add file header to list 2018-04-14 21:49:16 +01:00
Samuel Elliott 21ff9d200c
Some comments 2018-04-14 19:42:58 +01:00
Samuel Elliott a1c6f5d5fd
Separate messages into their types 2018-04-14 19:13:26 +01:00
Samuel Elliott 6d64d17b7d
Add embeds 2018-04-14 18:43:18 +01:00
Samuel Elliott 695d088f60
Add reactions 2018-04-14 18:08:57 +01:00
Samuel Elliott bcb888100c
Fix development CSS editor build being copied instead of the release build 2018-04-14 17:51:02 +01:00
Samuel Elliott 146e108874
Add file headers 2018-04-14 17:37:41 +01:00
Samuel Elliott 4837a01812
Add guild emojis 2018-04-14 17:24:07 +01:00
Samuel Elliott 48f4837a24
Wrap User instead of extending it 2018-04-14 17:20:17 +01:00
Samuel Elliott 8b320d2f09
More modals 2018-04-14 17:03:39 +01:00
Samuel Elliott ac22b14358
Add opening channel/guild settings window 2018-04-14 17:02:06 +01:00
Samuel Elliott 4d5a403d6d
Add user settings 2018-04-14 17:00:33 +01:00
Samuel Elliott 9dc424cc75
Allow after patches to change the return value 2018-04-14 15:17:02 +01:00
Samuel Elliott 1b75753a3d
Add user status/activity 2018-04-14 15:15:13 +01:00
Samuel Elliott a7b300d233
Check if the member exists before creating a GuildMember 2018-04-14 15:14:31 +01:00
Samuel Elliott 68e42b8b36
Add channel permission overwrites 2018-04-14 14:06:32 +01:00
Samuel Elliott e061d95ae6
Add roles 2018-04-14 14:06:09 +01:00
Samuel Elliott 33c0732c08
Store objects in a WeakMap
So comparisons like `DiscordApi.currentUser === DiscordApi.currentUser` can be true
2018-04-14 00:31:09 +01:00
Samuel Elliott f1e0350433
Move data types to separate files and further separate channels based of their type 2018-04-14 00:29:03 +01:00
Samuel Elliott d5f486d1ad
Add shortcut to plugin/theme/extmodule manager content 2018-04-13 19:50:31 +01:00
Samuel Elliott 7fb8337095
Fix for plain CSS themes 2018-04-09 21:12:53 +01:00
Samuel Elliott 7adf63dfa8
Prevent escape closing Discord and BetterDiscord menus/modals at the same time 2018-04-08 19:54:48 +01:00
Samuel Elliott d2f7e6142f
Fix dropdowns not showing the selected option 2018-04-08 17:00:26 +01:00
Samuel Elliott b62727b046
Fix channel members not always being rerendered to show badges 2018-04-08 01:37:15 +01:00
Samuel Elliott f0a337e0ed
Fix custom CSS file not being used if the custom editor CSS is empty 2018-04-08 00:07:23 +01:00
Samuel Elliott 4d0631ba38
Add wait util 2018-04-04 21:53:02 +01:00
Samuel Elliott d4962bb2ab
Fix settings being partially saved while loading 2018-04-04 21:39:55 +01:00
Samuel Elliott cf319a2604
Separate load 2018-04-04 21:38:56 +01:00
Samuel Elliott 256db71aa4
Hide emote autocomplete when emotes are disabled 2018-04-04 21:08:50 +01:00
Samuel Elliott de8601ded4
Show favourite emotes in autocomplete 2018-04-04 20:51:25 +01:00
Samuel Elliott a96f3b1eb7
Fix border radius of the message input field 2018-04-04 20:36:11 +01:00
Samuel Elliott a7aa1fa5ec
Fix up/down at the end of the list when the list has less than 10 emotes 2018-04-04 20:34:54 +01:00
Samuel Elliott 027ca8d639
Change plugin API WebpackModules
getModule[…] returns a module (first = true)
getModules[…] returns an array (first = false)
2018-04-01 23:17:33 +01:00
Samuel Elliott a0f60dddb2
Update plugin API (fix Utils not being passed arguments) 2018-04-01 23:12:23 +01:00
Samuel Elliott a3038c46fd
Undo 10fd25607d (diff-e0997702acb90b93fb46357f7576ab03L423) 2018-04-01 23:02:02 +01:00
Samuel Elliott d98f152009
Refactor UserProfileModals badges 2018-04-01 22:44:01 +01:00
Samuel Elliott 68beee12d3
Add the BD badge before the server owner icon 2018-04-01 17:39:46 +01:00
Samuel Elliott 4b59b9f65d
Prevent opening the popout when the badge is clicked 2018-04-01 17:35:09 +01:00
Samuel Elliott 85d390e18d
Rerender messages and channel members after patching 2018-04-01 15:24:28 +01:00
Samuel Elliott 3f89286946
Refactor message badges 2018-04-01 15:21:31 +01:00
Samuel Elliott 554b8d195b
Rename ReactComponentHelpers to ReactHelpers 2018-04-01 15:16:50 +01:00
Samuel Elliott 7f5fa44fd3
Refactor ChannelMember badges 2018-04-01 15:15:31 +01:00
Samuel Elliott c95d60ab0f
Don’t toggle favourite when the emote itself is clicked 2018-04-01 02:39:58 +01:00
Samuel Elliott 0e14d167dc
Fix event callbacks not being passed any arguments 2018-03-31 17:38:11 +01:00
Samuel Elliott c701a2b5f9
Add emotes to the plugin API 2018-03-31 16:51:14 +01:00
Samuel Elliott b3442ee108
Store emote database in a map 2018-03-31 04:47:30 +01:00
Samuel Elliott 1bde3b4ec9
Add setting to enable/disable emotes 2018-03-31 03:26:42 +01:00
Samuel Elliott e83c6f92cb
Add emote favourite button 2018-03-31 03:22:44 +01:00
Samuel Elliott 06cca44376
Make plugin/theme descriptions preformatted 2018-03-31 01:19:05 +01:00
Samuel Elliott 3f3898c774
Add favourite emotes (no UI yet) 2018-03-31 01:17:42 +01:00
Samuel Elliott f8a380fd59
Add more advanced content authors (links to Discord profile, GitHub, Twitter, etc) 2018-03-31 01:10:33 +01:00
Samuel Elliott f28525129e
Add menu API 2018-03-31 01:03:13 +01:00
Samuel Elliott d2cbbd309b
Fix plugin/themes view not updating after reloading content 2018-03-31 00:50:03 +01:00
Samuel Elliott 74d78f4bca
Remove old monkey patch 2018-03-31 00:47:25 +01:00
Samuel Elliott 68af931128
Record plugin/theme load/start/stop timestamp 2018-03-31 00:46:05 +01:00
Samuel Elliott 5331afb763
Tweak card styles and use events 2018-03-31 00:45:14 +01:00
Samuel Elliott 069b1ff689
Extend AsyncEventEmitter and allow changing of some properties 2018-03-30 04:23:32 +01:00
Samuel Elliott 009d6be057
All clicking through the transparent area when the menu is open but nothing is selected 2018-03-30 01:38:36 +01:00
Samuel Elliott da4b592e54
Extend AsyncEventEmitter 2018-03-30 01:34:37 +01:00
Samuel Elliott 81f3519408
Use events in the settings menu 2018-03-30 01:17:02 +01:00
Samuel Elliott 8c09112cff
Use events 2018-03-30 01:07:56 +01:00
Samuel Elliott 8983256ade
Use Logger 2018-03-30 01:06:37 +01:00
Samuel Elliott d323292162
Add textarea for updating custom setting’s values in debug mode 2018-03-30 01:04:58 +01:00
Samuel Elliott 1714a0225e
Change autocomplete class names 2018-03-30 01:03:04 +01:00
Samuel Elliott fd3b0a92ce
Use events on modal close button click 2018-03-30 00:57:01 +01:00
Samuel Elliott 9b1dd771ad
Use v-model/events instead of a change function
Custom settings still work the same
2018-03-29 21:48:06 +01:00
Samuel Elliott 441e80e0e8
Tweak colour picker and add animation 2018-03-29 21:23:15 +01:00
Samuel Elliott 4634266e14
Make the button look more built in 2018-03-29 20:16:06 +01:00
Samuel Elliott 10fd25607d
Remove installer from release build script 2018-03-29 20:04:01 +01:00
Samuel Elliott 946f68e4ef
Fix theme edit button 2018-03-25 18:31:17 +01:00
Samuel Elliott 545b72cc3e
Refactor logger (use util.inspect) and fix CSS editor not awaiting settings saving 2018-03-25 02:18:40 +01:00
Samuel Elliott 9e229a1c0f
Cleanup profile badges 2018-03-24 16:13:24 +00:00
Samuel Elliott ddfd0653ac
Fix emote injection 2018-03-24 16:06:34 +00:00
Samuel Elliott 6bb8c18857
Update repository URL 2018-03-22 17:13:47 +00:00
Samuel Elliott 66eee86eb3
Fix cloning settings sets with schemes 2018-03-22 16:46:42 +00:00
Samuel Elliott eaeae7ad98
Use a warning when settings failed to load 2018-03-22 16:41:20 +00:00
Samuel Elliott a3eeee9b57
Store content config with it’s type 2018-03-22 16:38:09 +00:00
Samuel Elliott db6be20864
Use correct path for logs 2018-03-22 16:25:06 +00:00
Samuel Elliott ebff286c31
Add release build configuration 2018-03-22 02:19:25 +00:00
Samuel Elliott 0f805d57e3
More comments 2018-03-22 02:13:32 +00:00
Samuel Elliott 33adb92902
Add updater view 2018-03-21 22:24:23 +00:00
Samuel Elliott a85422f29e
Fix tooltips and add Vue to vendor 2018-03-21 21:07:57 +00:00
Samuel Elliott aa933d9a09
Refactor IPC 2018-03-21 20:52:42 +00:00
Samuel Elliott 8a9c8edf39
Add patcher to the plugin API and fix error when rendering system messages 2018-03-21 20:50:49 +00:00
Samuel Elliott 74e3605ec6
Get version from package.json 2018-03-21 20:48:01 +00:00
Samuel Elliott a4a130bfc6
Write logs to a file 2018-03-21 15:57:37 +00:00
Samuel Elliott 2fb5d8fe11
Pause all keybinds while recording and add debugger keybind 2018-03-21 00:27:25 +00:00
Samuel Elliott 1772edd37c
Cleanup project root and update package-lock.json 2018-03-20 23:29:00 +00:00
Samuel Elliott b4bd9e9c7b
Comments and fix tooltip arrow positioning 2018-03-20 23:24:38 +00:00
Samuel Elliott 994faf94d6
Refactor Vue injector and sparkplug and move contributors to data 2018-03-20 21:11:11 +00:00
Jiiks 9f24d0d1ce Fix package ver and make sure we always load the latest client script 2018-03-20 07:45:11 -03:00
Jiiks 684f85b45e Update release scripts and packages 2018-03-20 03:54:33 -03:00
Jiiks 01b7e81f44 add global getters 2018-03-19 13:45:20 -03:00
Jiiks c84a79d3f5 Wrapper should also be 32px 2018-03-17 19:23:19 -03:00
Jiiks f8b9cdaead Missing Logger import 2018-03-17 18:42:16 -03:00
Jiiks b83e3c967d Emote styling 2018-03-17 18:40:47 -03:00
Jiiks 5ed34c149a Initial force update through reflection 2018-03-17 18:35:09 -03:00
Jiiks 8740c286a0 add guild, channel and user data attributes 2018-03-17 15:23:21 -03:00
Jiiks 0820735fa2 Unreachable code 2018-03-17 13:21:08 -03:00
Jiiks 549275e5dc Log emote loading error 2018-03-17 13:18:56 -03:00
Jiiks e268f769b7 Fix emote wrapper children 2018-03-17 13:17:50 -03:00
Jiiks 0af356823a Reinstate emote injection 2018-03-17 13:05:44 -03:00
Jiiks b5fc88bc8e Rewrite a bit and provide patch wrapper. add patcher test plugin as example 2018-03-17 12:48:08 -03:00
Jiiks 86528a3335 add overloads 2018-03-16 02:18:27 -03:00
Samuel Elliott 533d4aead1 Make selected state more noticeable and sort the value array 2018-03-16 01:21:44 +00:00
Samuel Elliott 094ef7e173 Cleanup 2018-03-16 01:09:18 +00:00
Samuel Elliott 086b6253bc Add guild selection setting and developer mode option 2018-03-16 00:54:50 +00:00
Jiiks 87cc894512 Path all React component functions automatically 2018-03-15 16:16:32 -03:00
Jiiks 7643588b00 add search cache and push vendor to window dev object 2018-03-15 15:11:46 -03:00
Jiiks ce457e4ad4 Start filter and db getter 2018-03-15 14:44:41 -03:00
Alexei Stukov ae63213809
Merge pull request #170 from JsSucks/emote-changes-and-minor-stuff
Emote changes and minor stuff
2018-03-15 14:25:12 +02:00
Jiiks c44a35a6c4 Undef 2018-03-15 14:20:37 -03:00
Jiiks cc8f10f971 Traverse autocomplete with keydown 2018-03-15 14:14:42 -03:00
Jiiks 13f7ce0cad Make autocomplete function like Discord one except with ; 2018-03-15 14:11:48 -03:00
Jiiks e1f3bd2f41 Use ;; wrapper for emotes and change how they are injected 2018-03-15 14:07:16 -03:00
Jiiks 6bc2e0cca5 Export Filters from WebpackModules 2018-03-15 13:47:40 -03:00
Jiiks a4e51dd4a7 and unpatcher 2018-03-15 13:41:54 -03:00
Jiiks 0eaf63f5f7 Remove old render patcher 2018-03-15 13:41:43 -03:00
Jiiks bd5ded7333 Renaming 2018-03-15 13:39:09 -03:00
Jiiks 6d1dbfad1e add logging for patches 2018-03-15 13:20:13 -03:00
Jiiks 30c57cf998 Give plugins everything and auto refactor 2018-03-14 14:19:46 +02:00
Jiiks bf7919a877 add developer mode 2018-03-14 11:13:18 +02:00
Jiiks 25044beaef Don't 2018-03-14 11:11:08 +02:00
Jiiks 81941bb140 Lint 2018-03-14 11:06:54 +02:00
Jiiks b3ed044408 add copyright headers 2018-03-14 11:01:10 +02:00
Jiiks 1e438764a0 Reset and remove old 2018-03-14 10:59:16 +02:00
Jiiks 9e875f4039 Fix autocomplete handlers and keys and trigger it with tab 2018-03-14 10:58:40 +02:00
Jiiks 5f7ddcb8ce add TODO notice 2018-03-14 09:43:03 +02:00
Jiiks e73ac58ff3 Go back to did-finish-load 2018-03-14 09:25:48 +02:00
Jiiks bcc856bc6b Don't need separate displayName 2018-03-14 09:17:58 +02:00
Jiiks 6473ddaf9f add important component scanner through reflection 2018-03-14 09:12:00 +02:00
Jiiks ce9a4c6b3d Fix channel member render 2018-03-14 02:36:34 +02:00
Jiiks ae6b745e68 Partially fix autocomplete and use patches 2018-03-14 00:34:03 +02:00
Jiiks 7599271f31 add author id 2018-03-12 17:52:24 +02:00
Jiiks 2c2ef33565 Use DiscordApi to get current user 2018-03-12 17:50:43 +02:00
Jiiks d965e29867 Throw everything into _bd object 2018-03-12 17:50:09 +02:00
Jiiks 67dddf5391 Replay index 2018-03-12 17:48:29 +02:00
Jiiks 7116efe207 Replay exports 2018-03-12 17:46:55 +02:00
Jiiks 6a854ab070 Patcher 2018-03-12 17:46:20 +02:00
Jiiks 5083a80ba2 Remove observers 2018-03-12 17:46:20 +02:00
Zack Rauen fd68da9566 update discord api 2018-03-11 22:42:06 -04:00
Zack Rauen 6917724700 update to master 2018-03-11 22:38:03 -04:00
Alexei Stukov 2c33d1f7f0
Merge pull request #166 from JsSucks/data-attributes
Data attributes
2018-03-11 16:35:22 +02:00
Jiiks f612fcbf00 Remove window var 2018-03-10 17:36:55 +02:00
Jiiks afc9f91dc3 Don't 2018-03-10 17:35:02 +02:00
Jiiks 2952331998 More attributes 2018-03-10 14:27:17 +02:00
Jiiks da6aecc3f2 add more attributes and file upload author 2018-03-10 13:53:27 +02:00
Jiiks b0fcedd3f3 Don't do anything if emotes don't exist 2018-03-10 10:21:35 +02:00
Jiiks fe319e58fe Remove data addition 2018-03-10 10:20:29 +02:00
Jiiks 45545d86b4 It's ugly for now. 2018-03-10 09:58:25 +02:00
Jiiks c59494f604 Emote autocomplete ui 2018-03-10 05:29:04 +02:00
Jiiks 523d226b91 Initial autocomplete and all emotes 2018-03-10 05:05:12 +02:00
Jiiks 4984ae996e Merge branch 'dom-attributes' of https://github.com/JsSucks/BetterDiscordApp into dom-attributes 2018-03-09 12:33:58 +02:00
Jiiks f494cbbb7a Bad filename 2018-03-09 12:33:38 +02:00
Alexei Stukov ef19f4723e
Merge branch 'master' into dom-attributes 2018-03-09 12:26:50 +02:00
Jiiks fe884ae436 filter check 2018-03-09 11:00:15 +02:00
Jiiks ae651e08e9 Reliable observers 2018-03-09 10:43:03 +02:00
Samuel Elliott b24e0ef178
Fix error on keypress
Uncaught TypeError: Cannot assign to read only property 'ignoreNextKeypress' of object '[object Object]'
    at ../node_modules/combokeys/Combokeys/index.js.module.exports.../node_modules/combokeys/Combokeys/prototype/handleKey.js.module.exports [as handleKey] (/Users/Samuel/Documents/BetterDiscord/2018-01-19/betterdiscordapp/client/dist/betterdiscord.client.…:4703)
    at ../node_modules/combokeys/Combokeys/index.js.module.exports.../node_modules/combokeys/Combokeys/prototype/handleKeyEvent.js.module.exports (/Users/Samuel/Documents/BetterDiscord/2018-01-19/betterdiscordapp/client/dist/betterdiscord.client.…:4752)
    at HTMLDocument.r (721226c….js:25)
2018-03-09 01:57:27 +00:00
Samuel Elliott 3578698a86
Fix deleting all injected styles 2018-03-09 01:26:45 +00:00
Samuel Elliott 47c786a98a
Can’t freeze internals as then Vue can’t make any plugin/theme’s info and enabled state reactive 2018-03-09 00:18:05 +00:00
Samuel Elliott bc1f93dd89
Store patched functions in a weakmap, move events wrapper and prevent plugins from modifying the plugin and content prototypes and their internals object 2018-03-08 23:43:26 +00:00
Jiiks 976ea796f8 Reliable switch events 2018-03-08 23:40:38 +02:00
Jiiks a746d6a03e Remove test badge 2018-03-08 23:15:57 +02:00
Jiiks 393362c8fb Userlist badges 2018-03-08 21:58:53 +02:00
Jiiks af8f7b0c9f Trigger on loaded more as well 2018-03-08 21:42:19 +02:00
Jiiks 1c63b8a05d Extend EventListener and add badges on other events 2018-03-08 21:40:43 +02:00
Jiiks dfa7987756 add badges to messages as well 2018-03-08 20:46:03 +02:00
Jiiks 7737dacd05 Use data- prefix for dataset access 2018-03-08 19:45:17 +02:00
Jiiks b75c7716c9 User reflection prop iterator 2018-03-08 19:37:50 +02:00
Jiiks 7e2be8bb19 add initial user-id manip 2018-03-08 19:35:05 +02:00
Jiiks 399f8a790d add deeper find 2018-03-08 19:30:21 +02:00
Jiiks fdfd0a6454 add loading more mutation callback 2018-03-08 17:37:38 +02:00
Jiiks 88b46bc359 only set currentuser attr if true 2018-03-08 16:46:50 +02:00
Jiiks fcebb43f35 Remove useless obeservers then 2018-03-08 16:44:51 +02:00
Samuel Elliott e7b0acb5a0
Fix plugin API basic modals 2018-03-08 13:59:19 +00:00
Jiiks e22e7f7af8 Hide mutable markup when editing 2018-03-08 14:47:15 +02:00
Jiiks 7a82d9e860 Edits and new messages functional 2018-03-08 14:45:31 +02:00
Jiiks 4804cd6ccb No class needed 2018-03-08 14:19:17 +02:00
Jiiks 44f0effba5 Renam event 2018-03-08 14:04:51 +02:00
Jiiks 5fd62c8050 Move markup cloning to automanipulator 2018-03-08 13:15:58 +02:00
Jiiks 8bda3e9b4d Don't need the classname 2018-03-08 11:18:21 +02:00
Jiiks 0154a7e97b add prop iterator 2018-03-08 11:17:33 +02:00
Jiiks fdfd961390 Change how reflection works 2018-03-08 10:59:51 +02:00
Jiiks 43359d771c add automa, new functions to ui and base reflection 2018-03-08 10:40:29 +02:00
Jiiks ff71042bb0 add ignoreExternal for faster testing other things 2018-03-08 08:25:51 +02:00
Samuel Elliott 68c0133381
Make menu keybind customisable 2018-03-08 02:42:06 +00:00
Samuel Elliott dfd0208394
Fix theme loading 2018-03-08 02:41:47 +00:00
Samuel Elliott 0229482be8
Add keybind setting 2018-03-08 02:41:38 +00:00
Samuel Elliott e78089a509
Add menu items to the plugin API 2018-03-07 20:32:04 +00:00
Samuel Elliott 5e259f50f8
Refactor settings menu
Adds support for dynamically adding items
2018-03-07 20:19:02 +00:00
Samuel Elliott 0bbd7b506a
Add option to ignore content manager errors 2018-03-07 19:57:00 +00:00
Jiiks 2e512e61b2 Push the data in generic events as well 2018-03-07 12:33:56 +02:00
Jiiks 37ecd7ec4e Simply emit everything we have instead of anything fancy 2018-03-07 12:32:58 +02:00
Alexei Stukov 67747f85eb
Merge pull request #161 from JsSucks/emote-module
Emote module
2018-03-07 11:43:20 +02:00
Jiiks 8d33d80e1c Convert content to use database instead of individual configs 2018-03-07 10:28:14 +02:00
Jiiks 30a886d84a Database wrappers 2018-03-07 10:12:44 +02:00
Jiiks aa3226ce43 New message event 2018-03-07 07:04:52 +02:00
Samuel Elliott d122e27578
Add extmodules and webpack modules to plugin API 2018-03-07 02:07:17 +00:00
Samuel Elliott 7e82ae8a85
Add comments 2018-03-07 02:05:38 +00:00
Samuel Elliott a8d60582d0
Update plugin API modals 2018-03-07 01:10:06 +00:00
Jiiks 605e869413 add emote module and replaceroot to vue injector 2018-03-07 01:37:14 +02:00
Samuel Elliott a89d186730
Add comments 2018-03-06 21:58:09 +00:00
Samuel Elliott 6647595a3a
Move styles out of template 2018-03-06 21:55:50 +00:00
Samuel Elliott c9e681c242
Recalculate height on any update 2018-03-06 21:55:04 +00:00
Samuel Elliott c13884414d
Refactor event category/setting event binding 2018-03-06 08:26:48 +00:00
Samuel Elliott b7a769e883
Fixes 2018-03-06 01:59:53 +00:00
Samuel Elliott 93f08b715b
Add example custom settings set 2018-03-06 01:43:18 +00:00
Samuel Elliott 07dde5b1fa
Add live adding schemes and fix PluginApi.Settings 2018-03-06 01:15:11 +00:00
Samuel Elliott e67c08ff02
Allow setting a category’s name using name instead of category_name 2018-03-06 00:58:40 +00:00
Samuel Elliott 72dd93503a
Better merging of array setting items 2018-03-06 00:49:10 +00:00
Samuel Elliott da5e0ac99c
Add live updating settings sets and categories 2018-03-06 00:47:34 +00:00
Samuel Elliott 3ab4fd8a9a
Added base content class 2018-03-06 00:24:14 +00:00
Samuel Elliott e5078f4160
Fixed drawers 2018-03-05 21:46:28 +00:00
Samuel Elliott 5373512d9b
Added asynceventemitter.once and add comments 2018-03-05 19:55:53 +00:00
Samuel Elliott 26404843c2
Fix issues with multiline text settings 2018-03-05 19:48:39 +00:00
Jiiks 5908e39e52 Dropdown above colourpicker swatch 2018-03-05 06:42:53 +02:00
Jiiks 17672e674b Visible overflow when drawer open to fix dropdown/colour 2018-03-05 06:38:50 +02:00
Jiiks e7f5a2e118 add Beard's refresh button and change tab styling a bit 2018-03-05 05:37:33 +02:00
Jiiks 064065cfe1 add min-width to tabs 2018-03-05 05:02:49 +02:00
Jiiks da58d2e8b5 add placeholders for now 2018-03-05 05:01:29 +02:00
Jiiks 13364f1c9c Change tabs to say Installed/Browse instead 2018-03-05 04:54:40 +02:00
Samuel Elliott e9f533d600
Add multi parameter for slider and number settings 2018-03-04 23:48:46 +00:00
Samuel Elliott 05b3abd290
Revert "Add multi parameter for slider and number settings"
This reverts part of commit 6cac091c27.
2018-03-04 23:20:39 +00:00
Samuel Elliott 6cac091c27
Add multi parameter for slider and number settings 2018-03-04 23:09:26 +00:00
Samuel Elliott 0332027963
Add comment 2018-03-04 22:55:58 +00:00
Samuel Elliott 9617890ab6
Handle changes better 2018-03-04 22:54:37 +00:00
Samuel Elliott 47637eca75
Fix settingsset.findSetting and arraysetting.items not being populated
- Changed plugin/theme event emitters to AsyncEventEmitter
2018-03-04 21:51:04 +00:00
Jiiks 43bc873bcb Find first setting 2018-03-04 23:03:38 +02:00
Samuel Elliott 88b063ca8e
Add monkeypatch utility function 2018-03-04 20:21:18 +00:00
Samuel Elliott 2bf1709dba
Fix “emit is not defined” 2018-03-04 01:35:32 +00:00
Samuel Elliott 1dffb1f40b
Add comments 2018-03-04 01:33:06 +00:00
Samuel Elliott 00d909f16c
Async setting and category events
- Async setting and category events
- Added deepfreeze utility
- Fix dropdown staying open after selecting an option
2018-03-04 00:22:05 +00:00
Samuel Elliott 91275f4332
CSS editor improvements 2018-03-03 23:36:17 +00:00
Samuel Elliott 976aecd8f2
Fix “css is not defined” 2018-03-03 01:47:50 +00:00
Samuel Elliott 9bc29cc66e
Add automatic recompile of SCSS in themes and the CSS editor when any file is changed 2018-03-03 01:44:39 +00:00
Samuel Elliott 2c6ae62c7e
Radio and dropdown fixes 2018-03-03 00:03:19 +00:00
Samuel Elliott 05c08ca51f
Update eslint-plugin-vue to version 4.3.0 2018-03-02 23:50:53 +00:00
Samuel Elliott dc1acf140f
Recompile themes when settings have changed 2018-03-02 22:28:17 +00:00
Samuel Elliott 90c256ed76
Fix relative file path resolution in file settings 2018-03-02 22:24:54 +00:00
Samuel Elliott 88e563501a
Fix inline settings arrays 2018-03-02 22:20:34 +00:00