seat-editor 1.4.21 → 1.4.22
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.
- package/dist/features/package/index.js +7 -2
- package/dist/features/view/index.js +1 -1
- package/package.json +1 -1
- package/dist/app/layout.jsx +0 -27
- package/dist/app/new-board/page.jsx +0 -53
- package/dist/app/old-board/page.jsx +0 -510
- package/dist/app/only-view/page.jsx +0 -40
- package/dist/app/page.jsx +0 -13
- package/dist/components/button-tools/index.jsx +0 -17
- package/dist/components/form-tools/label.jsx +0 -44
- package/dist/components/form-tools/shape.jsx +0 -66
- package/dist/components/input/number-indicator.jsx +0 -36
- package/dist/components/joystick/index.jsx +0 -49
- package/dist/components/layer/index.jsx +0 -361
- package/dist/components/lib/index.jsx +0 -33
- package/dist/components/modal-preview/index.jsx +0 -11
- package/dist/features/board/index.jsx +0 -654
- package/dist/features/navbar/index.jsx +0 -5
- package/dist/features/package/index.jsx +0 -107
- package/dist/features/panel/index.jsx +0 -105
- package/dist/features/panel/select-tool.jsx +0 -53
- package/dist/features/panel/square-circle-tool.jsx +0 -10
- package/dist/features/panel/table-seat-circle.jsx +0 -31
- package/dist/features/panel/text-tool.jsx +0 -22
- package/dist/features/panel/upload-tool.jsx +0 -177
- package/dist/features/side-tool/index.jsx +0 -261
- package/dist/features/view/index.jsx +0 -220
- package/dist/provider/antd-provider.jsx +0 -46
- package/dist/provider/redux-provider.jsx +0 -6
- package/dist/provider/store-provider.jsx +0 -10
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
import Board from "../../features/board";
|
|
4
|
-
import SideTool from "../../features/side-tool";
|
|
5
|
-
import ControlPanels from "../../features/panel";
|
|
6
|
-
import LayerView from "../../features/view";
|
|
7
|
-
import { useAppDispatch } from "../../hooks/use-redux";
|
|
8
|
-
const TableEditor = ({ componentProps = [], extraComponentProps = [], }) => {
|
|
9
|
-
const dispatch = useAppDispatch();
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (componentProps.length > 0) {
|
|
12
|
-
dispatch({
|
|
13
|
-
type: "board/setNewComponents",
|
|
14
|
-
payload: componentProps,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
if (extraComponentProps.length > 0) {
|
|
18
|
-
dispatch({
|
|
19
|
-
type: "board/setNewExtraComponent",
|
|
20
|
-
payload: extraComponentProps,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}, [componentProps, extraComponentProps]);
|
|
24
|
-
return (<>
|
|
25
|
-
<div className="w-full h-screen flex relative">
|
|
26
|
-
<SideTool />
|
|
27
|
-
<Board />
|
|
28
|
-
<ControlPanels />
|
|
29
|
-
</div>
|
|
30
|
-
</>);
|
|
31
|
-
};
|
|
32
|
-
export default TableEditor;
|
|
33
|
-
export { LayerView };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Modal } from "antd";
|
|
3
|
-
import { useAppSelector, useAppDispatch } from "../../hooks/use-redux";
|
|
4
|
-
const ModalPreview = ({ children }) => {
|
|
5
|
-
const { isPreview } = useAppSelector((state) => state.tool);
|
|
6
|
-
const dispatch = useAppDispatch();
|
|
7
|
-
return (<Modal open={isPreview} onCancel={() => dispatch({ type: "tool/setTooglePreview", payload: false })} width={700} title="Preview Board" centered footer={null}>
|
|
8
|
-
<div className="flex flex-col p-4 h-[500px]">{children}</div>
|
|
9
|
-
</Modal>);
|
|
10
|
-
};
|
|
11
|
-
export default ModalPreview;
|