diff --git a/ui/console-src/modules/system/overview/Overview.vue b/ui/console-src/modules/system/overview/Overview.vue index 8e1ec2d0e..15d27b570 100644 --- a/ui/console-src/modules/system/overview/Overview.vue +++ b/ui/console-src/modules/system/overview/Overview.vue @@ -1,4 +1,5 @@ diff --git a/ui/src/components/alerts/H2WarningAlert.vue b/ui/src/components/alerts/H2WarningAlert.vue new file mode 100644 index 000000000..f88972562 --- /dev/null +++ b/ui/src/components/alerts/H2WarningAlert.vue @@ -0,0 +1,30 @@ + + diff --git a/ui/src/locales/en.yaml b/ui/src/locales/en.yaml index a87de3ab7..72b365769 100644 --- a/ui/src/locales/en.yaml +++ b/ui/src/locales/en.yaml @@ -1428,11 +1428,6 @@ core: The external access url detected is inconsistent with the current access url, which may cause some links to fail to redirect properly. Please check the external access url settings. - h2_warning: >- - H2 database is only used in development and testing environments. It is - not recommended to use H2 database in production environment. - - If you must use it, please back up your data on time. backup: title: Backup and Restore tabs: @@ -1699,6 +1694,13 @@ core: aspect_ratio_square: Crop square aspect_ratio_landscape: Crop landscape (16:9) aspect_ratio_portrait: Crop portrait (9:16) + h2_warning_alert: + title: "Warning: H2 database in use" + description: >- + The H2 database is only suitable for development and testing + environments and is not recommended for use in production environments. + H2 is very easy to cause data file corruption due to improper operation. + If you must use it, please back up the data on time. composables: content_cache: toast_recovered: Recovered unsaved content from cache diff --git a/ui/src/locales/zh-CN.yaml b/ui/src/locales/zh-CN.yaml index 1e89f007b..038e4c731 100644 --- a/ui/src/locales/zh-CN.yaml +++ b/ui/src/locales/zh-CN.yaml @@ -1335,7 +1335,6 @@ core: os: 操作系统:{os} alert: external_url_invalid: 检测到外部访问地址与当前访问地址不一致,可能会导致部分链接无法正常跳转,请检查外部访问地址设置。 - h2_warning: H2 数据库仅用于开发环境和测试环境,不推荐在生产环境中使用 H2 数据库。如果必须要使用,请按时进行数据备份。 backup: title: 备份与恢复 tabs: @@ -1611,6 +1610,9 @@ core: aspect_ratio_square: 裁剪为正方形 aspect_ratio_landscape: 裁剪为横向 (16:9) aspect_ratio_portrait: 裁剪为纵向 (9:16) + h2_warning_alert: + title: 警告:正在使用 H2 数据库 + description: H2 数据库仅适用于开发环境和测试环境,不推荐在生产环境中使用,H2 非常容易因为操作不当导致数据文件损坏。如果必须要使用,请按时进行数据备份。 composables: content_cache: toast_recovered: 已从缓存中恢复未保存的内容 diff --git a/ui/src/locales/zh-TW.yaml b/ui/src/locales/zh-TW.yaml index e1c60eccd..50271eb0b 100644 --- a/ui/src/locales/zh-TW.yaml +++ b/ui/src/locales/zh-TW.yaml @@ -1314,9 +1314,6 @@ core: os: 操作系統:{os} alert: external_url_invalid: 檢測到外部訪問地址與當前訪問地址不一致,可能會導致部分連結無法正常跳轉,請檢查外部訪問地址設置。 - h2_warning: |- - H2 資料庫僅用於開發環境和測試環境,不建議在生產環境中使用 H2 資料庫。 - 如果必須要使用,請按時進行資料備份。 backup: title: 備份與還原 tabs: @@ -1568,6 +1565,11 @@ core: aspect_ratio_square: 裁剪為正方形 aspect_ratio_landscape: 裁剪為橫向 (16:9) aspect_ratio_portrait: 裁剪為縱向 (9:16) + h2_warning_alert: + title: 警告:正在使用 H2 資料庫 + description: >- + H2 資料庫僅適用於開發環境和測試環境,不建議在生產環境中使用,H2 + 非常容易因為操作不當而導致資料檔案損壞。如果必須要使用,請按時進行資料備份。 composables: content_cache: toast_recovered: 已從緩存中恢復未保存的內容