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:
86
node_modules/css-tree/lib/utils/names.js
generated
vendored
86
node_modules/css-tree/lib/utils/names.js
generated
vendored
@@ -1,9 +1,11 @@
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
var keywords = Object.create(null);
|
||||
var properties = Object.create(null);
|
||||
var HYPHENMINUS = 45; // '-'.charCodeAt()
|
||||
const keywords = new Map();
|
||||
const properties = new Map();
|
||||
const HYPHENMINUS = 45; // '-'.charCodeAt()
|
||||
|
||||
function isCustomProperty(str, offset) {
|
||||
export const keyword = getKeywordDescriptor;
|
||||
export const property = getPropertyDescriptor;
|
||||
export const vendorPrefix = getVendorPrefix;
|
||||
export function isCustomProperty(str, offset) {
|
||||
offset = offset || 0;
|
||||
|
||||
return str.length - offset >= 2 &&
|
||||
@@ -20,7 +22,7 @@ function getVendorPrefix(str, offset) {
|
||||
if (str.charCodeAt(offset) === HYPHENMINUS &&
|
||||
str.charCodeAt(offset + 1) !== HYPHENMINUS) {
|
||||
// vendor prefix should contain a hyper minus at the ending
|
||||
var secondDashIndex = str.indexOf('-', offset + 2);
|
||||
const secondDashIndex = str.indexOf('-', offset + 2);
|
||||
|
||||
if (secondDashIndex !== -1) {
|
||||
return str.substring(offset, secondDashIndex + 1);
|
||||
@@ -32,35 +34,37 @@ function getVendorPrefix(str, offset) {
|
||||
}
|
||||
|
||||
function getKeywordDescriptor(keyword) {
|
||||
if (hasOwnProperty.call(keywords, keyword)) {
|
||||
return keywords[keyword];
|
||||
if (keywords.has(keyword)) {
|
||||
return keywords.get(keyword);
|
||||
}
|
||||
|
||||
var name = keyword.toLowerCase();
|
||||
const name = keyword.toLowerCase();
|
||||
let descriptor = keywords.get(name);
|
||||
|
||||
if (hasOwnProperty.call(keywords, name)) {
|
||||
return keywords[keyword] = keywords[name];
|
||||
if (descriptor === undefined) {
|
||||
const custom = isCustomProperty(name, 0);
|
||||
const vendor = !custom ? getVendorPrefix(name, 0) : '';
|
||||
descriptor = Object.freeze({
|
||||
basename: name.substr(vendor.length),
|
||||
name,
|
||||
prefix: vendor,
|
||||
vendor,
|
||||
custom
|
||||
});
|
||||
}
|
||||
|
||||
var custom = isCustomProperty(name, 0);
|
||||
var vendor = !custom ? getVendorPrefix(name, 0) : '';
|
||||
keywords.set(keyword, descriptor);
|
||||
|
||||
return keywords[keyword] = Object.freeze({
|
||||
basename: name.substr(vendor.length),
|
||||
name: name,
|
||||
vendor: vendor,
|
||||
prefix: vendor,
|
||||
custom: custom
|
||||
});
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
function getPropertyDescriptor(property) {
|
||||
if (hasOwnProperty.call(properties, property)) {
|
||||
return properties[property];
|
||||
if (properties.has(property)) {
|
||||
return properties.get(property);
|
||||
}
|
||||
|
||||
var name = property;
|
||||
var hack = property[0];
|
||||
let name = property;
|
||||
let hack = property[0];
|
||||
|
||||
if (hack === '/') {
|
||||
hack = property[1] === '/' ? '//' : '/';
|
||||
@@ -73,32 +77,30 @@ function getPropertyDescriptor(property) {
|
||||
hack = '';
|
||||
}
|
||||
|
||||
var custom = isCustomProperty(name, hack.length);
|
||||
const custom = isCustomProperty(name, hack.length);
|
||||
|
||||
// re-use result when possible (the same as for lower case)
|
||||
if (!custom) {
|
||||
name = name.toLowerCase();
|
||||
if (hasOwnProperty.call(properties, name)) {
|
||||
return properties[property] = properties[name];
|
||||
if (properties.has(name)) {
|
||||
const descriptor = properties.get(name);
|
||||
properties.set(property, descriptor);
|
||||
return descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
var vendor = !custom ? getVendorPrefix(name, hack.length) : '';
|
||||
var prefix = name.substr(0, hack.length + vendor.length);
|
||||
|
||||
return properties[property] = Object.freeze({
|
||||
const vendor = !custom ? getVendorPrefix(name, hack.length) : '';
|
||||
const prefix = name.substr(0, hack.length + vendor.length);
|
||||
const descriptor = Object.freeze({
|
||||
basename: name.substr(prefix.length),
|
||||
name: name.substr(hack.length),
|
||||
hack: hack,
|
||||
vendor: vendor,
|
||||
prefix: prefix,
|
||||
custom: custom
|
||||
hack,
|
||||
vendor,
|
||||
prefix,
|
||||
custom
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
keyword: getKeywordDescriptor,
|
||||
property: getPropertyDescriptor,
|
||||
isCustomProperty: isCustomProperty,
|
||||
vendorPrefix: getVendorPrefix
|
||||
};
|
||||
properties.set(property, descriptor);
|
||||
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user