This commit is contained in:
Rizky 2024-07-17 02:14:20 +07:00
parent c0f8733039
commit 7c4b189e00
18 changed files with 27 additions and 35 deletions

View File

@ -12,6 +12,6 @@ export const _ = {
return new Response(file as any); return new Response(file as any);
} }
return `console.warn("Script not found\n", " mode: ${mode}\\n", " id : ${id_site}")`; return `console.error("Script not found\n", " mode: ${mode}\\n", " id : ${id_site}")`;
}, },
}; };

View File

@ -1,2 +0,0 @@
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),n=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
//# sourceMappingURL=chunk-RFBBAUMM.js.map

View File

@ -1,2 +0,0 @@
@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-ext-400-normal.woff") format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-400-normal.woff") format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-ext-400-normal.woff") format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-400-normal.woff") format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-vietnamese-400-normal.woff2") format("woff2"),url("./source-sans-3-vietnamese-400-normal.woff") format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-ext-400-normal.woff") format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-400-normal.woff") format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/*# sourceMappingURL=font-LBWDSK65.css.map */

View File

@ -1,2 +0,0 @@
import"./chunk-RFBBAUMM.js";
//# sourceMappingURL=font-PD3WIDAZ.js.map

View File

@ -1,2 +1 @@
@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-ext-400-normal.woff") format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-400-normal.woff") format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-ext-400-normal.woff") format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-400-normal.woff") format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-vietnamese-400-normal.woff2") format("woff2"),url("./source-sans-3-vietnamese-400-normal.woff") format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-ext-400-normal.woff") format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-400-normal.woff") format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} @font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-ext-400-normal.woff") format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-400-normal.woff") format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-ext-400-normal.woff") format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-400-normal.woff") format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-vietnamese-400-normal.woff2") format("woff2"),url("./source-sans-3-vietnamese-400-normal.woff") format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-ext-400-normal.woff") format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-400-normal.woff") format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/*# sourceMappingURL=main.css.map */

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@ const start = async () => {
w._api = apiProxy(base_url); w._api = apiProxy(base_url);
} catch (e) { } catch (e) {
if (cur.host) { if (cur.host) {
console.warn("Failed to load API:", base_url); console.error("Failed to load API:", base_url);
} }
} }

View File

@ -45,12 +45,12 @@ export const pushTreeNode = (
} }
if (!meta.item || !meta.item.id) { if (!meta.item || !meta.item.id) {
console.warn("Emptry Tree Item ", meta); console.error("Emptry Tree Item ", meta);
return null; return null;
} }
if (tree.find((t) => t.id === meta.item.id)) { if (tree.find((t) => t.id === meta.item.id)) {
console.warn("Double Tree Item: ", meta.item.id, meta.item.name); console.error("Double Tree Item: ", meta.item.id, meta.item.name);
} else { } else {
if (!meta.parent?.comp_id) { if (!meta.parent?.comp_id) {
tree.push({ tree.push({

View File

@ -93,7 +93,7 @@ export const EdSidePropInstance: FC<{ meta: IMeta }> = ({ meta }) => {
evn(arg); evn(arg);
} catch (e) { } catch (e) {
console.error(e); console.error(e);
console.warn(k, v.value); console.error(k, v.value);
} }
} }
} }
@ -107,7 +107,7 @@ export const EdSidePropInstance: FC<{ meta: IMeta }> = ({ meta }) => {
); );
evn(arg); evn(arg);
} catch (e) { } catch (e) {
console.warn( console.error(
`Error prop ${k} in item [${meta.item.name}], source:`, `Error prop ${k} in item [${meta.item.name}], source:`,
v.valueBuilt v.valueBuilt
); );
@ -126,7 +126,7 @@ export const EdSidePropInstance: FC<{ meta: IMeta }> = ({ meta }) => {
return; return;
} }
} catch (e) { } catch (e) {
console.warn("Failed to parse visible on prop: ", key); console.error("Failed to parse visible on prop: ", key);
console.error(e); console.error(e);
} }
} catch (e) { } catch (e) {

View File

@ -38,7 +38,7 @@ export const EdPropInstanceButton: FC<{
evn(arg); evn(arg);
} catch (e) { } catch (e) {
console.error(e); console.error(e);
console.warn(k, v.value); console.error(k, v.value);
} }
} }
} }
@ -50,7 +50,7 @@ export const EdPropInstanceButton: FC<{
evn(arg); evn(arg);
} catch (e) { } catch (e) {
console.error(e); console.error(e);
console.warn(k, v.valueBuilt); console.error(k, v.valueBuilt);
} }
} }
} }

View File

@ -86,7 +86,7 @@ export const EdPropInstanceOptions: FC<{
evn(arg); evn(arg);
} catch (e) { } catch (e) {
console.error(e); console.error(e);
console.warn(k, v.value); console.error(k, v.value);
} }
} }
} }
@ -102,7 +102,7 @@ export const EdPropInstanceOptions: FC<{
evn(arg); evn(arg);
} catch (e) { } catch (e) {
console.error(e); console.error(e);
console.warn(k, v.valueBuilt); console.error(k, v.valueBuilt);
} }
} }
@ -141,7 +141,7 @@ export const EdPropInstanceOptions: FC<{
fn(...Object.values(arg), local); fn(...Object.values(arg), local);
} catch (e) { } catch (e) {
console.error(e); console.error(e);
console.warn(fn.toString(), arg); console.error(fn.toString(), arg);
} }
} }
} }

View File

@ -32,7 +32,7 @@ export const expandTreeHook = (
while (meta) { while (meta) {
i++; i++;
if (i > 5000) { if (i > 5000) {
console.warn( console.error(
"WARNING: Prasi expand item parent tree exceed 5000 loop, maybe infinite loop?" "WARNING: Prasi expand item parent tree exceed 5000 loop, maybe infinite loop?"
); );
break; break;

View File

@ -28,7 +28,7 @@ export const scanComponent = async (items: IContent[], from_root?: boolean) => {
await set(`comp-${id}`, item); await set(`comp-${id}`, item);
} }
if (Object.keys(comp.pending).length > 0) { if (Object.keys(comp.pending).length > 0) {
console.warn( console.error(
`Warning: component not found: ${Object.keys(comp.pending)}` `Warning: component not found: ${Object.keys(comp.pending)}`
); );
return; return;

View File

@ -50,7 +50,7 @@ export const viLoadLegacy = async (vi: {
try { try {
await loadApiProxyDef(api_url, true); await loadApiProxyDef(api_url, true);
} catch (e) { } catch (e) {
console.warn("Failed to load API [Legacy]:", api_url); console.error("Failed to load API [Legacy]:", api_url);
} }
} }
} catch (e) {} } catch (e) {}

View File

@ -22,7 +22,7 @@ export const viLoadSnapshot = async (p: PG) => {
} }
} catch (e: any) { } catch (e: any) {
if (e && !e.message.toLowerCase().includes("invalid url")) { if (e && !e.message.toLowerCase().includes("invalid url")) {
console.warn("Failed to load API [Snapshot]:", api_url); console.error("Failed to load API [Snapshot]:", api_url);
} else { } else {
} }
} }

View File

@ -66,7 +66,7 @@ export const viParts = (
if (!meta) { if (!meta) {
if (item.type === "item" && item.component?.id) { if (item.type === "item" && item.component?.id) {
console.warn(`Warning component ${item.name} - ${item.component.id} failed to load.`); console.error(`Warning component ${item.name} - ${item.component.id} failed to load.`);
} }
return null; return null;
} }

View File

@ -172,14 +172,14 @@ export const viEvalScript = (
try { try {
${src} ${src}
} catch(e) { } catch(e) {
console.warn("Error at item ${meta.item.name}:", ___js); console.error("Error at item ${meta.item.name}:", ___js);
console.error(e); console.error(e);
} }
` `
); );
fn(...Object.values(arg), meta.item.adv?.js); fn(...Object.values(arg), meta.item.adv?.js);
} catch (e) { } catch (e) {
console.warn(`Error at item ${meta.item.name}:`, meta.item.adv?.js); console.error(`Error at item ${meta.item.name}:`, meta.item.adv?.js);
console.error(e); console.error(e);
} }

View File

@ -16,7 +16,7 @@ export const ErrorBox = withErrorBoundary(
}) => { }) => {
const local = useLocal({ retrying: false, meta }); const local = useLocal({ retrying: false, meta });
const [error, resetError] = useErrorBoundary((error, errorInfo) => { const [error, resetError] = useErrorBoundary((error, errorInfo) => {
if (silent !== true) console.warn(error); if (silent !== true) console.error(error);
}); });
if (meta && local.meta !== meta) { if (meta && local.meta !== meta) {