refactor(core): doc property (#8465)

doc property upgraded to use orm.

The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.

![CleanShot 2024-10-14 at 15 34 52](https://github.com/user-attachments/assets/748b8b80-061f-4d6a-8579-52e59df717c2)

Added a sidebar view to manage properties
![CleanShot 2024-10-14 at 15 35 58](https://github.com/user-attachments/assets/bffa9b1a-a1a5-4708-b2e8-4963120f3af9)

new property ui in workspace settings
![CleanShot 2024-10-14 at 15 36 44](https://github.com/user-attachments/assets/572d8dcc-9b3d-462a-9bcc-5f5fa8e622da)

Property lists can be collapsed
![CleanShot 2024-10-14 at 15 37 59](https://github.com/user-attachments/assets/2b20be1a-8141-478a-8fe7-405aff6d04fd)
This commit is contained in:
EYHN
2024-10-15 10:17:12 +00:00
parent 13b24eb823
commit 24e0c5797c
88 changed files with 3151 additions and 3617 deletions
@@ -7,16 +7,16 @@
"es-AR": 14,
"es-CL": 16,
"es": 14,
"fr": 78,
"fr": 77,
"hi": 2,
"it": 1,
"ja": 28,
"ko": 92,
"pl": 0,
"pt-BR": 100,
"pt-BR": 99,
"ru": 85,
"sv-SE": 5,
"ur": 3,
"zh-Hans": 99,
"zh-Hant": 21
"zh-Hans": 98,
"zh-Hant": 20
}
+8 -1
View File
@@ -615,9 +615,14 @@
"com.affine.other-page.nav.official-website": "Official website",
"com.affine.other-page.nav.open-affine": "Open AFFiNE",
"com.affine.page-operation.add-linked-page": "Add linked doc",
"com.affine.page-properties.more-property.more": "{{ count }} more properties",
"com.affine.page-properties.more-property.one": "{{ count }} more property",
"com.affine.page-properties.hide-property.one": "hide {{ count }} property",
"com.affine.page-properties.hide-property.more": "hide {{ count }} properties",
"com.affine.page-properties.add-property": "Add property",
"com.affine.page-properties.add-property.menu.create": "Create property",
"com.affine.page-properties.add-property.menu.header": "Properties",
"com.affine.page-properties.config-properties": "Config properties",
"com.affine.page-properties.backlinks": "Backlinks",
"com.affine.page-properties.create-property.menu.header": "Type",
"com.affine.page-properties.icons": "Icons",
@@ -644,6 +649,8 @@
"com.affine.page-properties.property.tags": "Tags",
"com.affine.page-properties.property.text": "Text",
"com.affine.page-properties.property.updatedBy": "Last edited by",
"com.affine.propertySidebar.property-list.section": "Properties",
"com.affine.propertySidebar.add-more.section": "Add more properties",
"com.affine.page-properties.settings.title": "customize properties",
"com.affine.page-properties.tags.open-tags-page": "Open tag page",
"com.affine.page-properties.tags.selector-header-title": "Select tag or create one",
@@ -1101,7 +1108,7 @@
"com.affine.settings.workspace.properties.add_property": "Add property",
"com.affine.settings.workspace.properties.all": "All",
"com.affine.settings.workspace.properties.delete-property": "Delete property",
"com.affine.settings.workspace.properties.delete-property-prompt": "The \"<1>{{ name }}</1>\" property will be remove from {{ count }} doc(s). This action cannot be undone.",
"com.affine.settings.workspace.properties.delete-property-desc": "The \"<1>{{ name }}</1>\" property will be removed. This action cannot be undone.",
"com.affine.settings.workspace.properties.doc": "<0>{{count}}</0> doc",
"com.affine.settings.workspace.properties.doc_others": "<0>{{count}}</0> docs",
"com.affine.settings.workspace.properties.edit-property": "Edit property",