From 4e4bc3345d4de61b936c95bfd1e458d10fdccf7b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 5 Apr 2024 13:20:01 +0800 Subject: [PATCH] :sparkles: Pull to refresh --- package.json | 2 ++ src/components/chat/channels/ChannelList.vue | 3 +-- src/components/realms/RealmList.vue | 2 +- src/layouts/master.vue | 28 +++++++++++++++++--- src/stores/notifications.ts | 8 +++--- src/views/explore.vue | 18 ++++++++++++- src/views/realms/page.vue | 28 +++++++++++++++----- 7 files changed, 72 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 4edf4b3..55e1b58 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@types/dompurify": "^3.0.5", "@types/node": "^20.11.28", "@types/nprogress": "^0.2.3", + "@types/pulltorefreshjs": "^0.1.7", "@unocss/reset": "^0.58.7", "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.1.0", @@ -49,6 +50,7 @@ "eslint-plugin-vue": "^9.17.0", "npm-run-all2": "^6.1.2", "prettier": "^3.0.3", + "pulltorefreshjs": "^0.1.22", "typescript": "~5.4.0", "unocss": "^0.58.7", "vite": "^5.1.6", diff --git a/src/components/chat/channels/ChannelList.vue b/src/components/chat/channels/ChannelList.vue index e654705..2c88d88 100644 --- a/src/components/chat/channels/ChannelList.vue +++ b/src/components/chat/channels/ChannelList.vue @@ -1,5 +1,5 @@