Remove deprecated scripts for adding head-matter to wt_config.xml, including Python and Bash implementations, to streamline configuration management.

This commit is contained in:
Torsten Schulz (local)
2025-12-04 16:34:45 +01:00
parent 4b674c7c60
commit 6e9116e819
13187 changed files with 1493219 additions and 337 deletions

54
client/node_modules/unhead/dist/parser.d.ts generated vendored Normal file
View File

@@ -0,0 +1,54 @@
import { S as SerializableHead } from './shared/unhead.Prz0gZXE.js';
import 'hookable';
declare const TagIdMap: {
readonly html: 0;
readonly head: 1;
readonly title: 4;
readonly meta: 5;
readonly body: 44;
readonly script: 52;
readonly style: 53;
readonly link: 54;
readonly base: 56;
};
interface PreparedHtmlTemplate {
html: string;
input: SerializableHead;
}
interface PreparedHtmlTemplateWithIndexes {
html: string;
input: SerializableHead;
indexes: {
htmlTagStart: number;
htmlTagEnd: number;
headTagEnd: number;
bodyTagStart: number;
bodyTagEnd: number;
bodyCloseTagStart: number;
};
}
/**
* Parse HTML attributes string into key-value object
*/
declare function parseAttributes(attrStr: string): Record<string, string>;
/**
* Parse HTML to find tag indexes without extracting head elements
* Used for transformHtmlTemplateRaw where we don't want to extract existing head content
*/
declare function parseHtmlForIndexes(html: string): PreparedHtmlTemplateWithIndexes;
declare function parseHtmlForUnheadExtraction(html: string): PreparedHtmlTemplateWithIndexes;
/**
* Optimized HTML construction function that uses indexes instead of string.replace()
* This avoids searching through the entire HTML
*/
declare function applyHeadToHtml(template: PreparedHtmlTemplateWithIndexes, headHtml: {
htmlAttrs: string;
headTags: string;
bodyAttrs: string;
bodyTagsOpen?: string;
bodyTags: string;
}): string;
export { TagIdMap, applyHeadToHtml, parseAttributes, parseHtmlForIndexes, parseHtmlForUnheadExtraction };
export type { PreparedHtmlTemplate, PreparedHtmlTemplateWithIndexes };