RosePlugs: scaffold plugin
This commit is contained in:
parent
a17befa113
commit
c3cccdde0f
3 changed files with 32 additions and 0 deletions
11
plugins/rose-plugs/manifest.json
Normal file
11
plugins/rose-plugs/manifest.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"name": "RosePlugs",
|
||||||
|
"description": "Gives Rosie's plugins their own home in Settings, with one-tap installs for anything not installed yet.",
|
||||||
|
"authors": [
|
||||||
|
{ "name": "Rosie" }
|
||||||
|
],
|
||||||
|
"main": "src/index.ts",
|
||||||
|
"vendetta": {
|
||||||
|
"icon": "ic_group"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
plugins/rose-plugs/src/index.ts
Normal file
7
plugins/rose-plugs/src/index.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import Settings from "./ui/Settings";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
onLoad: () => {},
|
||||||
|
onUnload: () => {},
|
||||||
|
settings: Settings,
|
||||||
|
};
|
||||||
14
plugins/rose-plugs/src/ui/Settings.tsx
Normal file
14
plugins/rose-plugs/src/ui/Settings.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { React } from "@vendetta/metro/common";
|
||||||
|
import SettingsScaffold from "@shared/ui/SettingsScaffold";
|
||||||
|
import NoteBox from "@shared/ui/NoteBox";
|
||||||
|
|
||||||
|
export default function Settings() {
|
||||||
|
return (
|
||||||
|
<SettingsScaffold>
|
||||||
|
<NoteBox>
|
||||||
|
RosePlugs gathers Rosie's other plugins under their own "Rosie's Plugs" section in
|
||||||
|
Settings, with a quick-install browser for anything not installed yet.
|
||||||
|
</NoteBox>
|
||||||
|
</SettingsScaffold>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue