fix main
This commit is contained in:
parent
2e847a7691
commit
222a594c1b
|
|
@ -17,8 +17,10 @@ model component {
|
|||
id_component_group String? @db.Uuid
|
||||
props Json @default("[]")
|
||||
deleted_at DateTime? @db.Timestamp(6)
|
||||
image Bytes?
|
||||
desc String?
|
||||
color String?
|
||||
component_group component_group? @relation(fields: [id_component_group], references: [id], onDelete: Cascade)
|
||||
component_ext component_ext[]
|
||||
}
|
||||
|
||||
model component_group {
|
||||
|
|
@ -127,8 +129,8 @@ model site {
|
|||
is_deleted Boolean @default(false)
|
||||
responsive String @default("all")
|
||||
npm_cache String @default(" ") @db.VarChar
|
||||
code_mode String @default("old") @db.VarChar(5)
|
||||
deploy_name String @default("DEV")
|
||||
settings Json?
|
||||
component_site component_site[]
|
||||
deploy_target deploy_target[]
|
||||
npm_site npm_site[]
|
||||
|
|
@ -177,12 +179,3 @@ model deploy_target {
|
|||
id_site String @db.Uuid
|
||||
site site @relation(fields: [id_site], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
}
|
||||
|
||||
model component_ext {
|
||||
id Int @id @default(autoincrement())
|
||||
created_at DateTime @default(now()) @db.Timestamp(6)
|
||||
id_component String @db.Uuid
|
||||
img Bytes?
|
||||
desc String?
|
||||
component component @relation(fields: [id_component], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "component_ext_relation_1")
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -238,7 +238,9 @@ export const PanelFont: FC<{
|
|||
) {
|
||||
ft.loadedFonts.push(item.value);
|
||||
const doc = document;
|
||||
let weight = `:wght@${[300, 400, 500, 600].join(";")}`;
|
||||
let weight = `:wght@${[300, 400, 500, 600, 700, 800].join(
|
||||
";"
|
||||
)}`;
|
||||
let fontName = item.value.replace(/ /g, "+");
|
||||
const _href = `https://fonts.googleapis.com/css2?family=${fontName}${weight}&display=swap`;
|
||||
if (!doc.querySelector(`link[href="${_href}]`)) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import { w } from "./w";
|
|||
defineReact();
|
||||
|
||||
let internal_url = "/_prasi/code/internal.js";
|
||||
if (location.pathname.startsWith("/prod")) {
|
||||
if (location.pathname.startsWith("/prod/")) {
|
||||
const patharr = location.pathname.split("/");
|
||||
internal_url = `/prod/${patharr[2]}${internal_url}`;
|
||||
}
|
||||
|
|
@ -33,8 +33,8 @@ import { w } from "./w";
|
|||
if (_href && _href.startsWith("/")) {
|
||||
if (isPreview()) {
|
||||
if (
|
||||
location.pathname.startsWith("/prod") &&
|
||||
!_href.startsWith("/prod")
|
||||
location.pathname.startsWith("/prod/") &&
|
||||
!_href.startsWith("/prod/")
|
||||
) {
|
||||
const patharr = location.pathname.split("/");
|
||||
_href = `/prod/${patharr[2]}${_href}`;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export const Root = () => {
|
|||
// #endregion
|
||||
|
||||
// #region init
|
||||
const isPreviewProd = isPreview() && location.pathname.startsWith("/prod");
|
||||
const isPreviewProd = isPreview() && location.pathname.startsWith("/prod/");
|
||||
|
||||
if (
|
||||
base.route.status !== "ready" ||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const cssFont = (
|
|||
|
||||
if (font.family) {
|
||||
if (!glbFont.loadedFonts) glbFont.loadedFonts = [];
|
||||
const weight = `:wght@${[300, 400, 500, 600].join(";")}`;
|
||||
const weight = `:wght@${[300, 400, 500, 600, 700, 800].join(";")}`;
|
||||
const fontName = font.family.replace(/ /g, "+");
|
||||
|
||||
if (glbFont.loadedFonts.indexOf(font.family) < 0) {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"brotli-wasm": "^3.0.1",
|
||||
"caniuse-lite": "^1.0.30001687",
|
||||
"caniuse-lite": "^1.0.30001688",
|
||||
"fdir": "^6.3.0",
|
||||
"react-select": "^5.8.0",
|
||||
"typescript": "^5.6.2"
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0"><title>Prasi: App Builder</title><link rel="stylesheet" href="/index.f3513746.css"><link rel="stylesheet" crossorigin href="/index.d6a5dd12.css"><link rel="stylesheet" crossorigin href="/index.5278b069.css"><script src="/index.runtime.b71f727c.js"></script><script>window.__REACT_DEVTOOLS_GLOBAL_HOOK__={isDisabled:!0,_renderers:{}};</script></head><body classname="flex-col flex-1 w-full min-h-screen flex opacity-0"> <div id="root"></div> <script src="/index.5384486f.js" defer></script> </body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0"><title>Prasi: App Builder</title><link rel="stylesheet" href="/index.f3513746.css"><link rel="stylesheet" crossorigin href="/index.d6a5dd12.css"><link rel="stylesheet" crossorigin href="/index.5278b069.css"><script src="/index.runtime.327fc433.js"></script><script>window.__REACT_DEVTOOLS_GLOBAL_HOOK__={isDisabled:!0,_renderers:{}};</script></head><body classname="flex-col flex-1 w-full min-h-screen flex opacity-0"> <div id="root"></div> <script src="/index.5384486f.js" defer></script> </body></html>
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
!function(e,r,t,n,o){var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof f[n]&&f[n],s=i.cache||{},a="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(r,t){if(!s[r]){if(!e[r]){var o="function"==typeof f[n]&&f[n];if(!t&&o)return o(r,!0);if(i)return i(r,!0);if(a&&"string"==typeof r)return a(r);var c=Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}l.resolve=function(t){var n=e[r][1][t];return null!=n?n:t},l.cache={};var u=s[r]=new d.Module(r);e[r][0].call(u.exports,l,u,u.exports,this)}return s[r].exports;function l(e){var r=l.resolve(e);return!1===r?{}:d(r)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.exports={}},d.modules=e,d.cache=s,d.parent=i,d.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]},Object.defineProperty(d,"root",{get:function(){return f[n]}}),f[n]=d;for(var c=0;c<r.length;c++)d(r[c])}({"1gwlL":[function(e,r,t){e("483d81254de90d1c").register(e("e997c0f52321ab57").getBundleURL("5btbX"),JSON.parse('["5btbX","index.5384486f.js","51CIF","login.729781e5.js","lWnYB","logout.150df938.js","h2EQ2","register.46daa674.js","b1ger","all.1ee07229.js","ikCXc","ed.e57cbe5a.js","fG1Xp","wasm_gzip.922c2de1.wasm","a06ck","standalone.d4ef49b4.js","dVyrU","estree.77f58917.js","gkR2P","typescript.264d3a10.js","j1vrr","dist.477afcf4.js","bqVt6","esm.72b78f35.js","hydmX","index.module.f4641cc5.js","8U2pR","ed.f0595191.css","kvQTi","sworker.js"]'))},{"483d81254de90d1c":"6dXzV",e997c0f52321ab57:"1ILkO"}],"6dXzV":[function(e,r,t){var n=new Map;r.exports.register=function(e,r){for(var t=0;t<r.length-1;t+=2)n.set(r[t],{baseUrl:e,path:r[t+1]})},r.exports.resolve=function(e){var r=n.get(e);if(null==r)throw Error("Could not resolve bundle with id "+e);return new URL(r.path,r.baseUrl).toString()}},{}],"1ILkO":[function(e,r,t){var n={};function o(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}t.getBundleURL=function(e){var r=n[e];return r||(r=function(){try{throw Error()}catch(r){var e=(""+r.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(e)return o(e[2])}return"/"}(),n[e]=r),r},t.getBaseURL=o,t.getOrigin=function(e){var r=(""+e).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^/]+/);if(!r)throw Error("Origin not found");return r[0]}},{}]},["1gwlL"],0,"parcelRequire2d1f");
|
||||
//# sourceMappingURL=index.runtime.b71f727c.js.map
|
||||
!function(e,r,t,n,o){var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof f[n]&&f[n],s=i.cache||{},a="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(r,t){if(!s[r]){if(!e[r]){var o="function"==typeof f[n]&&f[n];if(!t&&o)return o(r,!0);if(i)return i(r,!0);if(a&&"string"==typeof r)return a(r);var c=Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}l.resolve=function(t){var n=e[r][1][t];return null!=n?n:t},l.cache={};var u=s[r]=new d.Module(r);e[r][0].call(u.exports,l,u,u.exports,this)}return s[r].exports;function l(e){var r=l.resolve(e);return!1===r?{}:d(r)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.exports={}},d.modules=e,d.cache=s,d.parent=i,d.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]},Object.defineProperty(d,"root",{get:function(){return f[n]}}),f[n]=d;for(var c=0;c<r.length;c++)d(r[c])}({"1gwlL":[function(e,r,t){e("483d81254de90d1c").register(e("e997c0f52321ab57").getBundleURL("5btbX"),JSON.parse('["5btbX","index.5384486f.js","51CIF","login.729781e5.js","lWnYB","logout.150df938.js","h2EQ2","register.46daa674.js","b1ger","all.1ee07229.js","ikCXc","ed.b3f40ad3.js","fG1Xp","wasm_gzip.922c2de1.wasm","a06ck","standalone.d4ef49b4.js","dVyrU","estree.77f58917.js","gkR2P","typescript.264d3a10.js","j1vrr","dist.477afcf4.js","bqVt6","esm.72b78f35.js","hydmX","index.module.f4641cc5.js","8U2pR","ed.f0595191.css","kvQTi","sworker.js"]'))},{"483d81254de90d1c":"6dXzV",e997c0f52321ab57:"1ILkO"}],"6dXzV":[function(e,r,t){var n=new Map;r.exports.register=function(e,r){for(var t=0;t<r.length-1;t+=2)n.set(r[t],{baseUrl:e,path:r[t+1]})},r.exports.resolve=function(e){var r=n.get(e);if(null==r)throw Error("Could not resolve bundle with id "+e);return new URL(r.path,r.baseUrl).toString()}},{}],"1ILkO":[function(e,r,t){var n={};function o(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}t.getBundleURL=function(e){var r=n[e];return r||(r=function(){try{throw Error()}catch(r){var e=(""+r.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(e)return o(e[2])}return"/"}(),n[e]=r),r},t.getBaseURL=o,t.getOrigin=function(e){var r=(""+e).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^/]+/);if(!r)throw Error("Origin not found");return r[0]}},{}]},["1gwlL"],0,"parcelRequire2d1f");
|
||||
//# sourceMappingURL=index.runtime.327fc433.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -17,6 +17,6 @@
|
|||
|
||||
<body classname="flex-col flex-1 w-full min-h-screen flex opacity-0">
|
||||
<div id="root"></div>
|
||||
<script src="/index.785f3a52.js" defer=""></script>
|
||||
<script src="/index.9db598ee.js" defer=""></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -175,12 +175,12 @@ const manifest = [
|
|||
"/source-sans-3-latin-ext-400-normal.0483ba2f.woff",
|
||||
"/source-sans-3-latin-400-normal.43f5aafe.woff2",
|
||||
"/source-sans-3-latin-400-normal.6f62a854.woff",
|
||||
"/index.785f3a52.js",
|
||||
"/index.9db598ee.js",
|
||||
"/login.3daaefac.js",
|
||||
"/logout.920e94f5.js",
|
||||
"/register.5db9c712.js",
|
||||
"/all.5b92210c.js",
|
||||
"/ed.06f8ddc8.js",
|
||||
"/ed.a54519d5.js",
|
||||
"/wasm_gzip.922c2de1.wasm",
|
||||
"/standalone.0aea92ae.js",
|
||||
"/estree.4a6560c1.js",
|
||||
|
|
@ -190,7 +190,7 @@ const manifest = [
|
|||
"/index.module.7282dc17.js",
|
||||
"/ed.400f6bfd.css"
|
||||
];
|
||||
const version = "258b2d32";
|
||||
const version = "32a7cced";
|
||||
(0, _serviceWorker._register)(manifest, version);
|
||||
|
||||
},{"@parcel/service-worker":"et5Hi"}],"et5Hi":[function(require,module,exports) {
|
||||
|
|
@ -564,7 +564,7 @@ function _routerNodeToTable(initialPath, initialNode) {
|
|||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
parcelHelpers.defineInteropFlag(exports);
|
||||
parcelHelpers.export(exports, "version", ()=>version);
|
||||
const version = "jn80dfv";
|
||||
const version = "fdknz0x";
|
||||
|
||||
},{"@parcel/transformer-js/src/esmodule-helpers.js":"jpDjm"}],"lXNsG":[function(require,module,exports) {
|
||||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
|
|
|
|||
Loading…
Reference in New Issue