Samuel Elliott
4b4b3c341f
Update content/scheme icons properly
2018-08-06 02:55:08 +01:00
Samuel Elliott
d4c883a5d7
Add using a file as a scheme icon
2018-08-06 02:45:59 +01:00
Samuel Elliott
9af8a71e17
Add using a file as a plugin/theme’s icon
2018-08-02 20:24:56 +01:00
Samuel Elliott
5b419cb8ab
Use ReactComponent.forceUpdateAll to rerender components after patching them
2018-08-01 20:41:53 +01:00
Samuel Elliott
0c8279311e
Fix Message component selection and add bd-isGuildOwner and bd-isGuildMember classes
2018-08-01 20:18:47 +01:00
Samuel Elliott
a20473d718
Add a function to force update all instances of a component
2018-08-01 19:31:48 +01:00
Samuel Elliott
1a12430322
Add getting all state nodes to Reflection
2018-08-01 15:50:10 +01:00
Samuel Elliott
1d887967d9
Add an option to add additional classes to toasts
2018-07-20 12:04:16 +01:00
Samuel Elliott
a95b97b3c0
Requested changes from JsSucks/BetterDiscordApp#194
2018-07-19 22:21:20 +01:00
Samuel Elliott
007637a557
Merge remote-tracking branch 'upstream/toasts' into toasts
...
# Conflicts:
# client/src/modules/pluginapi.js
# client/src/ui/bdui.js
# client/src/ui/dom.js
# client/src/ui/ui.js
# package-lock.json
# package.json
2018-07-19 22:03:29 +01:00
Samuel Elliott
6ded1c62e5
Prevent modals from being added to the stack more than once
2018-07-19 00:14:03 +01:00
Samuel Elliott
27f1eec967
Use a counter instead of the current time for modal IDs to avoid duplicates when multiple modals are opened at the same time
2018-07-18 22:17:50 +01:00
Samuel Elliott
6b97505f66
Remove unused imports
2018-07-18 20:57:05 +01:00
Samuel Elliott
e6f2f518e6
Properly unbind events for emote autocomplete and dropdowns
2018-07-18 19:18:06 +01:00
Samuel Elliott
aff89371e6
Fix all modals closing on escape key press
2018-07-08 13:52:29 +01:00
Samuel Elliott
b6f38a73dc
Add function to get classes and fix emote autocomplete injection
2018-07-07 01:17:26 +01:00
Samuel Elliott
55cd75b5f4
Add settings section to edit window options
2018-07-05 01:26:04 +01:00
Samuel Elliott
4d2347cf84
Make sure file settings are updated properly when removing items
2018-06-23 22:59:13 +01:00
Samuel Elliott
7cf40a9ee4
Add SettingsWrapper to CommonComponents
2018-06-22 23:57:07 +01:00
Samuel Elliott
0a2b967e36
Fix removing items from file settings
2018-06-22 23:16:42 +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
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
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
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
c345ab1419
Indentation
2018-05-29 15:39:32 +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
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
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
85d5de9791
Fix ChannelMember returning wrong component
2018-04-30 19:12:21 +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
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
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
1354b884b4
Add getting all components to reflection
2018-04-27 15:51:59 +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
e524c50b65
Add opening the user’s profile modal
2018-04-15 02:26:21 +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
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
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
e83c6f92cb
Add emote favourite button
2018-03-31 03:22:44 +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
5331afb763
Tweak card styles and use events
2018-03-31 00:45:14 +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
946f68e4ef
Fix theme edit button
2018-03-25 18:31:17 +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
33adb92902
Add updater view
2018-03-21 22:24:23 +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
2fb5d8fe11
Pause all keybinds while recording and add debugger keybind
2018-03-21 00:27:25 +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
f8b9cdaead
Missing Logger import
2018-03-17 18:42:16 -03:00
Jiiks
5ed34c149a
Initial force update through reflection
2018-03-17 18:35:09 -03:00
Jiiks
0820735fa2
Unreachable code
2018-03-17 13:21:08 -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
Samuel Elliott
086b6253bc
Add guild selection setting and developer mode option
2018-03-16 00:54:50 +00: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
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
6473ddaf9f
add important component scanner through reflection
2018-03-14 09:12:00 +02:00
Jiiks
ae6b745e68
Partially fix autocomplete and use patches
2018-03-14 00:34:03 +02:00