mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-11 01:12:49 +00:00
🆕 support nodejs20+ and imrpove entry config
This commit is contained in:
parent
afc1c9112b
commit
a3c482ae1d
@ -22,8 +22,10 @@
|
|||||||
"yehuozhili <yehuozhili@outlook.com> (https://github.com/yehuozhili))"
|
"yehuozhili <yehuozhili@outlook.com> (https://github.com/yehuozhili))"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "umi dev",
|
"start": "export NODE_OPTIONS=--openssl-legacy-provider && umi dev -- editor",
|
||||||
"build": "umi build",
|
"start:win": "set NODE_OPTIONS=--openssl-legacy-provider && umi dev -- editor",
|
||||||
|
"build": "export NODE_OPTIONS=--openssl-legacy-provider && umi build",
|
||||||
|
"build:win": "set NODE_OPTIONS=--openssl-legacy-provider && umi build",
|
||||||
"server": "node server.js",
|
"server": "node server.js",
|
||||||
"dev": "http-server dist",
|
"dev": "http-server dist",
|
||||||
"docs:dev": "vuepress dev doc",
|
"docs:dev": "vuepress dev doc",
|
||||||
|
|||||||
@ -36,8 +36,9 @@ Related products:
|
|||||||
|
|
||||||
- [V6.Dooring | Large screen visual editor](https://github.com/MrXujiang/v6.dooring.public)
|
- [V6.Dooring | Large screen visual editor](https://github.com/MrXujiang/v6.dooring.public)
|
||||||
- [dooring-electron-lowcode | Dooring desktop software](https://github.com/MrXujiang/dooring-electron-lowcode)
|
- [dooring-electron-lowcode | Dooring desktop software](https://github.com/MrXujiang/dooring-electron-lowcode)
|
||||||
- [Lowcode community](http://lowcode.dooring.cn)
|
- [Nocode/WEP](http://doc.dooring.vip)
|
||||||
- [Dooring-Saas](https://dooring.vip)
|
- [Dooring-Saas](https://dooring.vip)
|
||||||
|
- [Dooring 智图](https://magic.dooring.vip)
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,27 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.leftArea {
|
.leftArea {
|
||||||
padding: 10px 0 10px 20px;
|
width: 270px;
|
||||||
// width: 320px;
|
height: 100%;
|
||||||
border-right: 1px solid #f0f0f0;
|
background-color: #fff;
|
||||||
|
padding: 26px 0 40px;
|
||||||
|
.bottomArea {
|
||||||
|
margin-top: 232px;
|
||||||
|
text-align: center;
|
||||||
|
.groupWrap {
|
||||||
|
.groupItem {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
span {
|
||||||
|
margin-left: 3px;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 2px 5px;
|
||||||
|
border: 1px solid #2f54eb;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.contentArea {
|
.contentArea {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@ -60,3 +78,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menuWrap,
|
||||||
|
.vcWrap {
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 3px;
|
||||||
|
text-align: center;
|
||||||
|
.menuItem {
|
||||||
|
height: 38px;
|
||||||
|
line-height: 38px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #2f54eb;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -1,65 +1,91 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Tabs, message } from "antd";
|
import { message, Dropdown, Button } from "antd";
|
||||||
import { history } from "umi";
|
import { history } from "umi";
|
||||||
import {
|
import {
|
||||||
MobileOutlined,
|
MobileOutlined,
|
||||||
ConsoleSqlOutlined,
|
ConsoleSqlOutlined,
|
||||||
CodeOutlined,
|
CodeOutlined,
|
||||||
IdcardOutlined
|
RobotOutlined,
|
||||||
|
FileImageOutlined
|
||||||
} from "@ant-design/icons";
|
} from "@ant-design/icons";
|
||||||
import Zan from "@/components/Zan";
|
import Zan from "@/components/Zan";
|
||||||
import styles from "./index.less";
|
import styles from "./index.less";
|
||||||
|
|
||||||
const { TabPane } = Tabs;
|
|
||||||
|
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
const handleGo = (type: string) => {
|
const handleGo = (type: string) => {
|
||||||
if (type === "H5") {
|
if (type === "H5") {
|
||||||
history.push("/editor?tid=123456");
|
history.push("/editor?tid=123456");
|
||||||
} else if (type === "PC") {
|
} else if (type === "Doc") {
|
||||||
window.open("https://v6.dooring.vip/beta");
|
window.open("http://doc.dooring.vip");
|
||||||
|
} else if (type === "mitu") {
|
||||||
|
window.open("https://magic.dooring.vip");
|
||||||
} else {
|
} else {
|
||||||
history.push("/ide");
|
history.push("/ide");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const menu = (
|
||||||
|
<div className={styles.menuWrap}>
|
||||||
|
<div className={styles.menuItem} onClick={() => handleGo("H5")}>
|
||||||
|
<MobileOutlined /> H5
|
||||||
|
</div>
|
||||||
|
<div className={styles.menuItem} onClick={() => handleGo("Doc")}>
|
||||||
|
<ConsoleSqlOutlined /> 文档编辑{" "}
|
||||||
|
</div>
|
||||||
|
<div className={styles.menuItem} onClick={() => handleGo("online")}>
|
||||||
|
<RobotOutlined /> 在线编程{" "}
|
||||||
|
</div>
|
||||||
|
<div className={styles.menuItem} onClick={() => handleGo("mitu")}>
|
||||||
|
<FileImageOutlined /> 图片编辑{" "}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
return (
|
return (
|
||||||
<div className={styles.homeWrap}>
|
<div className={styles.homeWrap}>
|
||||||
<div className={styles.leftArea}>
|
<div className={styles.leftArea}>
|
||||||
<Tabs defaultActiveKey="1">
|
<Dropdown overlay={menu} placement="bottomCenter" arrow visible>
|
||||||
<TabPane
|
<Button type="primary" block size="large">
|
||||||
tab={
|
新建页面
|
||||||
<span>
|
</Button>
|
||||||
<MobileOutlined />
|
</Dropdown>
|
||||||
我的H5
|
<div className={styles.bottomArea}>
|
||||||
</span>
|
<div>
|
||||||
}
|
<img
|
||||||
key="1"
|
src="http://cdn.dooring.cn/dr/R-C.gif"
|
||||||
>
|
alt=""
|
||||||
正在开发...
|
style={{ width: "180px", marginBottom: "20px" }}
|
||||||
</TabPane>
|
/>
|
||||||
<TabPane
|
</div>
|
||||||
tab={
|
<div className={styles.groupWrap}>
|
||||||
<span>
|
<div className={styles.groupItem}>
|
||||||
<ConsoleSqlOutlined />
|
dooring低代码交流群500人 <span>已满</span>
|
||||||
我的大屏
|
</div>
|
||||||
</span>
|
<div className={styles.groupItem} style={{ color: "#2F54EB" }}>
|
||||||
}
|
如无法进群, 可加下方作者微信
|
||||||
key="2"
|
<Dropdown
|
||||||
>
|
overlay={
|
||||||
正在开发...
|
<div className={styles.group}>
|
||||||
</TabPane>
|
<img
|
||||||
<TabPane
|
src="https://cdn.dooring.cn/dr/dooring.jpeg"
|
||||||
tab={
|
style={{ width: "180px", marginBottom: "20px" }}
|
||||||
<span>
|
alt=""
|
||||||
<IdcardOutlined />
|
/>
|
||||||
我的可视化
|
</div>
|
||||||
</span>
|
}
|
||||||
}
|
placement="bottomCenter"
|
||||||
key="3"
|
>
|
||||||
>
|
<span>点我</span>
|
||||||
正在开发...
|
</Dropdown>
|
||||||
</TabPane>
|
</div>
|
||||||
</Tabs>
|
<h3>可视化低代码技术精粹</h3>
|
||||||
|
<div style={{ textAlign: "center" }}>
|
||||||
|
<img
|
||||||
|
src="http://cdn.dooring.cn/dr%2Fcode1.png"
|
||||||
|
style={{ width: "152px" }}
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.contentArea}>
|
<div className={styles.contentArea}>
|
||||||
<div className={styles.logoTip}>
|
<div className={styles.logoTip}>
|
||||||
@ -91,9 +117,9 @@ const Home = () => {
|
|||||||
<CodeOutlined />
|
<CodeOutlined />
|
||||||
<div>在线编程</div>
|
<div>在线编程</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.card} onClick={() => handleGo("PC")}>
|
<div className={styles.card} onClick={() => handleGo("mitu")}>
|
||||||
<ConsoleSqlOutlined />
|
<ConsoleSqlOutlined />
|
||||||
<div>制作可视化大屏</div>
|
<div>制作图片海报</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer className={styles.footer}>
|
<footer className={styles.footer}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user