Skip to content

Commit 0c87b99

Browse files
authored
2 parents d55bebb + 7c2dee7 commit 0c87b99

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

components/Default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ module.exports = {
372372
373373
</script>
374374

375-
<style>
375+
<style scoped>
376376
377377
html {
378378
scroll-behavior: smooth;

components/Header.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@
329329
display: flex;
330330
padding: 0.5em 0;
331331
font-size: 1.1em;
332+
color: #333;
332333
}
333334
334335
#menu li i {

components/VisualEssay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports = {
247247
}
248248
</script>
249249

250-
<style>
250+
<style scoped>
251251
.cards {
252252
display: grid;
253253
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr) );

index.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link href="https://unpkg.com/tippy.js@6/dist/tippy.css" rel="stylesheet"/>
88
<link href="https://unpkg.com/tippy.js@6/themes/light-border.css" rel="stylesheet"/>
99
<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>
1111
<style>
1212
[v-cloak] { display: none; }
1313
#header, #footer { display: none; }
@@ -184,10 +184,11 @@ <h1>Update Juncture site</h1>
184184

185185
<script>
186186

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'
188188
let isJuncture = window.location.hostname.indexOf('juncture-digital.org') === 0 || ENV === 'DEV'
189-
const junctureVersion = 'v0.5.3'
189+
const junctureVersion = 'v0.5.2'
190190
let junctureVersionHash
191+
let qargs = window.location.href.indexOf('?') > 0 ? parseQueryString(window.location.href.split('?')[1]) : {}
191192

192193
const referrerUrl = document.referrer
193194
if (referrerUrl) {
@@ -247,7 +248,7 @@ <h1>Update Juncture site</h1>
247248
async function getContentSource() {
248249
let contentSource
249250

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) {
251252
contentSource = {
252253
acct: 'jstor-labs', repo: 'juncture-digital', ref: 'main', hash: null, basePath: '', isGhpSite: false,
253254
baseUrl: window.location.origin,
@@ -262,7 +263,7 @@ <h1>Update Juncture site</h1>
262263
}
263264
}
264265

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) {
266267
// For local dev in GHP mode
267268
// let repo = window.location.pathname.split('/').filter(elem => elem !== '')[0] || 'juncture'
268269
let repo = 'juncture'
@@ -295,8 +296,6 @@ <h1>Update Juncture site</h1>
295296
}
296297
return contentSource
297298
}
298-
299-
let qargs = window.location.href.indexOf('?') > 0 ? parseQueryString(window.location.href.split('?')[1]) : {}
300299

301300
// GLobal variables used to initialize Vue
302301
let siteConfig, contentSource, componentsList, ghUnscopedToken, oauthAccessToken, gcApiKey, gcAuthDomain, gaPropertyID, fontawesome
@@ -378,7 +377,7 @@ <h1>Update Juncture site</h1>
378377
if (gaPropertyID) ga('create', gaPropertyID, 'auto')
379378
if (siteConfig.description) setMetaDescription(siteConfig.description)
380379
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') ) {
382381
attrsWithUrls.forEach(attr => { if (config[attr]) config[attr] = convertURL(config[attr]) })
383382
} else {
384383
headRef(contentSource.acct, contentSource.repo, contentSource.ref).then(headHash => {
@@ -673,7 +672,7 @@ <h1>Update Juncture site</h1>
673672

674673
async getMarkdown(path) {
675674
// 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) {
677676
let url = `${contentSource.baseUrl}${contentSource.basePath}${path}`
678677
let resp = await fetch(url)
679678
if (resp.ok) return await resp.text()
@@ -1099,7 +1098,7 @@ <h1>Update Juncture site</h1>
10991098
// logging watchers
11001099
params (params) {
11011100
// console.log('params', params)
1102-
// Load custom compoxnents declared in page markdown
1101+
// Load custom components declared in page markdown
11031102
params
11041103
.filter(param => param['ve-component'] !== undefined)
11051104
.map(param => param.url)
@@ -1327,7 +1326,7 @@ <h1>Update Juncture site</h1>
13271326
// Gets site config
13281327
async function getSiteConfig() {
13291328
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
13311330
? `${window.location.origin}/config.yaml`
13321331
: window.location.host.indexOf('juncture-digital.org') >= 0
13331332
? `https://juncture-digital.org/config.yaml`
@@ -1421,8 +1420,7 @@ <h1>Update Juncture site</h1>
14211420

14221421
let ref = contentSource.acct === 'jstor-labs' && contentSource.repo === 'juncture' ? junctureVersionHash : contentSource.ref
14231422

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')) {
14261424
componentsList = [...componentsList, ...await listComponents(
14271425
`${contentSource.baseUrl}${contentSource.isGhpSite ? contentSource.basePath : ''}`, 'custom/components')]
14281426
componentsList = [...componentsList, ...await listComponents(

0 commit comments

Comments
 (0)