Fix code quality violations and enhance ROUTE-EXISTS-01 rule

Implement JQHTML function cache ID system and fix bundle compilation
Implement underscore prefix for system tables
Fix JS syntax linter to support decorators and grant exception to Task system
SPA: Update planning docs and wishlists with remaining features
SPA: Document Navigation API abandonment and future enhancements
Implement SPA browser integration with History API (Phase 1)
Convert contacts view page to SPA action
Convert clients pages to SPA actions and document conversion procedure
SPA: Merge GET parameters and update documentation
Implement SPA route URL generation in JavaScript and PHP
Implement SPA bootstrap controller architecture
Add SPA routing manual page (rsx:man spa)
Add SPA routing documentation to CLAUDE.md
Phase 4 Complete: Client-side SPA routing implementation
Update get_routes() consumers for unified route structure
Complete SPA Phase 3: PHP-side route type detection and is_spa flag
Restore unified routes structure and Manifest_Query class
Refactor route indexing and add SPA infrastructure
Phase 3 Complete: SPA route registration in manifest
Implement SPA Phase 2: Extract router code and test decorators
Rename Jqhtml_Component to Component and complete SPA foundation setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-19 17:48:15 +00:00
parent 77b4d10af8
commit 9ebcc359ae
4360 changed files with 37751 additions and 18578 deletions

48
node_modules/webpack/lib/ExternalModule.js generated vendored Executable file → Normal file
View File

@@ -28,6 +28,7 @@ const propertyAccess = require("./util/propertyAccess");
const { register } = require("./util/serialization");
/** @typedef {import("webpack-sources").Source} Source */
/** @typedef {import("../declarations/WebpackOptions").ExternalsType} ExternalsType */
/** @typedef {import("../declarations/WebpackOptions").HashFunction} HashFunction */
/** @typedef {import("./config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
/** @typedef {import("./Chunk")} Chunk */
@@ -442,10 +443,6 @@ const getSourceForModuleExternal = (
dependencyMeta,
concatenationScope
) => {
if (!Array.isArray(moduleAndSpecifiers)) {
moduleAndSpecifiers = [moduleAndSpecifiers];
}
/** @type {Imported} */
let imported = true;
if (concatenationScope) {
@@ -465,6 +462,15 @@ const getSourceForModuleExternal = (
}
}
if (!Array.isArray(moduleAndSpecifiers)) {
moduleAndSpecifiers = [moduleAndSpecifiers];
}
// Return to `namespace` when the external request includes a specific export
if (moduleAndSpecifiers.length > 1) {
imported = true;
}
const initFragment = new ModuleExternalInitFragment(
moduleAndSpecifiers[0],
imported,
@@ -473,22 +479,6 @@ const getSourceForModuleExternal = (
runtimeTemplate.outputOptions.hashFunction
);
const normalizedImported = initFragment.getImported();
const specifiers =
normalizedImported === true
? undefined
: /** @type {[string, string][]} */ (
normalizedImported.map(([name, rawFinalName]) => {
let finalName = rawFinalName;
let counter = 0;
if (concatenationScope) {
while (!concatenationScope.registerUsedName(finalName)) {
finalName = `${finalName}_${counter++}`;
}
}
return [name, finalName];
})
);
const baseAccess = `${initFragment.getNamespaceIdentifier()}${propertyAccess(
moduleAndSpecifiers,
@@ -518,7 +508,7 @@ const getSourceForModuleExternal = (
"x"
)}`
: undefined,
specifiers,
specifiers: normalizedImported === true ? undefined : normalizedImported,
runtimeRequirements: moduleRemapping
? RUNTIME_REQUIREMENTS_FOR_MODULE
: undefined,
@@ -632,7 +622,7 @@ const getSourceForDefaultCase = (optional, request, runtimeTemplate) => {
class ExternalModule extends Module {
/**
* @param {ExternalModuleRequest} request request
* @param {string} type type
* @param {ExternalsType} type type
* @param {string} userRequest user request
* @param {DependencyMeta=} dependencyMeta dependency meta
*/
@@ -642,7 +632,7 @@ class ExternalModule extends Module {
// Info from Factory
/** @type {ExternalModuleRequest} */
this.request = request;
/** @type {string} */
/** @type {ExternalsType} */
this.externalType = type;
/** @type {string} */
this.userRequest = userRequest;
@@ -821,6 +811,10 @@ class ExternalModule extends Module {
return undefined;
}
/**
* @private
* @returns {{ request: string | string[], externalType: ExternalsType }} the request and external type
*/
_getRequestAndExternalType() {
let { request, externalType } = this;
if (typeof request === "object" && !Array.isArray(request)) {
@@ -833,8 +827,8 @@ class ExternalModule extends Module {
/**
* Resolve the detailed external type from the raw external type.
* e.g. resolve "module" or "import" from "module-import" type
* @param {string} externalType raw external type
* @returns {string} resolved external type
* @param {ExternalsType} externalType raw external type
* @returns {ExternalsType} resolved external type
*/
_resolveExternalType(externalType) {
if (externalType === "module-import") {
@@ -866,7 +860,7 @@ class ExternalModule extends Module {
/**
* @private
* @param {string | string[]} request request
* @param {string} externalType the external type
* @param {ExternalsType} externalType the external type
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @param {ModuleGraph} moduleGraph the module graph
* @param {ChunkGraph} chunkGraph the chunk graph
@@ -959,8 +953,6 @@ class ExternalModule extends Module {
}
case "var":
case "promise":
case "const":
case "let":
case "assign":
default:
return getSourceForDefaultCase(