wip fix
This commit is contained in:
parent
011aeabf44
commit
3dc25a8447
|
|
@ -15,7 +15,6 @@ RUN echo $DATABASE_URL
|
|||
# RUN npm install -g node-gyp
|
||||
# RUN npm install -g node-gyp-build-optional-packages
|
||||
|
||||
|
||||
# RUN curl -fsSL https://bun.sh/install | bash -s "bun-v1.0.18"
|
||||
# RUN ln -s $HOME/.bun/bin/bun /usr/local/bin/bun
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export const apiProxy = (api_url: string) => {
|
|||
w.prasiApi = {};
|
||||
}
|
||||
|
||||
try {
|
||||
const base = new URL(api_url);
|
||||
const base_url = `${base.protocol}//${base.host}`;
|
||||
if (!w.prasiApi[base_url]) {
|
||||
|
|
@ -101,6 +102,10 @@ export const apiProxy = (api_url: string) => {
|
|||
},
|
||||
}
|
||||
);
|
||||
} catch (e) {
|
||||
console.warn("Init API failed for URL: ", JSON.stringify(api_url));
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
const fetchSendApi = async (url: string, params: any) => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { FC, ReactNode } from "react";
|
||||
import { FC, ReactNode, useEffect, useState } from "react";
|
||||
import { useGlobal, useLocal } from "web-utils";
|
||||
import { IMeta } from "../../ed/logic/ed-global";
|
||||
import { ViGlobal } from "./global";
|
||||
|
|
@ -12,8 +12,10 @@ export const ViScript: FC<{
|
|||
passprop?: any;
|
||||
}> = ({ meta, children, passprop }) => {
|
||||
const vi = useGlobal(ViGlobal, "VI");
|
||||
const local = useLocal({});
|
||||
meta.render = local.render;
|
||||
const [_, _set] = useState({});
|
||||
meta.render = () => {
|
||||
_set({});
|
||||
};
|
||||
|
||||
let _pass = passprop;
|
||||
if (meta.item.component?.id) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue