mirror of
https://github.com/Astatin3/Polyboard.git
synced 2026-06-09 00:28:07 -06:00
Add docs
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user