editor readme

This commit is contained in:
godo 2024-07-24 11:55:57 +08:00
parent f2753de7b6
commit 44e38dc471
11 changed files with 263 additions and 82 deletions

View file

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

View file

@ -3,10 +3,10 @@
</p> </p>
<h1 align="center">GodoOS</h1> <h1 align="center">GodoOS</h1>
<div align="center">
一款高效的内网办公平台内含word/excel/ppt/pdf/内网聊天/白板/思维导图等多个办公系统工具支持原生文件存储。平台界面精仿windows风格操作简便同时保持低资源消耗和高性能运行。无需注册即可自动连接内网用户实现即时通讯和文件共享。 一款高效的内网办公平台内含word/excel/ppt/pdf/内网聊天/白板/思维导图等多个办公系统工具支持原生文件存储。平台界面精仿windows风格操作简便同时保持低资源消耗和高性能运行。无需注册即可自动连接内网用户实现即时通讯和文件共享。
<div align="center">
[![license][license-image]][license-url] [![license][license-image]][license-url]
[English](README.md) | 简体中文 [English](README.md) | 简体中文
@ -26,18 +26,26 @@
[Windows-image]: ./docs/img/Windows.svg [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-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-image]: ./docs/img/Linux.svg
[Linux-url]: https:// [Linux-url]: https://gitee.com/ruitao_admin/godoos/releases/download/v1.0.0/godoos-linux
</div> </div>
## 亮点
- 无需联网使用,全开源
- 零配置,无需注册,下载即用
- 零污染,无插件依赖
- 精小打包后仅61M确包含了所有的办公套件
- 可无限扩展,支持自定义应用
- golang开发后端低资源消耗和高性能
## 功能说明 ## 功能说明
### 一、系统桌面 ### 一、系统桌面
@ -125,7 +133,19 @@
<img src="./docs/img/kanban.png" width="600" /> <img src="./docs/img/kanban.png" width="600" />
## 开发 ## 开发
### 构建
- 前端构建
```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/) - [element-plus](http://element-plus.org/)
- [vue3](https://v3.cn.vuejs.org/) - [vue3](https://v3.cn.vuejs.org/)
@ -133,3 +153,4 @@
- [pptist](https://github.com/pipipi-pikachu/PPTist) - [pptist](https://github.com/pipipi-pikachu/PPTist)
- [vditor](https://github.com/Vanessa219/vditor) - [vditor](https://github.com/Vanessa219/vditor)
- [mind-map](https://github.com/wanglin2/mind-map) - [mind-map](https://github.com/wanglin2/mind-map)
- [canvas-editor](https://github.com/Hufe921/canvas-editor)

View file

@ -5,19 +5,19 @@
!include "FileFunc.nsh" !include "FileFunc.nsh"
!ifndef INFO_PROJECTNAME !ifndef INFO_PROJECTNAME
!define INFO_PROJECTNAME "{{.Name}}" !define INFO_PROJECTNAME "godoos"
!endif !endif
!ifndef INFO_COMPANYNAME !ifndef INFO_COMPANYNAME
!define INFO_COMPANYNAME "{{.Info.CompanyName}}" !define INFO_COMPANYNAME "godoos"
!endif !endif
!ifndef INFO_PRODUCTNAME !ifndef INFO_PRODUCTNAME
!define INFO_PRODUCTNAME "{{.Info.ProductName}}" !define INFO_PRODUCTNAME "godoos"
!endif !endif
!ifndef INFO_PRODUCTVERSION !ifndef INFO_PRODUCTVERSION
!define INFO_PRODUCTVERSION "{{.Info.ProductVersion}}" !define INFO_PRODUCTVERSION "1.0.0"
!endif !endif
!ifndef INFO_COPYRIGHT !ifndef INFO_COPYRIGHT
!define INFO_COPYRIGHT "{{.Info.Copyright}}" !define INFO_COPYRIGHT "Copyright........."
!endif !endif
!ifndef PRODUCT_EXECUTABLE !ifndef PRODUCT_EXECUTABLE
!define PRODUCT_EXECUTABLE "${INFO_PROJECTNAME}.exe" !define PRODUCT_EXECUTABLE "${INFO_PROJECTNAME}.exe"
@ -203,20 +203,12 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}"
!macro wails.associateFiles !macro wails.associateFiles
; Create file associations ; 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 !macroend
!macro wails.unassociateFiles !macro wails.unassociateFiles
; Delete app associations ; Delete app associations
{{range .Info.FileAssociations}}
!insertmacro APP_UNASSOCIATE "{{.Ext}}" "{{.Name}}"
Delete "$INSTDIR\{{.IconName}}.ico"
{{end}}
!macroend !macroend
!macro CUSTOM_PROTOCOL_ASSOCIATE PROTOCOL DESCRIPTION ICON COMMAND !macro CUSTOM_PROTOCOL_ASSOCIATE PROTOCOL DESCRIPTION ICON COMMAND
@ -235,15 +227,10 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}"
!macro wails.associateCustomProtocols !macro wails.associateCustomProtocols
; Create custom protocols associations ; Create custom protocols associations
{{range .Info.Protocols}}
!insertmacro CUSTOM_PROTOCOL_ASSOCIATE "{{.Scheme}}" "{{.Description}}" "$INSTDIR\${PRODUCT_EXECUTABLE},0" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\""
{{end}}
!macroend !macroend
!macro wails.unassociateCustomProtocols !macro wails.unassociateCustomProtocols
; Delete app custom protocol associations ; Delete app custom protocol associations
{{range .Info.Protocols}}
!insertmacro CUSTOM_PROTOCOL_UNASSOCIATE "{{.Scheme}}"
{{end}}
!macroend !macroend

View file

@ -1 +1 @@
1fa97678edcc780911c3d714233e97d2 7d93ddef64f0624cd1fa203b3d0350ee

View file

@ -18,11 +18,11 @@ export async function checkUpdate() {
if(!verData.assets || verData.assets.length <= 0) return; if(!verData.assets || verData.assets.length <= 0) return;
const appName = "godoos"+ versionTag + (isWindowsOS() ? '.exe' : ''); const appName = "godoos"+ versionTag + (isWindowsOS() ? '.exe' : '');
const updateUrl = `${updateGiteeUrl}download/${versionTag}/${appName}`; const updateUrl = `${updateGiteeUrl}download/${versionTag}/${appName}`;
console.log(updateUrl)
fetch(`${updateGiteeUrl}latest`).then((r) => { // fetch(`${updateGiteeUrl}latest`).then((r) => {
if (r.ok) { // if (r.ok) {
r.json().then((data) => { // r.json().then((data) => {
if (data.tag_name) { // if (data.tag_name) {
// const versionTag = data.tag_name; // const versionTag = data.tag_name;
// console.log(versionTag) // console.log(versionTag)
// if (versionTag.replace('v', '') > manifest.version) { // if (versionTag.replace('v', '') > manifest.version) {
@ -99,16 +99,16 @@ export async function checkUpdate() {
} }
} }
*/ */
} else { // } else {
throw new Error('Invalid response.'); // throw new Error('Invalid response.');
} // }
}); // });
} else { // } else {
throw new Error('Network response was not ok.'); // throw new Error('Network response was not ok.');
} // }
} // }
).catch((e) => { // ).catch((e) => {
//toast(t('Updates Check Error') + ' - ' + (e.message || e), { type: 'error', position: 'bottom-left' }); // //toast(t('Updates Check Error') + ' - ' + (e.message || e), { type: 'error', position: 'bottom-left' });
}); // });
} }

22
frontend/wailsjs/go/app/App.d.ts vendored Normal file
View file

@ -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<void>;
export function ContinueDownload(arg1:string):Promise<void>;
export function DownloadFile(arg1:string,arg2:string):Promise<void>;
export function DownloadLoop():Promise<void>;
export function GetAbsPath(arg1:string):Promise<string>;
export function GetPlatform():Promise<string>;
export function OpenDirDialog():Promise<string>;
export function PauseDownload(arg1:string):Promise<void>;
export function RestartApp():Promise<void>;
export function UpdateApp(arg1:string):Promise<boolean>;

View file

@ -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);
}

View file

@ -1,4 +0,0 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function OpenDirDialog():Promise<string>;

View file

@ -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']();
}

View file

@ -7,7 +7,7 @@
"frontend:dev:watcher": "pnpm dev", "frontend:dev:watcher": "pnpm dev",
"frontend:dev:serverUrl": "auto", "frontend:dev:serverUrl": "auto",
"author": { "author": {
"name": "aiok", "name": "ruitao",
"email": "xpbb@qq.com" "email": "xpbb@qq.com"
} }
} }