feat: mds

This commit is contained in:
2022-10-01 15:18:06 +08:00
parent 362218474e
commit b7ffbcf033
3 changed files with 15 additions and 0 deletions

1
mds/index.html Symbolic link
View File

@@ -0,0 +1 @@
mds.html

View File

@@ -81,6 +81,17 @@
var retObject = {}; var retObject = {};
async function refreshNotes() { async function refreshNotes() {
retObject.entries = (await fetch_with_get_as_json('mds.json', {}, true)).entries; retObject.entries = (await fetch_with_get_as_json('mds.json', {}, true)).entries;
retObject.entries.sort((a, b) => {
let aa = a.metadataStatement.description.toLowerCase();
let bb = b.metadataStatement.description.toLowerCase();
if (aa == bb) {
return 0;
} else if (aa < bb) {
return -1;
} else {
return 1;
}
});
} }
async function initVueApp() { async function initVueApp() {
await refreshNotes(); await refreshNotes();

3
mds/site.json Normal file
View File

@@ -0,0 +1,3 @@
{
"path":"mds"
}