From 3bb0511ef9fd41ad7d0af61cfac15f3ef7bbb728 Mon Sep 17 00:00:00 2001 From: supopur Date: Sun, 5 Mar 2023 11:34:27 +0100 Subject: [PATCH] I just forgot to import some module silly me --- cogs/web/__pycache__/web.cpython-39.pyc | Bin 1759 -> 1834 bytes cogs/web/web.py | 2 + main.py | 5 +- static/configuration.css | 88 ------------------------ static/dashboard.css | 88 ------------------------ static/index.css | 61 ---------------- static/js/configuration.js | 66 ------------------ static/plugins.css | 88 ------------------------ templates/configuration.html | 47 ------------- templates/dashboard.html | 54 --------------- templates/index.html | 34 --------- templates/plugins.html | 54 --------------- 12 files changed, 4 insertions(+), 583 deletions(-) delete mode 100644 static/configuration.css delete mode 100644 static/dashboard.css delete mode 100644 static/index.css delete mode 100644 static/js/configuration.js delete mode 100644 static/plugins.css delete mode 100644 templates/configuration.html delete mode 100644 templates/dashboard.html delete mode 100644 templates/index.html delete mode 100644 templates/plugins.html diff --git a/cogs/web/__pycache__/web.cpython-39.pyc b/cogs/web/__pycache__/web.cpython-39.pyc index 48d32dc0bb453d06376a25b7a92b0fcde1a61574..812facbf5e7cc948c3818a112e7205b9bea9e384 100644 GIT binary patch delta 601 zcmZ`$yH4aV6tyRh$-sDc7bBqHB^Z!sC}@BJ3PeM*TZJMDV>1MjI9w+M72@#&$ov8Y zQ1JtN1Z5gp_yR@)jdTI5H6K=(J zQuV8pnBI=Pq~_Ns*(TiK?iJy#u#WmJEx(^vxpzhUI;X!#tM-Oh?Y3y?wPlioDOY#2 z8~~AW0YNU3EDm#Fj#&~OivWbmWU53PUEkN^?GtT)WvDv>4O5_@&nioFOg~i47m)wM zesu$;D_L8n2T`YhFpp%~)W5Cs*&oF<9;(BA83LcwAJ*ygkHTse7o8|oQ~JhUr@nr+ zcMMKA&Gk_Xr3abV6Jme?7+^pw3}rxqAu_dF0{N(%WMC}x4-{`q zNK8dyU}fZA;Dw2Se}SC}M3HLiUY$?R-MxOwe^?f>tehgwBhv9!&zcAIUTt&zK*1W; zy9(BccA2@=P9Zk1*;P)n7#u5h=1aC5*?_}F==&(Z4C&J^pRZu94|su+02AuO#BX~j zCVhok0;d*xR%@Wd-qlWZEG-O6UOc(g2!p2EN+^omFqmOCTBkA+&SDf@oQH_wGF#QJ zmqvn_wwJWrAX;E=`VQcC#^DKvGzpv-MOWOQVGy|2jgt5GK{3K { - try { - const tokenResponse = await fetch('/api/token'); - const tokenValue = await tokenResponse.text(); - tokenInput.value = tokenValue; - - const nameResponse = await fetch('/api/name'); - const nameValue = await nameResponse.text(); - nameInput.value = nameValue; - - const statusResponse = await fetch('/api/status'); - const statusValue = await statusResponse.text(); - statusSelect.value = statusValue; - } catch (error) { - console.error(error); - } -} - -getConfigValues(); - -form.addEventListener("submit", async (event) => { - event.preventDefault(); - const token = tokenInput.value; - const name = nameInput.value; - const status = statusSelect.value; - - try { - // send POST request to /api/token endpoint with token as the body - if (token !== '') { - await fetch('/api/token', { - method: 'POST', - body: token - }); - } - - - // send POST request to /api/name endpoint with name as the body - if (name !== '') { - await fetch('/api/name', { - method: 'POST', - body: name - }); - } - - - // send POST request to /api/status endpoint with status as the body - if (status !== '') { - await fetch('/api/status', { - method: 'POST', - body: status - }); - } - - } catch (error) { - console.error(error); - } -}); \ No newline at end of file diff --git a/static/plugins.css b/static/plugins.css deleted file mode 100644 index fca533e..0000000 --- a/static/plugins.css +++ /dev/null @@ -1,88 +0,0 @@ -body { - font-family: Arial, sans-serif; - margin: 0; - padding: 0; - background-color: #2c3e50; - color: #fff; -} - -.logo { - width: 25; - height: 25; -} - -header { - background-color: #3e4982; - color: #fff; - padding: 20px; - text-align: center; -} - -header h1 { - margin: 0; -} - -.container { - display: flex; -} - -table { - font-family: Arial, Helvetica, sans-serif; - border-collapse: collapse; - width: 100%; -} - -table td, -#status th { - border: 1px solid #ddd; - padding: 8px; -} - -table tr:nth-child(even) { - background-color: #1c567d; -} - -table tr:hover { - background-color: #2980b9; -} - -table th { - padding-top: 12px; - padding-bottom: 12px; - text-align: left; - background-color: #04AA6D; - color: white; -} - -nav { - background-color: #34495e; - width: 200px; - padding: 20px; - text-align: center; -} - -nav ul { - list-style: none; - margin: 0; - padding: 0; -} - -nav li a { - color: #fff; - text-decoration: none; - padding: 10px 0; - display: block; -} - -nav li a:hover { - background-color: #2980b9; -} - -.selected { - background-color: #2980b9; -} - -main { - padding: 20px; - flex-grow: 1; -} \ No newline at end of file diff --git a/templates/configuration.html b/templates/configuration.html deleted file mode 100644 index c416904..0000000 --- a/templates/configuration.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - MEE2 Configuration - - - - - - -
-

MEE2 Configuration

-
-
- -
-
- - -
- - -
- - -
- -
-
-
- - - \ No newline at end of file diff --git a/templates/dashboard.html b/templates/dashboard.html deleted file mode 100644 index 8913275..0000000 --- a/templates/dashboard.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - MEE2 Dashboard - - - - - -
-

MEE2 - Admin Dashboard

-
-
- -
-

This is the admin dashboard. Here you can see important thing like the uptime, hits per minute, cogs status etc..

- - - - - - - - - - - - - - - - - - - - - -
ModuleStatusModule link
Uptime1 Year/api/uptime
Hits Per Minute10/api/hpm
Plugin - FivemOnline/plugins/fivem
-
- -
- - - diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 5413691..0000000 --- a/templates/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - MEE2 Index - - - - - - -
-

MEE2

-
-
- -
-

Welcome to the MEE2 index page.

-

This bot is designed to help you with various tasks and make your life easier

-

Here you can find information about the bot's features, plugins, configuration, and support. All this info is public. If you want you can turn it off in the settings page.

-
-
- - - diff --git a/templates/plugins.html b/templates/plugins.html deleted file mode 100644 index 970ce15..0000000 --- a/templates/plugins.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - MEE2 Plugins - - - - - -
-

MEE2 - Plugins

-
-
- -
-

This is the plugin page here you can disable/enable the individual cogs.

- - - - - - - - - - - - - - - - - - - - - -
PluginStatusPlugin link
Uptime1 Year/api/uptime
Hits Per Minute10/api/hpm
Plugin - FivemOnline/plugins/fivem
-
- -
- - - \ No newline at end of file