Skip to content

Commit 219e182

Browse files
committed
refactor(core): cleanup unused code and improve type safety
Refactor the codebase to remove obsolete logic, improve TypeScript strictness, and clean up configuration. - Remove unused `createSettingsFromTemplate` and `compareVersions` functions - Remove unused `MIMO_TOKEN_REGIONS` import - Remove deprecated `baseUrl` from `tsconfig.json` - Add explicit type annotations to CLI choices and Ink component callbacks - Improve null safety in `changelog.ts` parser and `AddInstance` wizard - Add global declarations for `Bun` and `Deno` in runtime utilities - Simplify plugin modification logic in `ManagePlugins` screen
1 parent e0cfce8 commit 219e182

11 files changed

Lines changed: 52 additions & 726 deletions

File tree

scripts/capture-screens.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ const screens: Record<string, React.ReactElement> = {
334334
};
335335

336336
// 256-color palette (Catppuccin Mocha theme)
337-
const COLOR_256: string[] = new Array(256);
337+
const COLOR_256: string[] = Array.from({ length: 256 });
338338
const palette16 = [
339339
"#555","#e06c75","#98c379","#e5c07b","#61afef","#c678dd","#56b6c2","#abb2bf",
340340
"#636d83","#e06c75","#98c379","#e5c07b","#61afef","#c678dd","#56b6c2","#cdd6f4",

0 commit comments

Comments
 (0)