diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
| commit | afa87af01c79a9baa539f2992d32154d2a4739bd (patch) | |
| tree | 92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs | |
| parent | 3b927e84d200402281f68181cd4253bc77e5528d (diff) | |
| download | neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2 neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip | |
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
Diffstat (limited to 'vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs')
| -rw-r--r-- | vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs deleted file mode 100644 index 776efdd..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs +++ /dev/null @@ -1,100 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'MediaQuery'; -const structure = { - modifier: [String, null], - mediaType: [String, null], - condition: ['Condition', null] -}; - -function parse() { - const start = this.tokenStart; - let modifier = null; - let mediaType = null; - let condition = null; - - this.skipSC(); - - if (this.tokenType === types.Ident && this.lookupTypeNonSC(1) !== types.LeftParenthesis) { - // [ not | only ]? <media-type> - const ident = this.consume(types.Ident); - const identLowerCase = ident.toLowerCase(); - - if (identLowerCase === 'not' || identLowerCase === 'only') { - this.skipSC(); - modifier = identLowerCase; - mediaType = this.consume(types.Ident); - } else { - mediaType = ident; - } - - switch (this.lookupTypeNonSC(0)) { - case types.Ident: { - // and <media-condition-without-or> - this.skipSC(); - this.eatIdent('and'); - condition = this.Condition('media'); - break; - } - - case types.LeftCurlyBracket: - case types.Semicolon: - case types.Comma: - case types.EOF: - break; - - default: - this.error('Identifier or parenthesis is expected'); - } - } else { - switch (this.tokenType) { - case types.Ident: - case types.LeftParenthesis: - case types.Function: { - // <media-condition> - condition = this.Condition('media'); - break; - } - - case types.LeftCurlyBracket: - case types.Semicolon: - case types.EOF: - break; - - default: - this.error('Identifier or parenthesis is expected'); - } - } - - return { - type: 'MediaQuery', - loc: this.getLocation(start, this.tokenStart), - modifier, - mediaType, - condition - }; -} - -function generate(node) { - if (node.mediaType) { - if (node.modifier) { - this.token(types.Ident, node.modifier); - } - - this.token(types.Ident, node.mediaType); - - if (node.condition) { - this.token(types.Ident, 'and'); - this.node(node.condition); - } - } else if (node.condition) { - this.node(node.condition); - } -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; |
