Remove the test dbstuff

This commit is contained in:
MotorTruck1221 2024-10-27 05:14:56 -06:00
parent c5124db29f
commit 0eb1582f7d
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4
4 changed files with 1 additions and 44 deletions

View file

@ -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

View file

@ -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;

View file

@ -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) {