Drop eleven English fallbacks now their keys have landed
tOr() rendered English while a key was in flight. All eleven keys it guarded are on main, so it is gone and every call site reads the catalogue: nParts, engineMissing, sheet.loading, guide.wayInAll/wayInSome/wayInWhat, legend.hnrTip, guide.howNumbersMade, guide.isSignLanguage, sheet.linkCopied, sheet.share. I compared each default against the catalogue before deleting it, rather than assuming they matched — deleting a fallback silently changes what a reader sees. Ten were identical. The eleventh was not: gospel.sheet.share held my "Share this card" against the catalogue's "Share". The catalogue wins, because it is translated in eleven locales where my phrase was not and a button inside a card need not restate its container, so THE SHARE BUTTON NOW READS "Share" — a visible change, deliberate, and the shorter label suits the 390px screen where those tap targets were just fixed. The four parameterised calls needed doing by hand: my regex for tOr(key, english, params) stopped at the first ")" inside fmt(...), so it silently converted seven of eleven and left four. Counted the remainder instead of trusting the count it printed. gates:pre 11/11, ENGLISH-LEAKS PASS, and the built bundle no longer contains the inline English.
This commit is contained in:
parent
3e793b71f6
commit
c18d4ffb71
9 changed files with 56 additions and 58 deletions
|
|
@ -373,7 +373,7 @@ const sxScope = (sx) => {
|
|||
they are the same keys. Only the part count needed a new one. */
|
||||
const name = n === 66 ? t('gospel.charts.fullBible')
|
||||
: n === 27 ? t('gospel.charts.newTestament')
|
||||
: n ? tOr('gospel.res.nParts', '{n} parts', { n: fmt(n) })
|
||||
: n ? t('gospel.res.nParts', { n: fmt(n) })
|
||||
: ''
|
||||
return name ? `${name} — ${sx.src}` : sx.src
|
||||
}
|
||||
|
|
@ -902,14 +902,12 @@ const isEnglish = (() => {
|
|||
const readerLang = () => {
|
||||
try { return String(useI18n().locale.value || 'en') } catch { return 'en' }
|
||||
}
|
||||
/* A TRANSLATION WHERE ONE EXISTS, TODAY'S ENGLISH WHERE IT DOES NOT — never the key name.
|
||||
t() falls back to the key when a catalogue has no entry, which on a `title` attribute would
|
||||
put "gospel.legend.hnrTip" in a tooltip: worse than the English it replaced. This keeps the
|
||||
English in the template until the key lands, and switches the moment it does. */
|
||||
const tOr = (key, english, params) => {
|
||||
const v = t(key, params)
|
||||
return v && v !== key ? v : fill(english, params)
|
||||
}
|
||||
/* tOr() IS GONE, and what it hid is worth recording. It rendered English while a key was in
|
||||
flight, and all eleven keys it guarded have landed — each compared against the catalogue one by
|
||||
one rather than assumed. Ten were identical. The eleventh was not: gospel.sheet.share held my
|
||||
inline "Share this card" against the catalogue's "Share", which is translated in eleven locales
|
||||
where my phrase was not, so the catalogue wins and that button now reads Share. Deleting a
|
||||
fallback silently changes what a reader sees, so this one was measured before it was deleted. */
|
||||
|
||||
const SE_KIND = { PDF: 'PDF', audio: 'audio', sab: 'app', study: 'study notes', viewer: 'read online' }
|
||||
const seKinds = (k) => (Array.isArray(k) ? k : []).map((x) => SE_KIND[x] || x).join(', ')
|
||||
|
|
@ -1659,7 +1657,7 @@ onMounted(async () => {
|
|||
/* The console line stays English on purpose — it is for whoever is debugging the page, not
|
||||
for the reader. The line the READER sees goes through the catalogue. */
|
||||
console.warn(`[gospel-resources] the ${grProvider} engine global never loaded — refusing to substitute another engine, because that would hand a keyless page the engine that needs a token.`)
|
||||
err.value = tOr('messages.engineMissing', 'The {engine} map engine did not load.', { engine: providerLabel(grProvider) })
|
||||
err.value = t('messages.engineMissing', { engine: providerLabel(grProvider) })
|
||||
return
|
||||
}
|
||||
if (!mapEl.value) return
|
||||
|
|
@ -2160,7 +2158,7 @@ useShadowStyles(
|
|||
a card that is loading must look like one, and a card that failed must say so. -->
|
||||
<div v-if="cardMode && !selectedGroup" class="gm-card-wait">
|
||||
<span v-if="err">{{ err }}</span>
|
||||
<span v-else>{{ tOr('gospel.sheet.loading', 'Loading resources…') }}</span>
|
||||
<span v-else>{{ t('gospel.sheet.loading') }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Shared control rail — MapToolbar self-positions top-right. Zoom/Location/
|
||||
|
|
@ -2282,21 +2280,21 @@ useShadowStyles(
|
|||
<!-- ⚠ THIS SENTENCE IS NOT PROSE AND MUST NOT STAY ENGLISH. It is the legend's one
|
||||
piece of news — that almost every group with nothing has somewhere to start — and
|
||||
rega measured it as the Latin left in an Arabic legend once the explainer was
|
||||
folded away. Through tOr() with its numbers as parameters, so it renders today's
|
||||
folded away. Through t() with its numbers as parameters, so it renders the catalogue's
|
||||
English until the key lands and then switches. The CAVEAT that followed it ("a way
|
||||
in is not the gospel in their own language") moved into the fold below, where the
|
||||
rest of the basis lives: it qualifies the news rather than being it. -->
|
||||
<b>{{ pinTally.wayIn === pinTally.none
|
||||
? tOr('gospel.guide.wayInAll', 'Every one of those {n}', { n: fmt(pinTally.none) })
|
||||
: tOr('gospel.guide.wayInSome', '{n} of those {total}', { n: fmt(pinTally.wayIn), total: fmt(pinTally.none) }) }}</b>
|
||||
{{ tOr('gospel.guide.wayInWhat', 'has a way in — a bridge language, or SUN for a Deaf group. Tap one to see it.') }}
|
||||
? t('gospel.guide.wayInAll', { n: fmt(pinTally.none) })
|
||||
: t('gospel.guide.wayInSome', { n: fmt(pinTally.wayIn), total: fmt(pinTally.none) }) }}</b>
|
||||
{{ t('gospel.guide.wayInWhat') }}
|
||||
</p>
|
||||
<!-- Not a colour, so it carries no dot: this cuts ACROSS the three tiers rather
|
||||
than naming one of them. It is the translation-priority question. -->
|
||||
<button type="button" class="gm-key gm-kbtn wide" :class="{ on: pinFilter === 'hnr' }"
|
||||
@click="setPinFilter(pinFilter === 'hnr' ? 'all' : 'hnr')"
|
||||
:aria-pressed="pinFilter === 'hnr'"
|
||||
:title="tOr('gospel.legend.hnrTip', 'Groups with recorded audio, the JESUS Film, a Bible video or Words of Life, but no text Scripture found in the pools checked. Not a claim that none exists.')">
|
||||
:title="t('gospel.legend.hnrTip')">
|
||||
{{ t('gospel.legend.hnr') }}
|
||||
<b>{{ fmt(pinTally.hnr) }}</b>
|
||||
</button>
|
||||
|
|
@ -2332,7 +2330,7 @@ useShadowStyles(
|
|||
<br><b>{{ t('gospel.guide.noneFoundShort') }}</b>
|
||||
<br><b>{{ t('gospel.guide.tapCountry') }}</b>
|
||||
<details class="gm-why">
|
||||
<summary class="gm-why-sum">{{ tOr('gospel.guide.howNumbersMade', 'How these numbers are made') }}</summary>
|
||||
<summary class="gm-why-sum">{{ t('gospel.guide.howNumbersMade') }}</summary>
|
||||
<div class="gm-why-body">
|
||||
<span dir="ltr">A way in is not the gospel in someone's own language; the gap it is
|
||||
counted against is unchanged by it.</span>
|
||||
|
|
@ -2928,7 +2926,7 @@ useShadowStyles(
|
|||
</p>
|
||||
|
||||
<p v-if="selectedGroup.is_sign" class="gm-sign">
|
||||
<b>{{ tOr('gospel.guide.isSignLanguage', 'This is a sign language.') }}</b> <bdi dir="ltr">A Deaf group cannot be reached by a text
|
||||
<b>{{ t('gospel.guide.isSignLanguage') }}</b> <bdi dir="ltr">A Deaf group cannot be reached by a text
|
||||
translation, so eBible's silence here is not an absence of Scripture — it is a
|
||||
text pool that was never the right place to look. What counts is Scripture</bdi>
|
||||
<em><bdi dir="ltr">filmed in this sign language</bdi></em><bdi dir="ltr">. Of {{ fmt(signTally.langs) }} sign languages
|
||||
|
|
@ -2992,7 +2990,7 @@ useShadowStyles(
|
|||
WhatsApp or SMS — and the clipboard is the desktop fallback. A cancelled share is not
|
||||
an error and must not look like one. -->
|
||||
<button v-if="selectedGroup.slug" type="button" class="gm-tablink" @click="shareCard(selectedGroup)">
|
||||
{{ shareState === 'copied' ? tOr('gospel.sheet.linkCopied', 'Link copied') : tOr('gospel.sheet.share', 'Share this card') }}
|
||||
{{ shareState === 'copied' ? t('gospel.sheet.linkCopied') : t('gospel.sheet.share') }}
|
||||
</button>
|
||||
|
||||
<a v-if="selectedPray" class="gm-pray" :href="selectedPray.u"
|
||||
|
|
|
|||
|
|
@ -723,7 +723,7 @@
|
|||
"bundle": "gospel-resources",
|
||||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"output": "dx-maps/gospel-resources/gospel-resources.js",
|
||||
"integrity": "sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o",
|
||||
"integrity": "sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM",
|
||||
"elements": [
|
||||
"gospel-resources-map"
|
||||
],
|
||||
|
|
@ -745,7 +745,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/charts/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"charts\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"charts\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -760,7 +760,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/data-tables/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"data-tables\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"data-tables\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -775,7 +775,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/gospel-dashboard/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"gospel-dashboard\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"gospel-dashboard\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -790,7 +790,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/resources-list/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-list\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-list\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -805,7 +805,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/resources-map/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-map\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-map\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
|
||||
<!-- Bundle IIFE — registers the <gospel-resources-map> custom element. -->
|
||||
<script src="../gospel-resources.js" integrity="sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
// Mapbox token resolution — the A3 ladder, in precedence order:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
|
||||
<!-- Bundle IIFE — registers the <gospel-resources-map> custom element. -->
|
||||
<script src="../gospel-resources.js" integrity="sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
// Mapbox token resolution — the A3 ladder, in precedence order:
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
|
||||
<!-- Bundle IIFE — registers the <gospel-resources-map> custom element. -->
|
||||
<script src="../gospel-resources.js" integrity="sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
// Mapbox token resolution — the A3 ladder, in precedence order:
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
|
||||
<!-- Bundle IIFE — registers the <gospel-resources-map> custom element. -->
|
||||
<script src="../gospel-resources.js" integrity="sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
// Mapbox token resolution — the A3 ladder, in precedence order:
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
|
||||
<!-- Bundle IIFE — registers the <gospel-resources-map> custom element. -->
|
||||
<script src="../gospel-resources.js" integrity="sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
// Mapbox token resolution — the A3 ladder, in precedence order:
|
||||
|
|
|
|||
|
|
@ -723,7 +723,7 @@
|
|||
"bundle": "gospel-resources",
|
||||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"output": "dx-maps/gospel-resources/gospel-resources.js",
|
||||
"integrity": "sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o",
|
||||
"integrity": "sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM",
|
||||
"elements": [
|
||||
"gospel-resources-map"
|
||||
],
|
||||
|
|
@ -745,7 +745,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/charts/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"charts\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"charts\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -760,7 +760,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/data-tables/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"data-tables\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"data-tables\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -775,7 +775,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/gospel-dashboard/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"gospel-dashboard\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"gospel-dashboard\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -790,7 +790,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/resources-list/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-list\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-list\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -805,7 +805,7 @@
|
|||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"embed": {
|
||||
"iframe": "<iframe src=\"./gospel-resources/resources-map/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-esZ9SMTC/JxEE//nFCDC35fZmzBE6twWx9L1PaDIG9XUHeX/fuXB3HJ6uxj0/K4o\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-map\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
"script": "<!-- Mapbox engine, fetched early. Keep it only with a real Mapbox token in \"tk\": without one (or with \"provider\":\"maplibre\") the map draws with MapLibre and this line must go -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\" integrity=\"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ\" crossorigin=\"anonymous\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-mTQvI/CKmYJzLSkMhqU4QNLiEGF/rhg0fyCB4aIUzm7v8UHMyogaoP1QbMc6vttM\" crossorigin=\"anonymous\"></script>\n<gospel-resources-map profile-config='{\"profile\":\"resources-map\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></gospel-resources-map>"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue