added backup and email client

This commit is contained in:
2026-02-01 00:02:35 +01:00
parent ff857be01a
commit e4fdfbc95f
210 changed files with 24211 additions and 742 deletions
+40
View File
@@ -0,0 +1,40 @@
import { hash } from './core/hash';
import { compile } from './core/compile';
import { getSheet } from './core/get-sheet';
/**
* css entry
* @param {String|Object|Function} val
*/
function css(val) {
let ctx = this || {};
let _val = val.call ? val(ctx.p) : val;
return hash(
_val.unshift
? _val.raw
? // Tagged templates
compile(_val, [].slice.call(arguments, 1), ctx.p)
: // Regular arrays
_val.reduce((o, i) => Object.assign(o, i && i.call ? i(ctx.p) : i), {})
: _val,
getSheet(ctx.target),
ctx.g,
ctx.o,
ctx.k
);
}
/**
* CSS Global function to declare global styles
* @type {Function}
*/
let glob = css.bind({ g: 1 });
/**
* `keyframes` function for defining animations
* @type {Function}
*/
let keyframes = css.bind({ k: 1 });
export { css, glob, keyframes };