fix: Fix product page syntax errors

1. Remove duplicate/broken code in product tables section
2. Fix PostCSS config for Tailwind 4
3. Add @tailwindcss/postcss dependency
4. Remove --production flag from Dockerfile (sharp required)

All fixes enable successful Docker build with favicon working.
This commit is contained in:
Kunthawat Greethong
2026-03-03 14:57:46 +07:00
parent a26dad6159
commit 6562a1748f
10139 changed files with 1502525 additions and 19 deletions

View File

@@ -0,0 +1,122 @@
type Token = AlternatorToken | AssertionToken | BackreferenceToken | CharacterToken | CharacterClassCloseToken | CharacterClassHyphenToken | CharacterClassIntersectorToken | CharacterClassOpenToken | CharacterSetToken | DirectiveToken | GroupCloseToken | GroupOpenToken | NamedCalloutToken | QuantifierToken | SubroutineToken;
type TokenCharacterSetKind = 'any' | 'digit' | 'dot' | 'hex' | 'newline' | 'posix' | 'property' | 'space' | 'text_segment' | 'word';
type TokenDirectiveKind = 'flags' | 'keep';
type TokenGroupOpenKind = 'absence_repeater' | 'atomic' | 'capturing' | 'group' | 'lookahead' | 'lookbehind';
type TokenQuantifierKind = 'greedy' | 'lazy' | 'possessive';
type TokenNamedCalloutKind = 'count' | 'cmp' | 'error' | 'fail' | 'max' | 'mismatch' | 'skip' | 'total_count' | 'custom';
type TokenizeOptions = {
flags?: string;
rules?: {
captureGroup?: boolean;
singleline?: boolean;
};
};
declare function tokenize(pattern: string, options?: TokenizeOptions): {
tokens: Array<Token>;
flags: FlagProperties;
};
type AlternatorToken = {
type: 'Alternator';
raw: '|';
};
type AssertionToken = {
type: 'Assertion';
kind: string;
raw: string;
};
type BackreferenceToken = {
type: 'Backreference';
raw: string;
};
type CharacterToken = {
type: 'Character';
value: number;
raw: string;
};
type CharacterClassCloseToken = {
type: 'CharacterClassClose';
raw: ']';
};
type CharacterClassHyphenToken = {
type: 'CharacterClassHyphen';
raw: '-';
};
type CharacterClassIntersectorToken = {
type: 'CharacterClassIntersector';
raw: '&&';
};
type CharacterClassOpenToken = {
type: 'CharacterClassOpen';
negate: boolean;
raw: CharacterClassOpener;
};
type CharacterClassOpener = '[' | '[^';
type CharacterSetToken = {
type: 'CharacterSet';
kind: TokenCharacterSetKind;
value?: string;
negate?: boolean;
raw: string;
};
type DirectiveToken = {
type: 'Directive';
raw: string;
} & ({
kind: 'keep';
flags?: never;
} | {
kind: 'flags';
flags: FlagGroupModifiers;
});
type GroupCloseToken = {
type: 'GroupClose';
raw: ')';
};
type GroupOpenToken = {
type: 'GroupOpen';
kind: TokenGroupOpenKind;
flags?: FlagGroupModifiers;
name?: string;
number?: number;
negate?: boolean;
raw: string;
};
type NamedCalloutToken = {
type: 'NamedCallout';
kind: TokenNamedCalloutKind;
tag: string | null;
arguments: Array<string | number> | null;
raw: string;
};
type QuantifierToken = {
type: 'Quantifier';
kind: TokenQuantifierKind;
min: number;
max: number;
raw: string;
};
type SubroutineToken = {
type: 'Subroutine';
raw: string;
};
type FlagProperties = {
ignoreCase: boolean;
dotAll: boolean;
extended: boolean;
digitIsAscii: boolean;
posixIsAscii: boolean;
spaceIsAscii: boolean;
wordIsAscii: boolean;
textSegmentMode: 'grapheme' | 'word' | null;
};
type FlagGroupModifiers = {
enable?: FlagGroupSwitches;
disable?: FlagGroupSwitches;
};
type FlagGroupSwitches = {
ignoreCase?: true;
dotAll?: true;
extended?: true;
};
export { type AlternatorToken, type AssertionToken, type BackreferenceToken, type CharacterToken, type CharacterClassCloseToken, type CharacterClassHyphenToken, type CharacterClassIntersectorToken, type CharacterClassOpenToken, type CharacterSetToken, type DirectiveToken, type FlagGroupModifiers, type FlagProperties, type GroupCloseToken, type GroupOpenToken, type NamedCalloutToken, type QuantifierToken, type SubroutineToken, type Token, type TokenCharacterSetKind, type TokenDirectiveKind, type TokenNamedCalloutKind, type TokenQuantifierKind, tokenize, };
//# sourceMappingURL=tokenize.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"tokenize.d.ts","sourceRoot":"","sources":["../../src/tokenizer/tokenize.ts"],"names":[],"mappings":"AAEA,KAAK,KAAK,GACR,eAAe,GACf,cAAc,GACd,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AAEF,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAuWF,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,QAAQ,GACT,CAAC"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long