diff --git a/README.en.md b/README.en.md index c3b325c..f1fea8b 100644 --- a/README.en.md +++ b/README.en.md @@ -1,36 +1,155 @@ -# godoos +

+ +

-#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} +

GodoOS

+一款高效的内网办公平台,内含word/excel/ppt/pdf/内网聊天/白板/思维导图等多个办公系统工具,支持原生文件存储。平台界面精仿windows风格,操作简便,同时保持低资源消耗和高性能运行。无需注册即可自动连接内网用户,实现即时通讯和文件共享。 -#### Software Architecture -Software architecture description +
-#### Installation +[![license][license-image]][license-url] -1. xxxx -2. xxxx -3. xxxx +[English](README.md) | 简体中文 -#### Instructions +### 安装 -1. xxxx -2. xxxx -3. xxxx +[![Windows][Windows-image]][Windows-url] +[![MacOS][MacOS-image]][MacOS-url] +[![Linux][Linux-image]][Linux-url] -#### Contribution +[官方文档](./docs/Api.md) | [使用说明](./docs/Guide.md) -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request +[license-image]: ./docs/img/license_%20MIT.svg +[license-url]: https://spdx.org/licenses/MIT.html -#### Gitee Feature -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +[Windows-image]: ./docs/img/Windows.svg + +[Windows-url]: https:// + +[MacOS-image]: ./docs/img/MacOS.svg + +[MacOS-url]: https:// + +[Linux-image]: ./docs/img/Linux.svg + +[Linux-url]: https:// + +
+ +## 亮点 +- 零配置,无需注册,下载即用 +- 零污染,无插件依赖 +- 精小,打包后仅63M,确包含了所有的办公套件 +- 可无限扩展,支持自定义应用 +- golang开发后端,低资源消耗和高性能 + +## 功能说明 + +### 一、系统桌面 +- 精仿windows风格 +- 桌面文件管理 +- 支持原生文件拖拽上传 + + +### 二、文件管理 +- 文件拖拽上传 +- 文件搜索 +- 原生文件存储 + + +### 三、内网聊天 +- 无需繁琐的注册流程,只需在同一局域网内,即可自动发现并列出所有可用的聊天对象,即刻开启即时通讯。支持基于局域网的即时消息传输、文件传输等功能,促进团队内部的无缝沟通与协作。 + + +### 四、文档 +- 简便的word编辑器,原生存储,支持二维码、手写签名,导入导出 + + +### 五、表格 +- 原生存储,Excel编辑器,支持导入、导出,支持图片、公式 + + +### 六、markdown +- 原生存储,采用vditor,支持导入、导出,支持大纲、实时预览 + + +### 七、思维导图 +- 内置多种主题;支持快捷键;节点内容支持图片、图标、超链接、备注、标签。 + + +### 八、演示文稿 +- 原生存储,采用pptist,支持文字、图片、形状、线条、图表、表格、视频、公式等。 + + +### 九、文件编辑器 +- 原生存储,支持打开text/html/css/js/svg/xml/md等,可以当作一个简单的在线editplus。 + + +### 十、白板 +- 集自由布局、画笔、便签多种创意表达能力于一体,激发团队创造力,随时随地,围绕一块白板沟通。 + + +### 十一、图片编辑 +- 一个小型的photoshop,原生存储,支持搜索图片,支持图片裁剪、旋转、缩放、滤镜等功能 + + +### 十二、甘特图 +- 项目管理必备工具,支持自定义项目人员和角色,支持拖拽/管理分配(资源、角色、工作)等。 + + +### 十三、浏览器 +- 一款简单的内置浏览器 + + + +### 十四、系统设置 +- 可在这里切换存储方式,可切换系统背景。 + + +### 十五、应用商店 +- 应用商店管理,可添加外部应用。 + +### 十六、截图 +- 一个简单的截图工具。截图后文件存到本地。 + +### 十七、录屏 +- 一个简单的录屏工具。录屏后录后文件存到本地。 + +### 十八、计算器 +- 一个仿windows10的计算器,支持历史记录。 + + +### 十九、音乐库 +- 一个简单的声音存储库,支持播放音乐。 + +### 二十、图片库 +- 一个简单的图片存储库,支持查看图片 + +### 二十一、看板 +- 支持标准看板,项目管理必备工具,可快速创建看板并放置到不同的文件夹 + + +## 开发 +### 构建 +- 前端构建 +```bash +cd frontend +pnpm i +pnpm build +``` +- 后端构建 +```bash +# go install github.com/wailsapp/wails/v2/cmd/wails@latest +wails build +# wails build -nsis -upx //you need install nsis and upx +``` +## 感谢 +- [element-plus](http://element-plus.org/) +- [vue3](https://v3.cn.vuejs.org/) +- [wails](https://wails.io/) +- [pptist](https://github.com/pipipi-pikachu/PPTist) +- [vditor](https://github.com/Vanessa219/vditor) +- [mind-map](https://github.com/wanglin2/mind-map) +- [canvas-editor](https://github.com/Hufe921/canvas-editor) \ No newline at end of file diff --git a/README.md b/README.md index 4f9b006..ce1406e 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@

GodoOS

-
- 一款高效的内网办公平台,内含word/excel/ppt/pdf/内网聊天/白板/思维导图等多个办公系统工具,支持原生文件存储。平台界面精仿windows风格,操作简便,同时保持低资源消耗和高性能运行。无需注册即可自动连接内网用户,实现即时通讯和文件共享。 +
+ [![license][license-image]][license-url] [English](README.md) | 简体中文 @@ -26,18 +26,26 @@ [Windows-image]: ./docs/img/Windows.svg -[Windows-url]: https:// +[Windows-url]: https://gitee.com/ruitao_admin/godoos/releases/download/v1.0.0/godoos-windows.exe [MacOS-image]: ./docs/img/MacOS.svg -[MacOS-url]: https:// +[MacOS-url]: https://gitee.com/ruitao_admin/godoos/releases/download/v1.0.0/godoos-macos.dmg [Linux-image]: ./docs/img/Linux.svg -[Linux-url]: https:// +[Linux-url]: https://gitee.com/ruitao_admin/godoos/releases/download/v1.0.0/godoos-linux
+## 亮点 +- 无需联网使用,全开源 +- 零配置,无需注册,下载即用 +- 零污染,无插件依赖 +- 精小,打包后仅61M,确包含了所有的办公套件 +- 可无限扩展,支持自定义应用 +- golang开发后端,低资源消耗和高性能 + ## 功能说明 ### 一、系统桌面 @@ -125,7 +133,19 @@ ## 开发 - +### 构建 +- 前端构建 +```bash +cd frontend +pnpm i +pnpm build +``` +- 后端构建 +```bash +# go install github.com/wailsapp/wails/v2/cmd/wails@latest +wails build +# wails build -nsis -upx //you need install nsis and upx +``` ## 感谢 - [element-plus](http://element-plus.org/) - [vue3](https://v3.cn.vuejs.org/) @@ -133,3 +153,4 @@ - [pptist](https://github.com/pipipi-pikachu/PPTist) - [vditor](https://github.com/Vanessa219/vditor) - [mind-map](https://github.com/wanglin2/mind-map) +- [canvas-editor](https://github.com/Hufe921/canvas-editor) \ No newline at end of file diff --git a/build/windows/installer/tmp/MicrosoftEdgeWebview2Setup.exe b/build/windows/installer/tmp/MicrosoftEdgeWebview2Setup.exe new file mode 100644 index 0000000..89a56ec Binary files /dev/null and b/build/windows/installer/tmp/MicrosoftEdgeWebview2Setup.exe differ diff --git a/build/windows/installer/wails_tools.nsh b/build/windows/installer/wails_tools.nsh index f9c0f88..88a305b 100644 --- a/build/windows/installer/wails_tools.nsh +++ b/build/windows/installer/wails_tools.nsh @@ -5,19 +5,19 @@ !include "FileFunc.nsh" !ifndef INFO_PROJECTNAME - !define INFO_PROJECTNAME "{{.Name}}" + !define INFO_PROJECTNAME "godoos" !endif !ifndef INFO_COMPANYNAME - !define INFO_COMPANYNAME "{{.Info.CompanyName}}" + !define INFO_COMPANYNAME "godoos" !endif !ifndef INFO_PRODUCTNAME - !define INFO_PRODUCTNAME "{{.Info.ProductName}}" + !define INFO_PRODUCTNAME "godoos" !endif !ifndef INFO_PRODUCTVERSION - !define INFO_PRODUCTVERSION "{{.Info.ProductVersion}}" + !define INFO_PRODUCTVERSION "1.0.0" !endif !ifndef INFO_COPYRIGHT - !define INFO_COPYRIGHT "{{.Info.Copyright}}" + !define INFO_COPYRIGHT "Copyright........." !endif !ifndef PRODUCT_EXECUTABLE !define PRODUCT_EXECUTABLE "${INFO_PROJECTNAME}.exe" @@ -203,20 +203,12 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}" !macro wails.associateFiles ; Create file associations - {{range .Info.FileAssociations}} - !insertmacro APP_ASSOCIATE "{{.Ext}}" "{{.Name}}" "{{.Description}}" "$INSTDIR\{{.IconName}}.ico" "Open with ${INFO_PRODUCTNAME}" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\"" - - File "..\{{.IconName}}.ico" - {{end}} + !macroend !macro wails.unassociateFiles ; Delete app associations - {{range .Info.FileAssociations}} - !insertmacro APP_UNASSOCIATE "{{.Ext}}" "{{.Name}}" - - Delete "$INSTDIR\{{.IconName}}.ico" - {{end}} + !macroend !macro CUSTOM_PROTOCOL_ASSOCIATE PROTOCOL DESCRIPTION ICON COMMAND @@ -235,15 +227,10 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}" !macro wails.associateCustomProtocols ; Create custom protocols associations - {{range .Info.Protocols}} - !insertmacro CUSTOM_PROTOCOL_ASSOCIATE "{{.Scheme}}" "{{.Description}}" "$INSTDIR\${PRODUCT_EXECUTABLE},0" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\"" - - {{end}} + !macroend !macro wails.unassociateCustomProtocols ; Delete app custom protocol associations - {{range .Info.Protocols}} - !insertmacro CUSTOM_PROTOCOL_UNASSOCIATE "{{.Scheme}}" - {{end}} + !macroend diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 index aa030bc..13a5a5a 100755 --- a/frontend/package.json.md5 +++ b/frontend/package.json.md5 @@ -1 +1 @@ -1fa97678edcc780911c3d714233e97d2 \ No newline at end of file +7d93ddef64f0624cd1fa203b3d0350ee \ No newline at end of file diff --git a/frontend/src/util/update.ts b/frontend/src/util/update.ts index a93a83b..0fef1c7 100644 --- a/frontend/src/util/update.ts +++ b/frontend/src/util/update.ts @@ -18,11 +18,11 @@ export async function checkUpdate() { if(!verData.assets || verData.assets.length <= 0) return; const appName = "godoos"+ versionTag + (isWindowsOS() ? '.exe' : ''); const updateUrl = `${updateGiteeUrl}download/${versionTag}/${appName}`; - - fetch(`${updateGiteeUrl}latest`).then((r) => { - if (r.ok) { - r.json().then((data) => { - if (data.tag_name) { + console.log(updateUrl) + // fetch(`${updateGiteeUrl}latest`).then((r) => { + // if (r.ok) { + // r.json().then((data) => { + // if (data.tag_name) { // const versionTag = data.tag_name; // console.log(versionTag) // if (versionTag.replace('v', '') > manifest.version) { @@ -99,16 +99,16 @@ export async function checkUpdate() { } } */ - } else { - throw new Error('Invalid response.'); - } - }); - } else { - throw new Error('Network response was not ok.'); - } - } - ).catch((e) => { - //toast(t('Updates Check Error') + ' - ' + (e.message || e), { type: 'error', position: 'bottom-left' }); - }); + // } else { + // throw new Error('Invalid response.'); + // } + // }); + // } else { + // throw new Error('Network response was not ok.'); + // } + // } + // ).catch((e) => { + // //toast(t('Updates Check Error') + ' - ' + (e.message || e), { type: 'error', position: 'bottom-left' }); + // }); } \ No newline at end of file diff --git a/frontend/wailsjs/go/app/App.d.ts b/frontend/wailsjs/go/app/App.d.ts new file mode 100644 index 0000000..c18308a --- /dev/null +++ b/frontend/wailsjs/go/app/App.d.ts @@ -0,0 +1,22 @@ +// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL +// This file is automatically generated. DO NOT EDIT + +export function AddToDownloadList(arg1:string,arg2:string):Promise; + +export function ContinueDownload(arg1:string):Promise; + +export function DownloadFile(arg1:string,arg2:string):Promise; + +export function DownloadLoop():Promise; + +export function GetAbsPath(arg1:string):Promise; + +export function GetPlatform():Promise; + +export function OpenDirDialog():Promise; + +export function PauseDownload(arg1:string):Promise; + +export function RestartApp():Promise; + +export function UpdateApp(arg1:string):Promise; diff --git a/frontend/wailsjs/go/app/App.js b/frontend/wailsjs/go/app/App.js new file mode 100644 index 0000000..31dfc12 --- /dev/null +++ b/frontend/wailsjs/go/app/App.js @@ -0,0 +1,43 @@ +// @ts-check +// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL +// This file is automatically generated. DO NOT EDIT + +export function AddToDownloadList(arg1, arg2) { + return window['go']['app']['App']['AddToDownloadList'](arg1, arg2); +} + +export function ContinueDownload(arg1) { + return window['go']['app']['App']['ContinueDownload'](arg1); +} + +export function DownloadFile(arg1, arg2) { + return window['go']['app']['App']['DownloadFile'](arg1, arg2); +} + +export function DownloadLoop() { + return window['go']['app']['App']['DownloadLoop'](); +} + +export function GetAbsPath(arg1) { + return window['go']['app']['App']['GetAbsPath'](arg1); +} + +export function GetPlatform() { + return window['go']['app']['App']['GetPlatform'](); +} + +export function OpenDirDialog() { + return window['go']['app']['App']['OpenDirDialog'](); +} + +export function PauseDownload(arg1) { + return window['go']['app']['App']['PauseDownload'](arg1); +} + +export function RestartApp() { + return window['go']['app']['App']['RestartApp'](); +} + +export function UpdateApp(arg1) { + return window['go']['app']['App']['UpdateApp'](arg1); +} diff --git a/frontend/wailsjs/go/main/App.d.ts b/frontend/wailsjs/go/main/App.d.ts deleted file mode 100755 index 569ded1..0000000 --- a/frontend/wailsjs/go/main/App.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -export function OpenDirDialog():Promise; diff --git a/frontend/wailsjs/go/main/App.js b/frontend/wailsjs/go/main/App.js deleted file mode 100755 index d7f679f..0000000 --- a/frontend/wailsjs/go/main/App.js +++ /dev/null @@ -1,7 +0,0 @@ -// @ts-check -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -export function OpenDirDialog() { - return window['go']['main']['App']['OpenDirDialog'](); -} diff --git a/wails.json b/wails.json index 063f121..abd51d4 100644 --- a/wails.json +++ b/wails.json @@ -7,7 +7,7 @@ "frontend:dev:watcher": "pnpm dev", "frontend:dev:serverUrl": "auto", "author": { - "name": "aiok", + "name": "ruitao", "email": "xpbb@qq.com" } }