diff --git a/README.md b/README.md index f0eaef0..2eb95c8 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,56 @@ -# README +

+ +

-## About +

GodoOS

+
-This is the official Wails Vue-TS template. +一款高效的内网办公平台,内含word/excel/ppt/pdf/内网聊天/白板/思维导图等多个办公系统工具,支持原生文件存储,满足多样化需求。平台界面精仿windows风格,操作简便,同时保持低资源消耗和高性能运行。无需注册即可自动连接内网用户,实现即时通讯和文件共享。 -You can configure the project by editing `wails.json`. More information about the project settings can be found -here: https://wails.io/docs/reference/project-config +[![license][license-image]][license-url] -## Live Development +[English](README.md) | 简体中文 -To run in live development mode, run `wails dev` in the project directory. This will run a Vite development -server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser -and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect -to this in your browser, and you can call your Go code from devtools. +### 安装 -## Building +[![Windows][Windows-image]][Windows-url] +[![MacOS][MacOS-image]][MacOS-url] +[![Linux][Linux-image]][Linux-url] -To build a redistributable, production mode package, use `wails build`. +[官方文档](./docs/Api.md) | [使用说明](./docs/Guide.md) + +[license-image]: ./docs/img/license_%20MIT.svg + +[license-url]: https://spdx.org/licenses/MIT.html + + +[Windows-image]: ./docs/img/Windows.svg + +[Windows-url]: https://github.com/josStorer/RWKV-Runner/blob/master/build/windows/Readme_Install.txt + +[MacOS-image]: ./docs/img/MacOS.svg + +[MacOS-url]: https://github.com/josStorer/RWKV-Runner/blob/master/build/darwin/Readme_Install.txt + +[Linux-image]: ./docs/img/Linux.svg + +[Linux-url]: https://github.com/josStorer/RWKV-Runner/blob/master/build/linux/Readme_Install.txt + +
+ +## 功能说明 + +一、系统桌面 +- 精仿windows风格 +- 桌面文件管理 +- 支持原生文件拖拽 + + +二、文件管理 +- 文件上传下载 +- 文件搜索 + + +三、内网聊天 +- 无需繁琐的注册流程,只需在同一局域网内,即可自动发现并列出所有可用的聊天对象,即刻开启即时通讯。支持基于局域网的即时消息传输、文件传输等功能,促进团队内部的无缝沟通与协作。 + diff --git a/app/download.go b/app/download.go index 523426b..55120a1 100644 --- a/app/download.go +++ b/app/download.go @@ -104,10 +104,8 @@ func (a *App) AddToDownloadList(path string, url string) { Url: url, Downloading: false, }) - a.ContinueDownload(url) - } else { - a.ContinueDownload(url) } + a.ContinueDownload(url) } func (a *App) DownloadLoop() { diff --git a/docs/Api.md b/docs/Api.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/Guide.md b/docs/Guide.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/file.md b/docs/file.md new file mode 100644 index 0000000..0826f35 --- /dev/null +++ b/docs/file.md @@ -0,0 +1,241 @@ +--- +title: 文件系统接口 +icon: circle-info +--- + +### 读取目录 + +#### HTTP 方法 +`GET` + +#### 路径 +`/read` + +#### 请求参数 +- **Query 参数**: `path` (目录路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 目录内容列表 + +--- + +### 获取文件或目录状态 + +#### HTTP 方法 +`GET` + +#### 路径 +`/stat` + +#### 请求参数 +- **Query 参数**: `path` (文件或目录路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 文件或目录的状态信息 + +--- + +### 更改文件权限 + +#### HTTP 方法 +`POST` + +#### 路径 +`/chmod` + +#### 请求体 +- **Content-Type**: `application/json` +- **Body**: `{ "path": "string", "mode": "string" }` + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 检查文件或目录是否存在 + +#### HTTP 方法 +`GET` + +#### 路径 +`/exists` + +#### 请求参数 +- **Query 参数**: `path` (文件或目录路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 存在性检查结果 + +--- + +### 读取文件内容 + +#### HTTP 方法 +`GET` + +#### 路径 +`/readfile` + +#### 请求参数 +- **Query 参数**: `path` (文件路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 文件内容 + +--- + +### 删除文件 + +#### HTTP 方法 +`GET` + +#### 路径 +`/unlink` + +#### 请求参数 +- **Query 参数**: `path` (文件路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 清空文件系统 + +#### HTTP 方法 +`GET` + +#### 路径 +`/clear` + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 重命名文件或目录 + +#### HTTP 方法 +`GET` + +#### 路径 +`/rename` + +#### 请求参数 +- **Query 参数**: `oldPath` (原文件或目录路径), `newPath` (新文件或目录路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 创建目录 + +#### HTTP 方法 +`POST` + +#### 路径 +`/mkdir` + +#### 请求参数 +- **Query 参数**: `dirPath` (目录路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 删除目录 + +#### HTTP 方法 +`GET` + +#### 路径 +`/rmdir` + +#### 请求参数 +- **Query 参数**: `dirPath` (目录路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 复制文件 + +#### HTTP 方法 +`GET` + +#### 路径 +`/copyfile` + +#### 请求参数 +- **Query 参数**: `srcPath` (源文件路径), `dstPath` (目标文件路径) + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 写入文件 + +#### HTTP 方法 +`POST` + +#### 路径 +`/writefile` + +#### 请求参数 +- **Query 参数**: `filePath` (文件路径) + +#### 请求体 +- **Content-Type**: `multipart/form-data` +- **Body**: 包含 `content` 的表单数据 + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 追加文件内容 + +#### HTTP 方法 +`POST` + +#### 路径 +`/appendfile` + +#### 请求参数 +- **Query 参数**: `filePath` (文件路径) + +#### 请求体 +- **Content-Type**: `multipart/form-data` +- **Body**: 包含 `content` 的表单数据 + +#### 响应 +- **Content-Type**: `application/json` +- **响应体**: 操作结果 + +--- + +### 文件系统事件监听 + +#### 功能 +监听文件系统变化事件 + +#### 参数 +- **path** (监听的文件或目录路径) +- **callback** (事件回调函数) +- **errback** (错误回调函数) diff --git a/docs/img/Linux.svg b/docs/img/Linux.svg new file mode 100644 index 0000000..bec5e72 --- /dev/null +++ b/docs/img/Linux.svg @@ -0,0 +1 @@ +LinuxLinux \ No newline at end of file diff --git a/docs/img/MacOS.svg b/docs/img/MacOS.svg new file mode 100644 index 0000000..84b9bbb --- /dev/null +++ b/docs/img/MacOS.svg @@ -0,0 +1 @@ +MacOSMacOS \ No newline at end of file diff --git a/docs/img/Windows.svg b/docs/img/Windows.svg new file mode 100644 index 0000000..ad5dcd1 --- /dev/null +++ b/docs/img/Windows.svg @@ -0,0 +1 @@ +WindowsWindows \ No newline at end of file diff --git a/docs/img/baiban.png b/docs/img/baiban.png new file mode 100644 index 0000000..595ebe9 Binary files /dev/null and b/docs/img/baiban.png differ diff --git a/docs/img/cal.png b/docs/img/cal.png new file mode 100644 index 0000000..2a54ded Binary files /dev/null and b/docs/img/cal.png differ diff --git a/docs/img/doc.png b/docs/img/doc.png new file mode 100644 index 0000000..8e25a8a Binary files /dev/null and b/docs/img/doc.png differ diff --git a/docs/img/excel.png b/docs/img/excel.png new file mode 100644 index 0000000..119558e Binary files /dev/null and b/docs/img/excel.png differ diff --git a/docs/img/file.png b/docs/img/file.png new file mode 100644 index 0000000..383d8f5 Binary files /dev/null and b/docs/img/file.png differ diff --git a/docs/img/fileeditor.png b/docs/img/fileeditor.png new file mode 100644 index 0000000..39ab7c4 Binary files /dev/null and b/docs/img/fileeditor.png differ diff --git a/docs/img/gant.png b/docs/img/gant.png new file mode 100644 index 0000000..b2ab688 Binary files /dev/null and b/docs/img/gant.png differ diff --git a/docs/img/home.png b/docs/img/home.png new file mode 100644 index 0000000..ecc9123 Binary files /dev/null and b/docs/img/home.png differ diff --git a/docs/img/ie.png b/docs/img/ie.png new file mode 100644 index 0000000..3e42277 Binary files /dev/null and b/docs/img/ie.png differ diff --git a/docs/img/kanban.png b/docs/img/kanban.png new file mode 100644 index 0000000..ff9ce4f Binary files /dev/null and b/docs/img/kanban.png differ diff --git a/docs/img/license_ MIT.svg b/docs/img/license_ MIT.svg new file mode 100644 index 0000000..60fbd81 --- /dev/null +++ b/docs/img/license_ MIT.svg @@ -0,0 +1 @@ +license: MITlicenseMIT \ No newline at end of file diff --git a/docs/img/localchat.png b/docs/img/localchat.png new file mode 100644 index 0000000..8d242ac Binary files /dev/null and b/docs/img/localchat.png differ diff --git a/docs/img/markdown.png b/docs/img/markdown.png new file mode 100644 index 0000000..9fb37e9 Binary files /dev/null and b/docs/img/markdown.png differ diff --git a/docs/img/mind.png b/docs/img/mind.png new file mode 100644 index 0000000..bab3931 Binary files /dev/null and b/docs/img/mind.png differ diff --git a/docs/img/pic.png b/docs/img/pic.png new file mode 100644 index 0000000..e583739 Binary files /dev/null and b/docs/img/pic.png differ diff --git a/docs/img/ppt.png b/docs/img/ppt.png new file mode 100644 index 0000000..d99527d Binary files /dev/null and b/docs/img/ppt.png differ diff --git a/docs/img/rili.png b/docs/img/rili.png new file mode 100644 index 0000000..848f50e Binary files /dev/null and b/docs/img/rili.png differ diff --git a/docs/img/setting-store.png b/docs/img/setting-store.png new file mode 100644 index 0000000..d8fcead Binary files /dev/null and b/docs/img/setting-store.png differ diff --git a/frontend/package.json b/frontend/package.json index 195f3f0..b6cdca1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "godoos", "private": true, - "version": "0.0.0", + "version": "1.0.0", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/localchat/ChatContent.vue b/frontend/src/components/localchat/ChatContent.vue index 65a04bc..7ee55b6 100644 --- a/frontend/src/components/localchat/ChatContent.vue +++ b/frontend/src/components/localchat/ChatContent.vue @@ -97,7 +97,9 @@ async function scroll({ scrollTop }: { scrollTop: number }) {
- + + +