hzl-web 1.8.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.
@@ -0,0 +1,2 @@
1
+ export declare const DASHBOARD_HTML: string;
2
+ //# sourceMappingURL=ui-embed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-embed.d.ts","sourceRoot":"","sources":["../src/ui-embed.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,cAAc,QAAa,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { readFileSync } from 'fs';
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname, join } from 'path';
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+ // In development, read from source. In production, this will be the dist folder.
7
+ // For dev, we try the src folder first, then fall back to the build location.
8
+ function loadHtml() {
9
+ const paths = [
10
+ join(__dirname, 'ui', 'index.html'), // dist/ui/index.html (prod)
11
+ join(__dirname, '..', 'src', 'ui', 'index.html'), // src/ui/index.html (dev from dist)
12
+ ];
13
+ for (const p of paths) {
14
+ try {
15
+ return readFileSync(p, 'utf-8');
16
+ }
17
+ catch {
18
+ // Try next path
19
+ }
20
+ }
21
+ throw new Error('Could not find index.html - checked: ' + paths.join(', '));
22
+ }
23
+ export const DASHBOARD_HTML = loadHtml();
24
+ //# sourceMappingURL=ui-embed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-embed.js","sourceRoot":"","sources":["../src/ui-embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,iFAAiF;AACjF,8EAA8E;AAC9E,SAAS,QAAQ;IACf,MAAM,KAAK,GAAG;QACZ,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC,EAAY,4BAA4B;QAC3E,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,oCAAoC;KACvF,CAAC;IAEF,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,OAAO,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAClC,CAAC;QAAC,MAAM,CAAC;YACP,gBAAgB;QAClB,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,uCAAuC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "hzl-web",
3
+ "version": "1.8.1",
4
+ "description": "Web dashboard for HZL - A Kanban-style task monitoring UI.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/tmchow/hzl.git",
20
+ "directory": "packages/hzl-web"
21
+ },
22
+ "scripts": {
23
+ "build": "tsc -b && cp -r src/ui dist/",
24
+ "test": "vitest run",
25
+ "test:watch": "vitest"
26
+ },
27
+ "dependencies": {
28
+ "hzl-core": "^1.7.6"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "^20.10.0",
32
+ "typescript": "^5.3.0",
33
+ "vitest": "^4.0.18"
34
+ }
35
+ }