- web/: Vue 3 + Vite + UnoCSS + Pinia, dark tactical theme (amber/#0d1117) - AppNav, ListingCard, SearchView with filters/sort, composables (useSnipeMode, useKonamiCode, useMotion), Pinia search store - Steal shimmer, auction countdown, Snipe Mode easter egg all native in Vue - docker/web/: nginx + multi-stage Dockerfile (node build → nginx serve) - compose.yml: api (8510) + web (8509) services - Dockerfile CMD updated to uvicorn for upcoming FastAPI layer - Clean build: 0 TS errors, 380 modules
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
const types = require('../../tokenizer/types.cjs');
|
|
|
|
const name = 'AtrulePrelude';
|
|
const walkContext = 'atrulePrelude';
|
|
const structure = {
|
|
children: [[]]
|
|
};
|
|
|
|
function parse(name) {
|
|
let children = null;
|
|
|
|
if (name !== null) {
|
|
name = name.toLowerCase();
|
|
}
|
|
|
|
this.skipSC();
|
|
|
|
if (hasOwnProperty.call(this.atrule, name) &&
|
|
typeof this.atrule[name].prelude === 'function') {
|
|
// custom consumer
|
|
children = this.atrule[name].prelude.call(this);
|
|
} else {
|
|
// default consumer
|
|
children = this.readSequence(this.scope.AtrulePrelude);
|
|
}
|
|
|
|
this.skipSC();
|
|
|
|
if (this.eof !== true &&
|
|
this.tokenType !== types.LeftCurlyBracket &&
|
|
this.tokenType !== types.Semicolon) {
|
|
this.error('Semicolon or block is expected');
|
|
}
|
|
|
|
return {
|
|
type: 'AtrulePrelude',
|
|
loc: this.getLocationFromList(children),
|
|
children
|
|
};
|
|
}
|
|
|
|
function generate(node) {
|
|
this.children(node);
|
|
}
|
|
|
|
exports.generate = generate;
|
|
exports.name = name;
|
|
exports.parse = parse;
|
|
exports.structure = structure;
|
|
exports.walkContext = walkContext;
|