Skip to content

Commit

Permalink
Fixed links on dashboard page generator
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Feb 4, 2025
1 parent a50cba6 commit fbf39ff
Show file tree
Hide file tree
Showing 22 changed files with 51 additions and 27 deletions.
23 changes: 13 additions & 10 deletions src/app/internal/readme.txt/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getWorkingEngines } from "@/engines";

type Project = {
name: string;
nodeping_uuid?: string;
nodeping_id?: string;
workflow: string;
source_url: string;
Expand All @@ -16,14 +17,16 @@ type Project = {
const non_engine_projects: Project[] = [
{
name: "Regexplanet main website",
nodeping_id: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
nodeping_uuid: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
nodeping_id: "201109281250J5K3P-GSKTHPZH",
source_url: "https://github.com/regexplanet/regexplanet-next",
url: "https://www.regexplanet.com/",
workflow: "gcr-deploy",
},
{
name: "Regex Zone",
nodeping_id: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
nodeping_uuid: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
nodeping_id: "201109281250J5K3P-9POLWOKI",
source_url: "https://github.com/regexplanet/regex-zone",
url: "https://www.regex.zone/",
workflow: "gcr-deploy",
Expand All @@ -36,13 +39,13 @@ const make_row = (project: Project) => {
? `[![${project.workflow}](${project.source_url}/actions/workflows/${project.workflow}.yaml/badge.svg)](${project.source_url}/actions/workflows/${project.workflow}.yaml)`
: "n/a";
const repo = project.source_url.split("/").slice(-1)[0];
const issues = `![GitHub Issues](https://img.shields.io/github/issues/regexplanet/${repo})`;
const prs = `![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/regexplanet/${repo})`;
const status = project.nodeping_id
? `![NodePing status](https://img.shields.io/nodeping/status/${project.nodeping_id})`
const issues = `[![GitHub Issues](https://img.shields.io/github/issues/regexplanet/${repo})](https://github.com/regexplanet/${repo}/issues)`;
const prs = `[![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/regexplanet/${repo})](https://github.com/regexplanet/${repo}/pulls)`;
const status = project.nodeping_uuid
? `[![NodePing status](https://img.shields.io/nodeping/status/${project.nodeping_uuid})](https://nodeping.com/reports/checkstatus/${project.nodeping_id})`
: "n/a";
const uptime = project.nodeping_id
? `![NodePing uptime](https://img.shields.io/nodeping/uptime/${project.nodeping_id})`
const uptime = project.nodeping_uuid
? `[![NodePing uptime](https://img.shields.io/nodeping/uptime/${project.nodeping_uuid})](https://nodeping.com/reports/uptime/${project.nodeping_uuid})`
: "n/a";
const source = `[source](${project.source_url})`;

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

export async function GET() {
const engines = getWorkingEngines()
.filter((engine) => engine.nodeping_id != "N/A")
.filter((engine) => engine.nodeping_uuid != "N/A") // filter out the client-side browser engine
.map((engine) => {
return make_row({
name: `${engine.short_name} testing backend`,
nodeping_id: engine.nodeping_id,
nodeping_uuid: engine.nodeping_uuid,
source_url: engine.source_url || "",
test_url: engine.test_url,
url: `https://www.regexplanet.com/advanced/${engine.handle}/index.html`,
Expand Down
3 changes: 2 additions & 1 deletion src/engines/RegexEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export type RegexEngine = {
links: Record<string, string>; // A map of (name: url) for other help links. These will be displayed on the support page under “Official Documentation”
logo_icon: string; // SVG icon (just the logo, no text) in a square
logo_ar21: string; // SVG logo (including language name) in a 2:1 aspect ratio
nodeping_id: string; // ID of the nodeping status check
nodeping_uuid: string; // uuid of the nodeping status check
nodeping_id: string; // _id of the nodeping status check
notfound?: string[]; // A list of handles that this is a substitute for (i.e. nodejs is a substitute for javascript)
options: RegexOption[]; // A list of which options it supports.
option_notes?: string; // Notes to display on the options page (html allowed)
Expand Down
1 change: 1 addition & 0 deletions src/engines/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const browser: RegexEngine = {
links: {},
logo_icon: "/images/browsers/browser-icon.svg",
logo_ar21: "/images/browsers/browser-ar21.svg",
nodeping_uuid: "N/A",
nodeping_id: "N/A",
notfound: ["javascript", "typescript"],
options: [
Expand Down
3 changes: 2 additions & 1 deletion src/engines/bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const bun: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/bunsh/bunsh-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/bunsh/bunsh-ar21.svg",
nodeping_id: "iajucfo0-kq0e-47ql-82sk-xoji0l2ejmfw",
nodeping_uuid: "iajucfo0-kq0e-47ql-82sk-xoji0l2ejmfw",
nodeping_id: "201109281250J5K3P-392N323V",
notfound: ["javascript", "typescript"],
options: [
{
Expand Down
3 changes: 2 additions & 1 deletion src/engines/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const deno: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/deno/deno-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/deno/deno-ar21.svg",
nodeping_id: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
nodeping_uuid: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
nodeping_id: "201109281250J5K3P-43JMJ07Z",
notfound: ["javascript", "typescript"],
options: [
{
Expand Down
3 changes: 2 additions & 1 deletion src/engines/dotnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const dotnet: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/dotnet/dotnet-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/dotnet/dotnet-ar21.svg",
nodeping_id: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
nodeping_uuid: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
nodeping_id: "201109281250J5K3P-J2SNGKWC",
options: [],
short_name: ".NET",
source_url: "https://github.com/regexplanet/regexplanet-dotnet",
Expand Down
1 change: 1 addition & 0 deletions src/engines/empty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const LATER: RegexEngine = {
links: {},
logo_icon: "https://www.vectorlogo.zone/logos/LATER/LATER-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/LATER/LATER-ar21.svg",
nodeping_uuid: "LATER",
nodeping_id: "LATER",
options: [],
short_name: "LATER",
Expand Down
1 change: 1 addition & 0 deletions src/engines/erlang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const erlang: RegexEngine = {
links: {},
logo_ar21: "https://www.vectorlogo.zone/logos/erlang/erlang-ar21.svg",
logo_icon: "https://www.vectorlogo.zone/logos/erlang/erlang-icon.svg",
nodeping_uuid: "LATER",
nodeping_id: "LATER",
options: [],
short_name: "Erlang",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/go.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const go: RegexEngine = {
links: { "re2 syntax": "https://github.com/google/re2/wiki/Syntax" },
logo_icon: "https://www.vectorlogo.zone/logos/golang/golang-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/golang/golang-ar21.svg",
nodeping_id: "cvdmibs4-lyts-48bp-8l93-a4y3ihfrkncc",
nodeping_uuid: "cvdmibs4-lyts-48bp-8l93-a4y3ihfrkncc",
nodeping_id: "201109281250J5K3P-QNG97T68",
options: [
{
code: "posix",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/haskell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const haskell: RegexEngine = {
help_label: "Text.Regex",
help_url:
"http://hackage.haskell.org/package/regex-compat-0.95.1/docs/Text-Regex.html",
nodeping_id: "kt5c4lp3-80p5-4rzk-8nq2-kqtyvq4p1a2d",
links: {
haskellwiki: "http://www.haskell.org/haskellwiki/Regular_expressions",
"Text.Regex.TDFA":
Expand All @@ -18,6 +17,8 @@ export const haskell: RegexEngine = {
},
logo_ar21: "https://www.vectorlogo.zone/logos/haskell/haskell-ar21.svg",
logo_icon: "https://www.vectorlogo.zone/logos/haskell/haskell-icon.svg",
nodeping_uuid: "kt5c4lp3-80p5-4rzk-8nq2-kqtyvq4p1a2d",
nodeping_id: "201109281250J5K3P-5LIQI418",
options: [
{
code: "ignorecase",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const java: RegexEngine = {
links: {},
logo_icon: "https://www.vectorlogo.zone/logos/java/java-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/java/java-ar21.svg",
nodeping_id: "m84cfhq9-gk43-44r5-8mih-syzu6vp45tuk",
nodeping_uuid: "m84cfhq9-gk43-44r5-8mih-syzu6vp45tuk",
nodeping_id: "201109281250J5K3P-J5GOX6A4",
notfound: ["kotlin"],
options: [
{
Expand Down
1 change: 1 addition & 0 deletions src/engines/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const mysql: RegexEngine = {
links: {},
logo_icon: "https://www.vectorlogo.zone/logos/mysql/mysql-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/mysql/mysql-ar21.svg",
nodeping_uuid: "LATER",
nodeping_id: "LATER",
options: [],
short_name: "MySQL",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/nodejs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const nodejs: RegexEngine = {
},
logo_ar21: "https://www.vectorlogo.zone/logos/nodejs/nodejs-ar21.svg",
logo_icon: "https://www.vectorlogo.zone/logos/nodejs/nodejs-icon.svg",
nodeping_id: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
nodeping_uuid: "9z4pmj0b-ve3m-42s9-8s07-6c53rlel69iy",
nodeping_id: "201109281250J5K3P-NGEHQQKI",
notfound: ["javascript", "typescript"],
options: [
/*{
Expand Down
3 changes: 2 additions & 1 deletion src/engines/perl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const perl: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/perl/perl-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/perl/perl-ar21.svg",
nodeping_id: "gkh86985-3ae2-4w7b-8opi-il8pki62v1ie",
nodeping_uuid: "gkh86985-3ae2-4w7b-8opi-il8pki62v1ie",
nodeping_id: "201109281250J5K3P-29PWUR20",
options: [
{
code: "m",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/php.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const php: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/php/php-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/php/php-ar21.svg",
nodeping_id: "tv5izwkj-w7m2-4epk-8l9i-2z8y36h0o1n1",
nodeping_uuid: "tv5izwkj-w7m2-4epk-8l9i-2z8y36h0o1n1",
nodeping_id: "201109281250J5K3P-QZKHTYE7",
options: [
{
code: "i",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const postgresql: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/postgresql/postgresql-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/postgresql/postgresql-ar21.svg",
nodeping_id: "43ytdj0n-jeiu-4zta-8ptc-wr7xmxztp5i8",
nodeping_uuid: "43ytdj0n-jeiu-4zta-8ptc-wr7xmxztp5i8",
nodeping_id: "201109281250J5K3P-0NWQHT4O",
options: [
{ code: "b", description: "rest of RE is a BRE" },
{
Expand Down
3 changes: 2 additions & 1 deletion src/engines/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const python: RegexEngine = {
links: {},
logo_icon: "https://www.vectorlogo.zone/logos/python/python-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/python/python-ar21.svg",
nodeping_id: "15fanuwl-znir-46nz-8542-fzsk4fg3zrvg",
nodeping_uuid: "15fanuwl-znir-46nz-8542-fzsk4fg3zrvg",
nodeping_id: "201109281250J5K3P-9C3PC73P",
options: [
//{ code: "A", legacyCode: "", numericCode: 256, description: "ASCII" },
{
Expand Down
3 changes: 2 additions & 1 deletion src/engines/ruby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const ruby: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/ruby-lang/ruby-lang-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/ruby-lang/ruby-lang-ar21.svg",
nodeping_id: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
nodeping_uuid: "e6od3bui-a5wl-49ff-8698-0cbtjc52rqw1",
nodeping_id: "201109281250J5K3P-29AKB1P0",
options: [
{
code: "x",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const rust: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/rust-lang/rust-lang-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/rust-lang/rust-lang-ar21.svg",
nodeping_id: "ujhwq5rz-ozzd-4uj7-8jth-4osxplhcw4j2",
nodeping_uuid: "ujhwq5rz-ozzd-4uj7-8jth-4osxplhcw4j2",
nodeping_id: "201109281250J5K3P-1M90BJXI",
options: [],
option_notes: `Rust supports options in the regex pattern and with separate calls to <a href="https://docs.rs/regex/latest/regex/struct.RegexBuilder.html">RegexBuilder</a>.`,
short_name: "Rust",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/swift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const swift: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/swift/swift-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/swift/swift-ar21.svg",
nodeping_id: "sd8rr8e8-0vw2-4cur-87tg-tnm9et6pc6w5",
nodeping_uuid: "sd8rr8e8-0vw2-4cur-87tg-tnm9et6pc6w5",
nodeping_id: "201109281250J5K3P-7019U9QV",
options: [
{
code: "anchorsMatchLineEndings",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/tcl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const tcl: RegexEngine = {
links: {},
logo_icon: "https://www.vectorlogo.zone/logos/tcl/tcl-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/tcl/tcl-ar21.svg",
nodeping_id: "kk4u50sh-kave-4wwx-8f2i-74tgnum8szwa",
nodeping_uuid: "kk4u50sh-kave-4wwx-8f2i-74tgnum8szwa",
nodeping_id: "201109281250J5K3P-3HZCHCDS",
options: [],
short_name: "tcl",
source_url: "https://github.com/regexplanet/regexplanet-tcl",
Expand Down
3 changes: 2 additions & 1 deletion src/engines/xregexp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const xregexp: RegexEngine = {
},
logo_icon: "https://www.vectorlogo.zone/logos/xregexp/xregexp-icon.svg",
logo_ar21: "https://www.vectorlogo.zone/logos/xregexp/xregexp-ar21.svg",
nodeping_id: "7ysrbqyo-38sg-44au-8j78-g6fpipl8sxho",
nodeping_uuid: "7ysrbqyo-38sg-44au-8j78-g6fpipl8sxho",
nodeping_id: "201109281250J5K3P-JG48UHKD",
notfound: ["javascript", "typescript"],
options: [
{
Expand Down

0 comments on commit fbf39ff

Please sign in to comment.