d3b92593d5
- Create Axios-based API client with sources, jobs, and dashboard endpoints - Add responsive Layout component with navigation sidebar - Set up React Router with Dashboard, Backups, and Settings routes - Configure TanStack Query provider with default options - Use lucide-react for navigation icons
40 lines
914 B
JavaScript
40 lines
914 B
JavaScript
import {
|
|
String as StringToken,
|
|
Ident,
|
|
Url,
|
|
Function as FunctionToken,
|
|
LeftParenthesis
|
|
} from '../../tokenizer/index.js';
|
|
|
|
export default {
|
|
parse: {
|
|
prelude() {
|
|
const children = this.createList();
|
|
|
|
this.skipSC();
|
|
|
|
switch (this.tokenType) {
|
|
case StringToken:
|
|
children.push(this.String());
|
|
break;
|
|
|
|
case Url:
|
|
case FunctionToken:
|
|
children.push(this.Url());
|
|
break;
|
|
|
|
default:
|
|
this.error('String or url() is expected');
|
|
}
|
|
|
|
if (this.lookupNonWSType(0) === Ident ||
|
|
this.lookupNonWSType(0) === LeftParenthesis) {
|
|
children.push(this.MediaQueryList());
|
|
}
|
|
|
|
return children;
|
|
},
|
|
block: null
|
|
}
|
|
};
|