DESCracker/src/ui/stylesheet.ts
Tom Butcher 8f2d3a2489 Add initial project structure for DES Key Cracker
- Created .gitignore to exclude build artifacts and dependencies.
- Added package.json and package-lock.json for project dependencies and scripts.
- Included pnpm workspace configuration for managing packages.
- Implemented TypeScript configuration in tsconfig.json.
- Added README.md with project description and usage instructions.
- Introduced native code for DES encryption and decryption in C/C++.
- Created initial decoded data structure for handling scan results.
- Established basic file structure for decoded outputs and native builds.
2026-09-19 16:10:35 +01:00

17 lines
421 B
TypeScript

import fs from "fs";
import path from "path";
import { projectRoot } from "../paths";
export function loadAppStylesheet(): string {
const candidates = [
path.join(__dirname, "app.css"),
path.join(projectRoot(), "src", "ui", "app.css"),
];
for (const file of candidates) {
if (fs.existsSync(file)) {
return fs.readFileSync(file, "utf8");
}
}
throw new Error("src/ui/app.css not found");
}