- 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.
17 lines
421 B
TypeScript
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");
|
|
}
|