7
7
< link href ="https://unpkg.com/tippy.js@6/dist/tippy.css " rel ="stylesheet "/>
8
8
< link href ="https://unpkg.com/tippy.js@6/themes/light-border.css " rel ="stylesheet "/>
9
9
< meta name ="viewport " content ="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui ">
10
- < title > Juncture</ title >
10
+ < title > Juncture Digital Homepage </ title >
11
11
< style >
12
12
[v-cloak ] { display : none; }
13
13
# header , # footer { display : none; }
@@ -184,10 +184,11 @@ <h1>Update Juncture site</h1>
184
184
185
185
< script >
186
186
187
- const ENV = window . location . hostname === 'localhost ' || window . location . hostname . indexOf ( 'gitpod ' ) > 0 || window . location . hostname . indexOf ( 'githubpreview.dev' ) > 0 || window . location . hostname . indexOf ( 'netlify.app' ) > 0 ? 'DEV' : 'PROD'
187
+ const ENV = window . location . port === '8088 ' || window . location . hostname . indexOf ( '8088 ' ) >= 0 ? 'DEV' : 'PROD'
188
188
let isJuncture = window . location . hostname . indexOf ( 'juncture-digital.org' ) === 0 || ENV === 'DEV'
189
- const junctureVersion = 'v0.5.3 '
189
+ const junctureVersion = 'v0.5.2 '
190
190
let junctureVersionHash
191
+ let qargs = window . location . href . indexOf ( '?' ) > 0 ? parseQueryString ( window . location . href . split ( '?' ) [ 1 ] ) : { }
191
192
192
193
const referrerUrl = document . referrer
193
194
if ( referrerUrl ) {
@@ -247,7 +248,7 @@ <h1>Update Juncture site</h1>
247
248
async function getContentSource ( ) {
248
249
let contentSource
249
250
250
- if ( window . location . port === '8088' || window . location . host . indexOf ( '8888 ' ) > 0 || window . location . host . indexOf ( 'juncture-digital.org' ) >= 0 ) {
251
+ if ( window . location . port === '8088' || window . location . host . indexOf ( '8088 ' ) >= 0 || window . location . host . indexOf ( 'juncture-digital.org' ) >= 0 ) {
251
252
contentSource = {
252
253
acct : 'jstor-labs' , repo : 'juncture-digital' , ref : 'main' , hash : null , basePath : '' , isGhpSite : false ,
253
254
baseUrl : window . location . origin ,
@@ -262,7 +263,7 @@ <h1>Update Juncture site</h1>
262
263
}
263
264
}
264
265
265
- } else if ( window . location . port === '8080' || window . location . host . indexOf ( '8080' ) == = 0 ) {
266
+ } else if ( window . location . port === '8080' || window . location . host . indexOf ( '8080' ) > = 0 ) {
266
267
// For local dev in GHP mode
267
268
// let repo = window.location.pathname.split('/').filter(elem => elem !== '')[0] || 'juncture'
268
269
let repo = 'juncture'
@@ -295,8 +296,6 @@ <h1>Update Juncture site</h1>
295
296
}
296
297
return contentSource
297
298
}
298
-
299
- let qargs = window . location . href . indexOf ( '?' ) > 0 ? parseQueryString ( window . location . href . split ( '?' ) [ 1 ] ) : { }
300
299
301
300
// GLobal variables used to initialize Vue
302
301
let siteConfig , contentSource , componentsList , ghUnscopedToken , oauthAccessToken , gcApiKey , gcAuthDomain , gaPropertyID , fontawesome
@@ -378,7 +377,7 @@ <h1>Update Juncture site</h1>
378
377
if ( gaPropertyID ) ga ( 'create' , gaPropertyID , 'auto' )
379
378
if ( siteConfig . description ) setMetaDescription ( siteConfig . description )
380
379
let attrsWithUrls = [ 'banner' , 'favicon' , 'logo' ]
381
- if ( ( window . location . hostname === 'localhost ' || window . location . hostname . indexOf ( 'gitpod.io ' ) > 0 || window . location . hostname . indexOf ( 'githubpreview.dev' ) > 0 || window . location . hostname . indexOf ( 'netlify.app' ) > 0 ) && ( contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture-digital' ) ) {
380
+ if ( ( window . location . port === '8088 ' || window . location . hostname . indexOf ( '8088 ' ) >= 0 ) && ( contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture-digital' ) ) {
382
381
attrsWithUrls . forEach ( attr => { if ( config [ attr ] ) config [ attr ] = convertURL ( config [ attr ] ) } )
383
382
} else {
384
383
headRef ( contentSource . acct , contentSource . repo , contentSource . ref ) . then ( headHash => {
@@ -673,7 +672,7 @@ <h1>Update Juncture site</h1>
673
672
674
673
async getMarkdown ( path ) {
675
674
// if ((window.location.hostname === 'localhost' || window.location.hostname.indexOf('gitpod.io') > 0) && (contentSource.acct === 'jstor-labs' && contentSource.repo === 'juncture-digital')) {
676
- if ( ( window . location . hostname === 'localhost ' || window . location . hostname . indexOf ( 'gitpod.io ' ) > 0 || window . location . hostname . indexOf ( 'githubpreview.dev' ) > 0 || window . location . hostname . indexOf ( 'netlify.app' ) > 0 ) && ( contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture-digital' ) ) {
675
+ if ( window . location . port === '8080 ' || window . location . hostname . indexOf ( '8080 ' ) >= 0 ) {
677
676
let url = `${ contentSource . baseUrl } ${ contentSource . basePath } ${ path } `
678
677
let resp = await fetch ( url )
679
678
if ( resp . ok ) return await resp . text ( )
@@ -1099,7 +1098,7 @@ <h1>Update Juncture site</h1>
1099
1098
// logging watchers
1100
1099
params ( params ) {
1101
1100
// console.log('params', params)
1102
- // Load custom compoxnents declared in page markdown
1101
+ // Load custom components declared in page markdown
1103
1102
params
1104
1103
. filter ( param => param [ 've-component' ] !== undefined )
1105
1104
. map ( param => param . url )
@@ -1327,7 +1326,7 @@ <h1>Update Juncture site</h1>
1327
1326
// Gets site config
1328
1327
async function getSiteConfig ( ) {
1329
1328
let config = { }
1330
- let configUrl = window . location . port === '8088' || window . location . host . indexOf ( '8088' ) == = 0
1329
+ let configUrl = window . location . port === '8088' || window . location . host . indexOf ( '8088' ) > = 0
1331
1330
? `${ window . location . origin } /config.yaml`
1332
1331
: window . location . host . indexOf ( 'juncture-digital.org' ) >= 0
1333
1332
? `https://juncture-digital.org/config.yaml`
@@ -1421,8 +1420,7 @@ <h1>Update Juncture site</h1>
1421
1420
1422
1421
let ref = contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture' ? junctureVersionHash : contentSource . ref
1423
1422
1424
- if ( ( window . location . hostname === 'localhost' || window . location . hostname . indexOf ( 'gitpod' ) > 0 || window . location . hostname . indexOf ( 'githubpreview.dev' ) > 0 || window . location . hostname . indexOf ( 'netlify.app' ) > 0 ) && ( contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture-digital' ) ) {
1425
-
1423
+ if ( ( window . location . port === '8080' || window . location . port === '8088' || window . location . hostname . indexOf ( '8080' ) >= 0 || window . location . hostname . indexOf ( '8088' ) >= 0 ) && ( contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture-digital' ) ) {
1426
1424
componentsList = [ ...componentsList , ...await listComponents (
1427
1425
`${ contentSource . baseUrl } ${ contentSource . isGhpSite ? contentSource . basePath : '' } ` , 'custom/components' ) ]
1428
1426
componentsList = [ ...componentsList , ...await listComponents (
0 commit comments