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/atrule | |
| 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/atrule')
11 files changed, 0 insertions, 280 deletions
diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/container.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/container.cjs deleted file mode 100644 index 7413f45..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/container.cjs +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -// https://drafts.csswg.org/css-contain-3/#container-rule -// The keywords `none`, `and`, `not`, and `or` are excluded from the <custom-ident> above. -const nonContainerNameKeywords = new Set(['none', 'and', 'not', 'or']); - -const container = { - parse: { - prelude() { - const children = this.createList(); - - if (this.tokenType === types.Ident) { - const name = this.substring(this.tokenStart, this.tokenEnd); - - if (!nonContainerNameKeywords.has(name.toLowerCase())) { - children.push(this.Identifier()); - } - } - - children.push(this.Condition('container')); - - return children; - }, - block(nested = false) { - return this.Block(nested); - } - } -}; - -module.exports = container; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs deleted file mode 100644 index fc7f64a..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -const fontFace = { - parse: { - prelude: null, - block() { - return this.Block(true); - } - } -}; - -module.exports = fontFace; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/import.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/import.cjs deleted file mode 100644 index 09fc11c..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/import.cjs +++ /dev/null @@ -1,101 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -function parseWithFallback(parse, fallback) { - return this.parseWithFallback( - () => { - try { - return parse.call(this); - } finally { - this.skipSC(); - if (this.lookupNonWSType(0) !== types.RightParenthesis) { - this.error(); - } - } - }, - fallback || (() => this.Raw(null, true)) - ); -} - -const parseFunctions = { - layer() { - this.skipSC(); - - const children = this.createList(); - const node = parseWithFallback.call(this, this.Layer); - - if (node.type !== 'Raw' || node.value !== '') { - children.push(node); - } - - return children; - }, - supports() { - this.skipSC(); - - const children = this.createList(); - const node = parseWithFallback.call( - this, - this.Declaration, - () => parseWithFallback.call(this, () => this.Condition('supports')) - ); - - if (node.type !== 'Raw' || node.value !== '') { - children.push(node); - } - - return children; - } -}; - -const importAtrule = { - parse: { - prelude() { - const children = this.createList(); - - switch (this.tokenType) { - case types.String: - children.push(this.String()); - break; - - case types.Url: - case types.Function: - children.push(this.Url()); - break; - - default: - this.error('String or url() is expected'); - } - - this.skipSC(); - - if (this.tokenType === types.Ident && - this.cmpStr(this.tokenStart, this.tokenEnd, 'layer')) { - children.push(this.Identifier()); - } else if ( - this.tokenType === types.Function && - this.cmpStr(this.tokenStart, this.tokenEnd, 'layer(') - ) { - children.push(this.Function(null, parseFunctions)); - } - - this.skipSC(); - - if (this.tokenType === types.Function && - this.cmpStr(this.tokenStart, this.tokenEnd, 'supports(')) { - children.push(this.Function(null, parseFunctions)); - } - - if (this.lookupNonWSType(0) === types.Ident || - this.lookupNonWSType(0) === types.LeftParenthesis) { - children.push(this.MediaQueryList()); - } - - return children; - }, - block: null - } -}; - -module.exports = importAtrule; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/index.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/index.cjs deleted file mode 100644 index 143f21f..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/index.cjs +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -const container = require('./container.cjs'); -const fontFace = require('./font-face.cjs'); -const _import = require('./import.cjs'); -const layer = require('./layer.cjs'); -const media = require('./media.cjs'); -const nest = require('./nest.cjs'); -const page = require('./page.cjs'); -const scope = require('./scope.cjs'); -const startingStyle = require('./starting-style.cjs'); -const supports = require('./supports.cjs'); - -const atrule = { - container, - 'font-face': fontFace, - import: _import, - layer, - media, - nest, - page, - scope, - 'starting-style': startingStyle, - supports -}; - -module.exports = atrule; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/layer.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/layer.cjs deleted file mode 100644 index 5a9ac26..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/layer.cjs +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const layer = { - parse: { - prelude() { - return this.createSingleNodeList( - this.LayerList() - ); - }, - block() { - return this.Block(false); - } - } -}; - -module.exports = layer; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/media.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/media.cjs deleted file mode 100644 index 5db3439..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/media.cjs +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const media = { - parse: { - prelude() { - return this.createSingleNodeList( - this.MediaQueryList() - ); - }, - block(nested = false) { - return this.Block(nested); - } - } -}; - -module.exports = media; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/nest.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/nest.cjs deleted file mode 100644 index 5cd6672..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/nest.cjs +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const nest = { - parse: { - prelude() { - return this.createSingleNodeList( - this.SelectorList() - ); - }, - block() { - return this.Block(true); - } - } -}; - -module.exports = nest; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/page.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/page.cjs deleted file mode 100644 index ffef0d1..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/page.cjs +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const page = { - parse: { - prelude() { - return this.createSingleNodeList( - this.SelectorList() - ); - }, - block() { - return this.Block(true); - } - } -}; - -module.exports = page; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/scope.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/scope.cjs deleted file mode 100644 index e5ffba2..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/scope.cjs +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const scope = { - parse: { - prelude() { - return this.createSingleNodeList( - this.Scope() - ); - }, - block(nested = false) { - return this.Block(nested); - } - } -}; - -module.exports = scope; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/starting-style.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/starting-style.cjs deleted file mode 100644 index 8c9814d..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/starting-style.cjs +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -const startingStyle = { - parse: { - prelude: null, - block(nested = false) { - return this.Block(nested); - } - } -}; - -module.exports = startingStyle; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/atrule/supports.cjs b/vanilla/node_modules/css-tree/cjs/syntax/atrule/supports.cjs deleted file mode 100644 index b03d864..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/atrule/supports.cjs +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const supports = { - parse: { - prelude() { - return this.createSingleNodeList( - this.Condition('supports') - ); - }, - block(nested = false) { - return this.Block(nested); - } - } -}; - -module.exports = supports; |
