feat: open GitWorkshop at Archipelago repository
Demo images / Build & push demo images (push) Successful in 3m33s
Demo images / Build & push demo images (push) Successful in 3m33s
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
"headline": "Your node. Your source.",
|
"headline": "Your node. Your source.",
|
||||||
"description": "Install GitWorkshop to browse Archipelago's code from your own node, clone it with ngit, and contribute issues, patches, and reviews over Nostr.",
|
"description": "Install GitWorkshop to browse Archipelago's code from your own node, clone it with ngit, and contribute issues, patches, and reviews over Nostr.",
|
||||||
"tag": "NGIT // NOSTR // NO SILO",
|
"tag": "NGIT // NOSTR // NO SILO",
|
||||||
"path": "/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/archy",
|
"path": "/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/relay.ngit.dev/archy",
|
||||||
"launchLabel": "Open GitWorkshop",
|
"launchLabel": "Open GitWorkshop",
|
||||||
"installLabel": "Install GitWorkshop",
|
"installLabel": "Install GitWorkshop",
|
||||||
"detailsLabel": "How contribution works →"
|
"detailsLabel": "How contribution works →"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"headline": "Your node. Your source.",
|
"headline": "Your node. Your source.",
|
||||||
"description": "Install GitWorkshop to browse Archipelago's code from your own node, clone it with ngit, and contribute issues, patches, and reviews over Nostr.",
|
"description": "Install GitWorkshop to browse Archipelago's code from your own node, clone it with ngit, and contribute issues, patches, and reviews over Nostr.",
|
||||||
"tag": "NGIT // NOSTR // NO SILO",
|
"tag": "NGIT // NOSTR // NO SILO",
|
||||||
"path": "/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/archy",
|
"path": "/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/relay.ngit.dev/archy",
|
||||||
"launchLabel": "Open GitWorkshop",
|
"launchLabel": "Open GitWorkshop",
|
||||||
"installLabel": "Install GitWorkshop",
|
"installLabel": "Install GitWorkshop",
|
||||||
"detailsLabel": "How contribution works →"
|
"detailsLabel": "How contribution works →"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, expect, it, beforeEach } from 'vitest'
|
import { describe, expect, it, beforeEach } from 'vitest'
|
||||||
import { HOST_FRAME_APPS, NEW_TAB_APPS, directAppUrl, resolveAppUrl } from '../appSessionConfig'
|
import { DEFAULT_GITWORKSHOP_REPO_PATH, HOST_FRAME_APPS, NEW_TAB_APPS, directAppUrl, resolveAppUrl } from '../appSessionConfig'
|
||||||
import { GENERATED_HOST_FRAME_APPS, GENERATED_NEW_TAB_APPS } from '../generatedAppSessionConfig'
|
import { GENERATED_HOST_FRAME_APPS, GENERATED_NEW_TAB_APPS } from '../generatedAppSessionConfig'
|
||||||
import { __setSignedCatalogForTests } from '../../discover/curatedApps'
|
import { __setSignedCatalogForTests } from '../../discover/curatedApps'
|
||||||
|
|
||||||
@@ -159,9 +159,9 @@ describe('appSessionConfig', () => {
|
|||||||
// Source is intentionally absent from SIGNED until owner UAT passes. It
|
// Source is intentionally absent from SIGNED until owner UAT passes. It
|
||||||
// must follow the already-working dashboard ingress instead of assuming
|
// must follow the already-working dashboard ingress instead of assuming
|
||||||
// that the same address also exposes a dedicated high port.
|
// that the same address also exposes a dedicated high port.
|
||||||
expect(resolveAppUrl('archipelago-source')).toBe('/app/archipelago-source/')
|
expect(resolveAppUrl('archipelago-source')).toBe(`/app/archipelago-source${DEFAULT_GITWORKSHOP_REPO_PATH}`)
|
||||||
expect(resolveAppUrl('archipelago-source', undefined, 'http://localhost:8337'))
|
expect(resolveAppUrl('archipelago-source', undefined, 'http://localhost:8337'))
|
||||||
.toBe('/app/archipelago-source/')
|
.toBe(`/app/archipelago-source${DEFAULT_GITWORKSHOP_REPO_PATH}`)
|
||||||
expect(resolveAppUrl('archipelago-source', '/search'))
|
expect(resolveAppUrl('archipelago-source', '/search'))
|
||||||
.toBe('/app/archipelago-source/search')
|
.toBe('/app/archipelago-source/search')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ export const PROXY_APPS: Record<string, string> = {
|
|||||||
'uptime-kuma': '/app/uptime-kuma/',
|
'uptime-kuma': '/app/uptime-kuma/',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The repository shown when GitWorkshop is opened from the app launcher. */
|
||||||
|
export const DEFAULT_GITWORKSHOP_REPO_PATH =
|
||||||
|
'/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/relay.ngit.dev/archy'
|
||||||
|
|
||||||
/** App launches use direct ports. Do not route through /app/... path proxies. */
|
/** App launches use direct ports. Do not route through /app/... path proxies. */
|
||||||
export const HTTPS_PROXY_PATHS: Record<string, string> = {
|
export const HTTPS_PROXY_PATHS: Record<string, string> = {
|
||||||
}
|
}
|
||||||
@@ -137,8 +141,8 @@ export function resolveAppUrl(id: string, routeQueryPath?: string, runtimeUrl?:
|
|||||||
// high port is reachable through the same address.
|
// high port is reachable through the same address.
|
||||||
if (id === 'archipelago-source') {
|
if (id === 'archipelago-source') {
|
||||||
const base = PROXY_APPS['archipelago-source']!
|
const base = PROXY_APPS['archipelago-source']!
|
||||||
if (!routeQueryPath) return base
|
const path = routeQueryPath || DEFAULT_GITWORKSHOP_REPO_PATH
|
||||||
return base.replace(/\/+$/, '') + (routeQueryPath.startsWith('/') ? routeQueryPath : `/${routeQueryPath}`)
|
return base.replace(/\/+$/, '') + (path.startsWith('/') ? path : `/${path}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bitcoin UI is a host-network companion on :8334. Do not launch it via
|
// Bitcoin UI is a host-network companion on :8334. Do not launch it via
|
||||||
|
|||||||
@@ -5482,7 +5482,7 @@
|
|||||||
"headline": "Your node. Your source.",
|
"headline": "Your node. Your source.",
|
||||||
"description": "Install GitWorkshop to browse Archipelago's code from your own node, clone it with ngit, and contribute issues, patches, and reviews over Nostr.",
|
"description": "Install GitWorkshop to browse Archipelago's code from your own node, clone it with ngit, and contribute issues, patches, and reviews over Nostr.",
|
||||||
"tag": "NGIT // NOSTR // NO SILO",
|
"tag": "NGIT // NOSTR // NO SILO",
|
||||||
"path": "/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/archy",
|
"path": "/npub1w3sqdkrhn0gyuvsex32effzgnfpyde6qrrc4u467flg5e9txh4wsfn5vjg/relay.ngit.dev/archy",
|
||||||
"launchLabel": "Open GitWorkshop",
|
"launchLabel": "Open GitWorkshop",
|
||||||
"installLabel": "Install GitWorkshop",
|
"installLabel": "Install GitWorkshop",
|
||||||
"detailsLabel": "How contribution works \u2192"
|
"detailsLabel": "How contribution works \u2192"
|
||||||
|
|||||||
Reference in New Issue
Block a user