10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 11:17:42 +02:00
QUESTDB_website/static/js/getPublis.js

7 lines
337 B
JavaScript
Raw Normal View History

2020-02-15 11:19:36 +01:00
async function getPublis() {
2020-06-15 16:13:03 +02:00
const text = await getTextFromFileUrlAsync("/data/publis/index.yaml")
2020-02-15 11:19:36 +01:00
const myYaml=jsyaml.load(text);
myYaml.sets= ((myYaml.sets===null) ? new Map() : new Map(Object.entries(myYaml.sets)));
myYaml.others=((myYaml.others===null) ? new Map() : new Map(Object.entries(myYaml.others)));
return myYaml
}