mirror of
https://github.com/Astatin3/Polyboard.git
synced 2026-06-09 00:28:07 -06:00
Add docs
This commit is contained in:
@@ -2,4 +2,8 @@
|
|||||||
|
|
||||||
### A very dynamic dashboard, with many features
|
### A very dynamic dashboard, with many features
|
||||||
|
|
||||||
Check back later for the docs, but for now you can look at the pre-existing modules as examples.
|
Modulator is basically just a fancy dashboard template, but with a very extensible module system, and security features!
|
||||||
|
|
||||||
|
[Read the wiki!](https://github.com/Astatin3/Modulator/wiki)
|
||||||
|
|
||||||
|

|
||||||
@@ -1,5 +1,18 @@
|
|||||||
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
|
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<h1><!--Place title here!!!--></h1>
|
<div id="content"></div>
|
||||||
<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>
|
</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']
|
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")
|
mm.sendPopupError(ac.rawClient, "Error", "You are not authorised")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,24 @@
|
|||||||
"requiredPermGroup": "",
|
"requiredPermGroup": "",
|
||||||
"location": "modules/main/Dashboard.html"
|
"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",
|
"type": "folder",
|
||||||
"name": "Settings",
|
"name": "Settings",
|
||||||
|
|||||||
Reference in New Issue
Block a user