diff --git a/build.gradle b/build.gradle index 836edad..82fb07f 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ repositories { } dependencies { - implementation platform('run.halo.tools.platform:plugin:2.8.0-SNAPSHOT') + implementation platform('run.halo.tools.platform:plugin:2.11.0-SNAPSHOT') compileOnly 'run.halo.app:api' testImplementation 'run.halo.app:api' diff --git a/console/package.json b/console/package.json index f144bf7..7edc121 100644 --- a/console/package.json +++ b/console/package.json @@ -11,10 +11,11 @@ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" }, "dependencies": { - "@halo-dev/components": "^1.7.0", - "@halo-dev/console-shared": "^2.8.0", + "@halo-dev/api-client": "^2.11.0", + "@halo-dev/components": "^1.10.0", + "@halo-dev/console-shared": "^2.11.0", "canvas-confetti": "^1.6.0", - "@zhengyi/vditor": "^3.9.8", + "@zhengyi/vditor": "3.9.9", "vue": "^3.3.4" }, "devDependencies": { diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml index c546400..922612b 100644 --- a/console/pnpm-lock.yaml +++ b/console/pnpm-lock.yaml @@ -5,15 +5,18 @@ settings: excludeLinksFromLockfile: false dependencies: + '@halo-dev/api-client': + specifier: ^2.11.0 + version: 2.11.0 '@halo-dev/components': - specifier: ^1.7.0 + specifier: ^1.10.0 version: 1.10.0(vue-router@4.2.5)(vue@3.3.12) '@halo-dev/console-shared': - specifier: ^2.8.0 + specifier: ^2.11.0 version: 2.11.0(vue-router@4.2.5)(vue@3.3.12) '@zhengyi/vditor': - specifier: ^3.9.8 - version: 3.9.8 + specifier: 3.9.9 + version: 3.9.9 canvas-confetti: specifier: ^1.6.0 version: 1.9.2 @@ -1019,9 +1022,14 @@ packages: '@types/node': 16.18.68 dev: true - /@zhengyi/vditor@3.9.8: - resolution: {integrity: sha512-PjGtpoVOezS//hf567BEqg8p0cEmlptV9oxiCc8UsCg9sHaJ0EYvhvS0m6Wsg/L7ShRVZe6RrjKa9SDtRu0m6w==, tarball: https://git.mczhengyi.top/api/packages/zhengyi/npm/%40zhengyi%2Fvditor/-/3.9.8/vditor-3.9.8.tgz} + /@zhengyi/halo-render@1.1.0: + resolution: {integrity: sha512-r+aD7wvdXVRyFcw/yI/PbdIqSsC+Bnql2WSKZa8CK+ntpTvc2tybn6Wxsfw96C71QS+Q/MPe8ufwZBjtRd+hhg==, tarball: https://git.mczhengyi.top/api/packages/zhengyi/npm/%40zhengyi%2Fhalo-render/-/1.1.0/halo-render-1.1.0.tgz} + dev: false + + /@zhengyi/vditor@3.9.9: + resolution: {integrity: sha512-YHlWEbVkDvctAYUAghIISPjTPqxwubLuFlgbm1L6Oq3sGdIt4YZKUJA7Psv/JHaasX/tIvvcgZyUygSjjRBzMw==, tarball: https://git.mczhengyi.top/api/packages/zhengyi/npm/%40zhengyi%2Fvditor/-/3.9.9/vditor-3.9.9.tgz} dependencies: + '@zhengyi/halo-render': 1.1.0 diff-match-patch: 1.0.5 dev: false diff --git a/console/src/i18n/en-US.ts b/console/src/i18n/en-US.ts index d668a43..cea0bb8 100644 --- a/console/src/i18n/en-US.ts +++ b/console/src/i18n/en-US.ts @@ -2,6 +2,27 @@ import type { I18nLang } from "@/type/i18n"; const lang: I18nLang = { insert_image: "Insert Image", + confirm: "Confirm", + close: "Close", + default: "Default", + warning: "Warning", + danger: "Danger", + success: "Success", + info: "Info", + insert_tips: "Insert Tips", + type: "Type", + content: "Content", + platform: "Platform", + owner: "Owner", + repo: "Repo", + insert_git: "Insert Git Repo", + insert_custom: "Insert Custom", + insert_drive: "Insert Resources Link", + baidu_net_disk: "Baidu Net Disk", + ali_drive: "Ali Drive", + title: "Title", + link: "Link", + password: "Password", }; export default lang; diff --git a/console/src/i18n/zh-CN.ts b/console/src/i18n/zh-CN.ts index b4012f6..47cb14d 100644 --- a/console/src/i18n/zh-CN.ts +++ b/console/src/i18n/zh-CN.ts @@ -1,8 +1,28 @@ -import type {I18nLang} from "@/type/i18n"; +import type { I18nLang } from "@/type/i18n"; const lang: I18nLang = { - "insert_image": "插入图片" -} + insert_image: "插入图片", + confirm: "确定", + close: "关闭", + default: "默认", + warning: "警告", + danger: "危险", + success: "成功", + info: "信息", + insert_tips: "插入Tips", + type: "类型", + content: "内容", + platform: "平台", + owner: "所有者", + repo: "仓库", + insert_git: "插入Git仓库", + insert_custom: "插入自定义块", + insert_drive: "插入资源链接", + baidu_net_disk: "百度网盘", + ali_drive: "阿里云盘", + title: "标题", + link: "链接", + password: "密码", +}; - -export default lang +export default lang; diff --git a/console/src/i18n/zh-TW.ts b/console/src/i18n/zh-TW.ts index 7bf1294..bdd47bc 100644 --- a/console/src/i18n/zh-TW.ts +++ b/console/src/i18n/zh-TW.ts @@ -1,7 +1,28 @@ -import type {I18nLang} from "@/type/i18n"; +import type { I18nLang } from "@/type/i18n"; const lang: I18nLang = { - "insert_image": "插入圖片" -} + insert_image: "插入圖片", + confirm: "確定", + close: "關閉", + default: "默認", + warning: "警告", + danger: "危險", + success: "成功", + info: "訊息", + insert_tips: "插入Tips", + type: "類型", + content: "內容", + platform: "平臺", + owner: "所有者", + repo: "儲存庫", + insert_git: "插入Git存儲庫", + insert_custom: "插入自定義塊", + insert_drive: "插入資源鏈接", + baidu_net_disk: "百度網盤", + ali_drive: "阿里雲盤", + title: "標題", + link: "鏈接", + password: "密碼", +}; -export default lang +export default lang; diff --git a/console/src/model/DriveModal.vue b/console/src/model/DriveModal.vue new file mode 100644 index 0000000..0f0ecfb --- /dev/null +++ b/console/src/model/DriveModal.vue @@ -0,0 +1,75 @@ + + + diff --git a/console/src/model/GitModal.vue b/console/src/model/GitModal.vue new file mode 100644 index 0000000..28cdf12 --- /dev/null +++ b/console/src/model/GitModal.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/console/src/model/TipsModel.vue b/console/src/model/TipsModel.vue new file mode 100644 index 0000000..b06977b --- /dev/null +++ b/console/src/model/TipsModel.vue @@ -0,0 +1,59 @@ + + +