refactor: options handling and improve code readability

- Cleaned up import statements in options.ts for better organization.
- Enhanced the init function to load settings with improved formatting.
- Streamlined event listener attachments for buttons and inputs.
- Improved the rendering functions for color and semantic grids.
- Updated the parsePalette function in themeEngine.ts for better error handling and readability.
- Refactored deriveSemanticTheme to enhance clarity and maintainability.
- Adjusted tsconfig.json for better structure and readability.
- Updated vite.config.ts to improve build process and maintain consistency.
This commit is contained in:
2026-03-03 23:11:33 +05:30
parent 6cdc79e345
commit bcb48fd3a6
12 changed files with 2127 additions and 2022 deletions

View File

@@ -1,23 +1,35 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src",
"types": ["chrome"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts"],
"exclude": ["node_modules", "dist"]
}
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": [
"ES2022",
"DOM",
"DOM.Iterable"
],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src",
"types": [
"chrome"
]
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts"
],
"exclude": [
"node_modules",
"dist"
]
}