From 78628cc8a7fa3a28a51e7d59d7cb15d57fe1fd78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=91=E6=96=87=E5=8F=AF?= <1041367524@qq.com>
Date: Thu, 12 May 2022 14:33:36 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 126 +++++++++++++++----------------
src/layouts/default.vue | 11 ++-
src/store/modules/chat/chat.js | 127 ++++++++++++++++++++++++++++++++
src/utils/{emoji.js => chat.js} | 9 +++
src/views/chat/index.vue | 60 +++++++--------
5 files changed, 237 insertions(+), 96 deletions(-)
create mode 100644 src/store/modules/chat/chat.js
rename src/utils/{emoji.js => chat.js} (96%)
diff --git a/package.json b/package.json
index a9b8dcb..f903fb0 100644
--- a/package.json
+++ b/package.json
@@ -1,65 +1,65 @@
{
- "name": "msb-shop-admin",
- "author": {
- "name": "向文可",
- "email": "1041367524@qq.com"
- },
- "private": true,
- "version": "0.0.1",
- "scripts": {
- "dev": "vite",
- "build:test": "vite build --mode test",
- "build:beta": "vite build --mode beta",
- "build:prod": "vite build --mode prod",
- "preview": "vite preview",
- "prepare": "husky install",
- "lint": "eslint src/**/*.{vue,js,jsx} --fix"
- },
- "dependencies": {
- "@element-plus/icons": "^0.0.11",
- "@vueup/vue-quill": "^1.0.0-beta.8",
- "axios": "^0.26.1",
- "china-area-data": "^5.0.1",
- "dayjs": "^1.11.0",
- "element-plus": "^2.1.7",
- "lodash": "^4.17.21",
- "qs": "^6.10.3",
- "quill-image-uploader": "^1.2.2",
- "sortablejs": "^1.14.0",
- "vue": "^3.2.25",
- "vue-router": "^4.0.14",
- "vuex": "^4.0.2",
- "vuex-persistedstate": "^4.1.0"
- },
- "devDependencies": {
- "@commitlint/cli": "^13.2.1",
- "@commitlint/config-conventional": "^13.2.0",
- "@nabla/vite-plugin-eslint": "^1.4.0",
- "@originjs/vite-plugin-global-style": "^1.0.2",
- "@types/node": "^17.0.21",
- "@vitejs/plugin-legacy": "^1.7.1",
- "@vitejs/plugin-vue": "^2.2.0",
- "@vitejs/plugin-vue-jsx": "^1.3.8",
- "airbnb": "^0.0.2",
- "consola": "^2.15.3",
- "eslint": "^8.11.0",
- "eslint-config-prettier": "^8.5.0",
- "eslint-plugin-prettier": "^4.0.0",
- "eslint-plugin-vue": "^8.5.0",
- "husky": "^7.0.4",
- "less": "^4.1.2",
- "lint-staged": "^12.3.7",
- "prettier": "^2.6.0",
- "unplugin-auto-import": "^0.6.4",
- "unplugin-vue-components": "^0.18.0",
- "vite": "^2.8.0",
- "vite-plugin-remove-console": "^0.0.6",
- "vite-svg-loader": "^3.1.2"
- },
- "lint-staged": {
- "src/**/*.{jsx,tsx,ts,js,vue}": [
- "prettier --write",
- "eslint --fix"
- ]
- }
+ "name": "msb-shop-admin",
+ "author": {
+ "name": "向文可",
+ "email": "1041367524@qq.com"
+ },
+ "private": true,
+ "version": "0.0.1",
+ "scripts": {
+ "dev": "vite",
+ "build:test": "vite build --mode test",
+ "build:beta": "vite build --mode beta",
+ "build:prod": "vite build --mode prod",
+ "preview": "vite preview",
+ "prepare": "husky install",
+ "lint": "eslint src/**/*.{vue,js,jsx} --fix"
+ },
+ "dependencies": {
+ "@element-plus/icons": "^0.0.11",
+ "@vueup/vue-quill": "^1.0.0-beta.8",
+ "axios": "^0.26.1",
+ "china-area-data": "^5.0.1",
+ "dayjs": "^1.11.0",
+ "element-plus": "^2.1.7",
+ "lodash": "^4.17.21",
+ "qs": "^6.10.3",
+ "quill-image-uploader": "^1.2.2",
+ "sortablejs": "^1.14.0",
+ "vue": "^3.2.25",
+ "vue-router": "^4.0.14",
+ "vuex": "^4.0.2",
+ "vuex-persistedstate": "^4.1.0"
+ },
+ "devDependencies": {
+ "@commitlint/cli": "^13.2.1",
+ "@commitlint/config-conventional": "^13.2.0",
+ "@nabla/vite-plugin-eslint": "^1.4.0",
+ "@originjs/vite-plugin-global-style": "^1.0.2",
+ "@types/node": "^17.0.21",
+ "@vitejs/plugin-legacy": "^1.7.1",
+ "@vitejs/plugin-vue": "^2.2.0",
+ "@vitejs/plugin-vue-jsx": "^1.3.8",
+ "airbnb": "^0.0.2",
+ "consola": "^2.15.3",
+ "eslint": "^8.11.0",
+ "eslint-config-prettier": "^8.5.0",
+ "eslint-plugin-prettier": "^4.0.0",
+ "eslint-plugin-vue": "^8.5.0",
+ "husky": "^7.0.4",
+ "less": "^4.1.2",
+ "lint-staged": "^12.3.7",
+ "prettier": "^2.6.0",
+ "unplugin-auto-import": "^0.6.4",
+ "unplugin-vue-components": "^0.18.0",
+ "vite": "^2.8.0",
+ "vite-plugin-remove-console": "^0.0.6",
+ "vite-svg-loader": "^3.1.2"
+ },
+ "lint-staged": {
+ "src/**/*.{jsx,tsx,ts,js,vue}": [
+ "prettier --write",
+ "eslint --fix"
+ ]
+ }
}
diff --git a/src/layouts/default.vue b/src/layouts/default.vue
index 8a25ffe..c83b35c 100644
--- a/src/layouts/default.vue
+++ b/src/layouts/default.vue
@@ -16,12 +16,17 @@