revenge-bundle-next/lib/plugins/src/constants.ts
PalmDevs a43cd5d564
feat!: plugins page, tons of API changes, and bug fixes
Plugins
- Settings: Plugins page is now semi-functional
- No Track: Added new plugin
- Developer Settings: Clean up properly
- Logging: Log in preInit stage
- Staff Settings: Add ReloadRequired flags when late-running

@revenge-mod/init
- Moved to the top-level src/index.ts instead

@revenge-mod/modules
- Switch `exports` and `id` parameters in finders APIs
- Lookups now return an array of exports and ID instead of just exports
  - Lookup ID APIs have been removed
- Add `finders.get` helper, a new alternative for `finders.find`
- Corrected documentation for subscription APIs

@revenge-mod/plugins
- Added new APIs for plugins to allow running during pre-init stages
- Added `unscoped.modules.finders.get*`
- Added `unscoped.react.native`

@revenge-mod/react
- native: Added `onRunApplication` and `onRunApplicationFinished`

@revenge-mod/utils
- callbacks: Add `noopFalse`
- promises: Fix `allSettled`
- promises: Add `sleep`
2025-05-18 22:24:48 +07:00

29 lines
639 B
TypeScript

export const PluginFlags = {
/**
* The plugin is enabled.
*/
Enabled: 1 << 0,
/**
* The plugin requires a reload to apply changes.
*/
ReloadRequired: 1 << 1,
/**
* The plugin has errors.
*/
Errored: 1 << 2,
/**
* The plugin was enabled after the app was started.
* This is usually caused by a newly installed plugin, or a plugin that was re-enabled.
*/
EnabledLate: 1 << 3,
}
export const PluginStatus = {
PreIniting: 1 << 0,
PreInited: 1 << 1,
Initing: 1 << 2,
Inited: 1 << 3,
Starting: 1 << 4,
Started: 1 << 5,
Stopping: 1 << 6,
}