From a61bba7e27a0d0081d176aac6900c09f7d695428 Mon Sep 17 00:00:00 2001 From: The Arcane Brony Date: Thu, 11 Nov 2021 22:17:21 +0100 Subject: [PATCH] Inline plugin support --- api/client_test/index.html | 6 +++--- api/package-lock.json | Bin 658099 -> 658149 bytes api/src/middlewares/TestClient.ts | 11 ++++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/api/client_test/index.html b/api/client_test/index.html index b19d5f0de..0b3a775a9 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html @@ -4,9 +4,9 @@ Discord Test Client - - - + + + diff --git a/api/package-lock.json b/api/package-lock.json index e8ebd5bfc752b18cd0871537b461a5e4243dbf6e..a4ad6b2b9ebfe710fb022d77451a433fc2413790 100644 GIT binary patch delta 102 zcmdlyRpaSYjSY>Qg2jb7nI);lN>&O=ai)3(dPdVPxUlCoKjUnF#>oi8OhC*G#4JF} h3dC&NpK-F^u)?Bm!4fu+_ERqGK+LiIlndv}qX2}0C8_`b delta 64 zcmaDlRb%s1jSY>QlbKlrn^$wTujXU~VkRJF24WT{if(x.endsWith(".js")) plugins += `\n`; }); + html = html.replaceAll("", plugins); + + // plugins + files = fs.readdirSync(path.join(__dirname, "..", "..", "assets", "plugins")); + plugins = ""; files.forEach(x =>{if(x.endsWith(".js")) plugins += `\n`; }); html = html.replaceAll("", plugins); //preload plugins