Remove the test dbstuff
This commit is contained in:
parent
c5124db29f
commit
0eb1582f7d
4 changed files with 1 additions and 44 deletions
|
|
@ -1,12 +0,0 @@
|
||||||
const example = () => {console.log('Gyatt... 2')};
|
|
||||||
|
|
||||||
function gyatt2() {
|
|
||||||
return {
|
|
||||||
function: example,
|
|
||||||
name: 'gyatt2',
|
|
||||||
events: ['fetch']
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
//We need to return the refrence to the function and NOT the function itself
|
|
||||||
self.entryFunc = gyatt2;
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
|
|
@ -1,10 +0,0 @@
|
||||||
function gyatt() {
|
|
||||||
return {
|
|
||||||
host: "example.com",
|
|
||||||
html: '<script>console.error("GYATT")</script>',
|
|
||||||
injectTo: "head"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
//We need to return the refrence to the function and NOT the function itself
|
|
||||||
self.entryFunc = gyatt;
|
|
||||||
|
|
@ -73,29 +73,8 @@ async function setupDB(db: ModelStatic<CatalogModel>) {
|
||||||
tags: ["Theme", "Simple", "Dark", "Retro"],
|
tags: ["Theme", "Simple", "Dark", "Retro"],
|
||||||
payload: "retro.css",
|
payload: "retro.css",
|
||||||
type: "theme"
|
type: "theme"
|
||||||
},
|
|
||||||
{
|
|
||||||
package_name: "com.nebula.test",
|
|
||||||
title: "GYATT",
|
|
||||||
image: "gyatt.png",
|
|
||||||
author: "NBS",
|
|
||||||
version: "0.0.0",
|
|
||||||
description: "gyatt",
|
|
||||||
tags: [],
|
|
||||||
payload: "index.js",
|
|
||||||
type: "plugin-page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
package_name: "com.nebula.test-2",
|
|
||||||
title: "GYATT...2",
|
|
||||||
image: "gyatt.png",
|
|
||||||
author: "NBS",
|
|
||||||
version: "0.0.0",
|
|
||||||
description: "gyatt",
|
|
||||||
tags: [],
|
|
||||||
payload: "index.js",
|
|
||||||
type: "plugin-sw"
|
|
||||||
}
|
}
|
||||||
|
//To add plugins: plugin types consist of plugin-sw (workerware) & plugin-page (uv.config.inject)
|
||||||
];
|
];
|
||||||
const dbItems = await db.findAll();
|
const dbItems = await db.findAll();
|
||||||
if (dbItems.length === 0) {
|
if (dbItems.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue