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
31 lines
618 B
JavaScript
31 lines
618 B
JavaScript
"use strict";
|
|
|
|
const parsers = require("../parsers");
|
|
|
|
module.exports.parse = function parse(v) {
|
|
const dim = parsers.parseMeasurement(v);
|
|
if (dim) {
|
|
return dim;
|
|
}
|
|
return parsers.parseKeyword(v, ["auto"]);
|
|
};
|
|
|
|
module.exports.isValid = function isValid(v) {
|
|
if (v === "") {
|
|
return true;
|
|
}
|
|
return typeof module.exports.parse(v) === "string";
|
|
};
|
|
|
|
module.exports.definition = {
|
|
set(v) {
|
|
v = parsers.prepareValue(v, this._global);
|
|
this._setProperty("right", module.exports.parse(v));
|
|
},
|
|
get() {
|
|
return this.getPropertyValue("right");
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
};
|