Gospel leaves: numbers back to how they were formatted before 2eac0fb3 (the Driver's numerals hold)
2eac0fb3changed number formatting in four gospel-resources leaves to a localeTag() formatter with numberingSystem 'latn'. Number format is held for the Driver (DECIDE-UNIVERSAL-PROPS-SCOPE, part 3), so every number call returns to exactly its earlier line: the four fmt definitions and the two inline calls in data-tables.vue and resources-list.vue. Nothing else changes; the Zume work that followed (79965b86,e72afe79) stays. Built with BUNDLE=gospel-resources only, then the tree. The built bundle now has 0 numberingSystem:"latn" and 8 bare toLocaleString() calls, exactly as at 2eac0fb3^. The one remaining "numberingSystem" string is vue-i18n's own date-option list, present before too. check:sri PASS.
This commit is contained in:
parent
521f8b18d6
commit
fbea6cc8d9
12 changed files with 42 additions and 142 deletions
|
|
@ -397,32 +397,7 @@ const active = ref('coverage')
|
|||
const picked = ref(null)
|
||||
const onPick = (row) => { picked.value = row?.meta ? row : null }
|
||||
|
||||
/**
|
||||
* ═══ NUMBERS FOLLOW THE READER'S LOCALE, DIGITS DO NOT CHANGE ════════════════════════════
|
||||
*
|
||||
* toLocaleString() with no argument formats for the JS RUNTIME's locale — the browser's — which
|
||||
* has nothing to do with the locale this plugin was asked to render in. A reader who opens the
|
||||
* Arabic build on an English browser got English grouping, and the same page on a French browser
|
||||
* got French grouping: the same plugin, the same locale, two different numbers.
|
||||
*
|
||||
* ⚠ numberingSystem IS PINNED TO latn, and it is worth being exact about what that does, because
|
||||
* the obvious claim is wrong. MEASURED against full ICU: the eleven tags this bundle ships all
|
||||
* resolve to latn ALREADY — plain "ar" included — so for them the pin changes nothing. It earns
|
||||
* its place only if a host passes a REGION tag: ar-EG resolves to arab and fa to arabext, and
|
||||
* those would switch the digits. The numeral format is held for the Driver, so the pin keeps that
|
||||
* decision his rather than a host's.
|
||||
*
|
||||
* What DOES change today is which locale decides the separators: the reader's, not the browser's.
|
||||
* Hindi groups in lakhs, so 1234567 reads 12,34,567 in hi, and fr and ru use a space. Those are
|
||||
* correct for the locale and are a visible change from what shipped before.
|
||||
*/
|
||||
const localeTag = () => {
|
||||
try { return String(useI18n().locale.value || 'en') } catch (_) { return 'en' }
|
||||
}
|
||||
const fmt = (n) => {
|
||||
const v = Number(n) || 0
|
||||
try { return v.toLocaleString(localeTag(), { numberingSystem: 'latn' }) } catch (_) { return v.toLocaleString('en') }
|
||||
}
|
||||
const fmt = (n) => (Number(n) || 0).toLocaleString()
|
||||
|
||||
useShadowStyles(
|
||||
'.gc{position:absolute;inset:0;overflow-y:auto;padding:18px;background:#f6f7f9;color:#0f1419;' +
|
||||
|
|
|
|||
|
|
@ -265,32 +265,7 @@ const gap = computed(() => {
|
|||
deathsDay: Math.round(g.reduce((n, x) => n + (x.est_deaths_per_day || 0), 0)),
|
||||
}
|
||||
})
|
||||
/**
|
||||
* ═══ NUMBERS FOLLOW THE READER'S LOCALE, DIGITS DO NOT CHANGE ════════════════════════════
|
||||
*
|
||||
* toLocaleString() with no argument formats for the JS RUNTIME's locale — the browser's — which
|
||||
* has nothing to do with the locale this plugin was asked to render in. A reader who opens the
|
||||
* Arabic build on an English browser got English grouping, and the same page on a French browser
|
||||
* got French grouping: the same plugin, the same locale, two different numbers.
|
||||
*
|
||||
* ⚠ numberingSystem IS PINNED TO latn, and it is worth being exact about what that does, because
|
||||
* the obvious claim is wrong. MEASURED against full ICU: the eleven tags this bundle ships all
|
||||
* resolve to latn ALREADY — plain "ar" included — so for them the pin changes nothing. It earns
|
||||
* its place only if a host passes a REGION tag: ar-EG resolves to arab and fa to arabext, and
|
||||
* those would switch the digits. The numeral format is held for the Driver, so the pin keeps that
|
||||
* decision his rather than a host's.
|
||||
*
|
||||
* What DOES change today is which locale decides the separators: the reader's, not the browser's.
|
||||
* Hindi groups in lakhs, so 1234567 reads 12,34,567 in hi, and fr and ru use a space. Those are
|
||||
* correct for the locale and are a visible change from what shipped before.
|
||||
*/
|
||||
const localeTag = () => {
|
||||
try { return String(useI18n().locale.value || 'en') } catch (_) { return 'en' }
|
||||
}
|
||||
const fmt = (n) => {
|
||||
const v = Number(n) || 0
|
||||
try { return v.toLocaleString(localeTag(), { numberingSystem: 'latn' }) } catch (_) { return v.toLocaleString('en') }
|
||||
}
|
||||
const fmt = (n) => (Number(n) || 0).toLocaleString()
|
||||
|
||||
useShadowStyles(
|
||||
'.gt{position:absolute;inset:0;overflow-y:auto;padding:18px;background:#f6f7f9;color:#0f1419;' +
|
||||
|
|
@ -359,7 +334,7 @@ useShadowStyles(
|
|||
<div class="gt-tabs">
|
||||
<button v-for="t in TABS" :key="t.id" type="button"
|
||||
class="gt-tab" :class="{ on: active === t.id }" @click="active = t.id">
|
||||
{{ tr(t.labelKey) }}<span class="gt-n" v-if="cache[t.file]">{{ fmt((cache[t.file].rows || []).length) }}</span>
|
||||
{{ tr(t.labelKey) }}<span class="gt-n" v-if="cache[t.file]">{{ (cache[t.file].rows || []).length.toLocaleString() }}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -202,35 +202,10 @@ const biggestUnfound = computed(() =>
|
|||
.map((l) => `${l.language} (${fmtShort(l.population)})`).join(', '))
|
||||
const fmtShort = (n) => {
|
||||
const v = Number(n) || 0
|
||||
return v >= 1e6 ? `${Math.round(v / 1e5) / 10}M` : fmt(v)
|
||||
return v >= 1e6 ? `${Math.round(v / 1e5) / 10}M` : v.toLocaleString()
|
||||
}
|
||||
|
||||
/**
|
||||
* ═══ NUMBERS FOLLOW THE READER'S LOCALE, DIGITS DO NOT CHANGE ════════════════════════════
|
||||
*
|
||||
* toLocaleString() with no argument formats for the JS RUNTIME's locale — the browser's — which
|
||||
* has nothing to do with the locale this plugin was asked to render in. A reader who opens the
|
||||
* Arabic build on an English browser got English grouping, and the same page on a French browser
|
||||
* got French grouping: the same plugin, the same locale, two different numbers.
|
||||
*
|
||||
* ⚠ numberingSystem IS PINNED TO latn, and it is worth being exact about what that does, because
|
||||
* the obvious claim is wrong. MEASURED against full ICU: the eleven tags this bundle ships all
|
||||
* resolve to latn ALREADY — plain "ar" included — so for them the pin changes nothing. It earns
|
||||
* its place only if a host passes a REGION tag: ar-EG resolves to arab and fa to arabext, and
|
||||
* those would switch the digits. The numeral format is held for the Driver, so the pin keeps that
|
||||
* decision his rather than a host's.
|
||||
*
|
||||
* What DOES change today is which locale decides the separators: the reader's, not the browser's.
|
||||
* Hindi groups in lakhs, so 1234567 reads 12,34,567 in hi, and fr and ru use a space. Those are
|
||||
* correct for the locale and are a visible change from what shipped before.
|
||||
*/
|
||||
const localeTag = () => {
|
||||
try { return String(useI18n().locale.value || 'en') } catch (_) { return 'en' }
|
||||
}
|
||||
const fmt = (n) => {
|
||||
const v = Number(n) || 0
|
||||
try { return v.toLocaleString(localeTag(), { numberingSystem: 'latn' }) } catch (_) { return v.toLocaleString('en') }
|
||||
}
|
||||
const fmt = (n) => (Number(n) || 0).toLocaleString()
|
||||
|
||||
// ── EVERY LINK THE ROW ACTUALLY HAS, not just the scripture ones ─────────────────────────────
|
||||
// THE DEFECT THIS FIXES (measured 2026-09-23 over all 862 languages in resources.json):
|
||||
|
|
|
|||
|
|
@ -1210,32 +1210,7 @@ function setMode(m) {
|
|||
if (mapRef.value && adm0Ref.value) paint(mapRef.value, adm0Ref.value)
|
||||
}
|
||||
|
||||
/**
|
||||
* ═══ NUMBERS FOLLOW THE READER'S LOCALE, DIGITS DO NOT CHANGE ════════════════════════════
|
||||
*
|
||||
* toLocaleString() with no argument formats for the JS RUNTIME's locale — the browser's — which
|
||||
* has nothing to do with the locale this plugin was asked to render in. A reader who opens the
|
||||
* Arabic build on an English browser got English grouping, and the same page on a French browser
|
||||
* got French grouping: the same plugin, the same locale, two different numbers.
|
||||
*
|
||||
* ⚠ numberingSystem IS PINNED TO latn, and it is worth being exact about what that does, because
|
||||
* the obvious claim is wrong. MEASURED against full ICU: the eleven tags this bundle ships all
|
||||
* resolve to latn ALREADY — plain "ar" included — so for them the pin changes nothing. It earns
|
||||
* its place only if a host passes a REGION tag: ar-EG resolves to arab and fa to arabext, and
|
||||
* those would switch the digits. The numeral format is held for the Driver, so the pin keeps that
|
||||
* decision his rather than a host's.
|
||||
*
|
||||
* What DOES change today is which locale decides the separators: the reader's, not the browser's.
|
||||
* Hindi groups in lakhs, so 1234567 reads 12,34,567 in hi, and fr and ru use a space. Those are
|
||||
* correct for the locale and are a visible change from what shipped before.
|
||||
*/
|
||||
const localeTag = () => {
|
||||
try { return String(useI18n().locale.value || 'en') } catch (_) { return 'en' }
|
||||
}
|
||||
const fmt = (n) => {
|
||||
const v = Number(n) || 0
|
||||
try { return v.toLocaleString(localeTag(), { numberingSystem: 'latn' }) } catch (_) { return v.toLocaleString('en') }
|
||||
}
|
||||
const fmt = (n) => (Number(n) || 0).toLocaleString()
|
||||
|
||||
// The table lives on a SIBLING page, so "see all of these" is a URL. Built here rather
|
||||
// than inline in the template so the group link and the country link cannot drift apart.
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@
|
|||
"bundle": "gospel-resources",
|
||||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"output": "dx-maps/gospel-resources/gospel-resources.js",
|
||||
"integrity": "sha384-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj",
|
||||
"integrity": "sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP",
|
||||
"elements": [
|
||||
"gospel-resources-map"
|
||||
],
|
||||
|
|
@ -599,7 +599,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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -613,7 +613,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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -627,7 +627,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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -641,7 +641,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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -655,7 +655,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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP" 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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP" 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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP" 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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP" 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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj" crossorigin="anonymous"></script>
|
||||
<script src="../gospel-resources.js" integrity="sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
// Mapbox token resolution — the A3 ladder, in precedence order:
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@
|
|||
"bundle": "gospel-resources",
|
||||
"scriptUrl": "./gospel-resources/gospel-resources.js",
|
||||
"output": "dx-maps/gospel-resources/gospel-resources.js",
|
||||
"integrity": "sha384-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj",
|
||||
"integrity": "sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP",
|
||||
"elements": [
|
||||
"gospel-resources-map"
|
||||
],
|
||||
|
|
@ -599,7 +599,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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -613,7 +613,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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -627,7 +627,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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -641,7 +641,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-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -655,7 +655,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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-D8a8LhZ5rU23MoNsMV17MoxiHdfL3UHfO4jlX/RFcfJeA+PijBCtOqjiGdDSFDZj\" 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; remove this line if you set \"provider\":\"maplibre\" -->\n<link rel=\"preload\" as=\"script\" href=\"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js\">\n<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./gospel-resources/gospel-resources.js\" integrity=\"sha384-9pQjI3cIMKdPZhWkK8ECEFwCvqej1AmrRhACu+e+kcPC5YAa3Ly7TcgG4nf8rFvP\" 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