diff --git a/console/src/components/common/AppDownloadAlert.vue b/console/src/components/common/AppDownloadAlert.vue new file mode 100644 index 000000000..6f1d9fd1a --- /dev/null +++ b/console/src/components/common/AppDownloadAlert.vue @@ -0,0 +1,41 @@ + + + + + + {{ $t("core.components.app_download_alert.description") }} + + + + + https://halo.run/store/apps + + + + + + + https://github.com/halo-sigs/awesome-halo + + + + + + + diff --git a/console/src/locales/en.yaml b/console/src/locales/en.yaml index 26a52cf2f..6d8acc9a4 100644 --- a/console/src/locales/en.yaml +++ b/console/src/locales/en.yaml @@ -1151,6 +1151,11 @@ core: size_label: items per page social_auth_providers: title: Third-party login + app_download_alert: + description: "Themes and plugins for Halo can be downloaded at the following addresses:" + sources: + app_store: "Official App Store: {url}" + github: "GitHub: {url}" composables: content_cache: toast_recovered: Recovered unsaved content from cache diff --git a/console/src/locales/zh-CN.yaml b/console/src/locales/zh-CN.yaml index 2f8972733..99cb80dca 100644 --- a/console/src/locales/zh-CN.yaml +++ b/console/src/locales/zh-CN.yaml @@ -1151,6 +1151,11 @@ core: size_label: 条 / 页 social_auth_providers: title: 三方登录 + app_download_alert: + description: Halo 的主题和插件可以在以下地址下载: + sources: + app_store: "官方应用市场:{url}" + github: "GitHub:{url}" composables: content_cache: toast_recovered: 已从缓存中恢复未保存的内容 diff --git a/console/src/locales/zh-TW.yaml b/console/src/locales/zh-TW.yaml index e151dfbf7..d395f8c28 100644 --- a/console/src/locales/zh-TW.yaml +++ b/console/src/locales/zh-TW.yaml @@ -1151,6 +1151,11 @@ core: size_label: 條 / 頁 social_auth_providers: title: 三方登入 + app_download_alert: + description: Halo 的主題和插件可以在以下地址下載: + sources: + app_store: "官方應用市場:{url}" + github: "GitHub:{url}" composables: content_cache: toast_recovered: 已從緩存中恢復未保存的內容 diff --git a/console/src/modules/interface/themes/components/ThemeUploadModal.vue b/console/src/modules/interface/themes/components/ThemeUploadModal.vue index 73bbae910..b58064421 100644 --- a/console/src/modules/interface/themes/components/ThemeUploadModal.vue +++ b/console/src/modules/interface/themes/components/ThemeUploadModal.vue @@ -17,6 +17,7 @@ import { apiClient } from "@/utils/api-client"; import { useRouteQuery } from "@vueuse/router"; import { submitForm } from "@formkit/core"; import type { ErrorResponse, UppyFile } from "@uppy/core"; +import AppDownloadAlert from "@/components/common/AppDownloadAlert.vue"; const { t } = useI18n(); const queryClient = useQueryClient(); @@ -234,6 +235,9 @@ watch( > + + + + + + +
{{ $t("core.components.app_download_alert.description") }}