~aleteoryx/tpl

c61c78153d0880d94486137deb2ce83a09009860 — Aleteoryx 3 months ago e33ace6
allow multiple mountpoints
1 files changed, 3 insertions(+), 3 deletions(-)

M index.html
M index.html => index.html +3 -3
@@ 64,18 64,18 @@ async function parse_and_fetch_parts(metadata) {

  format = await Promise.all(
                   format.map(x =>
                    fetch(`/templates/${x.file}`).then(r => r.text())
                    fetch(`${location}/templates/${x.file}`).then(r => r.text())
                      .then(c => ({...x, contents: c}))));

  metadata.format = format;
  return metadata;
}

const metafiles = await fetch("/templates/list.txt")
const metafiles = await fetch(`${location}/templates/list.txt`)
                   .then(r => r.text())
                   .then(x =>
                     x.split("\n").filter(x => x != "")
                     .map(x => `/templates/${x.trim()}/meta.json`));
                     .map(x => `${location}/templates/${x.trim()}/meta.json`));

const metadata = await Promise.all(
                   metafiles.map(x => fetch(x).then(r => r.json())));