Commit Graph

257 Commits

Author SHA1 Message Date
Zack Rauen 91341958d4 Convert editors 2023-03-08 22:09:26 -05:00
Zack Rauen 001a50e762 Convert various remaining components 2023-03-08 20:09:10 -05:00
Zack Rauen 717c9026f4 Convert settings components 2023-03-08 20:08:48 -05:00
Zack Rauen 99aa7ac1a8 Convert floating windows 2023-03-08 20:07:36 -05:00
Zack Rauen 7d71d4f450 Include catch in wrappers 2023-03-08 20:07:10 -05:00
Zack Rauen 0d57129de7 Convert settings types 2023-03-06 19:17:28 -05:00
Zack Rauen 2976a4cf00 Convert stateless components 2023-03-06 02:50:48 -05:00
Zack Rauen c6d58bdc2d Convert icons to functional components 2023-03-06 02:16:00 -05:00
Zerebos 400a6776e4
Implement semver version checking (#1560) 2023-03-04 13:15:19 -05:00
Zerebos 4992d7bd17
Restore sizes below minimum (#1563)
- Fixes #1526
2023-03-04 13:14:00 -05:00
Zerebos b266368e46
Use cmd on mac (#1562) 2023-03-04 13:13:42 -05:00
Zack Rauen d1183633c0 Fix changelog and bump version 2023-03-01 16:45:04 -05:00
Zerebos f3b26fbd4d
Fix settings, tooltips, modals (#1542)
* Lazy load sidebar header

* Publish CSS

* Swap to standalone header

* Fix Tooltip component
* Moves internal reference to the centralized DiscordModules.Tooltip component
* Adds `BdApi.Components` namespace with the `Tooltip` component.

* Add Components namespace to bound api

* Fix modal root

* Fix ContextMenu, Fix Modals

---------

Co-authored-by: Strencher <46447572+Strencher@users.noreply.github.com>
2023-03-01 16:24:10 -05:00
Strencher 99f8bc29a8
Swap to standalone header (#1530)
* Lazy load sidebar header

* Publish CSS

* Swap to standalone header
2023-02-21 17:11:59 -05:00
Sam 62d776844c
Fix danger context menu option (#1523) 2023-02-09 16:58:33 -05:00
Strencher 68c6b81ed7 Implement options for
- getByProps() methods
- getByPrototypes() methods
- getByString() methods
2023-01-26 00:00:16 +01:00
Strencher 97138afb7d Fix typo & options 2022-12-31 17:44:01 +01:00
Strencher 9875068228 Add webpack aliases. 2022-12-29 23:27:52 +01:00
Zack Rauen daafbf51b1 Change version for hotfix 2022-12-14 15:26:36 -05:00
Strencher 5b8a173aa0 Fix ContextMenu part two 2022-12-13 02:59:28 +01:00
Zack Rauen 9d7264be96 Update version and changelog 2022-12-12 19:41:16 -05:00
Strencher d2594463c0 Fix for Canary & PTB
* Adds better error handling on startup for the ContextMenu API.
2022-12-13 00:04:29 +01:00
Zack Rauen 5536bac463 Improve update version checks 2022-12-10 20:59:26 -05:00
Zack Rauen a172baa6c8 Change update check to be more accomodating 2022-12-08 17:17:53 -05:00
Zerebos d2a1a29d6d
Remove all references of emotes (#1467) 2022-11-06 14:37:15 -05:00
Zerebos 03efbfd447
Change how patching modules works (#1474) 2022-11-06 14:33:47 -05:00
Zerebos 7442dde2fa
Change LICENSE + update and clean several parts of repo (#1459)
* Update license and contributing, add new CoC

* Remove outdated info, update issue templates

* Fix more links and wording
2022-10-20 13:56:58 -04:00
Zack Rauen 548552dfe2 Fix plugin settings and invites 2022-10-17 18:05:08 -04:00
Zack Rauen f0bf331933 Fix an issue with the core updater 2022-10-15 18:15:03 -04:00
Zack Rauen 1dd9df2f48 Update version and changelog 2022-10-15 01:00:14 -04:00
Zack Rauen 90338e9b84 Move strings to be translatable and lint 2022-10-13 23:42:05 -04:00
Zack Rauen 7959260f29 Fix various api issues 2022-10-13 21:53:41 -04:00
Strencher c0543586cb Fix ContextMenu Patcher 2022-10-12 22:08:27 +02:00
Zack Rauen 1165043908 Skip checking useless documentElement exports 2022-10-11 16:57:51 -04:00
Strencher 2012dae121 Fix patcher 2022-10-11 22:53:53 +02:00
Zack Rauen 840af61b3c Update version and changelog 2022-10-10 15:00:37 -04:00
Zack Rauen c3d4313b8e Fix an issue with public servers and documentation 2022-10-10 14:33:36 -04:00
Zack Rauen 9c0a8747f3 Make updater responsive 2022-10-10 02:32:57 -04:00
Zack Rauen a984bf08b0 Fix getLazy
- Fix getLazy not passing options to getModule
- Fix rm, rmSync missing in fs
- Remove useless code in searchExports iterator
2022-10-09 19:42:53 -04:00
Zack Rauen af1a26c333 Fix various bugs
- Show public servers on startup
- Update plugin tab on load/unload
- Finish switching searchGetters to searchExports
- Add disabled class to addon cards
- Fix/rebuild changelog modal
2022-10-09 18:22:07 -04:00
Zack Rauen a9220996b5 Fix public servers 2022-10-09 13:49:29 -04:00
Zack Rauen a13422df11 Adjust webpack search 2022-10-08 20:04:56 -04:00
Strencher b1cbe8b93b feat: BdApi.ContextMenu
* Allows patching & creating context menus.
2022-10-09 01:07:12 +02:00
Zack Rauen 5780cc23c2 Fix freezing api and add updater css 2022-10-08 17:00:18 -04:00
Strencher 32bf2be211 Fix Modals, Toasts
* Make external modules be cached
* Fix ConfirmationModal component being found wrong
* Make default modal actually be standalone and be used for react crash fallback
* Fixes toasts showing up in the crash screen
2022-10-08 22:28:56 +02:00
Strencher dd97539da3 Make patcher work with getters 2022-10-08 10:40:45 +02:00
Zack Rauen 46c57567d0 Rework updater and add UI 2022-10-03 04:40:18 -04:00
Zack Rauen 70194a7114 Add common setting types 2022-10-03 02:49:54 -04:00
Zack Rauen 87652dab8e Restructure API, condense DOM modules 2022-10-02 23:34:45 -04:00
Zack Rauen 6454b63f6b Add tooltip 2022-10-02 23:34:41 -04:00
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