This commit is contained in:
Rizky 2023-11-01 11:15:08 +07:00
parent d79e7ec11e
commit 0231530bcd
4 changed files with 14 additions and 14 deletions

View File

@ -1,11 +1,10 @@
import { activity } from ".";
import { SAction } from "../actions"; import { SAction } from "../actions";
import { SyncConnection } from "../type"; import { SyncConnection } from "../type";
export const code_open: SAction["code"]["open"] = async function ( export const code_open: SAction["code"]["open"] = async function (
this: SyncConnection, this: SyncConnection
) { ) {
let result = null as unknown as Awaited< let result = null as unknown as Awaited<ReturnType<SAction["code"]["open"]>>;
ReturnType<SAction["code"]["open"]>
>;
return result; return result;
} };

View File

View File

@ -2,13 +2,11 @@ import { MultiBackend, getBackendOptions } from "@minoru/react-dnd-treeview";
import { DndProvider } from "react-dnd"; import { DndProvider } from "react-dnd";
import { useGlobal } from "web-utils"; import { useGlobal } from "web-utils";
import { EDGlobal } from "./logic/ed-global"; import { EDGlobal } from "./logic/ed-global";
import { EdApi } from "./panel/header/left/api";
import { EdSiteJS } from "./panel/header/left/js";
import { EdSitePicker } from "./panel/header/left/site";
import { EdTreeBody } from "./panel/tree/body"; import { EdTreeBody } from "./panel/tree/body";
import { EdTreeSearch } from "./panel/tree/search"; import { EdTreeSearch } from "./panel/tree/search";
import { EdSitePicker } from "./panel/header/left/site";
import { EdApi } from "./panel/header/left/api";
import { EdExport } from "./panel/header/left/export";
import { EdNpm } from "./panel/header/left/npm";
import { EdSiteJS } from "./panel/header/left/js";
export const EdLeft = () => { export const EdLeft = () => {
const p = useGlobal(EDGlobal, "EDITOR"); const p = useGlobal(EDGlobal, "EDITOR");
@ -30,9 +28,7 @@ export const EdLeft = () => {
<EdSitePicker /> <EdSitePicker />
<div className="flex items-stretch space-x-1 pl-2"> <div className="flex items-stretch space-x-1 pl-2">
<EdSiteJS /> <EdSiteJS />
<EdNpm />
<EdApi /> <EdApi />
{/* <EdExport /> */}
</div> </div>
</div> </div>

View File

@ -35,6 +35,11 @@ export const FieldColor: FC<{
local.render(); local.render();
}; };
if (typeof local.val === "string" && local.val.length > 10) {
update("");
return null;
}
return ( return (
<FieldColorPicker <FieldColorPicker
value={local.val} value={local.val}