2022-04-11 01:00:42 +00:00
|
|
|
module.exports = {
|
|
|
|
manifest: {
|
|
|
|
name: "Test plugin", // Required
|
|
|
|
vuetube: "*",
|
|
|
|
version: "1.0", // Required
|
|
|
|
author: "Frontesque", // Required
|
2022-06-22 05:24:06 +00:00
|
|
|
description:
|
|
|
|
"A plugin to test how vuetube handles plugins // Add 'Hello, World!' to the home page.", // Required
|
2022-04-11 01:00:42 +00:00
|
|
|
homepage: "https://github.com/Frontesque/VueTube-Example-Plugin",
|
2022-06-22 05:24:06 +00:00
|
|
|
license: "GPL-3.0", // Required
|
2022-04-11 01:00:42 +00:00
|
|
|
},
|
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
/*************************
|
2022-04-11 01:00:42 +00:00
|
|
|
* Execute code on ALL VueTube pages
|
|
|
|
************************/
|
2022-06-22 05:24:06 +00:00
|
|
|
global: function () {
|
|
|
|
console.log(
|
|
|
|
"This code is now executed when ALL vuetube pages (including settings) are loaded."
|
|
|
|
);
|
2022-04-11 01:00:42 +00:00
|
|
|
},
|
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
/*************************
|
2022-04-11 01:00:42 +00:00
|
|
|
* Execute code on SPECIFIC VueTube pages
|
2022-06-22 05:24:06 +00:00
|
|
|
*
|
2022-04-11 01:00:42 +00:00
|
|
|
* You can view what page you intend to inject code into by looking at `~/NUXT/pages/` in the main VueTube repo
|
|
|
|
************************/
|
|
|
|
pages: {
|
2022-06-22 05:24:06 +00:00
|
|
|
home: function () {
|
|
|
|
// Execute code on JUST the home page
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|