-
+
{{ item.commit.message }}
@@ -66,54 +42,64 @@
diff --git a/NUXT/pages/settings.vue b/NUXT/pages/settings.vue
index c58c6ab..099c6b4 100644
--- a/NUXT/pages/settings.vue
+++ b/NUXT/pages/settings.vue
@@ -51,7 +51,7 @@ export default {
to: "/mods/tweaks",
},
{ name: "Startup Options", icon: "mdi-restart", to: "/mods/startup" },
- { name: "Plugins", icon: "mdi-puzzle", to: "", disabled: true },
+ { name: "Plugins", icon: "mdi-puzzle", to: "", to: "/mods/plugins" },
{
name: "Updates",
icon: "mdi-cloud-download-outline",
diff --git a/NUXT/plugins/tempPlugins/demoPlugin.js b/NUXT/plugins/tempPlugins/demoPlugin.js
new file mode 100644
index 0000000..94f5d66
--- /dev/null
+++ b/NUXT/plugins/tempPlugins/demoPlugin.js
@@ -0,0 +1,30 @@
+module.exports = {
+ manifest: {
+ name: "Test plugin", // Required
+ vuetube: "*",
+ version: "1.0", // Required
+ author: "Frontesque", // Required
+ description: "A plugin to test how vuetube handles plugins // Add 'Hello, World!' to the home page.", // Required
+ homepage: "https://github.com/Frontesque/VueTube-Example-Plugin",
+ license: "GPL-3.0" // Required
+ },
+
+ /*************************
+ * Execute code on ALL VueTube pages
+ ************************/
+ global: function() {
+
+ },
+
+ /*************************
+ * Execute code on SPECIFIC VueTube pages
+ *
+ * You can view what page you intend to inject code into by looking at `~/NUXT/pages/` in the main VueTube repo
+ ************************/
+ pages: {
+ home: function() { // Execute code on JUST the home page
+
+ }
+ }
+
+}
diff --git a/NUXT/plugins/thirdPartyPluginLoader.js b/NUXT/plugins/thirdPartyPluginLoader.js
new file mode 100644
index 0000000..8d94b50
--- /dev/null
+++ b/NUXT/plugins/thirdPartyPluginLoader.js
@@ -0,0 +1,26 @@
+//--- Modules/Imports ---//
+
+const module = {
+
+
+ //--- Get Plugins ---//
+ list: new Promise((resolve, reject) => {
+ let plugins = new Array();
+
+ // Temp Plugin List
+ plugins.push(require("~/plugins/tempPlugins/demoPlugin"))
+ // End Temp Plugin List
+
+ resolve(plugins);
+
+ })
+ //--- End Get Plugins ---//
+
+
+
+};
+
+//--- Start ---//
+export default ({ app }, inject) => {
+ inject("tppl", module);
+};
diff --git a/NUXT/plugins/utils.js b/NUXT/plugins/utils.js
index 69b0e4f..b350ae2 100644
--- a/NUXT/plugins/utils.js
+++ b/NUXT/plugins/utils.js
@@ -17,10 +17,10 @@ function hexToRgb(hex) {
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result
? {
- r: parseInt(result[1], 16),
- g: parseInt(result[2], 16),
- b: parseInt(result[3], 16),
- }
+ r: parseInt(result[1], 16),
+ g: parseInt(result[2], 16),
+ b: parseInt(result[3], 16),
+ }
: null;
}
@@ -41,6 +41,12 @@ function getMutationByKey(key, mutations) {
if (!key || !mutations) return undefined;
return mutations.find((mutation) => mutation.entityKey === key).payload;
}
+function linkParser(url) {
+
+ var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
+ var match = url.match(regExp);
+ return (match && match[7].length == 11) ? match[7] : false;
+}
module.exports = {
getBetweenStrings,
@@ -48,4 +54,5 @@ module.exports = {
rgbToHex,
getCpn,
getMutationByKey,
+ linkParser,
};
diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle
index 40f4113..0baaa26 100644
--- a/android/app/capacitor.build.gradle
+++ b/android/app/capacitor.build.gradle
@@ -13,6 +13,7 @@ dependencies {
implementation project(':capacitor-app')
implementation project(':capacitor-browser')
implementation project(':capacitor-device')
+ implementation project(':capacitor-filesystem')
implementation project(':capacitor-haptics')
implementation project(':capacitor-share')
implementation project(':capacitor-splash-screen')
diff --git a/android/app/release/output-metadata.json b/android/app/release/output-metadata.json
index 5ecac21..d20d3f0 100644
--- a/android/app/release/output-metadata.json
+++ b/android/app/release/output-metadata.json
@@ -1,5 +1,5 @@
{
- "version": 2,
+ "version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
@@ -10,9 +10,11 @@
{
"type": "SINGLE",
"filters": [],
+ "attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-release.apk"
}
- ]
+ ],
+ "elementType": "File"
}
\ No newline at end of file
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index a5785e8..b50480e 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -52,6 +52,8 @@
-