Skip to content

Commit

Permalink
feat:优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Dec 13, 2023
1 parent eef29b8 commit d29d4b5
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 132 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
# Lumen IM 即时聊天

<img alt="GitHub stars badge" src="https://img.shields.io/github/stars/gzydong/LumenIM"> <img alt="GitHub forks badge" src="https://img.shields.io/github/forks/gzydong/LumenIM"> <img alt="GitHub license badge" src="https://img.shields.io/github/license/gzydong/LumenIM">

### 项目介绍
### 项目介绍

Lumen IM 是一个网页版在线聊天项目,前端使用 Naive UI + Vue3,后端采用 GO 开发。

### 功能模块

- 支持私聊及群聊
- 支持多种聊天消息类型 例如:文本消息、代码块、群投票、图片及其它类型文件,并支持文件下载
- 支持聊天消息撤回、删除(批量删除)、转发消息(逐条转发、合并转发)
- 支持编写笔记

### 项目预览

- 地址: [http://im.gzydong.com](http://im.gzydong.com)

### 项目安装(部署)
### 项目安装

###### 下载安装

```bash
## 克隆项目源码包
git clone https://gitee.com/gzydong/LumenIM.git
Expand Down Expand Up @@ -45,6 +50,7 @@ VITE_SOCKET_API=ws://127.0.0.1:9504
```

###### 关于 Nginx 的一些配置

```nginx
server {
listen 80;
Expand All @@ -68,13 +74,14 @@ server {
```

### 项目源码
|代码仓库|前端源码|后端源码|
|-|-|-|
|Github|https://github.com/gzydong/LumenIM|https://github.com/gzydong/go-chat|
|码云|https://gitee.com/gzydong/LumenIM|https://gitee.com/gzydong/go-chat|

| 代码仓库 | 前端源码 | 后端源码 |
| -------- | ---------------------------------- | ---------------------------------- |
| Github | https://github.com/gzydong/LumenIM | https://github.com/gzydong/go-chat |
| 码云 | https://gitee.com/gzydong/LumenIM | https://gitee.com/gzydong/go-chat |

#### 联系方式

QQ作者 : 837215079

### 如果你觉得还不错,请 Star , Fork 给作者鼓励一下。
### 如果你觉得还不错,请 Star , Fork 给作者鼓励一下。
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"npm-run-all2": "^6.1.1",
"prettier": "^3.1.0",
"typescript": "~5.2.0",
"vite": "^4.5.0",
"vite": "^4.5.1",
"vite-plugin-compression": "^0.5.1",
"vue-tsc": "^1.8.25",
"wait-on": "^6.0.1"
Expand Down Expand Up @@ -100,4 +100,4 @@
"output": "dist_electron"
}
}
}
}
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup>
<script lang="ts" setup>
import '@icon-park/vue-next/styles/index.css'
import { ref, computed } from 'vue'
import { IconProvider, DEFAULT_ICON_CONFIGS } from '@icon-park/vue-next'
import {
NNotificationProvider,
Expand Down
4 changes: 2 additions & 2 deletions src/views/message/inner/panel/PanelContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const onPanelScroll = (e: any) => {
}
})
loadConfig.minRecord = minid
loadConfig.cursor = minid
loadConfig.status = 1
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@ const onQuoteMessage = (data: IMessageRecord) => {
switch (data.msg_type) {
case 1:
item.describe = data.content
item.describe = data?.extra?.content
break // 文本消息
case 2:
item.describe = '[代码消息]'
Expand Down
4 changes: 4 additions & 0 deletions src/views/setting/notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const isWebNotify = computed({
get: () => settingsStore.isWebNotify,
set: (value) => {
settingsStore.setWebNotify(value)
if (value) {
toPermission()
}
}
})
Expand Down
Loading

0 comments on commit d29d4b5

Please sign in to comment.