@@ -1579,36 +1579,38 @@ <h1>Update Juncture site</h1>
1579
1579
let ref = contentSource . acct === 'jstor-labs' && contentSource . repo === 'juncture' ? junctureVersionHash : contentSource . ref
1580
1580
1581
1581
if ( window . location . hostname === 'localhost' || window . location . hostname . indexOf ( 'gitpod' ) > 0 ) {
1582
+
1582
1583
componentsList = [ ...componentsList , ...await listComponents (
1583
1584
`${ contentSource . baseUrl } ${ contentSource . isGhpSite ? contentSource . basePath : '' } ` , 'custom/components' ) ]
1584
1585
componentsList = [ ...componentsList , ...await listComponents (
1585
1586
`${ 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
+ }
1598
1600
1599
- if ( window . location . hostname !== 'localhost' && window . location . hostname . indexOf ( 'gitpod' ) < 0 ) {
1600
1601
componentsList = [ ...componentsList , ...await listComponents (
1601
1602
`${ contentSource . baseUrl } ${ contentSource . isGhpSite ? contentSource . basePath : '' } ` , 'custom/components' ) ]
1602
1603
componentsList = [ ...componentsList , ...await listComponents (
1603
1604
`${ contentSource . baseUrl } ${ contentSource . isGhpSite ? contentSource . basePath : '' } ` , 'components' ) ]
1605
+
1604
1606
}
1605
1607
1606
1608
componentsList = [ ...componentsList , ...await listComponents (
1607
1609
`https://api.github.com/repos/jstor-labs/juncture/git/trees/${ junctureVersionHash } ` ,
1608
1610
'components' ,
1609
1611
`https://raw.githubusercontent.com/jstor-labs/juncture/${ junctureVersionHash } ` ) ]
1610
1612
1611
- return componentsList
1613
+ return componentsList
1612
1614
}
1613
1615
1614
1616
function parseUrl ( href ) {
0 commit comments