@@ -6,9 +6,10 @@ import { getWorkingEngines } from "@/engines";
66
77type Project = {
88 name : string ;
9- nodeping_id : string ;
9+ nodeping_id ?: string ;
10+ workflow : string ;
1011 source_url : string ;
11- url : string ;
12+ url ? : string ;
1213 test_url ?: string ;
1314} ;
1415
@@ -18,26 +19,25 @@ const non_engine_projects: Project[] = [
1819 nodeping_id : "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1" ,
1920 source_url : "https://github.com/regexplanet/regexplanet-next" ,
2021 url : "https://www.regexplanet.com/" ,
22+ workflow : "gcr-deploy" ,
2123 } ,
2224 {
2325 name : "Regex Zone" ,
2426 nodeping_id : "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1" ,
2527 source_url : "https://github.com/regexplanet/regex-zone" ,
2628 url : "https://www.regex.zone/" ,
29+ workflow : "gcr-deploy" ,
2730 } ,
2831] ;
2932
3033const make_row = ( project : Project ) => {
31- const name = `[${ project . name } ](${ project . url } )` ;
32- let deploy = `[](${ project . source_url } /actions/workflows/gcr-deploy.yaml)` ;
33- if ( project . test_url && project . test_url . indexOf ( "appspot.com" ) != - 1 ) {
34- deploy = `[](${ project . source_url } /actions/workflows/appengine-deploy.yaml)` ;
35- }
34+ const name = project . url ? `[${ project . name } ](${ project . url } )` : project . name ;
35+ const deploy = project . workflow ? `[](${ project . source_url } /actions/workflows/${ project . workflow } .yaml)` : 'n/a' ;
3636 const repo = project . source_url . split ( "/" ) . slice ( - 1 ) [ 0 ] ;
3737 const issues = `` ;
3838 const prs = `` ;
39- const status = `` ;
40- const uptime = `` ;
39+ const status = project . nodeping_id ? `` : 'n/a' ;
40+ const uptime = project . nodeping_id ? `` : 'n/a' ;
4141 const source = `[source](${ project . source_url } )` ;
4242
4343 return `| ${ name } | ${ deploy } | ${ issues } | ${ prs } | ${ status } | ${ uptime } | ${ source } |` ;
@@ -54,6 +54,7 @@ export async function GET() {
5454 source_url : engine . source_url || "" ,
5555 test_url : engine . test_url ,
5656 url : `https://www.regexplanet.com/advanced/${ engine . handle } /index.html` ,
57+ workflow : engine . test_url && engine . test_url . indexOf ( "appspot.com" ) != - 1 ? "appengine-deploy" : "gcr-deploy" ,
5758 } ) ;
5859 } ) ;
5960
@@ -63,7 +64,18 @@ export async function GET() {
6364|---------|-------|--------|-----|--------|--------|--------|
6465${ non_engine_projects . map ( make_row ) . join ( "\n" ) }
6566${ engines . join ( "\n" ) }
66- | Common library | n/a | n/a | n/a | [source](https://github.com/regexplanet/regexplanet-common) |
67+ ${ make_row ( {
68+ name : "Common library" ,
69+ source_url : "regexplanet/regexplanet-common" ,
70+ url : "https://jsr.io/@regexplanet/common" ,
71+ workflow : "publish" ,
72+ } ) }
73+ ${ make_row ( {
74+ name : "Javascript Template" ,
75+ source_url : "regexplanet/regexplanet-template" ,
76+ url : "https://jsr.io/@regexplanet/template" ,
77+ workflow : "publish" ,
78+ } ) }
6779` ;
6880
6981 return new Response ( readme , {
0 commit comments