Fix code quality violations and exclude Manifest from checks
Document application modes (development/debug/production) Add global file drop handler, order column normalization, SPA hash fix Serve CDN assets via /_vendor/ URLs instead of merging into bundles Add production minification with license preservation Improve JSON formatting for debugging and production optimization Add CDN asset caching with CSS URL inlining for production builds Add three-mode system (development, debug, production) Update Manifest CLAUDE.md to reflect helper class architecture Refactor Manifest.php into helper classes for better organization Pre-manifest-refactor checkpoint: Add app_mode documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
node_modules/postcss-colormin/package.json
generated
vendored
14
node_modules/postcss-colormin/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "postcss-colormin",
|
||||
"version": "5.3.1",
|
||||
"version": "7.0.5",
|
||||
"description": "Minify colors in your CSS files with PostCSS.",
|
||||
"main": "src/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
@@ -27,22 +27,22 @@
|
||||
},
|
||||
"repository": "cssnano/cssnano",
|
||||
"dependencies": {
|
||||
"browserslist": "^4.21.4",
|
||||
"browserslist": "^4.27.0",
|
||||
"caniuse-api": "^3.0.0",
|
||||
"colord": "^2.9.1",
|
||||
"colord": "^2.9.3",
|
||||
"postcss-value-parser": "^4.2.0"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssnano/cssnano/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14.0"
|
||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/caniuse-api": "^3.0.2",
|
||||
"postcss": "^8.2.15"
|
||||
"@types/caniuse-api": "^3.0.6",
|
||||
"postcss": "^8.5.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
"postcss": "^8.4.32"
|
||||
}
|
||||
}
|
||||
42
node_modules/postcss-colormin/src/index.js
generated
vendored
42
node_modules/postcss-colormin/src/index.js
generated
vendored
@@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
const { dirname } = require('path');
|
||||
const browserslist = require('browserslist');
|
||||
const { isSupported } = require('caniuse-api');
|
||||
const valueParser = require('postcss-value-parser');
|
||||
@@ -41,7 +42,7 @@ function isMathFunctionNode(node) {
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {Record<string, boolean>} options
|
||||
* @param {Options} options
|
||||
* @return {string}
|
||||
*/
|
||||
function transform(value, options) {
|
||||
@@ -83,9 +84,9 @@ function transform(value, options) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Record<string, boolean>} options
|
||||
* @param {Options} options
|
||||
* @param {string[]} browsers
|
||||
* @return {Record<string, boolean>}
|
||||
* @return {Options}
|
||||
*/
|
||||
function addPluginDefaults(options, browsers) {
|
||||
const defaults = {
|
||||
@@ -98,22 +99,41 @@ function addPluginDefaults(options, browsers) {
|
||||
};
|
||||
return { ...defaults, ...options };
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Record<string, boolean>>}
|
||||
* @param {Record<string, boolean>} config
|
||||
* @typedef {object} MinifyColorOptions
|
||||
* @property {boolean} [hex]
|
||||
* @property {boolean} [alphaHex]
|
||||
* @property {boolean} [rgb]
|
||||
* @property {boolean} [hsl]
|
||||
* @property {boolean} [name]
|
||||
* @property {boolean} [transparent]
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
||||
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
||||
* @typedef {MinifyColorOptions & AutoprefixerOptions & BrowserslistOptions} Options
|
||||
*/
|
||||
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Options>}
|
||||
* @param {Options} config
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
function pluginCreator(config = {}) {
|
||||
return {
|
||||
postcssPlugin: 'postcss-colormin',
|
||||
|
||||
/**
|
||||
* @param {import('postcss').Result & {opts: BrowserslistOptions & {file?: string}}} result
|
||||
*/
|
||||
prepare(result) {
|
||||
/** @type {typeof result.opts & browserslist.Options} */
|
||||
const resultOptions = result.opts || {};
|
||||
const browsers = browserslist(null, {
|
||||
stats: resultOptions.stats,
|
||||
path: __dirname,
|
||||
env: resultOptions.env,
|
||||
const { stats, env, from, file } = result.opts || {};
|
||||
const browsers = browserslist(config.overrideBrowserslist, {
|
||||
stats: config.stats || stats,
|
||||
path: config.path || dirname(from || file || __filename),
|
||||
env: config.env || env,
|
||||
});
|
||||
|
||||
const cache = new Map();
|
||||
|
||||
2
node_modules/postcss-colormin/src/minifyColor.js
generated
vendored
2
node_modules/postcss-colormin/src/minifyColor.js
generated
vendored
@@ -9,7 +9,7 @@ extend(/** @type {any[]} */ ([namesPlugin, minifierPlugin]));
|
||||
* Performs color value minification
|
||||
*
|
||||
* @param {string} input - CSS value
|
||||
* @param {Record<string, boolean>} options object with colord.minify() options
|
||||
* @param {import('./index.js').MinifyColorOptions} options - object with colord.minify() options
|
||||
* @return {string}
|
||||
*/
|
||||
module.exports = function minifyColor(input, options = {}) {
|
||||
|
||||
38
node_modules/postcss-colormin/types/index.d.ts
generated
vendored
38
node_modules/postcss-colormin/types/index.d.ts
generated
vendored
@@ -1,10 +1,40 @@
|
||||
export = pluginCreator;
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Record<string, boolean>>}
|
||||
* @param {Record<string, boolean>} config
|
||||
* @typedef {object} MinifyColorOptions
|
||||
* @property {boolean} [hex]
|
||||
* @property {boolean} [alphaHex]
|
||||
* @property {boolean} [rgb]
|
||||
* @property {boolean} [hsl]
|
||||
* @property {boolean} [name]
|
||||
* @property {boolean} [transparent]
|
||||
*/
|
||||
/**
|
||||
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
||||
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
||||
* @typedef {MinifyColorOptions & AutoprefixerOptions & BrowserslistOptions} Options
|
||||
*/
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Options>}
|
||||
* @param {Options} config
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
declare function pluginCreator(config?: Record<string, boolean>): import('postcss').Plugin;
|
||||
declare function pluginCreator(config?: Options): import("postcss").Plugin;
|
||||
declare namespace pluginCreator {
|
||||
const postcss: true;
|
||||
export { postcss, MinifyColorOptions, AutoprefixerOptions, BrowserslistOptions, Options };
|
||||
}
|
||||
declare var postcss: true;
|
||||
type MinifyColorOptions = {
|
||||
hex?: boolean | undefined;
|
||||
alphaHex?: boolean | undefined;
|
||||
rgb?: boolean | undefined;
|
||||
hsl?: boolean | undefined;
|
||||
name?: boolean | undefined;
|
||||
transparent?: boolean | undefined;
|
||||
};
|
||||
type AutoprefixerOptions = {
|
||||
overrideBrowserslist?: string | string[];
|
||||
};
|
||||
type BrowserslistOptions = Pick<browserslist.Options, "stats" | "path" | "env">;
|
||||
type Options = MinifyColorOptions & AutoprefixerOptions & BrowserslistOptions;
|
||||
import browserslist = require("browserslist");
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/postcss-colormin/types/index.d.ts.map
generated
vendored
Executable file
1
node_modules/postcss-colormin/types/index.d.ts.map
generated
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAsGA;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH,wCAHW,OAAO,GACN,OAAO,SAAS,EAAE,MAAM,CAsDnC;;;;;;;;;;;;;2BA9DY;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;eACpD,kBAAkB,GAAG,mBAAmB,GAAG,mBAAmB"}
|
||||
3
node_modules/postcss-colormin/types/minifyColor.d.ts
generated
vendored
3
node_modules/postcss-colormin/types/minifyColor.d.ts
generated
vendored
@@ -1,2 +1,3 @@
|
||||
declare function _exports(input: string, options?: Record<string, boolean>): string;
|
||||
declare function _exports(input: string, options?: import("./index.js").MinifyColorOptions): string;
|
||||
export = _exports;
|
||||
//# sourceMappingURL=minifyColor.d.ts.map
|
||||
1
node_modules/postcss-colormin/types/minifyColor.d.ts.map
generated
vendored
Executable file
1
node_modules/postcss-colormin/types/minifyColor.d.ts.map
generated
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"minifyColor.d.ts","sourceRoot":"","sources":["../src/minifyColor.js"],"names":[],"mappings":"AAciB,iCAJN,MAAM,YACN,OAAO,YAAY,EAAE,kBAAkB,GACtC,MAAM,CAejB"}
|
||||
Reference in New Issue
Block a user