Skip to content

Commit fbf39ff

Browse files
committed
Fixed links on dashboard page generator
1 parent a50cba6 commit fbf39ff

File tree

22 files changed

+51
-27
lines changed

22 files changed

+51
-27
lines changed

src/app/internal/readme.txt/route.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getWorkingEngines } from "@/engines";
66

77
type Project = {
88
name: string;
9+
nodeping_uuid?: string;
910
nodeping_id?: string;
1011
workflow: string;
1112
source_url: string;
@@ -16,14 +17,16 @@ type Project = {
1617
const non_engine_projects: Project[] = [
1718
{
1819
name: "Regexplanet main website",
19-
nodeping_id: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
20+
nodeping_uuid: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
21+
nodeping_id: "201109281250J5K3P-GSKTHPZH",
2022
source_url: "https://github.com/regexplanet/regexplanet-next",
2123
url: "https://www.regexplanet.com/",
2224
workflow: "gcr-deploy",
2325
},
2426
{
2527
name: "Regex Zone",
26-
nodeping_id: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
28+
nodeping_uuid: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
29+
nodeping_id: "201109281250J5K3P-9POLWOKI",
2730
source_url: "https://github.com/regexplanet/regex-zone",
2831
url: "https://www.regex.zone/",
2932
workflow: "gcr-deploy",
@@ -36,13 +39,13 @@ const make_row = (project: Project) => {
3639
? `[![${project.workflow}](${project.source_url}/actions/workflows/${project.workflow}.yaml/badge.svg)](${project.source_url}/actions/workflows/${project.workflow}.yaml)`
3740
: "n/a";
3841
const repo = project.source_url.split("/").slice(-1)[0];
39-
const issues = `![GitHub Issues](https://img.shields.io/github/issues/regexplanet/${repo})`;
40-
const prs = `![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/regexplanet/${repo})`;
41-
const status = project.nodeping_id
42-
? `![NodePing status](https://img.shields.io/nodeping/status/${project.nodeping_id})`
42+
const issues = `[![GitHub Issues](https://img.shields.io/github/issues/regexplanet/${repo})](https://github.com/regexplanet/${repo}/issues)`;
43+
const prs = `[![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/regexplanet/${repo})](https://github.com/regexplanet/${repo}/pulls)`;
44+
const status = project.nodeping_uuid
45+
? `[![NodePing status](https://img.shields.io/nodeping/status/${project.nodeping_uuid})](https://nodeping.com/reports/checkstatus/${project.nodeping_id})`
4346
: "n/a";
44-
const uptime = project.nodeping_id
45-
? `![NodePing uptime](https://img.shields.io/nodeping/uptime/${project.nodeping_id})`
47+
const uptime = project.nodeping_uuid
48+
? `[![NodePing uptime](https://img.shields.io/nodeping/uptime/${project.nodeping_uuid})](https://nodeping.com/reports/uptime/${project.nodeping_uuid})`
4649
: "n/a";
4750
const source = `[source](${project.source_url})`;
4851

@@ -51,11 +54,11 @@ const make_row = (project: Project) => {
5154

5255
export async function GET() {
5356
const engines = getWorkingEngines()
54-
.filter((engine) => engine.nodeping_id != "N/A")
57+
.filter((engine) => engine.nodeping_uuid != "N/A") // filter out the client-side browser engine
5558
.map((engine) => {
5659
return make_row({
5760
name: `${engine.short_name} testing backend`,
58-
nodeping_id: engine.nodeping_id,
61+
nodeping_uuid: engine.nodeping_uuid,
5962
source_url: engine.source_url || "",
6063
test_url: engine.test_url,
6164
url: `https://www.regexplanet.com/advanced/${engine.handle}/index.html`,

src/engines/RegexEngine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export type RegexEngine = {
2727
links: Record<string, string>; // A map of (name: url) for other help links. These will be displayed on the support page under “Official Documentation”
2828
logo_icon: string; // SVG icon (just the logo, no text) in a square
2929
logo_ar21: string; // SVG logo (including language name) in a 2:1 aspect ratio
30-
nodeping_id: string; // ID of the nodeping status check
30+
nodeping_uuid: string; // uuid of the nodeping status check
31+
nodeping_id: string; // _id of the nodeping status check
3132
notfound?: string[]; // A list of handles that this is a substitute for (i.e. nodejs is a substitute for javascript)
3233
options: RegexOption[]; // A list of which options it supports.
3334
option_notes?: string; // Notes to display on the options page (html allowed)

src/engines/browser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const browser: RegexEngine = {
1111
links: {},
1212
logo_icon: "/images/browsers/browser-icon.svg",
1313
logo_ar21: "/images/browsers/browser-ar21.svg",
14+
nodeping_uuid: "N/A",
1415
nodeping_id: "N/A",
1516
notfound: ["javascript", "typescript"],
1617
options: [

src/engines/bun.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const bun: RegexEngine = {
1616
},
1717
logo_icon: "https://www.vectorlogo.zone/logos/bunsh/bunsh-icon.svg",
1818
logo_ar21: "https://www.vectorlogo.zone/logos/bunsh/bunsh-ar21.svg",
19-
nodeping_id: "iajucfo0-kq0e-47ql-82sk-xoji0l2ejmfw",
19+
nodeping_uuid: "iajucfo0-kq0e-47ql-82sk-xoji0l2ejmfw",
20+
nodeping_id: "201109281250J5K3P-392N323V",
2021
notfound: ["javascript", "typescript"],
2122
options: [
2223
{

src/engines/deno.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const deno: RegexEngine = {
1616
},
1717
logo_icon: "https://www.vectorlogo.zone/logos/deno/deno-icon.svg",
1818
logo_ar21: "https://www.vectorlogo.zone/logos/deno/deno-ar21.svg",
19-
nodeping_id: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
19+
nodeping_uuid: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
20+
nodeping_id: "201109281250J5K3P-43JMJ07Z",
2021
notfound: ["javascript", "typescript"],
2122
options: [
2223
{

src/engines/dotnet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export const dotnet: RegexEngine = {
2020
},
2121
logo_icon: "https://www.vectorlogo.zone/logos/dotnet/dotnet-icon.svg",
2222
logo_ar21: "https://www.vectorlogo.zone/logos/dotnet/dotnet-ar21.svg",
23-
nodeping_id: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
23+
nodeping_uuid: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
24+
nodeping_id: "201109281250J5K3P-J2SNGKWC",
2425
options: [],
2526
short_name: ".NET",
2627
source_url: "https://github.com/regexplanet/regexplanet-dotnet",

src/engines/empty.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const LATER: RegexEngine = {
1010
links: {},
1111
logo_icon: "https://www.vectorlogo.zone/logos/LATER/LATER-icon.svg",
1212
logo_ar21: "https://www.vectorlogo.zone/logos/LATER/LATER-ar21.svg",
13+
nodeping_uuid: "LATER",
1314
nodeping_id: "LATER",
1415
options: [],
1516
short_name: "LATER",

src/engines/erlang.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const erlang: RegexEngine = {
1010
links: {},
1111
logo_ar21: "https://www.vectorlogo.zone/logos/erlang/erlang-ar21.svg",
1212
logo_icon: "https://www.vectorlogo.zone/logos/erlang/erlang-icon.svg",
13+
nodeping_uuid: "LATER",
1314
nodeping_id: "LATER",
1415
options: [],
1516
short_name: "Erlang",

src/engines/go.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export const go: RegexEngine = {
1010
links: { "re2 syntax": "https://github.com/google/re2/wiki/Syntax" },
1111
logo_icon: "https://www.vectorlogo.zone/logos/golang/golang-icon.svg",
1212
logo_ar21: "https://www.vectorlogo.zone/logos/golang/golang-ar21.svg",
13-
nodeping_id: "cvdmibs4-lyts-48bp-8l93-a4y3ihfrkncc",
13+
nodeping_uuid: "cvdmibs4-lyts-48bp-8l93-a4y3ihfrkncc",
14+
nodeping_id: "201109281250J5K3P-QNG97T68",
1415
options: [
1516
{
1617
code: "posix",

src/engines/haskell.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const haskell: RegexEngine = {
88
help_label: "Text.Regex",
99
help_url:
1010
"http://hackage.haskell.org/package/regex-compat-0.95.1/docs/Text-Regex.html",
11-
nodeping_id: "kt5c4lp3-80p5-4rzk-8nq2-kqtyvq4p1a2d",
1211
links: {
1312
haskellwiki: "http://www.haskell.org/haskellwiki/Regular_expressions",
1413
"Text.Regex.TDFA":
@@ -18,6 +17,8 @@ export const haskell: RegexEngine = {
1817
},
1918
logo_ar21: "https://www.vectorlogo.zone/logos/haskell/haskell-ar21.svg",
2019
logo_icon: "https://www.vectorlogo.zone/logos/haskell/haskell-icon.svg",
20+
nodeping_uuid: "kt5c4lp3-80p5-4rzk-8nq2-kqtyvq4p1a2d",
21+
nodeping_id: "201109281250J5K3P-5LIQI418",
2122
options: [
2223
{
2324
code: "ignorecase",

0 commit comments

Comments
 (0)