Commit Graph

257 Commits

Author SHA1 Message Date
Strencher e63695e17f Fix getModule & Add searchGetters option
Co-authored-by: Zerebos <rauenzi@outlook.com>
2022-09-30 02:05:19 +02:00
Zerebos f41b071727
Merge pull request #1420 from BetterDiscord/updater
Stop-gap Updater
2022-09-29 19:15:21 -04:00
Strencher 56a55b303a
Merge pull request #1418 from Skamt:patch-1
Update webpackmodules.js
2022-09-30 01:15:09 +02:00
Strencher 91e4cd5eb1 Several Fixes
- Fix error banner style
- Cleanup updater code
- Make notice api show in crash screens

Co-authored-by: Zack Rauen <rauenzi@outlook.com>
2022-09-30 01:00:52 +02:00
Zack Rauen 18bb2886cd Allow partials, add temp updater 2022-09-29 01:04:22 -04:00
Zack Rauen feb3bb792f Fix api and some oom issues 2022-09-28 16:30:59 -04:00
Skamt 22fa1d71c2
Update webpackmodules.js
`foundModule` should be reset after finding the module, otherwise it returns duplicates of as much as how many `getters loop` iterations are left after the first valid condition
2022-09-28 21:00:44 +01:00
Zack Rauen 90b2870aa2 Partial fix for swc 2022-09-26 23:33:51 -04:00
Zack Rauen 8601193b51 Use remote vm for better error messages 2022-09-26 03:01:16 -04:00
Strencher b5a69db0b3 feat: move away from `request` dependency 2022-09-26 07:57:35 +02:00
Zack Rauen 6d37fb63fc Fix small bugs 2022-09-25 15:29:17 -04:00
Zack Rauen 3b9ad9b75b First pass polyfill 2022-09-05 23:58:16 -04:00
Strencher ff8280e2b5 Move remaining things to pnpm 2022-09-04 19:02:41 -04:00
Zack Rauen 088ae6f10e Initial switch to pnpm 2022-09-04 19:00:01 -04:00
Zack Rauen 7af885c10d Move public servers 2022-09-04 18:51:15 -04:00
Zerthox 9b38e442da
Documentation fixes & consistency improvements (#1378)
* Fix incorrect docs

* Adjust wording & formatting for consistency

* Fix missing "is"
2022-08-31 11:59:17 -04:00
Zack Rauen 7e8c114f65 Update changelog and version 2022-08-16 20:37:03 -04:00
Zack Rauen 68d8b0dc0e Remove UserSettingsStore 2022-08-16 20:33:44 -04:00
Zack Rauen 2bf7c4386f Fix plugin error and lazy webpack 2022-08-16 20:19:58 -04:00
Zack Rauen 5285c950d0 Fix for canary/ptb 2022-08-11 17:42:31 -04:00
Zack Rauen 81474344f0 Fix waitForModule and meta handling 2022-08-09 13:28:50 -04:00
Zack Rauen 9e5c090c6e Make final adjustments 2022-08-08 19:23:55 -04:00
Zack Rauen 6adc259acc Bump version and update changelog 2022-08-07 20:50:34 -04:00
Zack Rauen ea1820143a Remove autoreload option 2022-08-07 17:26:47 -04:00
Zack Rauen 69e17b1dbd Limit warning logs from webpack 2022-08-05 19:25:16 -04:00
Zack Rauen 9f2298e6cd Fix small bugs 2022-08-03 01:52:05 -04:00
Zack Rauen 141263342a Add JSDoc to plugin api 2022-08-02 18:51:43 -04:00
Zack Rauen 2018f691e6 Add getbulk and patcher bind 2022-08-01 22:23:05 -04:00
Zack Rauen 267b37ddc1 Expose webpack to bdapi 2022-08-01 17:53:43 -04:00
Zack 29666219fd
Stop relying on require() to load addons (#1332) 2022-07-08 10:42:04 -04:00
Zack Rauen 57ff15ee68 Small bugfixes 2022-06-27 17:12:47 -04:00
TheGreenPig 87de0a8d06
Sort addons by Enabled (#1237)
* Add sort by enabled

* Changed "Is Enabled" to "Enabled"

* Fix locales formatting
2022-06-26 18:29:59 -04:00
Zack Rauen 2341448de2 Add more sanity checks 2022-06-26 18:27:12 -04:00
Zack Rauen 04eb399ea2 Update changelog, remove substr
Closes #1234
2022-06-25 03:50:55 -04:00
Tropical 085847644c
remove usage of e.which (#1196)
* remove usage of e.which

* this comment is no longer necessary
2022-06-25 03:34:30 -04:00
Zack Rauen 2b9e657b8a Audit and fix inject
Closes #1132
Closes #916
Fixes #1293
Fixes #1069
2022-06-25 02:59:23 -04:00
Qb c4a400e292
Fallback when Monaco load fails (#1278) 2022-06-25 02:09:00 -04:00
Zack Rauen ac5d2baf57 Fix addon errors, improve plugin loading 2022-06-25 01:57:35 -04:00
Qb 569a94f99f
Fix Addon Error Modal crashing Discord (#1281) 2022-06-24 17:59:49 -04:00
Zack Rauen 4742d03ba0 Bump version 2022-04-11 14:43:01 -04:00
Zack Rauen 7bdf2b630f Fix missing module and bump version 2022-02-15 21:43:40 -05:00
Strencher c71f9339de
Fix for latest discord update (#1217)
* Push

* Suppress Crashing
2022-02-15 21:23:14 -05:00
Zack Rauen 67746d59ee Update version and changelog 2022-02-05 18:32:05 -05:00
Zack Rauen fdd47f83e8 Add hover and quick suggestion options 2022-02-05 18:13:38 -05:00
Zack Rauen b3ec18b9af Add editor settings 2022-02-05 03:35:07 -05:00
Zack Rauen 854afc27cf Improve development errors
- Fixes #1029
- Fixes #1028
2022-02-04 16:23:21 -05:00
Zack Rauen 3c976a9483 Fix guild component errors 2022-02-04 15:56:40 -05:00
Zack Rauen 42486f4bd7 Update version and changelog 2022-01-31 22:21:39 -05:00
Zack Rauen f5f1220ecc Lint and audit 2022-01-28 14:39:17 -05:00
Zack Rauen f078e3b2dc Remove appearance builtins 2022-01-28 14:00:59 -05:00
Strencher a0a4670ece
Add bd-transparency class. (#1024) 2022-01-27 11:19:01 -05:00
Zack Rauen 3874fca041 Fix toasts, debuglogs, componentpatcher 2022-01-26 20:06:14 -05:00
Zack Rauen 8365730de5 Add devtools listener setting 2022-01-26 12:12:40 -05:00
Zack Rauen a244863157 Update version and changelog
- Fixes #854
- Fixes #1104
- Fixes #1102
- Fixes #1087
2022-01-24 02:06:49 -05:00
Zack Rauen b4b7a158e3 Fix customcss 2022-01-24 01:36:14 -05:00
Zack Rauen 6f167ab2cd Fix public servers and media keys 2022-01-24 00:15:55 -05:00
Strencher 8176425039
Add Notices API. (#1022)
* Add notices API.

* Change to spreading syntax

* Misc

* Fix typo & add Node type

* Remove unnecessary check & set default timeout to 0
2022-01-23 13:58:17 -05:00
Strencher 1dbf3e90a4
Fix broken classNames (#1174)
* Fix broken classNames

* Remove old title classNames
2022-01-23 04:23:25 -05:00
Zack Rauen c662666c42 Update changelog and version 2021-11-14 00:57:45 -05:00
Zack Rauen f47c35a29e Update emote menu for Discord's changes 2021-11-14 00:54:03 -05:00
Zack Rauen 52fa9307bb Change startup await 2021-11-14 00:53:45 -05:00
Zack Rauen c2ff0b251d Fix for class name changes 2021-11-01 17:02:46 -04:00
Zack Rauen b20814c349 Release hotfixed change 2021-10-22 16:39:40 -04:00
Zack Rauen 631399991e Fix translation fallbacks 2021-10-22 16:34:48 -04:00
Zack Rauen 58bfb6f51d Fix guild load check 2021-10-22 15:44:45 -04:00
Zack Rauen f8894703c1 Update version and changelog for release 2021-10-22 14:20:33 -04:00
Zack Rauen 4b04a6d149 Audit packages 2021-10-22 14:06:06 -04:00
Zack Rauen f53fe0ecb1 Fix guild related components (@Strencher)
- Fixes #1074
- Fixes #1055
2021-10-22 14:01:27 -04:00
Strencher d54079b005
Fix for latest update on canary. (#1083)
* Fix

* Change to `require`
2021-10-22 13:04:57 -04:00
Zack Rauen 45fb0664df Audit and close #1059 2021-09-26 13:05:19 -04:00
Zack Rauen fa87128157 Expose getPatchesByCaller 2021-07-28 09:12:29 -04:00
Zack Rauen 91249fe2b4 Update version number and readme 2021-07-28 01:46:20 -04:00
Zack Rauen 3e863cb286 Allow falsey stored values in plugin data
Also ensures data is cached for other subcommands.

Fixes #960
2021-07-27 11:25:33 -04:00
Qb 6792ac9155
Fix Addon Editor not loading when CustomCSS disabled (#915)
* Editor: Fix Addon Editor not loading when CustomCSS disabled

* Editor: await loading to prevent issues caused by the AMD loader replacement
2021-07-27 09:41:51 -04:00
Strencher 62f2f5d830
Fix cache issue & crashing issue (#953)
Fixes #866
2021-07-25 18:09:18 -04:00
Strencher 87efffb7e8
Fixes keys for new react version (#948)
* Fix for new react version

* Fix CustomCSS editor.

* Fix Dropdown Menus.

* Update drodown.jsx

* Remove unused variable

Fixes #949
Fixes #950
2021-07-25 18:08:17 -04:00
Zack Rauen 65dc214ffe Update version and repo links 2021-07-09 02:05:58 -04:00
Zack Rauen 0eea6d8d17 Update dependencies 2021-07-08 18:32:35 -04:00
Strencher b123e57c17
Add FileBrowser API to BdApi (#842) 2021-07-08 18:20:28 -04:00
Strencher 65dc310e03
Improve emotes menu. (#879) 2021-07-08 17:52:38 -04:00
dav1312 f3ff288e37
Update minimalmode.css (#877) 2021-07-08 02:07:09 -04:00
Strencher 416e50a672
Update ComponentPatcher (#875)
* Add onAdded util.

* Update ComponentPatcher

* make classes consistent, update logger import.
2021-07-07 19:55:56 -04:00
Strencher 959bdc3a4f
Fix several crashing issues (#869)
* Fix canary issue and stream crashing.

* Fix process package by NodeJS.

* Move ipc calls to IPC module.
2021-07-07 18:34:04 -04:00
Strencher d25e56cc23
Fix console error stacks. (#874) 2021-07-07 18:08:50 -04:00
Zack Rauen f8e2c2f762 Audit npm packages 2021-05-22 02:58:59 -04:00
Zack Rauen 356c7e89fa Fix settings issue
Fixes #795
Closes #792
2021-05-22 01:51:16 -04:00
Zack Rauen 25873eaa96 Update some metadata and bump version 2021-04-18 21:48:41 -04:00
Zack Rauen 97f89898ab Fix startup bug for folder users 2021-04-16 19:28:34 -04:00
Zack Rauen 2ace4925a2 Adjust how locales are handled
Allows POEditor to be the main copy of translated strings (aside from en-US)
2021-04-15 22:35:08 -04:00
Tropical 2779d9bc4f
Update various pieces of UI
- fix minimal mode
- revamp addon error modal
- restyle some aspects of toasts (includes light mode support)
- overhaul addon error modal (thanks to @Strencher for some react help)
- update switches to match discord's latest design
2021-04-15 18:08:00 -04:00
Zack Rauen 01941c1178 Fix various bugs
- Fix an issue removing settings collection
- Fix bugs related to opening in system editor
- Check for guild glasses (in webpack) a little bit later to allow for slower loading
- Add addition try..catch around file operations in DataStore
2021-04-15 18:03:59 -04:00
Zack Rauen fd43ebf7b8 Clean up code, add more linting, update emote styling 2021-04-12 01:07:00 -04:00
Zack Rauen ebba553ed2 Switch how assets are handled 2021-04-07 20:31:02 -04:00
Zack Rauen 1c25997c4a Fix some smaller bugs 2021-04-06 21:40:19 -04:00
Zack Rauen e1a510ab4c Revamp error modal 2021-04-06 14:09:43 -04:00
Zack Rauen aeeb95d84b Add more developer tools 2021-04-06 02:03:08 -04:00
Zack Rauen 5b1900fe3d Add initial pass at core updater
- Fix duplicate file regex
- Add core updater
- Unify versions
- Add sanity for plugin/theme folder
2021-04-05 01:43:30 -04:00
Zack Rauen 66d8d7a069 Fix bugs for plugins and themes 2021-04-03 15:56:46 -04:00
Zack Rauen 826aa7999c Add ability to remove discord's minimum size restriction 2021-04-03 00:17:55 -04:00
Zack Rauen a33279ea71 Fix issues removing settings panels
Closes #627
2021-04-02 23:49:32 -04:00
Zack Rauen b739fc6f38 Remove class normalizer 2021-04-02 23:36:55 -04:00
Zack Rauen a223806060 Add a few small features
- Fixes colored text
- Fixes detach window not showing saved css (closes #635)
- Adds option to prevent Discord from hijacking the media keys (closes #410)
- Adds command line flag to launch a vanilla version of Discord `--vanilla` (closes #337)
- Adds option for app-wide ctrl+shift+c shortcut for inspect element (closes #349)
- Adds emote blocklist to BdApi via `BdApi.Emotes.blocklist` (closes #408)
2021-04-02 23:16:23 -04:00
Zack Rauen bd9b681e3f Fixes issues with bd folder 2021-03-25 12:19:55 -04:00
Zack Rauen f3f15ec72c Fix multiple bugs, change to sync loading
- Removes copy selector developer option
- Add a crash check in the injector
- Switch from throwing over the wall to using <script> elements
- Revert to synchronous loading due to above
- Don't load on login screen
- Plugin logging includes version numbers
- Fix blankslate links
- Fix changelog overflow
2021-03-18 17:50:47 -04:00
Zack Rauen 1312bca78f Fix build and add instructions 2021-03-18 10:00:12 -04:00
Zack Rauen 847ef94c25 Fix various bugs and toolchain
- Fix an issue where dist might not have the proper package.json
- Fix an issue with PublicServers adding button to guild list
- Fix the placement of BD in settings
- Change default modal button to `primary`
- Change restart prompts to have `danger` prop
- Change tooltips to use `primary` rather than `black`
- Remove VoiceMode
- Remove DarkMode
- Give a hover effect to the public servers button
- Fix expanding icon in emote menu
- Fix over-bolded text in setting descriptions
2021-03-06 15:26:48 -05:00
Zack Rauen 74b2dace04 Restructure BD into a small mono-repo
This is a repo-wide refactor that introduces the injector to the main branch.

The new architecture is as such:
common/
injector/
renderer/
2021-03-06 03:30:16 -05:00