generated from replugged-org/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ea2a6b
commit 11e688d
Showing
19 changed files
with
352 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import Types from "../types"; | ||
export const controller = ({ | ||
children, | ||
...props | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
import { Injector, Logger, settings } from "replugged"; | ||
import { defaultSettings } from "./lib/consts"; | ||
import "./style.css"; | ||
import { registerSettings } from "./Components/Settings"; | ||
export const PluginInjector = new Injector(); | ||
export const { utils: PluginInjectorUtils } = PluginInjector; | ||
export const PluginLogger = Logger.plugin("ReGameActivityToggle"); | ||
export const SettingValues = await settings.init("dev.tharki.ReGameActivityToggle"); | ||
export const SettingValues = await settings.init( | ||
"dev.tharki.ReGameActivityToggle", | ||
defaultSettings, | ||
); | ||
export const CurrentlyPressed = new Map(); | ||
import Injections from "./patches/index"; | ||
import Settings from "./Components/Settings"; | ||
import Injections from "./injections/index"; | ||
import Listeners from "./listeners/index"; | ||
|
||
export const start = (): void => { | ||
registerSettings(); | ||
Injections.applyInjections(); | ||
Listeners.addListeners(); | ||
Settings.registerSettings(); | ||
void Injections.applyInjections(); | ||
void Listeners.addListeners(); | ||
}; | ||
|
||
export const stop = (): void => { | ||
PluginInjector.uninjectAll(); | ||
Listeners.removeListeners(); | ||
}; | ||
|
||
export { _addPanelButton } from "./Components/AccountDetailsButton"; | ||
export { default as _addPanelButton } from "./Components/AccountDetailsButton"; | ||
|
||
export { Settings } from "./Components/Settings.jsx"; |
Oops, something went wrong.