aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/cjs/syntax/atrule/import.cjs
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
commitafa87af01c79a9baa539f2992d32154d2a4739bd (patch)
tree92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/css-tree/cjs/syntax/atrule/import.cjs
parent3b927e84d200402281f68181cd4253bc77e5528d (diff)
downloadneko-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/import.cjs')
-rw-r--r--vanilla/node_modules/css-tree/cjs/syntax/atrule/import.cjs101
1 files changed, 0 insertions, 101 deletions
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;