This commit is contained in:
Astatin3
2024-02-21 10:48:11 -07:00
parent ed2aef09d9
commit 6eca9379cf
6 changed files with 77 additions and 6 deletions
+17 -4
View File
@@ -1,5 +1,18 @@
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<main class="container">
<h1><!--Place title here!!!--></h1>
<h5>A very dynamic dashboard, with many features</h5>
<p>Check back later for the docs, but for now you can look at the pre-existing modules as examples.</p>
</main>
<div id="content"></div>
</main>
<script>
var req = new XMLHttpRequest();
req.open('GET', 'https://raw.githubusercontent.com/Astatin3/Modulator/main/README.md', false);
req.send(null);
if(req.status == 200) {
document.getElementById('content').innerHTML = marked.parse(req.responseText)
}
</script>
+18
View File
@@ -0,0 +1,18 @@
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<main class="container">
<div id="content"></div>
</main>
<script>
var req = new XMLHttpRequest();
req.open('GET', 'https://raw.githubusercontent.com/wiki/Astatin3/Modulator/Home.md', false);
req.send(null);
if(req.status == 200) {
document.getElementById('content').innerHTML = marked.parse(req.responseText)
}
</script>
+18
View File
@@ -0,0 +1,18 @@
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<main class="container">
<div id="content"></div>
</main>
<script>
var req = new XMLHttpRequest();
req.open('GET', 'https://raw.githubusercontent.com/wiki/Astatin3/Modulator/Writing-a-module.md', false);
req.send(null);
if(req.status == 200) {
document.getElementById('content').innerHTML = marked.parse(req.responseText)
}
</script>
+1 -1
View File
@@ -79,7 +79,7 @@ def changePassword(ac, data):
correctName = ac.user.id == data['data']['id']
if isAdmin and not 'old' in data['data']:
if isAdmin and correctName and not 'old' in data['data']:
mm.sendPopupError(ac.rawClient, "Error", "You are not authorised")
return
+18
View File
@@ -14,6 +14,24 @@
"requiredPermGroup": "",
"location": "modules/main/Dashboard.html"
},
{
"type": "folder",
"name": "Docs",
"pages": [
{
"type": "page",
"name": "Home",
"requiredPermGroup": "",
"location": "modules/main/docs-home.html"
},
{
"type": "page",
"name": "Modules",
"requiredPermGroup": "Admins",
"location": "modules/main/docs-writing-modules.html"
}
]
},
{
"type": "folder",
"name": "Settings",