gomtm 0.0.250 → 0.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,10 +136,8 @@ const PanelRemove = () => {
|
|
|
136
136
|
] }) });
|
|
137
137
|
};
|
|
138
138
|
const PanelCreate = () => {
|
|
139
|
-
const [activateItem] = useAtom(activateItemAtom);
|
|
140
139
|
const [removeMeghodSig] = useAtom(removeMethodSigAtom);
|
|
141
140
|
const [openCreatePanel, setOpenCreatePanel] = useAtom(openCreatePanelAtom);
|
|
142
|
-
const mutation = useMutation(removeMeghodSig);
|
|
143
141
|
return /* @__PURE__ */ jsx(Dialog, { open: openCreatePanel, onOpenChange: setOpenCreatePanel, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
144
142
|
/* @__PURE__ */ jsx(DialogTitle, { children: "TODO create item Dlg" }),
|
|
145
143
|
/* @__PURE__ */ jsx(MtButton, { onClick: () => __async(void 0, null, function* () {
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
+
export declare const LzDash5: import("react").ComponentType<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const LzDemo: import("react").ComponentType<{
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const LzDebugLayout: import("react").ComponentType<{
|
|
9
|
+
children?: import("react").ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const LzFrontLayout: import("react").ComponentType<{
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
}>;
|
|
2
14
|
export declare const layoutNameAtom: import("jotai").WritableAtom<string, [value: string], void>;
|
|
3
15
|
export declare const LayoutBase: (props: {
|
|
4
16
|
layoutName?: string;
|
|
@@ -9,18 +9,30 @@ import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
|
|
|
9
9
|
import { TooltipProvider } from "mtxuilib/ui/tooltip";
|
|
10
10
|
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
11
11
|
import { AppProgressBar as ProgressBar } from "next-nprogress-bar";
|
|
12
|
+
import dynamic from "next/dynamic";
|
|
12
13
|
import { Suspense } from "react";
|
|
13
14
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
14
15
|
import { Toaster } from "sonner";
|
|
15
|
-
import Dash5 from "./dash5";
|
|
16
16
|
import { DebugLayout } from "./debug-layout";
|
|
17
|
-
import { Demo1Layout } from "./demo-layout";
|
|
18
17
|
const ALL_Layouts = [
|
|
19
18
|
"demo1",
|
|
20
19
|
"dash5",
|
|
21
20
|
"default",
|
|
22
|
-
"debug"
|
|
21
|
+
"debug",
|
|
22
|
+
"front"
|
|
23
23
|
];
|
|
24
|
+
const LzDash5 = dynamic(() => import("./dash5").then((x) => x.default), {
|
|
25
|
+
ssr: true
|
|
26
|
+
});
|
|
27
|
+
const LzDemo = dynamic(() => import("./demo-layout").then((x) => x.Demo1Layout), {
|
|
28
|
+
ssr: true
|
|
29
|
+
});
|
|
30
|
+
const LzDebugLayout = dynamic(() => import("./debug-layout").then((x) => x.DebugLayout), {
|
|
31
|
+
ssr: true
|
|
32
|
+
});
|
|
33
|
+
const LzFrontLayout = dynamic(() => import("./front-layout").then((x) => x.FrontLayout), {
|
|
34
|
+
ssr: true
|
|
35
|
+
});
|
|
24
36
|
const layoutNameValueAtom = atom("");
|
|
25
37
|
const layoutNameAtom = atom((get) => {
|
|
26
38
|
return get(layoutNameValueAtom);
|
|
@@ -40,7 +52,10 @@ const LayoutRender = (props) => {
|
|
|
40
52
|
const [layoutName, setLayoutName] = useAtom(layoutNameAtom);
|
|
41
53
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
54
|
/* @__PURE__ */ jsxs(TooltipProvider, { delayDuration: 0, children: [
|
|
43
|
-
|
|
55
|
+
/* @__PURE__ */ jsx("div", { children: layoutName }),
|
|
56
|
+
/* @__PURE__ */ jsx("div", {}),
|
|
57
|
+
/* @__PURE__ */ jsx(DebugLayout, {}),
|
|
58
|
+
/* @__PURE__ */ jsx(LzDebugLayout, { children }),
|
|
44
59
|
/* @__PURE__ */ jsx(
|
|
45
60
|
ProgressBar,
|
|
46
61
|
{
|
|
@@ -79,5 +94,9 @@ const LayoutSwitchDlg = () => {
|
|
|
79
94
|
};
|
|
80
95
|
export {
|
|
81
96
|
LayoutBase,
|
|
97
|
+
LzDash5,
|
|
98
|
+
LzDebugLayout,
|
|
99
|
+
LzDemo,
|
|
100
|
+
LzFrontLayout,
|
|
82
101
|
layoutNameAtom
|
|
83
102
|
};
|