Skip to content

Commit 2deb7ed

Browse files
committed
Component list ordering
1 parent 82f3850 commit 2deb7ed

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

index.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,36 +1579,38 @@ <h1>Update Juncture site</h1>
15791579
let ref = contentSource.acct === 'jstor-labs' && contentSource.repo === 'juncture' ? junctureVersionHash : contentSource.ref
15801580

15811581
if (window.location.hostname === 'localhost' || window.location.hostname.indexOf('gitpod') > 0) {
1582+
15821583
componentsList = [...componentsList, ...await listComponents(
15831584
`${contentSource.baseUrl}${contentSource.isGhpSite ? contentSource.basePath : ''}`, 'custom/components')]
15841585
componentsList = [...componentsList, ...await listComponents(
15851586
`${contentSource.baseUrl}${contentSource.isGhpSite ? contentSource.basePath : ''}`, 'components')]
1586-
}
1587-
1588-
if (contentSource.repo !== 'juncture' || contentSource.acct !== 'jstor-labs') {
1589-
componentsList = [...componentsList, ...await listComponents(
1590-
`https://api.github.com/repos/${contentSource.acct}/${contentSource.repo}/git/trees/${ref}`,
1591-
'custom/components',
1592-
`https://raw.githubusercontent.com/${contentSource.acct}/${contentSource.repo}/${ref}`)]
1593-
componentsList = [...componentsList, ...await listComponents(
1594-
`https://api.github.com/repos/${contentSource.acct}/${contentSource.repo}/git/trees/${ref}`,
1595-
'components',
1596-
`https://raw.githubusercontent.com/${contentSource.acct}/${contentSource.repo}/${ref}`)]
1597-
}
1587+
1588+
} else {
1589+
1590+
if (contentSource.repo !== 'juncture' || contentSource.acct !== 'jstor-labs') {
1591+
componentsList = [...componentsList, ...await listComponents(
1592+
`https://api.github.com/repos/${contentSource.acct}/${contentSource.repo}/git/trees/${ref}`,
1593+
'custom/components',
1594+
`https://raw.githubusercontent.com/${contentSource.acct}/${contentSource.repo}/${ref}`)]
1595+
componentsList = [...componentsList, ...await listComponents(
1596+
`https://api.github.com/repos/${contentSource.acct}/${contentSource.repo}/git/trees/${ref}`,
1597+
'components',
1598+
`https://raw.githubusercontent.com/${contentSource.acct}/${contentSource.repo}/${ref}`)]
1599+
}
15981600

1599-
if (window.location.hostname !== 'localhost' && window.location.hostname.indexOf('gitpod') < 0) {
16001601
componentsList = [...componentsList, ...await listComponents(
16011602
`${contentSource.baseUrl}${contentSource.isGhpSite ? contentSource.basePath : ''}`, 'custom/components')]
16021603
componentsList = [...componentsList, ...await listComponents(
16031604
`${contentSource.baseUrl}${contentSource.isGhpSite ? contentSource.basePath : ''}`, 'components')]
1605+
16041606
}
16051607

16061608
componentsList = [...componentsList, ...await listComponents(
16071609
`https://api.github.com/repos/jstor-labs/juncture/git/trees/${junctureVersionHash}`,
16081610
'components',
16091611
`https://raw.githubusercontent.com/jstor-labs/juncture/${junctureVersionHash}`)]
16101612

1611-
return componentsList
1613+
return componentsList
16121614
}
16131615

16141616
function parseUrl(href) {

0 commit comments

Comments
 (0)