@npio/internals
Version:
A free visual website editor, powered with your own SolidJS components.
19 lines (16 loc) • 586 B
text/typescript
export const demoEnabled = function () {
const v = import.meta.env.VITE_NP_DEMO;
return v === "1" || v === "true";
};
export * from "./src/cache";
export * from "./src/normalization";
export * from "./src/elementData";
export * from "./src/color";
export * from "./src/store";
export * from "./src/media";
export * from "./src/request";
export const getHttpHost = function (url: URL, domain?: string | null) {
const port = ["80", "443", ""].includes(url.port) ? "" : ":" + url.port;
return `${url.protocol}//${domain || url.hostname}${port}`;
};
export * from "./src/string";