diff --git a/components.d.ts b/components.d.ts index d7b254d..556865d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -39,7 +39,6 @@ declare module 'vue' { ATextarea: typeof import('ant-design-vue/es')['Textarea'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] AUpload: typeof import('ant-design-vue/es')['Upload'] - BellOutlined: typeof import('@ant-design/icons-vue')['BellOutlined'] BoxDog: typeof import('./src/components/BoxDog/BoxDog.vue')['default'] Card3D: typeof import('./src/components/Card3D/Card3D.vue')['default'] CloseCircleOutlined: typeof import('@ant-design/icons-vue')['CloseCircleOutlined'] diff --git a/index.html b/index.html index 61f9d56..0436f5d 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,5 @@
- diff --git a/package.json b/package.json index 787652e..7c65519 100644 --- a/package.json +++ b/package.json @@ -9,52 +9,53 @@ "preview": "vite preview" }, "dependencies": { - "@alova/adapter-axios": "^2.0.7", + "@alova/adapter-axios": "^2.0.8", "@ant-design/icons-vue": "^7.0.1", "@tensorflow/tfjs": "^4.21.0", "@types/animejs": "^3.1.12", "@types/crypto-js": "^4.2.2", "@types/json-stringify-safe": "^5.0.3", - "@types/node": "^22.7.2", + "@types/node": "^22.7.5", "@types/nprogress": "^0.2.3", "@vueuse/core": "^11.1.0", - "alova": "^3.0.16", + "alova": "^3.1.0", "animejs": "^3.2.2", "ant-design-vue": "^4.2.5", "axios": "^1.7.7", "browser-image-compression": "^2.0.2", + "buffer": "^6.0.3", "crypto-js": "^4.2.0", - "eslint": "9.11.1", + "eslint": "9.12.0", "go-captcha-vue": "^2", "json-stringify-safe": "^5.0.1", "less": "^4.2.0", "localforage": "^1.10.0", "nprogress": "^0.2.0", - "nsfwjs": "^4.1.0", - "pinia": "^2.2.2", - "pinia-plugin-persistedstate": "^4.0.2", + "nsfwjs": "^4.2.0", + "pinia": "^2.2.4", + "pinia-plugin-persistedstate": "^4.1.1", "seedrandom": "^3.0.5", "unplugin-auto-import": "^0.18.3", "vite-plugin-compression": "^0.5.1", "vite-plugin-html": "^3.2.2", "vite-plugin-node-polyfills": "^0.22.0", - "vue": "^3.5.9", + "vue": "^3.5.12", "vue-dompurify-html": "^5.1.0", - "vue-i18n": "^9.14.1", + "vue-i18n": "^10.0.4", "vue-router": "^4.4.5", - "ws": "^8.18.0", - "zipson": "^0.2.12" + "ws": "^8.18.0" }, "devDependencies": { - "@eslint/js": "^9.11.1", + "@eslint/js": "^9.12.0", "@vitejs/plugin-vue": "^5.1.4", - "eslint-plugin-vue": "^9.28.0", - "globals": "^15.9.0", - "sass": "^1.79.3", - "typescript": "^5.6.2", - "typescript-eslint": "^8.7.0", + "eslint-plugin-vue": "^9.29.0", + "globals": "^15.11.0", + "sass": "^1.79.5", + "typescript": "^5.6.3", + "typescript-eslint": "^8.9.0", "unplugin-vue-components": "^0.27.4", - "vite": "^5.4.8", + "vite": "^5.4.9", + "vite-plugin-chunk-split": "^0.5.0", "vue-tsc": "^2.1.6" } } diff --git a/src/components/CommentReply/src/CommentInput/CommentInput.vue b/src/components/CommentReply/src/CommentInput/CommentInput.vue index ecc1d43..7638edd 100644 --- a/src/components/CommentReply/src/CommentInput/CommentInput.vue +++ b/src/components/CommentReply/src/CommentInput/CommentInput.vue @@ -8,7 +8,7 @@ + :placeholder="t('comment.placeholder')" allow-clear :showCount="false"/> @@ -164,7 +164,6 @@ const showCommentActions = ref(false); const commentContent = ref(""); const user = useStore().user; -const commentTextAreaPlaceholder = ref(t('comment.placeholder')); const topicId = ref("123"); const showSubmitCaptcha = ref(false); const comment = useStore().comment; diff --git a/src/components/CommentReply/src/ReplyInput/ReplyInput.vue b/src/components/CommentReply/src/ReplyInput/ReplyInput.vue index 05fa928..15ac10f 100644 --- a/src/components/CommentReply/src/ReplyInput/ReplyInput.vue +++ b/src/components/CommentReply/src/ReplyInput/ReplyInput.vue @@ -15,7 +15,7 @@ + :placeholder="t('comment.placeholder')" allow-clear :showCount="false"/> @@ -169,7 +169,6 @@ import {replySubmitApi} from "@/api/comment"; const {t} = useI18n(); const comment = useStore().comment; const user = useStore().user; -const commentTextAreaPlaceholder = ref(t('comment.placeholder')); const replyContent = ref(""); const topicId = ref("123"); const showSubmitCaptcha = ref(false); diff --git a/src/components/CommentReply/src/ReplyReplyInput/ReplyReply.vue b/src/components/CommentReply/src/ReplyReplyInput/ReplyReply.vue index 3d06b37..178d4fe 100644 --- a/src/components/CommentReply/src/ReplyReplyInput/ReplyReply.vue +++ b/src/components/CommentReply/src/ReplyReplyInput/ReplyReply.vue @@ -17,7 +17,7 @@ + :placeholder="t('comment.placeholder')" allow-clear :showCount="false"/> @@ -173,7 +173,6 @@ import {ReplyCommentParams} from "@/types/comment"; import {useThrottleFn} from "@vueuse/core"; const {t} = useI18n(); -const commentTextAreaPlaceholder = ref(t('comment.placeholder')); const comment = useStore().comment; const replyReplyContent = ref(""); diff --git a/src/directives/index.ts b/src/directives/index.ts new file mode 100644 index 0000000..e1a518f --- /dev/null +++ b/src/directives/index.ts @@ -0,0 +1,13 @@ +// src/directives/index.ts + +import clickOutside from '@/directives/v-click-outside.ts'; +import lazyLoad from "@/directives/v-lazy-load.ts"; + +/** + * Register all directives + * @param app + */ +export const registerDirectives = (app: any) => { + app.directive('click-outside', clickOutside); + app.directive('lazy-load', lazyLoad); +}; diff --git a/src/layout/default/Header/Header.vue b/src/layout/default/Header/Header.vue index 150ad2f..b038f8e 100644 --- a/src/layout/default/Header/Header.vue +++ b/src/layout/default/Header/Header.vue @@ -9,10 +9,22 @@ - + + + + + + + landaiqing @@ -23,10 +35,22 @@