From d46d6fb538553dea296798228c46f12ae9ed7a67 Mon Sep 17 00:00:00 2001 From: rsnyder Date: Tue, 27 Jul 2021 22:18:55 +0000 Subject: [PATCH] Disable admin page --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index d8698c42..0ca3571b 100644 --- a/index.html +++ b/index.html @@ -188,7 +188,7 @@

Update Juncture site

console.log(window.location) const ENV = window.location.hostname === 'localhost' || window.location.hostname.indexOf('gitpod') > 0 ? 'DEV' : 'PROD' let isJuncture = window.location.hostname.indexOf('juncture-digital.org') === 0 || ENV === 'DEV' - const junctureVersion = 'v0.4.1' + const junctureVersion = 'v0.4.2' let junctureVersionHash const referrerUrl = document.referrer @@ -730,7 +730,7 @@

Update Juncture site

console.log(`loadEssay: basePath=${contentSource.basePath} path=${path} anchor=${this.anchor}`) // let pathsToTry = [`${path}index.md`, `${path}README.md`, `${path.slice(0,-1)}.md`] let pathsToTry = [`${path}index.md`, `${path}README.md`, `${path.slice(0,-1)}.md`] - if (this.authenticatedUser !== null) pathsToTry = [...[`${path}admin.md`], ...pathsToTry] + // if (this.authenticatedUser !== null) pathsToTry = [...[`${path}admin.md`], ...pathsToTry] let markdown for (let i = 0; i < pathsToTry.length; i++) { markdown = await this.getMarkdown(pathsToTry[i]) @@ -1488,9 +1488,9 @@

Update Juncture site

let resp = await fetch(configUrl) if (resp.ok) { config = YAML.parse(await resp.text()) - } else { - resp = await fetch(`${window.location.origin}${contentSource.basePath}/config.template.yaml`) - if (resp.ok) config = YAML.parse(await resp.text()) + //} else { + // resp = await fetch(`${window.location.origin}${contentSource.basePath}/config.template.yaml`) + // if (resp.ok) config = YAML.parse(await resp.text()) } ghUnscopedToken = config.ghUnscopedToken