Skip to content

Commit 7fe459a

Browse files
committed
update content version layout
1 parent caff954 commit 7fe459a

File tree

20 files changed

+530
-211
lines changed

20 files changed

+530
-211
lines changed

resources/css/index.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@import "./components/alert.css";
1414
@import "./components/code-editor.css";
1515

16+
@import "../../vendor/solution-forest/inspirecms-support/resources/css/diff-viewer.css";
17+
1618
/* Login */
1719
.split-image-layout {
1820
@apply bg-center bg-no-repeat bg-cover bg-[image:var(--panel-background-image)] bg-blend-multiply;
@@ -30,6 +32,23 @@
3032
z-index: 1;
3133
}
3234

35+
/* Content History */
36+
.content-history .publish-time-badge {
37+
@apply bg-custom-50 dark:bg-custom-400/10 ring-1 ring-custom-600 ring-custom-600/10;
38+
@apply rounded-md px-2 py-1;
39+
@apply text-xs font-medium;
40+
@apply flex items-center justify-center gap-1;
41+
}
42+
.version-diff .version-diff-item {
43+
@apply text-sm;
44+
}
45+
.version-diff .version-diff-item .version-diff-item-title .version-diff .version-diff-item .diff-viewer {
46+
font-family: 'Courier New', monospace;
47+
}
48+
.version-diff .version-diff-item > div {
49+
@apply p-3;
50+
}
51+
3352
/* Top Alert */
3453
.fi-body .top-alert.alert-dialog {
3554
@apply sticky top-0 z-20;

resources/dist/inspirecms.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/lang/en/buttons.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@
6060
],
6161

6262
'content_history' => [
63-
'label' => 'Content History',
64-
'permission_display_name' => 'View content history',
63+
'label' => 'Versions',
6564
],
6665

6766
'copy_to_clipboard' => [

resources/lang/en/inspirecms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'user' => 'User',
5252
'users' => 'Users',
5353
'uuid' => 'UUID',
54+
'unknown_user' => 'Unknown User',
5455
'version' => 'Version',
5556

5657
'page_status' => [

resources/lang/en/messages.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'invalid_license' => 'Invalid license.',
1111
'locked' => 'Locked',
1212
'media_item_moved' => 'Media Item Moved',
13+
'no_published_yet' => 'No published yet',
1314
'pending' => 'Pending',
1415
'please_refer_to_doc_link' => 'Please refer to the <a href=":link" target="_blank"><u>documentation</u></a> for more information',
1516
'same_theme_name_already_exists' => 'A theme with the same name already exists.',
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
3+
return [
4+
5+
'avoid_to_clean' => [
6+
'label' => 'Avoid cleanup',
7+
'instructions' => 'If enabled, the content versions will not be cleaned up.',
8+
],
9+
'publish_state' => [
10+
'label' => 'Publish State',
11+
],
12+
13+
'empty_state' => [
14+
'heading' => 'No versions found',
15+
'description' => 'There are no versions available for this content.',
16+
],
17+
18+
'tables' => [
19+
'search_placeholder' => 'Search by auditor\'s name ...',
20+
],
21+
22+
'content_history_detail' => [
23+
'general_info' => 'General Info',
24+
'property_data' => 'Property Data',
25+
'empty_state' => 'No differences found',
26+
],
27+
28+
'buttons' => [
29+
'view_differences' => [
30+
'label' => 'View Differences',
31+
'heading' => 'Content Version Differences',
32+
'description' => 'By :author on :date',
33+
],
34+
'bulk_update_state' => [
35+
'label' => 'Bulk update state',
36+
'heading' => 'Update records\' state',
37+
'messages' => [
38+
'success' => [
39+
'title' => 'State updated successfully.',
40+
],
41+
'failure' => [
42+
'title' => 'Failed to update state.',
43+
],
44+
],
45+
],
46+
'toggle_avoid_to_clean' => [
47+
'true_label' => 'Allow cleanup',
48+
'false_label' => 'Avoid cleanup',
49+
'messages' => [
50+
'wait_to_cleanup' => [
51+
'title' => 'Now waiting to cleanup.',
52+
'body' => 'This version will be cleaned up in the next cleanup cycle.',
53+
],
54+
'avoid_cleanup' => [
55+
'title' => 'Now avoiding cleanup.',
56+
'body' => 'This version will not be cleaned up in the next cleanup cycle.',
57+
],
58+
],
59+
],
60+
],
61+
];

resources/lang/zh_TW/buttons.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@
6060
],
6161

6262
'content_history' => [
63-
'label' => '內容歷史',
64-
'permission_display_name' => '查看內容歷史',
63+
'label' => '版本',
6564
],
6665

6766
'copy_to_clipboard' => [

resources/lang/zh_TW/inspirecms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'user' => '用戶',
5252
'users' => '用戶',
5353
'uuid' => 'UUID',
54+
'unknown_user' => '未知用戶',
5455
'version' => '版本',
5556

5657
'page_status' => [

resources/lang/zh_TW/messages.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
'in_progress' => '進行中',
1010
'invalid_license' => '無效的許可證。',
1111
'locked' => '已鎖定',
12+
'no_published_yet' => '尚未發布',
1213
'media_item_moved' => '媒體項目已移動',
1314
'pending' => '待處理',
1415
'please_refer_to_doc_link' => '請參閱 <a href=":link" target="_blank"><u>文檔</u></a> 以獲取更多信息',
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
3+
return [
4+
5+
'avoid_to_clean' => [
6+
'label' => '避免清理',
7+
'instructions' => '如果啟用,內容版本將不會被清理。',
8+
],
9+
'publish_state' => [
10+
'label' => '發布狀態',
11+
],
12+
13+
'empty_state' => [
14+
'heading' => '找不到版本',
15+
'description' => '此內容沒有可用的版本。',
16+
],
17+
18+
'tables' => [
19+
'search_placeholder' => '按審計員姓名搜尋...',
20+
],
21+
22+
'content_history_detail' => [
23+
'general_info' => 'General Info',
24+
'property_data' => 'Property Data',
25+
'empty_state' => '找不到版本',
26+
],
27+
28+
'buttons' => [
29+
'view_differences' => [
30+
'label' => '檢視差異',
31+
'heading' => '內容版本差異',
32+
'description' => '由 :author 於 :date',
33+
],
34+
'bulk_update_state' => [
35+
'label' => '批量更新狀態',
36+
'heading' => '更新記錄狀態',
37+
'messages' => [
38+
'success' => [
39+
'title' => '狀態更新成功。',
40+
],
41+
'failure' => [
42+
'title' => '狀態更新失敗。',
43+
],
44+
],
45+
],
46+
'toggle_avoid_to_clean' => [
47+
'true_label' => '允許清理',
48+
'false_label' => '避免清理',
49+
'messages' => [
50+
'wait_to_cleanup' => [
51+
'title' => '現在等待清理。',
52+
'body' => '此版本將在下次清理週期中被清理。',
53+
],
54+
'avoid_cleanup' => [
55+
'title' => '現在避免清理。',
56+
'body' => '此版本將不會在下次清理週期中被清理。',
57+
],
58+
],
59+
],
60+
],
61+
];

0 commit comments

Comments
 (0)