Samuel Elliott
0a2b967e36
Fix removing items from file settings
2018-06-22 23:16:42 +01:00
Samuel Elliott
a2367299b7
Don’t load emotes unless they’re enabled
2018-06-12 20:56:40 +01:00
Samuel Elliott
bbcc36647d
Add class normaliser
...
Normalises and prefixes all classes with `da-`
2018-06-12 20:56:07 +01:00
Samuel Elliott
906140686f
Fix Utils is not defined
2018-06-10 22:51:52 +01:00
Samuel Elliott
cecaf314f9
Fix channel.setNsfw
2018-06-10 22:41:14 +01:00
Samuel Elliott
4a3bb89259
Restore common in main and add note about __non_webpack_require__
2018-06-10 22:40:46 +01:00
Samuel Elliott
d7db836e30
Update DOMObserver
...
- Changed observer.subscribe function signature - `observer.subscribe(id, filter, callback, type)` is now `id = observer.subscribe(callback, filter, bind, type === 'filter’)`
- Add a function to subscribe to mutations affecting elements matching a query selector
- Some internal changes
2018-06-10 22:35:44 +01:00
Samuel Elliott
1eca4bcec7
Add ReactHelpers and ReactAutoPatcher to global._bd
2018-06-10 22:21:09 +01:00
Samuel Elliott
c02052a982
Remove emote.name
2018-06-10 22:20:17 +01:00
Samuel Elliott
be841f0426
Add the Manip class as an export of ui/dom.js
2018-06-10 22:17:37 +01:00
Samuel Elliott
35cedbdbb3
Use a single badge component
2018-06-10 21:28:23 +01:00
Samuel Elliott
17597e2c30
Add Vue wrapper for React
2018-06-10 21:22:01 +01:00
Samuel Elliott
204dd76e7b
Use the correct name for the user popout component
2018-05-29 21:59:54 +01:00
Samuel Elliott
3e41a11197
Allow forcefully unloading plugins without reloading Discord
2018-05-29 21:48:58 +01:00
Samuel Elliott
68d4617e46
Use the same format as React.createElement for VueInjector.createReactElement
...
Allows props to flow down to Vue components cleanly
2018-05-29 21:47:44 +01:00
Samuel Elliott
4654025423
Properly destroy Vue components after they’re unmounted by React
2018-05-29 18:46:08 +01:00
Samuel Elliott
231afa8ed6
Add the option to mount Vue components at the top of the React component
2018-05-29 18:35:40 +01:00
Samuel Elliott
c3ff71ff85
Hide the ; before emotes in autocomplete and add the case insensitive flag
2018-05-29 17:00:05 +01:00
Samuel Elliott
0e99b219c1
Move emote autocomplete injector to the emote module
2018-05-29 16:58:57 +01:00
Samuel Elliott
13508b449d
Add some libraries to Vendor
2018-05-29 16:49:37 +01:00
Samuel Elliott
e57e1f51ea
Fix getModuleByDisplayName
2018-05-29 15:40:14 +01:00
Samuel Elliott
c345ab1419
Indentation
2018-05-29 15:39:32 +01:00
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