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:
root
2026-01-14 10:38:22 +00:00
parent bb9046af1b
commit d523f0f600
2355 changed files with 231384 additions and 32223 deletions

View File

@@ -1,9 +0,0 @@
var DISALLOW_OF_CLAUSE = false;
module.exports = {
parse: function nth() {
return this.createSingleNodeList(
this.Nth(DISALLOW_OF_CLAUSE)
);
}
};

View File

@@ -1,9 +0,0 @@
var ALLOW_OF_CLAUSE = true;
module.exports = {
parse: function nthWithOfClause() {
return this.createSingleNodeList(
this.Nth(ALLOW_OF_CLAUSE)
);
}
};

View File

@@ -1,7 +0,0 @@
module.exports = {
parse: function selectorList() {
return this.createSingleNodeList(
this.SelectorList()
);
}
};

View File

@@ -1,7 +0,0 @@
module.exports = {
parse: function() {
return this.createSingleNodeList(
this.Identifier()
);
}
};

View File

@@ -1,7 +0,0 @@
module.exports = {
parse: function() {
return this.createSingleNodeList(
this.SelectorList()
);
}
};

View File

@@ -1,12 +1,56 @@
module.exports = {
'dir': require('./dir'),
'has': require('./has'),
'lang': require('./lang'),
'matches': require('./matches'),
'not': require('./not'),
'nth-child': require('./nth-child'),
'nth-last-child': require('./nth-last-child'),
'nth-last-of-type': require('./nth-last-of-type'),
'nth-of-type': require('./nth-of-type'),
'slotted': require('./slotted')
import { parseLanguageRangeList } from './lang.js';
const selectorList = {
parse() {
return this.createSingleNodeList(
this.SelectorList()
);
}
};
const selector = {
parse() {
return this.createSingleNodeList(
this.Selector()
);
}
};
const identList = {
parse() {
return this.createSingleNodeList(
this.Identifier()
);
}
};
const langList = {
parse: parseLanguageRangeList
};
const nth = {
parse() {
return this.createSingleNodeList(
this.Nth()
);
}
};
export default {
'dir': identList,
'has': selectorList,
'lang': langList,
'matches': selectorList,
'is': selectorList,
'-moz-any': selectorList,
'-webkit-any': selectorList,
'where': selectorList,
'not': selectorList,
'nth-child': nth,
'nth-last-child': nth,
'nth-last-of-type': nth,
'nth-of-type': nth,
'slotted': selector,
'host': selector,
'host-context': selector
};

View File

@@ -1,7 +1,33 @@
module.exports = {
parse: function() {
return this.createSingleNodeList(
this.Identifier()
);
import { Comma, String as StringToken, Ident, RightParenthesis } from '../../tokenizer/index.js';
export function parseLanguageRangeList() {
const children = this.createList();
this.skipSC();
loop: while (!this.eof) {
switch (this.tokenType) {
case Ident:
children.push(this.Identifier());
break;
case StringToken:
children.push(this.String());
break;
case Comma:
children.push(this.Operator());
break;
case RightParenthesis:
break loop;
default:
this.error('Identifier, string or comma is expected');
}
this.skipSC();
}
};
return children;
}

View File

@@ -1 +0,0 @@
module.exports = require('./common/selectorList');

View File

@@ -1 +0,0 @@
module.exports = require('./common/selectorList');

View File

@@ -1 +0,0 @@
module.exports = require('./common/nthWithOfClause');

View File

@@ -1 +0,0 @@
module.exports = require('./common/nthWithOfClause');

View File

@@ -1 +0,0 @@
module.exports = require('./common/nth');

View File

@@ -1 +0,0 @@
module.exports = require('./common/nth');

View File

@@ -1,7 +0,0 @@
module.exports = {
parse: function compoundSelector() {
return this.createSingleNodeList(
this.Selector()
);
}
};