2022-04-04 18:03:05 +00:00
|
|
|
module.exports = {
|
|
|
|
manifest: {
|
2022-04-04 22:25:12 +00:00
|
|
|
name: "Test plugin", // Required
|
2022-04-04 21:49:24 +00:00
|
|
|
vuetube: "*",
|
2022-04-04 22:25:12 +00:00
|
|
|
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() {
|
2022-05-30 17:54:29 +00:00
|
|
|
console.log("This code is now executed when ALL vuetube pages (including settings) are loaded.")
|
2022-04-04 22:25:12 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
* 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
|
|
|
|
|
|
|
|
}
|
2022-04-04 18:03:05 +00:00
|
|
|
}
|
2022-04-04 22:25:12 +00:00
|
|
|
|
2022-04-04 18:03:05 +00:00
|
|
|
}
|