From afa87af01c79a9baa539f2992d32154d2a4739bd Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 14 Feb 2026 14:46:37 -0800 Subject: task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq --- .../css-tree/lib/syntax/node/MediaQuery.js | 102 --------------------- 1 file changed, 102 deletions(-) delete mode 100644 vanilla/node_modules/css-tree/lib/syntax/node/MediaQuery.js (limited to 'vanilla/node_modules/css-tree/lib/syntax/node/MediaQuery.js') diff --git a/vanilla/node_modules/css-tree/lib/syntax/node/MediaQuery.js b/vanilla/node_modules/css-tree/lib/syntax/node/MediaQuery.js deleted file mode 100644 index f569c75..0000000 --- a/vanilla/node_modules/css-tree/lib/syntax/node/MediaQuery.js +++ /dev/null @@ -1,102 +0,0 @@ -import { - Comma, - EOF, - Ident, - LeftCurlyBracket, - LeftParenthesis, - Function as FunctionToken, - Semicolon -} from '../../tokenizer/index.js'; - -export const name = 'MediaQuery'; -export const structure = { - modifier: [String, null], - mediaType: [String, null], - condition: ['Condition', null] -}; - -export function parse() { - const start = this.tokenStart; - let modifier = null; - let mediaType = null; - let condition = null; - - this.skipSC(); - - if (this.tokenType === Ident && this.lookupTypeNonSC(1) !== LeftParenthesis) { - // [ not | only ]? - const ident = this.consume(Ident); - const identLowerCase = ident.toLowerCase(); - - if (identLowerCase === 'not' || identLowerCase === 'only') { - this.skipSC(); - modifier = identLowerCase; - mediaType = this.consume(Ident); - } else { - mediaType = ident; - } - - switch (this.lookupTypeNonSC(0)) { - case Ident: { - // and - this.skipSC(); - this.eatIdent('and'); - condition = this.Condition('media'); - break; - } - - case LeftCurlyBracket: - case Semicolon: - case Comma: - case EOF: - break; - - default: - this.error('Identifier or parenthesis is expected'); - } - } else { - switch (this.tokenType) { - case Ident: - case LeftParenthesis: - case FunctionToken: { - // - condition = this.Condition('media'); - break; - } - - case LeftCurlyBracket: - case Semicolon: - case EOF: - break; - - default: - this.error('Identifier or parenthesis is expected'); - } - } - - return { - type: 'MediaQuery', - loc: this.getLocation(start, this.tokenStart), - modifier, - mediaType, - condition - }; -} - -export function generate(node) { - if (node.mediaType) { - if (node.modifier) { - this.token(Ident, node.modifier); - } - - this.token(Ident, node.mediaType); - - if (node.condition) { - this.token(Ident, 'and'); - this.node(node.condition); - } - } else if (node.condition) { - this.node(node.condition); - } -} - -- cgit v1.2.3