Enhance refactor commands with controller-aware Route() updates and fix code quality violations
Add semantic token highlighting for 'that' variable and comment file references in VS Code extension Add Phone_Text_Input and Currency_Input components with formatting utilities Implement client widgets, form standardization, and soft delete functionality Add modal scroll lock and update documentation Implement comprehensive modal system with form integration and validation Fix modal component instantiation using jQuery plugin API Implement modal system with responsive sizing, queuing, and validation support Implement form submission with validation, error handling, and loading states Implement country/state selectors with dynamic data loading and Bootstrap styling Revert Rsx::Route() highlighting in Blade/PHP files Target specific PHP scopes for Rsx::Route() highlighting in Blade Expand injection selector for Rsx::Route() highlighting Add custom syntax highlighting for Rsx::Route() and Rsx.Route() calls Update jqhtml packages to v2.2.165 Add bundle path validation for common mistakes (development mode only) Create Ajax_Select_Input widget and Rsx_Reference_Data controller Create Country_Select_Input widget with default country support Initialize Tom Select on Select_Input widgets Add Tom Select bundle for enhanced select dropdowns Implement ISO 3166 geographic data system for country/region selection Implement widget-based form system with disabled state support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
59
node_modules/webpack/lib/asset/AssetGenerator.js
generated
vendored
59
node_modules/webpack/lib/asset/AssetGenerator.js
generated
vendored
@@ -6,7 +6,6 @@
|
||||
"use strict";
|
||||
|
||||
const path = require("path");
|
||||
const mimeTypes = require("mime-types");
|
||||
const { RawSource } = require("webpack-sources");
|
||||
const ConcatenationScope = require("../ConcatenationScope");
|
||||
const Generator = require("../Generator");
|
||||
@@ -25,41 +24,38 @@ const RuntimeGlobals = require("../RuntimeGlobals");
|
||||
const CssUrlDependency = require("../dependencies/CssUrlDependency");
|
||||
const createHash = require("../util/createHash");
|
||||
const { makePathsRelative } = require("../util/identifier");
|
||||
const memoize = require("../util/memoize");
|
||||
const nonNumericOnlyHash = require("../util/nonNumericOnlyHash");
|
||||
|
||||
const getMimeTypes = memoize(() => require("mime-types"));
|
||||
|
||||
/** @typedef {import("webpack-sources").Source} Source */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").AssetGeneratorDataUrlOptions} AssetGeneratorDataUrlOptions */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").AssetGeneratorOptions} AssetGeneratorOptions */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").AssetModuleFilename} AssetModuleFilename */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").AssetModuleOutputPath} AssetModuleOutputPath */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").AssetResourceGeneratorOptions} AssetResourceGeneratorOptions */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").HashFunction} HashFunction */
|
||||
/** @typedef {import("../../declarations/WebpackOptions").RawPublicPath} RawPublicPath */
|
||||
/** @typedef {import("../ChunkGraph")} ChunkGraph */
|
||||
/** @typedef {import("../Compilation")} Compilation */
|
||||
/** @typedef {import("../Compilation").AssetInfo} AssetInfo */
|
||||
/** @typedef {import("../Compilation").InterpolatedPathAndAssetInfo} InterpolatedPathAndAssetInfo */
|
||||
/** @typedef {import("../Compiler")} Compiler */
|
||||
/** @typedef {import("../Generator").GenerateContext} GenerateContext */
|
||||
/** @typedef {import("../Generator").UpdateHashContext} UpdateHashContext */
|
||||
/** @typedef {import("../Module")} Module */
|
||||
/** @typedef {import("../Module").NameForCondition} NameForCondition */
|
||||
/** @typedef {import("../Module").BuildInfo} BuildInfo */
|
||||
/** @typedef {import("../Module").BuildMeta} BuildMeta */
|
||||
/** @typedef {import("../Module").ConcatenationBailoutReasonContext} ConcatenationBailoutReasonContext */
|
||||
/** @typedef {import("../Module").SourceTypes} SourceTypes */
|
||||
/** @typedef {import("../ModuleGraph")} ModuleGraph */
|
||||
/** @typedef {import("../NormalModule")} NormalModule */
|
||||
/** @typedef {import("../RuntimeTemplate")} RuntimeTemplate */
|
||||
/** @typedef {import("../TemplatedPathPlugin").TemplatePath} TemplatePath */
|
||||
/** @typedef {import("../util/Hash")} Hash */
|
||||
/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @template U
|
||||
* @param {null | string | Array<T> | Set<T> | undefined} a a
|
||||
* @param {null | string | Array<U> | Set<U> | undefined} b b
|
||||
* @returns {Array<T> & Array<U>} array
|
||||
* @param {null | string | T[] | Set<T> | undefined} a a
|
||||
* @param {null | string | U[] | Set<U> | undefined} b b
|
||||
* @returns {T[] & U[]} array
|
||||
*/
|
||||
const mergeMaybeArrays = (a, b) => {
|
||||
const set = new Set();
|
||||
@@ -220,7 +216,8 @@ class AssetGenerator extends Generator {
|
||||
static getSourceFileName(module, runtimeTemplate) {
|
||||
return makePathsRelative(
|
||||
runtimeTemplate.compilation.compiler.context,
|
||||
module.matchResource || module.resource,
|
||||
/** @type {string} */
|
||||
(module.getResource()),
|
||||
runtimeTemplate.compilation.compiler.root
|
||||
).replace(/^\.\//, "");
|
||||
}
|
||||
@@ -231,10 +228,7 @@ class AssetGenerator extends Generator {
|
||||
* @returns {[string, string]} return full hash and non-numeric full hash
|
||||
*/
|
||||
static getFullContentHash(module, runtimeTemplate) {
|
||||
const hash = createHash(
|
||||
/** @type {HashFunction} */
|
||||
(runtimeTemplate.outputOptions.hashFunction)
|
||||
);
|
||||
const hash = createHash(runtimeTemplate.outputOptions.hashFunction);
|
||||
|
||||
if (runtimeTemplate.outputOptions.hashSalt) {
|
||||
hash.update(runtimeTemplate.outputOptions.hashSalt);
|
||||
@@ -250,15 +244,13 @@ class AssetGenerator extends Generator {
|
||||
hash.update(module.error.toString());
|
||||
}
|
||||
|
||||
const fullContentHash = /** @type {string} */ (
|
||||
hash.digest(runtimeTemplate.outputOptions.hashDigest)
|
||||
const fullContentHash = hash.digest(
|
||||
runtimeTemplate.outputOptions.hashDigest
|
||||
);
|
||||
|
||||
/** @type {string} */
|
||||
const contentHash = nonNumericOnlyHash(
|
||||
fullContentHash,
|
||||
/** @type {number} */
|
||||
(runtimeTemplate.outputOptions.hashDigestLength)
|
||||
runtimeTemplate.outputOptions.hashDigestLength
|
||||
);
|
||||
|
||||
return [fullContentHash, contentHash];
|
||||
@@ -279,8 +271,7 @@ class AssetGenerator extends Generator {
|
||||
) {
|
||||
const assetModuleFilename =
|
||||
generatorOptions.filename ||
|
||||
/** @type {AssetModuleFilename} */
|
||||
(runtimeTemplate.outputOptions.assetModuleFilename);
|
||||
runtimeTemplate.outputOptions.assetModuleFilename;
|
||||
|
||||
const sourceFilename = AssetGenerator.getSourceFileName(
|
||||
module,
|
||||
@@ -381,13 +372,9 @@ class AssetGenerator extends Generator {
|
||||
const path =
|
||||
compilation.outputOptions.publicPath === "auto"
|
||||
? CssUrlDependency.PUBLIC_PATH_AUTO
|
||||
: compilation.getAssetPath(
|
||||
/** @type {TemplatePath} */
|
||||
(compilation.outputOptions.publicPath),
|
||||
{
|
||||
hash: compilation.hash
|
||||
}
|
||||
);
|
||||
: compilation.getAssetPath(compilation.outputOptions.publicPath, {
|
||||
hash: compilation.hash
|
||||
});
|
||||
|
||||
assetPath = path + filename;
|
||||
}
|
||||
@@ -425,7 +412,7 @@ class AssetGenerator extends Generator {
|
||||
(this.dataUrlOptions).mimetype;
|
||||
if (mimeType === undefined) {
|
||||
const ext = path.extname(
|
||||
/** @type {string} */
|
||||
/** @type {NameForCondition} */
|
||||
(module.nameForCondition())
|
||||
);
|
||||
if (
|
||||
@@ -436,7 +423,7 @@ class AssetGenerator extends Generator {
|
||||
module.resourceResolveData.mimetype +
|
||||
module.resourceResolveData.parameters;
|
||||
} else if (ext) {
|
||||
mimeType = mimeTypes.lookup(ext);
|
||||
mimeType = getMimeTypes().lookup(ext);
|
||||
|
||||
if (typeof mimeType !== "string") {
|
||||
throw new Error(
|
||||
@@ -471,7 +458,7 @@ class AssetGenerator extends Generator {
|
||||
|
||||
if (typeof this.dataUrlOptions === "function") {
|
||||
encodedSource = this.dataUrlOptions.call(null, source.source(), {
|
||||
filename: module.matchResource || module.resource,
|
||||
filename: /** @type {string} */ (module.getResource()),
|
||||
module
|
||||
});
|
||||
} else {
|
||||
@@ -619,7 +606,7 @@ class AssetGenerator extends Generator {
|
||||
);
|
||||
|
||||
return new RawSource(
|
||||
`${runtimeTemplate.supportsConst() ? "const" : "var"} ${
|
||||
`${runtimeTemplate.renderConst()} ${
|
||||
ConcatenationScope.NAMESPACE_OBJECT_EXPORT
|
||||
} = ${content};`
|
||||
);
|
||||
@@ -794,9 +781,7 @@ class AssetGenerator extends Generator {
|
||||
}
|
||||
|
||||
const assetModuleFilename =
|
||||
this.filename ||
|
||||
/** @type {AssetModuleFilename} */
|
||||
(runtimeTemplate.outputOptions.assetModuleFilename);
|
||||
this.filename || runtimeTemplate.outputOptions.assetModuleFilename;
|
||||
const { path: filename, info } =
|
||||
runtimeTemplate.compilation.getAssetPathWithInfo(
|
||||
assetModuleFilename,
|
||||
|
||||
Reference in New Issue
Block a user