8 Star 53 Fork 18

duolabmeng / GoEasyDesigner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

窗口设计师

666

这是一个简单易用的可视化界面设计工具,基于Go语言开发,使用Wails框架,支持Windows、MacOS、Linux等系统。

主仓库 https://github.com/duolabmeng6/GoEasyDesigner

镜像仓库 https://gitee.com/duolabmeng666/go-easy-designer

项目进度:

项目处于积极开发阶段 欢迎前端大佬pr

已完成任务:

  • 跨平台兼容性:支持Windows、MacOS和Linux系统。

  • 界面设计和功能开发:完成整体界面布局、功能流程设计、界面绘制、属性修改、组件拖拽、双击组件跳转到对应事件函数等核心功能的开发。

  • 智能代码编辑器:实现了代码编辑框的汉字首字母输入提醒功能,提高了编码效率。

  • goefun库 库中文函数库支持:在Golang中使用中文函数进行开发。

  • 组件库:已完成按钮、编辑框、标签、开关、单选框、多选框、常用布局、弹性布局、树形框、菜单、表格、进度条、选择夹、常用布局弹、性布局等组件的开发。

  • 自定义组件支持:允许创建自定义组件,例如登录框等模板,以便快速应用开发。

  • 集成开发环境:提供了一键配置环境压缩包,简化开发环境的搭建。

  • 多语言支持:应用支持中文和英文等多种语言。

待完成任务:

  • jsefun库支持:计划中,等待开发中。

  • 组件库完善:正在进行中, element-plus 组件的进一步完善。

  • 支持ElectronJS:计划中,将支持ElectronJS作为后端技术。

  • 自定义云组件 用户可以自己上传模板供其他用户使用

在线体验

感谢朋友提供的服务器,可以愉快的在线体验了

国内地址: https://go.kenhong.com/

国外地址: https://g.yx24.me

下载窗口运行项目,在线体验时在浏览器中画好界面保存,会下载2个文件 design.json,__aux_code.js 注意你的浏览器允许下载多个文件的权限,将设计文件放到指定位置即可.

视频教程10分钟了入门

视频教程3分钟学会自定义组件封装

环境安装

方式1

1.安装 node js语言开发环境

node语言下载页面 版本18以上

国内镜像 npm install -g cnpm --registry=http://registry.npmmirror.com

安装vite npm install vite@latest

2.安装 go 语言开发环境

go语言下载页面 版本任意

安装 wails wails框架文档

国内镜像执行 go env -w GOPROXY=https://goproxy.cn,direct

go install github.com/wailsapp/wails/v2/cmd/wails@latest

安装成功后,运行 wails 命令,有内容输出即为安装成功。

方式2 Window可下载完整的运行环境包

小飞机网盘下载地址 免登录

下载 GoEasyDesigner.2023.12.6.包含运行环境.zip 解压

env_soft.7z 运行环境包含 gonode 解压找到 一键配置环境.exe 以管理员身份运行

如果安装成功你就可以直接打开 GoEasyDesigner.exe

没有配置成功的话,自己添加环境变量到 系统的 PATH 添加后运行 一键配置环境.exe 即可

C:\GoEasyDesigner\env_soft\go1.21.4\bin
C:\GoEasyDesigner\env_soft\go1.21.4\AppData\bin
C:\GoEasyDesigner\env_soft\node-v20.9.0-win-x64

go-easy-demo 文件夹是示例项目

窗口设计师打开 go-easy-demo\frontend\src\win\design.json 就可以设计界面或者运行编译项目了

用 goland ide 打开 go-easy-demo 文件夹 就可以开始编写代码了

项目创建

创建窗口运行项目

该项目为窗口运行的环境你的代码也将在这里编写

创建项目

wails init -n "go-easy-demo" -t https://github.com/duolabmeng6/wails-template-vue-go-easy

运行窗口

cd go-easy-demo
wails dev

编译为可执行文件

cd go-easy-demo
wails build

仅调试前端

cd go-easy-demo/frontend
npm run dev

使用说明

下载 GoEasyDesigner

下载最新版本: https://github.com/duolabmeng6/GoEasyDesigner/releases

界面设计文件在这里

go-easy-demo/frontend/src/win/design.json

webstorm IDE代码跳转插件

想体验双击组件在ide中自动跳转到对应函数 请在webstorm中安装 QtEasyDesigner 插件,在本项目的文件中,

安装后在IDE编辑器中右键看到 配置 QtEasyDesigner

macos填写路径

/Applications/GoEasyDesigner.app/Contents/MacOS/GoEasyDesigner

window填写exe的路径

C:\GoEasyDesigner\GoEasyDesigner.exe

后续使用的话 打开 design.json 在编辑器中右键 打开 QtEasyDesigner 界面就出来了

js代码使用 webstorm ide 绝大部分编写代码都应该在 js中编写,如果js无法实现的再调用go代码 go代码使用 goland IDE 编写 一般情况下代码写在 app.go 中

开发窗口设计师请看

在ide中调试需要以下配置

构建软件包 changeme

工作目录 /Users/ll/Documents/GitHub/GoEasyDesigner/GoEasyDesigner 改成你的路径

环境变量 CGO_LDFLAGS=-framework UniformTypeIdentifiers 这个macos需要 window不需要

go工具实参 -tags dev -gcflags "all=-N -l"

程序实参(可选) 文件路径=/Users/ll/Documents/GitHub/GoEasyDesigner/go-easy-demo/frontend/src/win/design.json port=8080 这是配合ide插件的port是插件的端口

现在可以在 app.go 中下断点调试了.

go-easy-demo 为模板项目

界面数据在这里

go-easy-demo/frontend/src/win/design.json

运行 就可以看到效果了

cd go-easy-demo
wails dev

窗口设计师开发案例

多多投屏 轻轻松松在MacOS和Window中将视频文件投屏到电视上,跟手机的投屏功能一致,无需nas等繁琐操作.直接文件投屏.

贡献

贡献者列表对于自述文件来说太大了! 所有为这个项目做出贡献的杰出人士在这里 贡献列表 后面我们会制作页面

许可证

本项目采用 GNU Lesser General Public License (LGPL) 版本 3 进行许可。详细信息请参阅许可证文件。

学习交流

QQ群: 927427009

GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

基于 go 语言 使用 wails框架, 支持 window macos linux 等系统. 易语言 展开 收起
LGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/duolabmeng666/go-easy-designer.git
git@gitee.com:duolabmeng666/go-easy-designer.git
duolabmeng666
go-easy-designer
GoEasyDesigner
main

搜索帮助