aboutsummaryrefslogtreecommitdiff
path: root/src/features/featureBase
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
commit431e4fc9d1657a50ebc34b8ac24f9bfaea06417f (patch)
tree5987bb14f38d2999c682970429f34b41eb3e5826 /src/features/featureBase
parente73f2efdf0f50aa775c540317394d46428e9704f (diff)
downloadSoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.gz
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.bz2
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.zip
Initial move to babel + change fetch to use async/await
Diffstat (limited to 'src/features/featureBase')
-rw-r--r--src/features/featureBase/index.js24
-rw-r--r--src/features/featureBase/metadata.json8
2 files changed, 32 insertions, 0 deletions
diff --git a/src/features/featureBase/index.js b/src/features/featureBase/index.js
new file mode 100644
index 0000000..2a96a7f
--- /dev/null
+++ b/src/features/featureBase/index.js
@@ -0,0 +1,24 @@
+/// <reference types="../../../../CTAutocomplete" />
+/// <reference lib="es2015" />
+import Feature from "../../featureClass/class";
+
+class FeatureBase extends Feature {
+ constructor() {
+ super()
+ }
+
+ onEnable() {
+ this.initVariables()
+ }
+
+ initVariables() {
+ }
+
+ onDisable() {
+ this.initVariables()
+ }
+}
+
+module.exports = {
+ class: new FeatureBase()
+} \ No newline at end of file
diff --git a/src/features/featureBase/metadata.json b/src/features/featureBase/metadata.json
new file mode 100644
index 0000000..a6b411d
--- /dev/null
+++ b/src/features/featureBase/metadata.json
@@ -0,0 +1,8 @@
+{
+ "name": "Feature Base",
+ "description": "Copy paste and edit this to create a new feature",
+ "isHidden": true,
+ "isTogglable": false,
+ "defaultEnabled": false,
+ "sortA": 1
+} \ No newline at end of file