wip checkpoint fix
This commit is contained in:
parent
34da559ee6
commit
e444740196
|
|
@ -20,9 +20,7 @@ export const codeBuild = async (code: DBCode) => {
|
|||
entryPoints: ["index.tsx"],
|
||||
bundle: true,
|
||||
format: "cjs",
|
||||
outfile: dir.path(
|
||||
`${g.datadir}/site/build/${id_code}/index.js`
|
||||
),
|
||||
outfile: dir.path(`${g.datadir}/site/build/${id_code}/index.js`),
|
||||
minify: true,
|
||||
treeShaking: true,
|
||||
sourcemap: true,
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@ export const EdApiDomain = ({ domains }: { domains: string[] }) => {
|
|||
const api = apiRef[apiUrl(p)];
|
||||
|
||||
return (
|
||||
<div className="flex border-b py-2 px-2 border-slate-300 boxed flex items-center space-x-1">
|
||||
<div className="flex border-b py-2 px-2 border-slate-300 boxed flex-wrap items-center space-x-1">
|
||||
<div>Domains:</div>
|
||||
{domains.map((e) => {
|
||||
return (
|
||||
<div className="border flex items-stretch" key={e}>
|
||||
<div className="border flex items-stretch mb-1" key={e}>
|
||||
<a
|
||||
className="border-r flex items-center px-1 hover:underline hover:text-blue-500"
|
||||
href={e}
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ export const EdApiServer = forwardRef<
|
|||
"px-1 m-1 border flex-1 font-mono text-[11px] outline-none focus:border-blue-500",
|
||||
dev.enabled && "border-green-700"
|
||||
)}
|
||||
placeholder="http://local-dev-server"
|
||||
value={dev.url}
|
||||
onChange={(e) => {
|
||||
dev.url = e.currentTarget.value;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export const EdPopCode = () => {
|
|||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
if (!p.ui.popup.code.init) {
|
||||
if (p.ui.popup.code.open) {
|
||||
const id_code = await p.sync.activity("site", {
|
||||
action: p.ui.popup.code.open ? "open" : "close",
|
||||
id: p.site.id,
|
||||
|
|
@ -211,7 +211,7 @@ export const EdPopCode = () => {
|
|||
src={`${vscode_url}folder=/site/code/${p.site.id}/${p.ui.popup.code.id}`}
|
||||
></iframe>
|
||||
<div className="flex flex-1 absolute inset-0 z-0 items-center justify-center">
|
||||
Loading VS Code...
|
||||
Loading VSCode...
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue