@pg-boss/dashboard 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +393 -0
- package/bin/cli.js +21 -0
- package/build/client/assets/MenuTrigger-SThQHnlb.js +1 -0
- package/build/client/assets/_index-Bcg_-XSd.js +1 -0
- package/build/client/assets/badge-Cd8v3tl3.js +1 -0
- package/build/client/assets/button-BaXUPm8v.js +1 -0
- package/build/client/assets/chevron-down-xu6Uceu-.js +1 -0
- package/build/client/assets/chunk-JZWAC4HX-DC8i-F7r.js +26 -0
- package/build/client/assets/createLucideIcon-BXGwbdrh.js +1 -0
- package/build/client/assets/db-link-CtPnIrIr.js +1 -0
- package/build/client/assets/dialog-Bl8T588f.js +1 -0
- package/build/client/assets/entry.client-COnaNoy-.js +13 -0
- package/build/client/assets/error-card-DmoxS3Ao.js +1 -0
- package/build/client/assets/filter-select-mMC79WOR.js +1 -0
- package/build/client/assets/index-DhMkYPMa.js +1 -0
- package/build/client/assets/jobs-DtmTCs8I.js +1 -0
- package/build/client/assets/manifest-25954681.js +1 -0
- package/build/client/assets/pagination-NfhvsUbp.js +1 -0
- package/build/client/assets/queues._index-Cw1B49mg.js +1 -0
- package/build/client/assets/queues._name-D0cG_qDX.js +1 -0
- package/build/client/assets/queues._name.jobs._jobId-uJ3dfM3J.js +1 -0
- package/build/client/assets/queues.create-BGXDhJ3m.js +1 -0
- package/build/client/assets/root-DJRlbyb5.css +1 -0
- package/build/client/assets/root-NWrBrGvr.js +35 -0
- package/build/client/assets/schedules-DzgBEayh.js +1 -0
- package/build/client/assets/schedules._name._key-i42S9kw2.js +1 -0
- package/build/client/assets/schedules.new-Dt78KptL.js +1 -0
- package/build/client/assets/send-0eWgiWNl.js +1 -0
- package/build/client/assets/table-CTo0I5HG.js +1 -0
- package/build/client/assets/useOpenInteractionType-C_L8nZ_l.js +12 -0
- package/build/client/assets/warnings-BhQM6lFV.js +1 -0
- package/build/server/assets/config.server-CARiqCUE.js +54 -0
- package/build/server/assets/node-DzjK5u9i.js +176 -0
- package/build/server/assets/server-build.js +9684 -0
- package/build/server/index.js +26 -0
- package/package.json +85 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { c as createHonoServer } from "./assets/node-DzjK5u9i.js";
|
|
2
|
+
import { g as getDatabaseConfigs, f as findDatabaseById } from "./assets/config.server-CARiqCUE.js";
|
|
3
|
+
import "hono/factory";
|
|
4
|
+
import "@hono/node-server";
|
|
5
|
+
import "@hono/node-server/serve-static";
|
|
6
|
+
import "hono";
|
|
7
|
+
import "hono/logger";
|
|
8
|
+
import "react-router";
|
|
9
|
+
const server = createHonoServer({
|
|
10
|
+
getLoadContext(c) {
|
|
11
|
+
const databases = getDatabaseConfigs();
|
|
12
|
+
const url = new URL(c.req.url);
|
|
13
|
+
const dbId = url.searchParams.get("db") || c.req.header("cookie")?.match(/pgboss_db=([^;]+)/)?.[1] || null;
|
|
14
|
+
const currentDb = findDatabaseById(databases, dbId) || databases[0];
|
|
15
|
+
return {
|
|
16
|
+
databases,
|
|
17
|
+
currentDb,
|
|
18
|
+
// Backwards-compatible accessors
|
|
19
|
+
DB_URL: currentDb?.url || "postgres://localhost/pgboss",
|
|
20
|
+
SCHEMA: currentDb?.schema || "pgboss"
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
server as default
|
|
26
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pg-boss/dashboard",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Web dashboard for monitoring and managing pg-boss job queues",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pg-boss",
|
|
7
|
+
"job-queue",
|
|
8
|
+
"background-jobs",
|
|
9
|
+
"postgresql",
|
|
10
|
+
"postgres",
|
|
11
|
+
"dashboard",
|
|
12
|
+
"monitoring",
|
|
13
|
+
"admin",
|
|
14
|
+
"task-queue",
|
|
15
|
+
"queue"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"bin": {
|
|
19
|
+
"pg-boss-dashboard": "bin/cli.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"build",
|
|
23
|
+
"bin"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "cross-env DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/pgboss react-router dev",
|
|
27
|
+
"dev:init-db": "cross-env DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/pgboss tsx scripts/init-dev-db.ts",
|
|
28
|
+
"dev:worker": "cross-env DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/pgboss tsx scripts/worker.ts",
|
|
29
|
+
"build": "react-router build",
|
|
30
|
+
"start": "node ./build/server/index.js",
|
|
31
|
+
"prepublishOnly": "npm run build",
|
|
32
|
+
"test": "vitest run --config vitest.config.frontend.ts && vitest run --config vitest.config.server.ts",
|
|
33
|
+
"test:frontend": "vitest run --config vitest.config.frontend.ts",
|
|
34
|
+
"test:server": "vitest run --config vitest.config.server.ts",
|
|
35
|
+
"cover": "vitest run --coverage --config vitest.config.frontend.ts && vitest run --coverage --config vitest.config.server.ts",
|
|
36
|
+
"cover:frontend": "vitest run --coverage --config vitest.config.frontend.ts",
|
|
37
|
+
"cover:server": "vitest run --coverage --config vitest.config.server.ts",
|
|
38
|
+
"typegen": "react-router typegen",
|
|
39
|
+
"typecheck": "react-router typegen && tsc --noEmit",
|
|
40
|
+
"ci": "npm run typecheck && npm run cover:frontend && cross-env DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/pgboss npm run cover:server"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@base-ui/react": "^1.1.0",
|
|
44
|
+
"@hono/node-server": "^1.19.9",
|
|
45
|
+
"@react-router/node": "^7.13.0",
|
|
46
|
+
"class-variance-authority": "^0.7.1",
|
|
47
|
+
"clsx": "^2.1.1",
|
|
48
|
+
"hono": "^4.11.9",
|
|
49
|
+
"isbot": "^5.1.34",
|
|
50
|
+
"lucide-react": "^0.563.0",
|
|
51
|
+
"pg": "^8.18.0",
|
|
52
|
+
"pg-boss": "^12.10.0",
|
|
53
|
+
"react": "^19.2.4",
|
|
54
|
+
"react-dom": "^19.2.4",
|
|
55
|
+
"react-router": "^7.13.0",
|
|
56
|
+
"react-router-hono-server": "^2.24.1",
|
|
57
|
+
"tailwind-merge": "^3.4.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@react-router/dev": "^7.13.0",
|
|
61
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
62
|
+
"@testing-library/dom": "^10.4.1",
|
|
63
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
64
|
+
"@testing-library/react": "^16.3.2",
|
|
65
|
+
"@testing-library/user-event": "^14.6.1",
|
|
66
|
+
"@types/node": "^22.19.11",
|
|
67
|
+
"@types/pg": "^8.16.0",
|
|
68
|
+
"@types/react": "^19.2.13",
|
|
69
|
+
"@types/react-dom": "^19.2.3",
|
|
70
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
71
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
72
|
+
"cross-env": "^10.1.0",
|
|
73
|
+
"jsdom": "^25.0.1",
|
|
74
|
+
"tailwindcss": "^4.1.18",
|
|
75
|
+
"tsx": "^4.21.0",
|
|
76
|
+
"typescript": "^5.9.3",
|
|
77
|
+
"vite": "^7.3.1",
|
|
78
|
+
"vitest": "^4.0.18"
|
|
79
|
+
},
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"bugs": {
|
|
82
|
+
"url": "https://github.com/timgit/pg-boss/issues"
|
|
83
|
+
},
|
|
84
|
+
"homepage": "https://timgit.github.io/pg-boss"
|
|
85
|
+
}
|