From 03e079e18719f40a46de893a1a87041a2873eff0 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Sun, 24 Nov 2024 15:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=A0=E4=BD=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/appearance/langs/de_DE.json | 1 + app/appearance/langs/en_US.json | 1 + app/appearance/langs/es_ES.json | 1 + app/appearance/langs/he_IL.json | 1 + app/appearance/langs/it_IT.json | 1 + app/appearance/langs/ja_JP.json | 1 + app/appearance/langs/pl_PL.json | 1 + app/appearance/langs/ru_RU.json | 1 + app/appearance/langs/zh_CHT.json | 1 + app/appearance/langs/zh_CN.json | 1 + app/src/assets/scss/business/_custom.scss | 7 +++++++ app/src/protyle/render/av/blockAttr.ts | 2 +- 12 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/appearance/langs/de_DE.json b/app/appearance/langs/de_DE.json index 9d549dbfb9d..773a9c7cf7e 100644 --- a/app/appearance/langs/de_DE.json +++ b/app/appearance/langs/de_DE.json @@ -1,4 +1,5 @@ { + "empty": "Leer", "keyContent": "Schlüsselinhalt", "addDesc": "Beschreibung hinzufügen", "dataRepoAutoPurgeIndexRetentionDays": "Daten-Snapshot-Aufbewahrungstage", diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index 9345fef43aa..8d77fc9cf81 100644 --- a/app/appearance/langs/en_US.json +++ b/app/appearance/langs/en_US.json @@ -1,4 +1,5 @@ { + "empty": "Empty", "keyContent": "Key content", "addDesc": "Add description", "dataRepoAutoPurgeIndexRetentionDays": "Data snapshot retention days", diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json index 0d304c15320..1cafebadb01 100644 --- a/app/appearance/langs/es_ES.json +++ b/app/appearance/langs/es_ES.json @@ -1,4 +1,5 @@ { + "empty": "Vacío", "keyContent": "Contenido de la clave", "addDesc": "Agregar descripción", "dataRepoAutoPurgeIndexRetentionDays": "Días de retención de instantáneas de datos", diff --git a/app/appearance/langs/he_IL.json b/app/appearance/langs/he_IL.json index e1cc9efb6e4..c142f708929 100644 --- a/app/appearance/langs/he_IL.json +++ b/app/appearance/langs/he_IL.json @@ -1,4 +1,5 @@ { + "empty": "ריק", "keyContent": "תוכן המפתח", "addDesc": "הוסף תיאור", "dataRepoAutoPurgeIndexRetentionDays": "ימי שמירת תמונות נתונים", diff --git a/app/appearance/langs/it_IT.json b/app/appearance/langs/it_IT.json index 4d9209b06fe..0e7b861f7a8 100644 --- a/app/appearance/langs/it_IT.json +++ b/app/appearance/langs/it_IT.json @@ -1,4 +1,5 @@ { + "empty": "Vuoto", "keyContent": "Contenuto della chiave", "addDesc": "Aggiungi descrizione", "dataRepoAutoPurgeIndexRetentionDays": "Giorni di conservazione degli snapshot dei dati", diff --git a/app/appearance/langs/ja_JP.json b/app/appearance/langs/ja_JP.json index c9b94bb4e97..f90ad1b45a7 100644 --- a/app/appearance/langs/ja_JP.json +++ b/app/appearance/langs/ja_JP.json @@ -1,4 +1,5 @@ { + "empty": "空白", "keyContent": "キーコンテンツ", "addDesc": "説明を追加", "dataRepoAutoPurgeIndexRetentionDays": "データスナップショットの保持日数", diff --git a/app/appearance/langs/pl_PL.json b/app/appearance/langs/pl_PL.json index 0802aedd6ba..a6bb815b562 100644 --- a/app/appearance/langs/pl_PL.json +++ b/app/appearance/langs/pl_PL.json @@ -1,4 +1,5 @@ { + "empty": "Pusty", "keyContent": "Zawartość klucza", "addDesc": "Dodaj opis", "dataRepoAutoPurgeIndexRetentionDays": "Dni przechowywania migawek danych", diff --git a/app/appearance/langs/ru_RU.json b/app/appearance/langs/ru_RU.json index f53eb679d02..db6923d49db 100644 --- a/app/appearance/langs/ru_RU.json +++ b/app/appearance/langs/ru_RU.json @@ -1,4 +1,5 @@ { + "empty": "Пусто", "keyContent": "Содержимое ключа", "addDesc": "Добавить описание", "dataRepoAutoPurgeIndexRetentionDays": "Срок хранения снимков данных", diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json index 49c111878a2..8c23188e278 100644 --- a/app/appearance/langs/zh_CHT.json +++ b/app/appearance/langs/zh_CHT.json @@ -1,4 +1,5 @@ { + "empty": "空白", "keyContent": "主鍵內容", "addDesc": "添加描述", "dataRepoAutoPurgeIndexRetentionDays": "數據快照保留天數", diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index 832e93f6d4c..bfe5fd1a0f2 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -1,4 +1,5 @@ { + "empty": "空白", "keyContent": "主键内容", "addDesc": "添加描述", "dataRepoAutoPurgeIndexRetentionDays": "数据快照保留天数", diff --git a/app/src/assets/scss/business/_custom.scss b/app/src/assets/scss/business/_custom.scss index d6267de26ed..69102279315 100644 --- a/app/src/assets/scss/business/_custom.scss +++ b/app/src/assets/scss/business/_custom.scss @@ -78,6 +78,13 @@ min-height: 34px; background-color: transparent; padding: 7px 8px; + + &:empty { + &:before { + color: var(--b3-empty-color); + content: attr(placeholder); + } + } &:hover { background-color: var(--b3-theme-background); diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index 132d74f5e90..9f44e4ad2ee 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/app/src/protyle/render/av/blockAttr.ts @@ -59,7 +59,7 @@ export const genAVValueHTML = (value: IAVCellValue) => { html = `
${value.block.content}
`; break; case "text": - html = ``; + html = ``; break; case "number": html = `