From a3c482ae1dc9e72a70d9618227d47c54e6789cd5 Mon Sep 17 00:00:00 2001 From: xujiang Date: Tue, 6 Aug 2024 16:48:03 +0800 Subject: [PATCH] :new: support nodejs20+ and imrpove entry config --- package.json | 6 +- readme.md | 3 +- src/pages/home/index.less | 49 ++++++++++++++++- src/pages/home/index.tsx | 112 +++++++++++++++++++++++--------------- 4 files changed, 121 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index 811681b..61105c1 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,10 @@ "yehuozhili (https://github.com/yehuozhili))" ], "scripts": { - "start": "umi dev", - "build": "umi build", + "start": "export NODE_OPTIONS=--openssl-legacy-provider && umi dev -- editor", + "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", "dev": "http-server dist", "docs:dev": "vuepress dev doc", diff --git a/readme.md b/readme.md index a34b88d..632a61e 100644 --- a/readme.md +++ b/readme.md @@ -36,8 +36,9 @@ Related products: - [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) -- [Lowcode community](http://lowcode.dooring.cn) +- [Nocode/WEP](http://doc.dooring.vip) - [Dooring-Saas](https://dooring.vip) +- [Dooring 智图](https://magic.dooring.vip) ## Author diff --git a/src/pages/home/index.less b/src/pages/home/index.less index 0701447..ef41f12 100644 --- a/src/pages/home/index.less +++ b/src/pages/home/index.less @@ -2,9 +2,27 @@ display: flex; height: 100%; .leftArea { - padding: 10px 0 10px 20px; - // width: 320px; - border-right: 1px solid #f0f0f0; + width: 270px; + height: 100%; + 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 { 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; + } +} diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 62dcc44..ba9acdf 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -1,65 +1,91 @@ import React from "react"; -import { Tabs, message } from "antd"; +import { message, Dropdown, Button } from "antd"; import { history } from "umi"; import { MobileOutlined, ConsoleSqlOutlined, CodeOutlined, - IdcardOutlined + RobotOutlined, + FileImageOutlined } from "@ant-design/icons"; import Zan from "@/components/Zan"; import styles from "./index.less"; -const { TabPane } = Tabs; - const Home = () => { const handleGo = (type: string) => { if (type === "H5") { history.push("/editor?tid=123456"); - } else if (type === "PC") { - window.open("https://v6.dooring.vip/beta"); + } else if (type === "Doc") { + window.open("http://doc.dooring.vip"); + } else if (type === "mitu") { + window.open("https://magic.dooring.vip"); } else { history.push("/ide"); } }; + const menu = ( +
+
handleGo("H5")}> + H5 +
+
handleGo("Doc")}> + 文档编辑{" "} +
+
handleGo("online")}> + 在线编程{" "} +
+
handleGo("mitu")}> + 图片编辑{" "} +
+
+ ); return (
- - - - 我的H5 - - } - key="1" - > - 正在开发... - - - - 我的大屏 - - } - key="2" - > - 正在开发... - - - - 我的可视化 - - } - key="3" - > - 正在开发... - - + + + +
+
+ +
+
+
+ dooring低代码交流群500人 已满 +
+
+ 如无法进群, 可加下方作者微信 + + +
+ } + placement="bottomCenter" + > + 点我 + +
+

可视化低代码技术精粹

+
+ +
+
+
@@ -91,9 +117,9 @@ const Home = () => {
在线编程
-
handleGo("PC")}> +
handleGo("mitu")}> -
制作可视化大屏
+
制作图片海报