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-reduce-initial/package.json
generated
vendored
14
node_modules/postcss-reduce-initial/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "postcss-reduce-initial",
|
||||
"version": "5.1.2",
|
||||
"version": "7.0.5",
|
||||
"description": "Reduce initial definitions to the actual initial value, where possible.",
|
||||
"main": "src/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
@@ -23,22 +23,22 @@
|
||||
},
|
||||
"repository": "cssnano/cssnano",
|
||||
"dependencies": {
|
||||
"browserslist": "^4.21.4",
|
||||
"browserslist": "^4.27.0",
|
||||
"caniuse-api": "^3.0.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",
|
||||
"html-to-text": "^8.2.0",
|
||||
"postcss": "^8.2.15"
|
||||
"@types/caniuse-api": "^3.0.6",
|
||||
"html-to-text": "^9.0.5",
|
||||
"postcss": "^8.5.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
"postcss": "^8.4.32"
|
||||
},
|
||||
"scripts": {
|
||||
"acquire": "node ./src/script/acquire.mjs"
|
||||
|
||||
40
node_modules/postcss-reduce-initial/src/data/fromInitial.json
generated
vendored
40
node_modules/postcss-reduce-initial/src/data/fromInitial.json
generated
vendored
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"-webkit-line-clamp": "none",
|
||||
"accent-color": "auto",
|
||||
"align-content": "normal",
|
||||
"align-items": "normal",
|
||||
@@ -11,6 +10,8 @@
|
||||
"animation-fill-mode": "none",
|
||||
"animation-iteration-count": "1",
|
||||
"animation-name": "none",
|
||||
"animation-range-end": "normal",
|
||||
"animation-range-start": "normal",
|
||||
"animation-timing-function": "ease",
|
||||
"animation-timeline": "auto",
|
||||
"appearance": "none",
|
||||
@@ -24,7 +25,6 @@
|
||||
"background-position-x": "0%",
|
||||
"background-position-y": "0%",
|
||||
"background-repeat": "repeat",
|
||||
"block-overflow": "clip",
|
||||
"block-size": "auto",
|
||||
"border-block-style": "none",
|
||||
"border-block-width": "medium",
|
||||
@@ -83,6 +83,8 @@
|
||||
"contain-intrinsic-height": "none",
|
||||
"contain-intrinsic-inline-size": "none",
|
||||
"contain-intrinsic-width": "none",
|
||||
"container-name": "none",
|
||||
"container-type": "normal",
|
||||
"content": "normal",
|
||||
"counter-increment": "none",
|
||||
"counter-reset": "none",
|
||||
@@ -101,15 +103,21 @@
|
||||
"font-kerning": "auto",
|
||||
"font-language-override": "normal",
|
||||
"font-optical-sizing": "auto",
|
||||
"font-palette": "normal",
|
||||
"font-variation-settings": "normal",
|
||||
"font-size": "medium",
|
||||
"font-size-adjust": "none",
|
||||
"font-stretch": "normal",
|
||||
"font-style": "normal",
|
||||
"font-synthesis-position": "none",
|
||||
"font-synthesis-small-caps": "auto",
|
||||
"font-synthesis-style": "auto",
|
||||
"font-synthesis-weight": "auto",
|
||||
"font-variant": "normal",
|
||||
"font-variant-alternates": "normal",
|
||||
"font-variant-caps": "normal",
|
||||
"font-variant-east-asian": "normal",
|
||||
"font-variant-emoji": "normal",
|
||||
"font-variant-ligatures": "normal",
|
||||
"font-variant-numeric": "normal",
|
||||
"font-variant-position": "normal",
|
||||
@@ -130,6 +138,7 @@
|
||||
"hanging-punctuation": "none",
|
||||
"height": "auto",
|
||||
"hyphenate-character": "auto",
|
||||
"hyphenate-limit-chars": "auto",
|
||||
"hyphens": "manual",
|
||||
"image-rendering": "auto",
|
||||
"image-resolution": "1dppx",
|
||||
@@ -138,11 +147,8 @@
|
||||
"initial-letter-align": "auto",
|
||||
"inline-size": "auto",
|
||||
"input-security": "auto",
|
||||
"inset": "auto",
|
||||
"inset-block": "auto",
|
||||
"inset-block-end": "auto",
|
||||
"inset-block-start": "auto",
|
||||
"inset-inline": "auto",
|
||||
"inset-inline-end": "auto",
|
||||
"inset-inline-start": "auto",
|
||||
"isolation": "auto",
|
||||
@@ -158,11 +164,9 @@
|
||||
"line-height-step": "0",
|
||||
"list-style-image": "none",
|
||||
"list-style-type": "disc",
|
||||
"margin-block": "0",
|
||||
"margin-block-end": "0",
|
||||
"margin-block-start": "0",
|
||||
"margin-bottom": "0",
|
||||
"margin-inline": "0",
|
||||
"margin-inline-end": "0",
|
||||
"margin-inline-start": "0",
|
||||
"margin-left": "0",
|
||||
@@ -176,7 +180,7 @@
|
||||
"mask-border-width": "auto",
|
||||
"mask-composite": "add",
|
||||
"mask-image": "none",
|
||||
"mask-position": "center",
|
||||
"mask-position": "0% 0%",
|
||||
"mask-repeat": "repeat",
|
||||
"mask-size": "auto",
|
||||
"masonry-auto-flow": "pack",
|
||||
@@ -197,7 +201,7 @@
|
||||
"offset-anchor": "auto",
|
||||
"offset-distance": "0",
|
||||
"offset-path": "none",
|
||||
"offset-position": "auto",
|
||||
"offset-position": "normal",
|
||||
"offset-rotate": "auto",
|
||||
"opacity": "1",
|
||||
"order": "0",
|
||||
@@ -210,27 +214,26 @@
|
||||
"overflow-clip-margin": "0px",
|
||||
"overflow-inline": "auto",
|
||||
"overflow-wrap": "normal",
|
||||
"overlay": "none",
|
||||
"overscroll-behavior": "auto",
|
||||
"overscroll-behavior-block": "auto",
|
||||
"overscroll-behavior-inline": "auto",
|
||||
"overscroll-behavior-x": "auto",
|
||||
"overscroll-behavior-y": "auto",
|
||||
"padding-block": "0",
|
||||
"padding-block-end": "0",
|
||||
"padding-block-start": "0",
|
||||
"padding-bottom": "0",
|
||||
"padding-inline": "0",
|
||||
"padding-inline-end": "0",
|
||||
"padding-inline-start": "0",
|
||||
"padding-left": "0",
|
||||
"padding-right": "0",
|
||||
"padding-top": "0",
|
||||
"page": "auto",
|
||||
"page-break-after": "auto",
|
||||
"page-break-before": "auto",
|
||||
"page-break-inside": "auto",
|
||||
"paint-order": "normal",
|
||||
"perspective": "none",
|
||||
"place-content": "normal",
|
||||
"pointer-events": "auto",
|
||||
"position": "static",
|
||||
"resize": "none",
|
||||
@@ -242,23 +245,17 @@
|
||||
"scrollbar-gutter": "auto",
|
||||
"scrollbar-width": "auto",
|
||||
"scroll-behavior": "auto",
|
||||
"scroll-margin": "0",
|
||||
"scroll-margin-block": "0",
|
||||
"scroll-margin-block-start": "0",
|
||||
"scroll-margin-block-end": "0",
|
||||
"scroll-margin-bottom": "0",
|
||||
"scroll-margin-inline": "0",
|
||||
"scroll-margin-inline-start": "0",
|
||||
"scroll-margin-inline-end": "0",
|
||||
"scroll-margin-left": "0",
|
||||
"scroll-margin-right": "0",
|
||||
"scroll-margin-top": "0",
|
||||
"scroll-padding": "auto",
|
||||
"scroll-padding-block": "auto",
|
||||
"scroll-padding-block-start": "auto",
|
||||
"scroll-padding-block-end": "auto",
|
||||
"scroll-padding-bottom": "auto",
|
||||
"scroll-padding-inline": "auto",
|
||||
"scroll-padding-inline-start": "auto",
|
||||
"scroll-padding-inline-end": "auto",
|
||||
"scroll-padding-left": "auto",
|
||||
@@ -295,10 +292,13 @@
|
||||
"text-transform": "none",
|
||||
"text-underline-offset": "auto",
|
||||
"text-underline-position": "auto",
|
||||
"text-wrap": "wrap",
|
||||
"timeline-scope": "none",
|
||||
"top": "auto",
|
||||
"touch-action": "auto",
|
||||
"transform": "none",
|
||||
"transform-style": "flat",
|
||||
"transition-behavior": "normal",
|
||||
"transition-delay": "0s",
|
||||
"transition-duration": "0s",
|
||||
"transition-property": "all",
|
||||
@@ -306,6 +306,10 @@
|
||||
"translate": "none",
|
||||
"unicode-bidi": "normal",
|
||||
"user-select": "auto",
|
||||
"view-timeline-axis": "block",
|
||||
"view-timeline-inset": "auto",
|
||||
"view-timeline-name": "none",
|
||||
"view-transition-name": "none",
|
||||
"white-space": "normal",
|
||||
"widows": "2",
|
||||
"width": "auto",
|
||||
|
||||
3
node_modules/postcss-reduce-initial/src/data/toInitial.json
generated
vendored
3
node_modules/postcss-reduce-initial/src/data/toInitial.json
generated
vendored
@@ -17,7 +17,7 @@
|
||||
"box-sizing": "content-box",
|
||||
"color": "canvastext",
|
||||
"column-rule-color": "currentcolor",
|
||||
"font-synthesis": "weight style",
|
||||
"font-synthesis": "weight style small-caps position",
|
||||
"image-orientation": "from-image",
|
||||
"mask-clip": "border-box",
|
||||
"mask-mode": "match-source",
|
||||
@@ -32,5 +32,6 @@
|
||||
"transform-box": "view-box",
|
||||
"transform-origin": "50% 50% 0",
|
||||
"vertical-align": "baseline",
|
||||
"white-space-collapse": "collapse",
|
||||
"writing-mode": "horizontal-tb"
|
||||
}
|
||||
|
||||
32
node_modules/postcss-reduce-initial/src/index.js
generated
vendored
32
node_modules/postcss-reduce-initial/src/index.js
generated
vendored
@@ -1,28 +1,40 @@
|
||||
'use strict';
|
||||
const { dirname } = require('path');
|
||||
const browserslist = require('browserslist');
|
||||
const { isSupported } = require('caniuse-api');
|
||||
const fromInitial = require('./data/fromInitial.json');
|
||||
const toInitial = require('./data/toInitial.json');
|
||||
const ignoreProps = require('./lib/ignoreProps.js');
|
||||
|
||||
const initial = 'initial';
|
||||
|
||||
// In most of the browser including chrome the initial for `writing-mode` is not `horizontal-tb`. Ref https://github.com/cssnano/cssnano/pull/905
|
||||
const defaultIgnoreProps = ['writing-mode', 'transform-box'];
|
||||
const defaultIgnoreProps = ignoreProps;
|
||||
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<void>}
|
||||
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
||||
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
||||
* @typedef {{ignore?: string[]} & AutoprefixerOptions & BrowserslistOptions} Options
|
||||
*/
|
||||
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Options>}
|
||||
* @param {Options} options
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
function pluginCreator() {
|
||||
function pluginCreator(options = {}) {
|
||||
return {
|
||||
postcssPlugin: 'postcss-reduce-initial',
|
||||
/** @param {import('postcss').Result & {opts: browserslist.Options & {ignore?: string[]}}} result */
|
||||
|
||||
/**
|
||||
* @param {import('postcss').Result & {opts: BrowserslistOptions & {file?: string}}} result
|
||||
*/
|
||||
prepare(result) {
|
||||
const resultOpts = result.opts || {};
|
||||
const browsers = browserslist(null, {
|
||||
stats: resultOpts.stats,
|
||||
path: __dirname,
|
||||
env: resultOpts.env,
|
||||
const { stats, env, from, file } = result.opts || {};
|
||||
const browsers = browserslist(options.overrideBrowserslist, {
|
||||
stats: options.stats || stats,
|
||||
path: options.path || dirname(from || file || __filename),
|
||||
env: options.env || env,
|
||||
});
|
||||
|
||||
const initialSupport = isSupported('css-initial-value', browsers);
|
||||
@@ -31,7 +43,7 @@ function pluginCreator() {
|
||||
css.walkDecls((decl) => {
|
||||
const lowerCasedProp = decl.prop.toLowerCase();
|
||||
const ignoreProp = new Set(
|
||||
defaultIgnoreProps.concat(resultOpts.ignore || [])
|
||||
defaultIgnoreProps.concat(options.ignore || [])
|
||||
);
|
||||
|
||||
if (ignoreProp.has(lowerCasedProp)) {
|
||||
|
||||
2
node_modules/postcss-reduce-initial/src/lib/ignoreProps.js
generated
vendored
Executable file
2
node_modules/postcss-reduce-initial/src/lib/ignoreProps.js
generated
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
'use strict';
|
||||
module.exports = ['writing-mode', 'transform-box'];
|
||||
22
node_modules/postcss-reduce-initial/types/index.d.ts
generated
vendored
22
node_modules/postcss-reduce-initial/types/index.d.ts
generated
vendored
@@ -1,9 +1,25 @@
|
||||
export = pluginCreator;
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<void>}
|
||||
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
||||
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
||||
* @typedef {{ignore?: string[]} & AutoprefixerOptions & BrowserslistOptions} Options
|
||||
*/
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Options>}
|
||||
* @param {Options} options
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
declare function pluginCreator(): import('postcss').Plugin;
|
||||
declare function pluginCreator(options?: Options): import("postcss").Plugin;
|
||||
declare namespace pluginCreator {
|
||||
const postcss: true;
|
||||
export { postcss, AutoprefixerOptions, BrowserslistOptions, Options };
|
||||
}
|
||||
declare var postcss: true;
|
||||
type AutoprefixerOptions = {
|
||||
overrideBrowserslist?: string | string[];
|
||||
};
|
||||
type BrowserslistOptions = Pick<browserslist.Options, "stats" | "path" | "env">;
|
||||
type Options = {
|
||||
ignore?: string[];
|
||||
} & AutoprefixerOptions & BrowserslistOptions;
|
||||
import browserslist = require("browserslist");
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/postcss-reduce-initial/types/index.d.ts.map
generated
vendored
Normal file
1
node_modules/postcss-reduce-initial/types/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAaA;;;;GAIG;AAEH;;;;GAIG;AACH,yCAHW,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;IAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAC,GAAG,mBAAmB,GAAG,mBAAmB"}
|
||||
3
node_modules/postcss-reduce-initial/types/lib/ignoreProps.d.ts
generated
vendored
Normal file
3
node_modules/postcss-reduce-initial/types/lib/ignoreProps.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const _exports: string[];
|
||||
export = _exports;
|
||||
//# sourceMappingURL=ignoreProps.d.ts.map
|
||||
1
node_modules/postcss-reduce-initial/types/lib/ignoreProps.d.ts.map
generated
vendored
Normal file
1
node_modules/postcss-reduce-initial/types/lib/ignoreProps.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ignoreProps.d.ts","sourceRoot":"","sources":["../../src/lib/ignoreProps.js"],"names":[],"mappings":""}
|
||||
Reference in New Issue
Block a user