flowdoc-gen 0.1.0
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 +89 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +31 -0
- package/dist/chunk-3GGK6LWE.js +1166 -0
- package/dist/chunk-P6Z6T3W4.js +51 -0
- package/dist/chunk-SAMPAR3A.js +93 -0
- package/dist/chunk-VG2YJHSH.js +52 -0
- package/dist/chunk-XXW6UJOX.js +604 -0
- package/dist/generate-E4V2RQYB.js +6 -0
- package/dist/generate-J6FGBLQ4.js +7 -0
- package/dist/generate-MNQL7RGI.js +7 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +1374 -0
- package/dist/init-27XS6ADW.js +53 -0
- package/dist/init-HVJTHT4U.js +6 -0
- package/dist/serve-NNDUXHXZ.js +94 -0
- package/dist/serve-VKTQ5E5O.js +7 -0
- package/dist/serve-Y4E3DTAJ.js +94 -0
- package/package.json +89 -0
- package/ui-assets/index.css +1 -0
- package/ui-assets/ui.js +49 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/init.ts
|
|
4
|
+
import { writeFileSync, existsSync } from "fs";
|
|
5
|
+
import { resolve } from "path";
|
|
6
|
+
import chalk from "chalk";
|
|
7
|
+
var CONFIG_TEMPLATE = `import type { FlowDocConfig } from "@flowdoc/core";
|
|
8
|
+
|
|
9
|
+
const config: FlowDocConfig = {
|
|
10
|
+
name: "My API",
|
|
11
|
+
version: "1.0.0",
|
|
12
|
+
description: "API documentation generated by flowdoc",
|
|
13
|
+
framework: "express",
|
|
14
|
+
entry: "./src", // folder or file containing your Express routes
|
|
15
|
+
baseUrl: "http://localhost:3000",
|
|
16
|
+
auth: {
|
|
17
|
+
type: "bearer",
|
|
18
|
+
},
|
|
19
|
+
output: "./docs-output",
|
|
20
|
+
theme: {
|
|
21
|
+
brand: "#6366f1",
|
|
22
|
+
darkMode: true,
|
|
23
|
+
},
|
|
24
|
+
// Optional: manually group routes under named sections
|
|
25
|
+
// groups: {
|
|
26
|
+
// "User Management": ["/users/**"],
|
|
27
|
+
// "Auth": ["/auth/**"],
|
|
28
|
+
// },
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default config;
|
|
32
|
+
`;
|
|
33
|
+
var init = (cwd = process.cwd()) => {
|
|
34
|
+
const configPath = resolve(cwd, "flowdoc.config.ts");
|
|
35
|
+
if (existsSync(configPath)) {
|
|
36
|
+
console.log(chalk.yellow(" flowdoc.config.ts already exists \u2014 skipping."));
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
writeFileSync(configPath, CONFIG_TEMPLATE, "utf-8");
|
|
40
|
+
console.log();
|
|
41
|
+
console.log(` ${chalk.bold("flowdoc")} initialized`);
|
|
42
|
+
console.log();
|
|
43
|
+
console.log(` Created ${chalk.cyan("flowdoc.config.ts")}`);
|
|
44
|
+
console.log();
|
|
45
|
+
console.log(" Next steps:");
|
|
46
|
+
console.log(` 1. Edit ${chalk.cyan("flowdoc.config.ts")} \u2014 set your entry path`);
|
|
47
|
+
console.log(` 2. Run ${chalk.cyan("flowdoc generate")} to build your docs`);
|
|
48
|
+
console.log(` 3. Run ${chalk.cyan("flowdoc serve")} to preview locally`);
|
|
49
|
+
console.log();
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
init
|
|
53
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
findConfigFile,
|
|
4
|
+
generate,
|
|
5
|
+
loadConfig,
|
|
6
|
+
resolveConfig
|
|
7
|
+
} from "./chunk-XXW6UJOX.js";
|
|
8
|
+
|
|
9
|
+
// src/serve.ts
|
|
10
|
+
import { createServer } from "http";
|
|
11
|
+
import { createReadStream, existsSync } from "fs";
|
|
12
|
+
import { join, extname, resolve } from "path";
|
|
13
|
+
import chalk from "chalk";
|
|
14
|
+
import open from "open";
|
|
15
|
+
import chokidar from "chokidar";
|
|
16
|
+
var MIME_TYPES = {
|
|
17
|
+
".html": "text/html",
|
|
18
|
+
".js": "application/javascript",
|
|
19
|
+
".css": "text/css",
|
|
20
|
+
".json": "application/json",
|
|
21
|
+
".svg": "image/svg+xml",
|
|
22
|
+
".png": "image/png",
|
|
23
|
+
".ico": "image/x-icon"
|
|
24
|
+
};
|
|
25
|
+
var serve = async (opts = {}) => {
|
|
26
|
+
const cwd = process.cwd();
|
|
27
|
+
const outputDir = opts.output ?? join(cwd, "docs-output");
|
|
28
|
+
const port = opts.port ?? 4e3;
|
|
29
|
+
await generate({ ...opts, quiet: false });
|
|
30
|
+
const server = createServer((req, res) => {
|
|
31
|
+
const url = req.url === "/" || req.url === "" ? "/index.html" : req.url ?? "/index.html";
|
|
32
|
+
const filePath = join(outputDir, url);
|
|
33
|
+
if (!existsSync(filePath)) {
|
|
34
|
+
res.writeHead(404);
|
|
35
|
+
res.end("Not found");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const ext = extname(filePath);
|
|
39
|
+
const contentType = MIME_TYPES[ext] ?? "application/octet-stream";
|
|
40
|
+
res.writeHead(200, { "Content-Type": contentType });
|
|
41
|
+
createReadStream(filePath).pipe(res);
|
|
42
|
+
});
|
|
43
|
+
server.listen(port, () => {
|
|
44
|
+
const url = `http://localhost:${port}`;
|
|
45
|
+
console.log();
|
|
46
|
+
console.log(` ${chalk.bold("flowdoc")} is running at ${chalk.cyan(url)}`);
|
|
47
|
+
if (opts.watch) {
|
|
48
|
+
console.log(` ${chalk.dim("watching for changes\u2026")}`);
|
|
49
|
+
}
|
|
50
|
+
console.log();
|
|
51
|
+
if (!opts.noOpen) {
|
|
52
|
+
void open(url);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (!opts.watch) return;
|
|
56
|
+
const configPath = opts.config ?? findConfigFile(cwd) ?? "";
|
|
57
|
+
let watchGlob = "src/**/*.ts";
|
|
58
|
+
if (configPath) {
|
|
59
|
+
try {
|
|
60
|
+
const raw = await loadConfig(configPath);
|
|
61
|
+
const config = resolveConfig(raw, cwd);
|
|
62
|
+
const entryDir = resolve(cwd, config.entry).replace(/\/[^/]+$/, "");
|
|
63
|
+
watchGlob = `${entryDir}/**/*.ts`;
|
|
64
|
+
} catch {
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
let rebuilding = false;
|
|
68
|
+
const watcher = chokidar.watch(watchGlob, {
|
|
69
|
+
ignoreInitial: true,
|
|
70
|
+
ignored: ["**/node_modules/**", "**/dist/**", "**/docs-output/**"]
|
|
71
|
+
});
|
|
72
|
+
const rebuild = async (filePath) => {
|
|
73
|
+
if (rebuilding) return;
|
|
74
|
+
rebuilding = true;
|
|
75
|
+
console.log(` ${chalk.dim("\u2192")} ${chalk.yellow(filePath.replace(cwd + "/", ""))} changed \u2014 regenerating\u2026`);
|
|
76
|
+
try {
|
|
77
|
+
await generate({ ...opts, quiet: true });
|
|
78
|
+
console.log(` ${chalk.green("\u2713")} docs updated`);
|
|
79
|
+
} catch (err) {
|
|
80
|
+
console.error(` ${chalk.red("\u2717")} regeneration failed:`, err instanceof Error ? err.message : err);
|
|
81
|
+
} finally {
|
|
82
|
+
rebuilding = false;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
watcher.on("add", rebuild).on("change", rebuild).on("unlink", rebuild);
|
|
86
|
+
process.on("SIGINT", () => {
|
|
87
|
+
void watcher.close();
|
|
88
|
+
server.close();
|
|
89
|
+
process.exit(0);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
serve
|
|
94
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
findConfigFile,
|
|
4
|
+
generate,
|
|
5
|
+
loadConfig,
|
|
6
|
+
resolveConfig
|
|
7
|
+
} from "./chunk-3GGK6LWE.js";
|
|
8
|
+
|
|
9
|
+
// src/serve.ts
|
|
10
|
+
import { createServer } from "http";
|
|
11
|
+
import { createReadStream, existsSync } from "fs";
|
|
12
|
+
import { join, extname, resolve } from "path";
|
|
13
|
+
import chalk from "chalk";
|
|
14
|
+
import open from "open";
|
|
15
|
+
import chokidar from "chokidar";
|
|
16
|
+
var MIME_TYPES = {
|
|
17
|
+
".html": "text/html",
|
|
18
|
+
".js": "application/javascript",
|
|
19
|
+
".css": "text/css",
|
|
20
|
+
".json": "application/json",
|
|
21
|
+
".svg": "image/svg+xml",
|
|
22
|
+
".png": "image/png",
|
|
23
|
+
".ico": "image/x-icon"
|
|
24
|
+
};
|
|
25
|
+
var serve = async (opts = {}) => {
|
|
26
|
+
const cwd = process.cwd();
|
|
27
|
+
const outputDir = opts.output ?? join(cwd, "docs-output");
|
|
28
|
+
const port = opts.port ?? 4e3;
|
|
29
|
+
await generate({ ...opts, quiet: false });
|
|
30
|
+
const server = createServer((req, res) => {
|
|
31
|
+
const url = req.url === "/" || req.url === "" ? "/index.html" : req.url ?? "/index.html";
|
|
32
|
+
const filePath = join(outputDir, url);
|
|
33
|
+
if (!existsSync(filePath)) {
|
|
34
|
+
res.writeHead(404);
|
|
35
|
+
res.end("Not found");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const ext = extname(filePath);
|
|
39
|
+
const contentType = MIME_TYPES[ext] ?? "application/octet-stream";
|
|
40
|
+
res.writeHead(200, { "Content-Type": contentType });
|
|
41
|
+
createReadStream(filePath).pipe(res);
|
|
42
|
+
});
|
|
43
|
+
server.listen(port, () => {
|
|
44
|
+
const url = `http://localhost:${port}`;
|
|
45
|
+
console.log();
|
|
46
|
+
console.log(` ${chalk.bold("flowdoc")} is running at ${chalk.cyan(url)}`);
|
|
47
|
+
if (opts.watch) {
|
|
48
|
+
console.log(` ${chalk.dim("watching for changes\u2026")}`);
|
|
49
|
+
}
|
|
50
|
+
console.log();
|
|
51
|
+
if (!opts.noOpen) {
|
|
52
|
+
void open(url);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (!opts.watch) return;
|
|
56
|
+
const configPath = opts.config ?? findConfigFile(cwd) ?? "";
|
|
57
|
+
let watchGlob = "src/**/*.ts";
|
|
58
|
+
if (configPath) {
|
|
59
|
+
try {
|
|
60
|
+
const raw = await loadConfig(configPath);
|
|
61
|
+
const config = resolveConfig(raw, cwd);
|
|
62
|
+
const entryDir = resolve(cwd, config.entry).replace(/\/[^/]+$/, "");
|
|
63
|
+
watchGlob = `${entryDir}/**/*.ts`;
|
|
64
|
+
} catch {
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
let rebuilding = false;
|
|
68
|
+
const watcher = chokidar.watch(watchGlob, {
|
|
69
|
+
ignoreInitial: true,
|
|
70
|
+
ignored: ["**/node_modules/**", "**/dist/**", "**/docs-output/**"]
|
|
71
|
+
});
|
|
72
|
+
const rebuild = async (filePath) => {
|
|
73
|
+
if (rebuilding) return;
|
|
74
|
+
rebuilding = true;
|
|
75
|
+
console.log(` ${chalk.dim("\u2192")} ${chalk.yellow(filePath.replace(cwd + "/", ""))} changed \u2014 regenerating\u2026`);
|
|
76
|
+
try {
|
|
77
|
+
await generate({ ...opts, quiet: true });
|
|
78
|
+
console.log(` ${chalk.green("\u2713")} docs updated`);
|
|
79
|
+
} catch (err) {
|
|
80
|
+
console.error(` ${chalk.red("\u2717")} regeneration failed:`, err instanceof Error ? err.message : err);
|
|
81
|
+
} finally {
|
|
82
|
+
rebuilding = false;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
watcher.on("add", rebuild).on("change", rebuild).on("unlink", rebuild);
|
|
86
|
+
process.on("SIGINT", () => {
|
|
87
|
+
void watcher.close();
|
|
88
|
+
server.close();
|
|
89
|
+
process.exit(0);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
serve
|
|
94
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "flowdoc-gen",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Auto-generate beautiful API documentation from your Express codebase — no annotations required",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"flowdoc": "dist/bin.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"ui-assets",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "pnpm build:ui && tsup && pnpm copy:assets",
|
|
24
|
+
"build:ui": "pnpm --filter @flowdoc/ui build",
|
|
25
|
+
"copy:assets": "node -e \"const{cpSync,mkdirSync}=require('fs');mkdirSync('ui-assets',{recursive:true});cpSync('../ui/dist/assets','ui-assets',{recursive:true});\"",
|
|
26
|
+
"dev": "tsup --watch",
|
|
27
|
+
"clean": "rm -rf dist ui-assets"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"chalk": "^5.4.1",
|
|
34
|
+
"chokidar": "^4.0.3",
|
|
35
|
+
"commander": "^13.1.0",
|
|
36
|
+
"glob": "^11.0.2",
|
|
37
|
+
"open": "^10.1.2",
|
|
38
|
+
"ora": "^8.2.0",
|
|
39
|
+
"ts-morph": "^24.0.0",
|
|
40
|
+
"zod-to-json-schema": "^3.24.5"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"express": ">=4.0.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependenciesMeta": {
|
|
46
|
+
"express": {
|
|
47
|
+
"optional": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@flowdoc/core": "workspace:*",
|
|
52
|
+
"@flowdoc/parser": "workspace:*",
|
|
53
|
+
"@flowdoc/ui": "workspace:*",
|
|
54
|
+
"@types/express": "^5.0.3",
|
|
55
|
+
"@types/node": "^26.0.1",
|
|
56
|
+
"tsup": "^8.5.0",
|
|
57
|
+
"typescript": "^5.8.3"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"api",
|
|
61
|
+
"documentation",
|
|
62
|
+
"docs",
|
|
63
|
+
"swagger",
|
|
64
|
+
"openapi",
|
|
65
|
+
"express",
|
|
66
|
+
"typescript",
|
|
67
|
+
"zod",
|
|
68
|
+
"auto-generate",
|
|
69
|
+
"cli"
|
|
70
|
+
],
|
|
71
|
+
"author": {
|
|
72
|
+
"name": "Favour Israel Taiwo",
|
|
73
|
+
"email": "princeisrael409@gmail.com",
|
|
74
|
+
"url": "https://fiittech.fun"
|
|
75
|
+
},
|
|
76
|
+
"license": "MIT",
|
|
77
|
+
"repository": {
|
|
78
|
+
"type": "git",
|
|
79
|
+
"url": "git+https://github.com/Izzy4999/flowdoc.git"
|
|
80
|
+
},
|
|
81
|
+
"homepage": "https://github.com/Izzy4999/flowdoc#readme",
|
|
82
|
+
"bugs": {
|
|
83
|
+
"url": "https://github.com/Izzy4999/flowdoc/issues"
|
|
84
|
+
},
|
|
85
|
+
"publishConfig": {
|
|
86
|
+
"access": "public",
|
|
87
|
+
"registry": "https://registry.npmjs.org/"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-12{height:3rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-24{width:6rem}.w-64{width:16rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[42px\]{min-width:42px}.min-w-\[52px\]{min-width:52px}.max-w-3xl{max-width:48rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.resize-y{resize:vertical}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[var\(--brand\)\]{border-color:var(--brand)}.border-red-900\/50{border-color:#7f1d1d80}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.bg-\[var\(--brand\)\]{background-color:var(--brand)}.bg-amber-500\/15{background-color:#f59e0b26}.bg-blue-500\/15{background-color:#3b82f626}.bg-emerald-500\/15{background-color:#10b98126}.bg-orange-500\/15{background-color:#f9731626}.bg-purple-500\/15{background-color:#a855f726}.bg-red-500\/15{background-color:#ef444426}.bg-red-950\/40{background-color:#450a0a66}.bg-slate-500\/15{background-color:#64748b26}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pl-0{padding-left:0}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-\[var\(--brand\)\]{color:var(--brand)}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-amber-500\/20{--tw-ring-color: rgb(245 158 11 / .2)}.ring-blue-500\/20{--tw-ring-color: rgb(59 130 246 / .2)}.ring-emerald-500\/20{--tw-ring-color: rgb(16 185 129 / .2)}.ring-orange-500\/20{--tw-ring-color: rgb(249 115 22 / .2)}.ring-purple-500\/20{--tw-ring-color: rgb(168 85 247 / .2)}.ring-red-500\/20{--tw-ring-color: rgb(239 68 68 / .2)}.ring-slate-500\/20{--tw-ring-color: rgb(100 116 139 / .2)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--brand: #6366f1}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#334155;border-radius:2px}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:bg-slate-800\/50:hover{background-color:#1e293b80}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.hover\:opacity-90:hover{opacity:.9}.focus\:border-\[var\(--brand\)\]:focus{border-color:var(--brand)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:opacity-50:disabled{opacity:.5}
|