diff --git a/fstab.yaml b/fstab.yaml index ad05c53..aa5e020 100644 --- a/fstab.yaml +++ b/fstab.yaml @@ -1,2 +1,2 @@ mountpoints: - /: https://drive.google.com/drive/folders/1HRTxktFCgeURcvG51itiCVutnMl_zyJx \ No newline at end of file + /: https://content.da.live/benpeter/da-schamdan \ No newline at end of file diff --git a/scripts/dapreview.js b/scripts/dapreview.js new file mode 100644 index 0000000..1364000 --- /dev/null +++ b/scripts/dapreview.js @@ -0,0 +1,3 @@ +const defined = new URLSearchParams(window.location.search).get('dapreview'); +// eslint-disable-next-line import/no-unresolved +export default defined ? import('https://da.live/scripts/dapreview.js') : undefined; diff --git a/scripts/scripts.js b/scripts/scripts.js index 0822146..60397b6 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -70,6 +70,9 @@ export function decorateMain(main) { */ async function loadEager(doc) { document.documentElement.lang = 'de-DE'; + // eslint-disable-next-line no-await-in-loop + const daPreview = (await import(`${import.meta.url.replace('scripts.js', 'dapreview.js')}`)).default; + if (daPreview) await daPreview; decorateTemplateAndTheme(); const main = doc.querySelector('main'); if (main) { diff --git a/tools/sidekick/config.json b/tools/sidekick/config.json new file mode 100644 index 0000000..c371fcb --- /dev/null +++ b/tools/sidekick/config.json @@ -0,0 +1,5 @@ +{ + "project": "schamdan", + "host": "schamdan.de", + "editUrl": "https://da.live/edit#/benpeter/da-schamdan{path}" +}