@blocklet/discuss-kit-ux-lite 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -0
- package/dist/axios.d.ts +8 -0
- package/dist/blocklets.d.ts +13 -0
- package/dist/blocklets.mjs +17 -0
- package/dist/components/api-error-handler/api-error-handler.d.ts +13 -0
- package/dist/components/api-error-handler/api-error-handler.mjs +25 -0
- package/dist/components/api-error-handler/default-handler.d.ts +8 -0
- package/dist/components/api-error-handler/default-handler.mjs +69 -0
- package/dist/components/api-error-handler/index.d.ts +2 -0
- package/dist/components/api-error-handler/index.mjs +2 -0
- package/dist/components/api-error-handler/json-validation-interceptor.d.ts +2 -0
- package/dist/components/api-error-handler/json-validation-interceptor.mjs +9 -0
- package/dist/components/arcsphere/index.d.ts +16 -0
- package/dist/components/arcsphere/index.mjs +52 -0
- package/dist/components/authz/access-control.d.ts +24 -0
- package/dist/components/authz/access-control.mjs +15 -0
- package/dist/components/authz/context.d.ts +13 -0
- package/dist/components/authz/context.mjs +30 -0
- package/dist/components/authz/index.d.ts +2 -0
- package/dist/components/authz/index.mjs +2 -0
- package/dist/components/auto-translate/api.d.ts +14 -0
- package/dist/components/auto-translate/api.mjs +23 -0
- package/dist/components/auto-translate/auto-translate-button.d.ts +5 -0
- package/dist/components/auto-translate/auto-translate-button.mjs +48 -0
- package/dist/components/auto-translate/editor-store-adaptor.d.ts +1 -0
- package/dist/components/auto-translate/editor-store-adaptor.mjs +14 -0
- package/dist/components/auto-translate/index.d.ts +6 -0
- package/dist/components/auto-translate/index.mjs +6 -0
- package/dist/components/auto-translate/languages.d.ts +13 -0
- package/dist/components/auto-translate/languages.mjs +61 -0
- package/dist/components/auto-translate/post-auto-translate-plugin.d.ts +14 -0
- package/dist/components/auto-translate/post-auto-translate-plugin.mjs +32 -0
- package/dist/components/auto-translate/store.d.ts +21 -0
- package/dist/components/auto-translate/store.mjs +23 -0
- package/dist/components/auto-translate/translate.d.ts +17 -0
- package/dist/components/auto-translate/translate.mjs +103 -0
- package/dist/components/auto-translate/utils.d.ts +4 -0
- package/dist/components/auto-translate/utils.mjs +14 -0
- package/dist/components/auto-translate/with-availibility-check.d.ts +2 -0
- package/dist/components/auto-translate/with-availibility-check.mjs +10 -0
- package/dist/components/avatars/author-info.d.ts +23 -0
- package/dist/components/avatars/author-info.mjs +178 -0
- package/dist/components/avatars/avatar.d.ts +7 -0
- package/dist/components/avatars/avatar.mjs +9 -0
- package/dist/components/avatars/avatars.d.ts +10 -0
- package/dist/components/avatars/avatars.mjs +49 -0
- package/dist/components/avatars/badge.d.ts +14 -0
- package/dist/components/avatars/badge.mjs +178 -0
- package/dist/components/avatars/index.d.ts +5 -0
- package/dist/components/avatars/index.mjs +5 -0
- package/dist/components/avatars/system-user.d.ts +10 -0
- package/dist/components/avatars/system-user.mjs +58 -0
- package/dist/components/button-group/button-group.d.ts +18 -0
- package/dist/components/button-group/button-group.mjs +195 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/index.mjs +1 -0
- package/dist/components/confirm.d.ts +29 -0
- package/dist/components/confirm.mjs +103 -0
- package/dist/components/dayjs.d.ts +3 -0
- package/dist/components/dayjs.mjs +5 -0
- package/dist/components/default-editor-config-provider.d.ts +8 -0
- package/dist/components/default-editor-config-provider.mjs +108 -0
- package/dist/components/dirty-prompt.d.ts +8 -0
- package/dist/components/dirty-prompt.mjs +117 -0
- package/dist/components/editor/blocklet-editor.d.ts +1 -0
- package/dist/components/editor/blocklet-editor.mjs +1 -0
- package/dist/components/editor/editor.d.ts +17 -0
- package/dist/components/editor/editor.mjs +35 -0
- package/dist/components/editor/index.d.ts +4 -0
- package/dist/components/editor/index.mjs +3 -0
- package/dist/components/editor/lazy-editor.d.ts +3 -0
- package/dist/components/editor/lazy-editor.mjs +14 -0
- package/dist/components/editor/viewer.d.ts +10 -0
- package/dist/components/editor/viewer.mjs +18 -0
- package/dist/components/emoji-icon.d.ts +11 -0
- package/dist/components/emoji-icon.mjs +62 -0
- package/dist/components/empty-status/empty-status.d.ts +7 -0
- package/dist/components/empty-status/empty-status.mjs +24 -0
- package/dist/components/empty-status/index.d.ts +1 -0
- package/dist/components/empty-status/index.mjs +1 -0
- package/dist/components/hooks/changed.d.ts +10 -0
- package/dist/components/hooks/changed.mjs +34 -0
- package/dist/components/hooks/index.d.ts +6 -0
- package/dist/components/hooks/index.mjs +6 -0
- package/dist/components/hooks/interval.d.ts +6 -0
- package/dist/components/hooks/interval.mjs +16 -0
- package/dist/components/hooks/locale-context.d.ts +10 -0
- package/dist/components/hooks/locale-context.mjs +12 -0
- package/dist/components/hooks/measure.d.ts +5 -0
- package/dist/components/hooks/measure.mjs +8 -0
- package/dist/components/hooks/now.d.ts +1 -0
- package/dist/components/hooks/now.mjs +10 -0
- package/dist/components/hooks/responsive.d.ts +17 -0
- package/dist/components/hooks/responsive.mjs +25 -0
- package/dist/components/hooks/session.d.ts +12 -0
- package/dist/components/hooks/session.mjs +48 -0
- package/dist/components/hooks/use-event-callback.d.ts +1 -0
- package/dist/components/hooks/use-event-callback.mjs +14 -0
- package/dist/components/icon-button.d.ts +6 -0
- package/dist/components/icon-button.mjs +37 -0
- package/dist/components/input/auto-clear-plugin.d.ts +3 -0
- package/dist/components/input/auto-clear-plugin.mjs +20 -0
- package/dist/components/input/comment-input.d.ts +11 -0
- package/dist/components/input/comment-input.mjs +108 -0
- package/dist/components/input/index.d.ts +4 -0
- package/dist/components/input/index.mjs +4 -0
- package/dist/components/input/input.d.ts +29 -0
- package/dist/components/input/input.mjs +149 -0
- package/dist/components/input/post-edit.d.ts +10 -0
- package/dist/components/input/post-edit.mjs +49 -0
- package/dist/components/input/scrollable-editor-wrapper.d.ts +9 -0
- package/dist/components/input/scrollable-editor-wrapper.mjs +18 -0
- package/dist/components/input/shortcut-plugin.d.ts +7 -0
- package/dist/components/input/shortcut-plugin.mjs +28 -0
- package/dist/components/lexical.d.ts +10 -0
- package/dist/components/lexical.mjs +56 -0
- package/dist/components/locale/en.d.ts +117 -0
- package/dist/components/locale/en.mjs +116 -0
- package/dist/components/locale/index.d.ts +236 -0
- package/dist/components/locale/index.mjs +3 -0
- package/dist/components/locale/zh.d.ts +119 -0
- package/dist/components/locale/zh.mjs +118 -0
- package/dist/components/pagination.d.ts +12 -0
- package/dist/components/pagination.mjs +44 -0
- package/dist/components/posts/comment-list/comment-list.d.ts +5 -0
- package/dist/components/posts/comment-list/comment-list.mjs +163 -0
- package/dist/components/posts/comment-list/context.d.ts +76 -0
- package/dist/components/posts/comment-list/context.mjs +318 -0
- package/dist/components/posts/comment.d.ts +16 -0
- package/dist/components/posts/comment.mjs +184 -0
- package/dist/components/posts/index.d.ts +6 -0
- package/dist/components/posts/index.mjs +6 -0
- package/dist/components/posts/menu.d.ts +14 -0
- package/dist/components/posts/menu.mjs +83 -0
- package/dist/components/posts/post-content.d.ts +16 -0
- package/dist/components/posts/post-content.mjs +63 -0
- package/dist/components/posts/post.d.ts +26 -0
- package/dist/components/posts/post.mjs +198 -0
- package/dist/components/profile-card/index.d.ts +1 -0
- package/dist/components/profile-card/index.mjs +1 -0
- package/dist/components/profile-card/profile-card.d.ts +15 -0
- package/dist/components/profile-card/profile-card.mjs +140 -0
- package/dist/components/rating/binary-thumb.d.ts +9 -0
- package/dist/components/rating/binary-thumb.mjs +162 -0
- package/dist/components/rating/github-reaction-container.d.ts +9 -0
- package/dist/components/rating/github-reaction-container.mjs +46 -0
- package/dist/components/rating/github-reaction.d.ts +18 -0
- package/dist/components/rating/github-reaction.mjs +174 -0
- package/dist/components/rating/index.d.ts +3 -0
- package/dist/components/rating/index.mjs +3 -0
- package/dist/components/rating/rater-list.d.ts +10 -0
- package/dist/components/rating/rater-list.mjs +33 -0
- package/dist/components/rating/rating.d.ts +27 -0
- package/dist/components/rating/rating.mjs +50 -0
- package/dist/components/segmented-control.d.ts +14 -0
- package/dist/components/segmented-control.mjs +55 -0
- package/dist/components/shared/relative-time.d.ts +8 -0
- package/dist/components/shared/relative-time.mjs +21 -0
- package/dist/components/toast.d.ts +8 -0
- package/dist/components/toast.mjs +44 -0
- package/dist/components/uploader/index.d.ts +13 -0
- package/dist/components/uploader/index.mjs +70 -0
- package/dist/components/uploader/utils.d.ts +1 -0
- package/dist/components/uploader/utils.mjs +16 -0
- package/dist/components/utils.d.ts +22 -0
- package/dist/components/utils.mjs +103 -0
- package/dist/components/view-more.d.ts +4 -0
- package/dist/components/view-more.mjs +50 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.mjs +14 -0
- package/dist/global.d.ts +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.mjs +29 -0
- package/dist/preferences.d.ts +2 -0
- package/dist/preferences.mjs +9 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/index.mjs +96 -0
- package/dist/theme/typography.d.ts +2 -0
- package/dist/theme/typography.mjs +66 -0
- package/dist/type-override.d.ts +7 -0
- package/dist/types.d.ts +84 -0
- package/dist/types.mjs +0 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/ws.d.ts +3 -0
- package/dist/ws.mjs +39 -0
- package/package.json +81 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
cancel: "Cancel",
|
|
3
|
+
confirm: "Confirm",
|
|
4
|
+
commentInputPlaceholder: "Write a comment",
|
|
5
|
+
copyLink: "Copy Link",
|
|
6
|
+
delete: "Delete",
|
|
7
|
+
deleted: "This comment has been deleted",
|
|
8
|
+
edit: "Edit",
|
|
9
|
+
empty: "Be the first to leave a comment.",
|
|
10
|
+
loadMore: "Load More",
|
|
11
|
+
readMore: "Read More",
|
|
12
|
+
saveChanges: "Save Changes",
|
|
13
|
+
sendComment: "Comment",
|
|
14
|
+
showMoreReplies: "Show more replies",
|
|
15
|
+
all: "All",
|
|
16
|
+
messages: "Messages",
|
|
17
|
+
deleteMessage: {
|
|
18
|
+
title: "Delete message",
|
|
19
|
+
desc: "Do you want to delete this message permanently?"
|
|
20
|
+
},
|
|
21
|
+
deleteComment: {
|
|
22
|
+
title: "Delete comment",
|
|
23
|
+
desc: "Do you want to delete this comment?"
|
|
24
|
+
},
|
|
25
|
+
profile: {
|
|
26
|
+
empty: "Nothing here for now"
|
|
27
|
+
},
|
|
28
|
+
unsaved: {
|
|
29
|
+
title: "Leave without saving",
|
|
30
|
+
desc: "Your changes have not been saved. If you leave now, you will lose your changes.",
|
|
31
|
+
leave: "Leave anyway",
|
|
32
|
+
stay: "Stay on this page"
|
|
33
|
+
},
|
|
34
|
+
apiError: {
|
|
35
|
+
400: "Bad request: please retry the request later",
|
|
36
|
+
401: "Request unauthorized: authentication is required",
|
|
37
|
+
403: "Request forbidden: you may not have the necessary permissions for the requested resource",
|
|
38
|
+
409: "This record has been updated by another user. Please refresh the page to access the latest version",
|
|
39
|
+
staleTip: "You may need to save your changes manually",
|
|
40
|
+
timeout: "Request timeout: please retry the request later",
|
|
41
|
+
error: "Oops, your request failed. Please try again"
|
|
42
|
+
},
|
|
43
|
+
chat: {
|
|
44
|
+
notification: "Notification",
|
|
45
|
+
reply: "Reply",
|
|
46
|
+
unknown: "Unknown",
|
|
47
|
+
chats: "Chats",
|
|
48
|
+
channel: "Channel",
|
|
49
|
+
description: "Description",
|
|
50
|
+
newChannel: "New channel",
|
|
51
|
+
updateChannel: "Update channel",
|
|
52
|
+
noChats: "No chats",
|
|
53
|
+
unknownChannel: "Unknown Channel",
|
|
54
|
+
channelDescription: "Channel Description",
|
|
55
|
+
channelName: "Channel Name",
|
|
56
|
+
deleteChannel: "Delete Channel",
|
|
57
|
+
commentedYourPost: "commented on your post",
|
|
58
|
+
commentedPost: "commented on a post",
|
|
59
|
+
newPost: "create a new post",
|
|
60
|
+
mentionInComment: "mentioned you in a comment",
|
|
61
|
+
mentionInPost: "mentioned you in a post",
|
|
62
|
+
replyYourComment: "replied to your comment",
|
|
63
|
+
replyComment: "replied to a comment",
|
|
64
|
+
newMsg: "New message from",
|
|
65
|
+
deleteChannelTitle: "Delete this channel?",
|
|
66
|
+
deleteChannelDesc: "If you delete this channel, all messages in the channel will be deleted immediately.",
|
|
67
|
+
leaveChannel: "Leave channel",
|
|
68
|
+
joinChannel: "Join channel",
|
|
69
|
+
openTask: "opened a post",
|
|
70
|
+
closeTask: "closed a post",
|
|
71
|
+
assignTask: "assigned you to a post",
|
|
72
|
+
unassignTask: "unassigned you from a post",
|
|
73
|
+
points: "points",
|
|
74
|
+
point: "point",
|
|
75
|
+
pointUp: "\u{1F389} You got {points} {unit} {event}",
|
|
76
|
+
loadMore: "Load older messages",
|
|
77
|
+
notYetJoinedTheChannel: "Not yet joined the channel",
|
|
78
|
+
typeSomething: "Type here. Use Markdown, Drag or paste images",
|
|
79
|
+
send: "Send",
|
|
80
|
+
selectBoardTip: "Only board members can join board-specific channels"
|
|
81
|
+
},
|
|
82
|
+
userActionLog: {
|
|
83
|
+
editedCapital: "Edited",
|
|
84
|
+
times: "times",
|
|
85
|
+
mostRecent: "most recent",
|
|
86
|
+
and: "and",
|
|
87
|
+
edited: "edited",
|
|
88
|
+
created: "created",
|
|
89
|
+
added: "added the",
|
|
90
|
+
removed: "removed the",
|
|
91
|
+
label: "label",
|
|
92
|
+
labels: "labels",
|
|
93
|
+
assigned: "assigned",
|
|
94
|
+
unassigned: "unassigned",
|
|
95
|
+
selfAssigned: "self-assigned this",
|
|
96
|
+
selfUnassigned: "self-unassigned this",
|
|
97
|
+
published: "published this",
|
|
98
|
+
unpublished: "unpublished this",
|
|
99
|
+
changeTitle: "changed the title",
|
|
100
|
+
changeBoard: "changed the board",
|
|
101
|
+
mention: "mentioned this",
|
|
102
|
+
pin: "pinned this",
|
|
103
|
+
unpin: "unpinned this",
|
|
104
|
+
markAsFeatured: "marked this as featured",
|
|
105
|
+
unmarkAsFeatured: "unmarked this as featured",
|
|
106
|
+
expand: "view all",
|
|
107
|
+
collapse: "collapse",
|
|
108
|
+
expired: "The editing history is empty or expired.",
|
|
109
|
+
expire: "The editing history is empty or expired.",
|
|
110
|
+
passport: "passport",
|
|
111
|
+
passports: "passports"
|
|
112
|
+
},
|
|
113
|
+
pin: "Pin",
|
|
114
|
+
unpin: "Unpin",
|
|
115
|
+
pinned: "Pinned"
|
|
116
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
export declare const translations: {
|
|
2
|
+
zh: {
|
|
3
|
+
cancel: string;
|
|
4
|
+
confirm: string;
|
|
5
|
+
commentInputPlaceholder: string;
|
|
6
|
+
copyLink: string;
|
|
7
|
+
delete: string;
|
|
8
|
+
deleted: string;
|
|
9
|
+
edit: string;
|
|
10
|
+
empty: string;
|
|
11
|
+
installDIDWallet: string;
|
|
12
|
+
loadMore: string;
|
|
13
|
+
readMore: string;
|
|
14
|
+
saveChanges: string;
|
|
15
|
+
sendComment: string;
|
|
16
|
+
showMoreReplies: string;
|
|
17
|
+
all: string;
|
|
18
|
+
messages: string;
|
|
19
|
+
deleteMessage: {
|
|
20
|
+
title: string;
|
|
21
|
+
desc: string;
|
|
22
|
+
};
|
|
23
|
+
deleteComment: {
|
|
24
|
+
title: string;
|
|
25
|
+
desc: string;
|
|
26
|
+
};
|
|
27
|
+
profile: {
|
|
28
|
+
empty: string;
|
|
29
|
+
};
|
|
30
|
+
unsaved: {
|
|
31
|
+
title: string;
|
|
32
|
+
desc: string;
|
|
33
|
+
leave: string;
|
|
34
|
+
stay: string;
|
|
35
|
+
};
|
|
36
|
+
apiError: {
|
|
37
|
+
400: string;
|
|
38
|
+
401: string;
|
|
39
|
+
403: string;
|
|
40
|
+
409: string;
|
|
41
|
+
staleTip: string;
|
|
42
|
+
timeout: string;
|
|
43
|
+
error: string;
|
|
44
|
+
};
|
|
45
|
+
chat: {
|
|
46
|
+
notification: string;
|
|
47
|
+
reply: string;
|
|
48
|
+
unknown: string;
|
|
49
|
+
chats: string;
|
|
50
|
+
create: string;
|
|
51
|
+
channel: string;
|
|
52
|
+
description: string;
|
|
53
|
+
newChannel: string;
|
|
54
|
+
updateChannel: string;
|
|
55
|
+
noChats: string;
|
|
56
|
+
unknownChannel: string;
|
|
57
|
+
channelDescription: string;
|
|
58
|
+
channelName: string;
|
|
59
|
+
deleteChannel: string;
|
|
60
|
+
commentedYourPost: string;
|
|
61
|
+
commentedPost: string;
|
|
62
|
+
newPost: string;
|
|
63
|
+
mentionInComment: string;
|
|
64
|
+
mentionInPost: string;
|
|
65
|
+
replyYourComment: string;
|
|
66
|
+
replyComment: string;
|
|
67
|
+
newMsg: string;
|
|
68
|
+
deleteChannelTitle: string;
|
|
69
|
+
deleteChannelDesc: string;
|
|
70
|
+
leaveChannel: string;
|
|
71
|
+
joinChannel: string;
|
|
72
|
+
openTask: string;
|
|
73
|
+
closeTask: string;
|
|
74
|
+
assignTask: string;
|
|
75
|
+
unassignTask: string;
|
|
76
|
+
points: string;
|
|
77
|
+
point: string;
|
|
78
|
+
pointUp: string;
|
|
79
|
+
loadMore: string;
|
|
80
|
+
notYetJoinedTheChannel: string;
|
|
81
|
+
typeSomething: string;
|
|
82
|
+
send: string;
|
|
83
|
+
selectBoardTip: string;
|
|
84
|
+
};
|
|
85
|
+
userActionLog: {
|
|
86
|
+
editedCapital: string;
|
|
87
|
+
times: string;
|
|
88
|
+
mostRecent: string;
|
|
89
|
+
and: string;
|
|
90
|
+
added: string;
|
|
91
|
+
removed: string;
|
|
92
|
+
label: string;
|
|
93
|
+
labels: string;
|
|
94
|
+
assigned: string;
|
|
95
|
+
unassigned: string;
|
|
96
|
+
selfAssigned: string;
|
|
97
|
+
selfUnassigned: string;
|
|
98
|
+
published: string;
|
|
99
|
+
unpublished: string;
|
|
100
|
+
changeTitle: string;
|
|
101
|
+
edited: string;
|
|
102
|
+
created: string;
|
|
103
|
+
changeBoard: string;
|
|
104
|
+
mention: string;
|
|
105
|
+
pin: string;
|
|
106
|
+
unpin: string;
|
|
107
|
+
markAsFeatured: string;
|
|
108
|
+
unmarkAsFeatured: string;
|
|
109
|
+
expand: string;
|
|
110
|
+
collapse: string;
|
|
111
|
+
expired: string;
|
|
112
|
+
expire: string;
|
|
113
|
+
passport: string;
|
|
114
|
+
passports: string;
|
|
115
|
+
};
|
|
116
|
+
pin: string;
|
|
117
|
+
unpin: string;
|
|
118
|
+
pinned: string;
|
|
119
|
+
};
|
|
120
|
+
en: {
|
|
121
|
+
cancel: string;
|
|
122
|
+
confirm: string;
|
|
123
|
+
commentInputPlaceholder: string;
|
|
124
|
+
copyLink: string;
|
|
125
|
+
delete: string;
|
|
126
|
+
deleted: string;
|
|
127
|
+
edit: string;
|
|
128
|
+
empty: string;
|
|
129
|
+
loadMore: string;
|
|
130
|
+
readMore: string;
|
|
131
|
+
saveChanges: string;
|
|
132
|
+
sendComment: string;
|
|
133
|
+
showMoreReplies: string;
|
|
134
|
+
all: string;
|
|
135
|
+
messages: string;
|
|
136
|
+
deleteMessage: {
|
|
137
|
+
title: string;
|
|
138
|
+
desc: string;
|
|
139
|
+
};
|
|
140
|
+
deleteComment: {
|
|
141
|
+
title: string;
|
|
142
|
+
desc: string;
|
|
143
|
+
};
|
|
144
|
+
profile: {
|
|
145
|
+
empty: string;
|
|
146
|
+
};
|
|
147
|
+
unsaved: {
|
|
148
|
+
title: string;
|
|
149
|
+
desc: string;
|
|
150
|
+
leave: string;
|
|
151
|
+
stay: string;
|
|
152
|
+
};
|
|
153
|
+
apiError: {
|
|
154
|
+
400: string;
|
|
155
|
+
401: string;
|
|
156
|
+
403: string;
|
|
157
|
+
409: string;
|
|
158
|
+
staleTip: string;
|
|
159
|
+
timeout: string;
|
|
160
|
+
error: string;
|
|
161
|
+
};
|
|
162
|
+
chat: {
|
|
163
|
+
notification: string;
|
|
164
|
+
reply: string;
|
|
165
|
+
unknown: string;
|
|
166
|
+
chats: string;
|
|
167
|
+
channel: string;
|
|
168
|
+
description: string;
|
|
169
|
+
newChannel: string;
|
|
170
|
+
updateChannel: string;
|
|
171
|
+
noChats: string;
|
|
172
|
+
unknownChannel: string;
|
|
173
|
+
channelDescription: string;
|
|
174
|
+
channelName: string;
|
|
175
|
+
deleteChannel: string;
|
|
176
|
+
commentedYourPost: string;
|
|
177
|
+
commentedPost: string;
|
|
178
|
+
newPost: string;
|
|
179
|
+
mentionInComment: string;
|
|
180
|
+
mentionInPost: string;
|
|
181
|
+
replyYourComment: string;
|
|
182
|
+
replyComment: string;
|
|
183
|
+
newMsg: string;
|
|
184
|
+
deleteChannelTitle: string;
|
|
185
|
+
deleteChannelDesc: string;
|
|
186
|
+
leaveChannel: string;
|
|
187
|
+
joinChannel: string;
|
|
188
|
+
openTask: string;
|
|
189
|
+
closeTask: string;
|
|
190
|
+
assignTask: string;
|
|
191
|
+
unassignTask: string;
|
|
192
|
+
points: string;
|
|
193
|
+
point: string;
|
|
194
|
+
pointUp: string;
|
|
195
|
+
loadMore: string;
|
|
196
|
+
notYetJoinedTheChannel: string;
|
|
197
|
+
typeSomething: string;
|
|
198
|
+
send: string;
|
|
199
|
+
selectBoardTip: string;
|
|
200
|
+
};
|
|
201
|
+
userActionLog: {
|
|
202
|
+
editedCapital: string;
|
|
203
|
+
times: string;
|
|
204
|
+
mostRecent: string;
|
|
205
|
+
and: string;
|
|
206
|
+
edited: string;
|
|
207
|
+
created: string;
|
|
208
|
+
added: string;
|
|
209
|
+
removed: string;
|
|
210
|
+
label: string;
|
|
211
|
+
labels: string;
|
|
212
|
+
assigned: string;
|
|
213
|
+
unassigned: string;
|
|
214
|
+
selfAssigned: string;
|
|
215
|
+
selfUnassigned: string;
|
|
216
|
+
published: string;
|
|
217
|
+
unpublished: string;
|
|
218
|
+
changeTitle: string;
|
|
219
|
+
changeBoard: string;
|
|
220
|
+
mention: string;
|
|
221
|
+
pin: string;
|
|
222
|
+
unpin: string;
|
|
223
|
+
markAsFeatured: string;
|
|
224
|
+
unmarkAsFeatured: string;
|
|
225
|
+
expand: string;
|
|
226
|
+
collapse: string;
|
|
227
|
+
expired: string;
|
|
228
|
+
expire: string;
|
|
229
|
+
passport: string;
|
|
230
|
+
passports: string;
|
|
231
|
+
};
|
|
232
|
+
pin: string;
|
|
233
|
+
unpin: string;
|
|
234
|
+
pinned: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
cancel: string;
|
|
3
|
+
confirm: string;
|
|
4
|
+
commentInputPlaceholder: string;
|
|
5
|
+
copyLink: string;
|
|
6
|
+
delete: string;
|
|
7
|
+
deleted: string;
|
|
8
|
+
edit: string;
|
|
9
|
+
empty: string;
|
|
10
|
+
installDIDWallet: string;
|
|
11
|
+
loadMore: string;
|
|
12
|
+
readMore: string;
|
|
13
|
+
saveChanges: string;
|
|
14
|
+
sendComment: string;
|
|
15
|
+
showMoreReplies: string;
|
|
16
|
+
all: string;
|
|
17
|
+
messages: string;
|
|
18
|
+
deleteMessage: {
|
|
19
|
+
title: string;
|
|
20
|
+
desc: string;
|
|
21
|
+
};
|
|
22
|
+
deleteComment: {
|
|
23
|
+
title: string;
|
|
24
|
+
desc: string;
|
|
25
|
+
};
|
|
26
|
+
profile: {
|
|
27
|
+
empty: string;
|
|
28
|
+
};
|
|
29
|
+
unsaved: {
|
|
30
|
+
title: string;
|
|
31
|
+
desc: string;
|
|
32
|
+
leave: string;
|
|
33
|
+
stay: string;
|
|
34
|
+
};
|
|
35
|
+
apiError: {
|
|
36
|
+
400: string;
|
|
37
|
+
401: string;
|
|
38
|
+
403: string;
|
|
39
|
+
409: string;
|
|
40
|
+
staleTip: string;
|
|
41
|
+
timeout: string;
|
|
42
|
+
error: string;
|
|
43
|
+
};
|
|
44
|
+
chat: {
|
|
45
|
+
notification: string;
|
|
46
|
+
reply: string;
|
|
47
|
+
unknown: string;
|
|
48
|
+
chats: string;
|
|
49
|
+
create: string;
|
|
50
|
+
channel: string;
|
|
51
|
+
description: string;
|
|
52
|
+
newChannel: string;
|
|
53
|
+
updateChannel: string;
|
|
54
|
+
noChats: string;
|
|
55
|
+
unknownChannel: string;
|
|
56
|
+
channelDescription: string;
|
|
57
|
+
channelName: string;
|
|
58
|
+
deleteChannel: string;
|
|
59
|
+
commentedYourPost: string;
|
|
60
|
+
commentedPost: string;
|
|
61
|
+
newPost: string;
|
|
62
|
+
mentionInComment: string;
|
|
63
|
+
mentionInPost: string;
|
|
64
|
+
replyYourComment: string;
|
|
65
|
+
replyComment: string;
|
|
66
|
+
newMsg: string;
|
|
67
|
+
deleteChannelTitle: string;
|
|
68
|
+
deleteChannelDesc: string;
|
|
69
|
+
leaveChannel: string;
|
|
70
|
+
joinChannel: string;
|
|
71
|
+
openTask: string;
|
|
72
|
+
closeTask: string;
|
|
73
|
+
assignTask: string;
|
|
74
|
+
unassignTask: string;
|
|
75
|
+
points: string;
|
|
76
|
+
point: string;
|
|
77
|
+
pointUp: string;
|
|
78
|
+
loadMore: string;
|
|
79
|
+
notYetJoinedTheChannel: string;
|
|
80
|
+
typeSomething: string;
|
|
81
|
+
send: string;
|
|
82
|
+
selectBoardTip: string;
|
|
83
|
+
};
|
|
84
|
+
userActionLog: {
|
|
85
|
+
editedCapital: string;
|
|
86
|
+
times: string;
|
|
87
|
+
mostRecent: string;
|
|
88
|
+
and: string;
|
|
89
|
+
added: string;
|
|
90
|
+
removed: string;
|
|
91
|
+
label: string;
|
|
92
|
+
labels: string;
|
|
93
|
+
assigned: string;
|
|
94
|
+
unassigned: string;
|
|
95
|
+
selfAssigned: string;
|
|
96
|
+
selfUnassigned: string;
|
|
97
|
+
published: string;
|
|
98
|
+
unpublished: string;
|
|
99
|
+
changeTitle: string;
|
|
100
|
+
edited: string;
|
|
101
|
+
created: string;
|
|
102
|
+
changeBoard: string;
|
|
103
|
+
mention: string;
|
|
104
|
+
pin: string;
|
|
105
|
+
unpin: string;
|
|
106
|
+
markAsFeatured: string;
|
|
107
|
+
unmarkAsFeatured: string;
|
|
108
|
+
expand: string;
|
|
109
|
+
collapse: string;
|
|
110
|
+
expired: string;
|
|
111
|
+
expire: string;
|
|
112
|
+
passport: string;
|
|
113
|
+
passports: string;
|
|
114
|
+
};
|
|
115
|
+
pin: string;
|
|
116
|
+
unpin: string;
|
|
117
|
+
pinned: string;
|
|
118
|
+
};
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
cancel: "\u53D6\u6D88",
|
|
3
|
+
confirm: "\u786E\u8BA4",
|
|
4
|
+
commentInputPlaceholder: "\u5199\u8BC4\u8BBA",
|
|
5
|
+
copyLink: "\u590D\u5236\u94FE\u63A5",
|
|
6
|
+
delete: "\u5220\u9664",
|
|
7
|
+
deleted: "\u8BE5\u8BC4\u8BBA\u5DF2\u88AB\u5220\u9664",
|
|
8
|
+
edit: "\u7F16\u8F91",
|
|
9
|
+
empty: "\u6210\u4E3A\u7B2C\u4E00\u4E2A\u7559\u4E0B\u8BC4\u8BBA\u7684\u4EBA.",
|
|
10
|
+
installDIDWallet: "\u70B9\u51FB\u62E5\u6709\u4F60\u7684 DID Wallet\u2192",
|
|
11
|
+
loadMore: "\u52A0\u8F7D\u66F4\u591A",
|
|
12
|
+
readMore: "\u66F4\u591A\u5185\u5BB9",
|
|
13
|
+
saveChanges: "\u4FDD\u5B58\u4FEE\u6539",
|
|
14
|
+
sendComment: "\u8BC4\u8BBA",
|
|
15
|
+
showMoreReplies: "\u663E\u793A\u66F4\u591A\u56DE\u590D",
|
|
16
|
+
all: "\u6240\u6709",
|
|
17
|
+
messages: "\u6D88\u606F",
|
|
18
|
+
deleteMessage: {
|
|
19
|
+
title: "\u5220\u9664\u6D88\u606F",
|
|
20
|
+
desc: "\u662F\u5426\u8981\u6C38\u4E45\u5220\u9664\u6B64\u6D88\u606F\uFF1F"
|
|
21
|
+
},
|
|
22
|
+
deleteComment: {
|
|
23
|
+
title: "\u5220\u9664\u8BC4\u8BBA",
|
|
24
|
+
desc: "\u662F\u5426\u8981\u5220\u9664\u6B64\u8BC4\u8BBA\uFF1F"
|
|
25
|
+
},
|
|
26
|
+
profile: {
|
|
27
|
+
empty: "\u6682\u65E0\u6570\u636E"
|
|
28
|
+
},
|
|
29
|
+
unsaved: {
|
|
30
|
+
title: "\u4E0D\u4FDD\u5B58\u79BB\u5F00",
|
|
31
|
+
desc: "\u60A8\u7684\u66F4\u6539\u5C1A\u672A\u4FDD\u5B58\u3002\u5982\u679C\u60A8\u73B0\u5728\u79BB\u5F00\uFF0C\u5C06\u4F1A\u4E22\u5931\u60A8\u7684\u66F4\u6539\u3002",
|
|
32
|
+
leave: "\u79BB\u5F00",
|
|
33
|
+
stay: "\u7559\u5728\u5F53\u524D\u9875\u9762"
|
|
34
|
+
},
|
|
35
|
+
apiError: {
|
|
36
|
+
400: "\u8BF7\u6C42\u9519\u8BEF: \u8BF7\u7A0D\u540E\u91CD\u8BD5",
|
|
37
|
+
401: "\u8BF7\u6C42\u672A\u7ECF\u6388\u6743\uFF1A\u9700\u8981\u8EAB\u4EFD\u9A8C\u8BC1",
|
|
38
|
+
403: "\u8BF7\u6C42\u88AB\u7981\u6B62\uFF1A\u60A8\u53EF\u80FD\u6CA1\u6709\u6240\u8BF7\u6C42\u8D44\u6E90\u7684\u5FC5\u8981\u6743\u9650",
|
|
39
|
+
409: "\u8BE5\u8BB0\u5F55\u5DF2\u88AB\u5176\u4ED6\u7528\u6237\u66F4\u65B0\u3002\u8BF7\u5237\u65B0\u9875\u9762\u4EE5\u8BBF\u95EE\u6700\u65B0\u7248\u672C\u3002",
|
|
40
|
+
staleTip: "\u60A8\u53EF\u80FD\u9700\u8981\u624B\u52A8\u5907\u4EFD\u4F60\u7684\u66F4\u6539",
|
|
41
|
+
timeout: "\u8BF7\u6C42\u8D85\u65F6: \u8BF7\u7A0D\u540E\u91CD\u8BD5",
|
|
42
|
+
error: "\u54CE\u5440\uFF0C\u60A8\u7684\u8BF7\u6C42\u5931\u8D25\u4E86\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"
|
|
43
|
+
},
|
|
44
|
+
chat: {
|
|
45
|
+
notification: "\u901A\u77E5",
|
|
46
|
+
reply: "\u56DE\u590D",
|
|
47
|
+
unknown: "\u672A\u547D\u540D",
|
|
48
|
+
chats: "\u804A\u5929",
|
|
49
|
+
create: "\u521B\u5EFA",
|
|
50
|
+
channel: "\u9891\u9053",
|
|
51
|
+
description: "\u63CF\u8FF0",
|
|
52
|
+
newChannel: "\u65B0\u7684\u9891\u9053",
|
|
53
|
+
updateChannel: "\u66F4\u65B0\u9891\u9053",
|
|
54
|
+
noChats: "\u6682\u65E0\u5BF9\u8BDD",
|
|
55
|
+
unknownChannel: "\u672A\u547D\u540D\u7684\u9891\u9053",
|
|
56
|
+
channelDescription: "\u9891\u9053\u63CF\u8FF0",
|
|
57
|
+
channelName: "\u9891\u9053\u540D\u79F0",
|
|
58
|
+
deleteChannel: "\u5220\u9664\u9891\u9053",
|
|
59
|
+
commentedYourPost: "\u8BC4\u8BBA\u4E86\u4F60\u7684\u5E16\u5B50",
|
|
60
|
+
commentedPost: "\u8BC4\u8BBA\u4E86\u5E16\u5B50",
|
|
61
|
+
newPost: "\u521B\u5EFA\u4E86\u4E00\u4E2A\u65B0\u7684\u5E16\u5B50:",
|
|
62
|
+
mentionInComment: "\u5728\u8BC4\u8BBA\u91CC\u63D0\u53CA\u4E86\u4F60",
|
|
63
|
+
mentionInPost: "\u5728\u5E16\u5B50\u91CC\u63D0\u53CA\u4E86\u4F60",
|
|
64
|
+
replyYourComment: "\u56DE\u590D\u4E86\u4F60\u7684\u8BC4\u8BBA",
|
|
65
|
+
replyComment: "\u56DE\u590D\u4E86\u8BC4\u8BBA",
|
|
66
|
+
newMsg: "\u65B0\u6D88\u606F\u6765\u81EA",
|
|
67
|
+
deleteChannelTitle: "\u786E\u8BA4\u5220\u9664\u8FD9\u4E2A\u9891\u9053\uFF1F",
|
|
68
|
+
deleteChannelDesc: "\u5982\u679C\u4F60\u8981\u5220\u9664\u8FD9\u4E2A\u9891\u9053, \u9891\u9053\u5185\u6240\u6709\u7684\u6D88\u606F\u90FD\u4F1A\u7ACB\u523B\u6D88\u9664\u3002",
|
|
69
|
+
leaveChannel: "\u79BB\u5F00\u9891\u9053",
|
|
70
|
+
joinChannel: "\u52A0\u5165\u9891\u9053",
|
|
71
|
+
openTask: "\u521B\u5EFA\u4E86\u4E00\u4E2A\u4EFB\u52A1",
|
|
72
|
+
closeTask: "\u5173\u95ED\u4E86\u4E00\u4E2A\u4EFB\u52A1",
|
|
73
|
+
assignTask: "\u5206\u914D\u7ED9\u4F60\u4E00\u4E2A\u4EFB\u52A1",
|
|
74
|
+
unassignTask: "\u53D6\u6D88\u7ED9\u4F60\u5206\u914D\u7684\u4E00\u4E2A\u4EFB\u52A1",
|
|
75
|
+
points: "\u5206",
|
|
76
|
+
point: "\u5206",
|
|
77
|
+
pointUp: "\u{1F389} \u60A8\u83B7\u5F97\u4E86 {points} {unit} {event}",
|
|
78
|
+
loadMore: "\u52A0\u8F7D\u66F4\u591A\u6D88\u606F",
|
|
79
|
+
notYetJoinedTheChannel: "\u6682\u672A\u52A0\u5165\u8FD9\u4E2A\u9891\u9053",
|
|
80
|
+
typeSomething: "\u5728\u8FD9\u91CC\u8F93\u5165\uFF0C\u9002\u7528 MarkDown\uFF0C\u62FD\u5165\u6216\u8005\u9ECF\u8D34\u56FE\u7247",
|
|
81
|
+
send: "\u53D1\u9001",
|
|
82
|
+
selectBoardTip: "\u53EA\u6709 board \u6210\u5458\u53EF\u4EE5\u52A0\u5165 board \u4E13\u5C5E\u9891\u9053"
|
|
83
|
+
},
|
|
84
|
+
userActionLog: {
|
|
85
|
+
editedCapital: "\u7F16\u8F91",
|
|
86
|
+
times: "\u6B21",
|
|
87
|
+
mostRecent: "\u6700\u8FD1",
|
|
88
|
+
and: "\u548C",
|
|
89
|
+
added: "\u6DFB\u52A0",
|
|
90
|
+
removed: "\u79FB\u9664",
|
|
91
|
+
label: "\u6807\u7B7E",
|
|
92
|
+
labels: "\u6807\u7B7E",
|
|
93
|
+
assigned: "\u5206\u914D",
|
|
94
|
+
unassigned: "\u53D6\u6D88\u5206\u914D",
|
|
95
|
+
selfAssigned: "\u5206\u914D\u81EA\u5DF1",
|
|
96
|
+
selfUnassigned: "\u53D6\u6D88\u5206\u914D\u81EA\u5DF1",
|
|
97
|
+
published: "\u53D1\u5E03",
|
|
98
|
+
unpublished: "\u53D6\u6D88\u53D1\u5E03",
|
|
99
|
+
changeTitle: "\u4FEE\u6539\u6807\u9898",
|
|
100
|
+
edited: "\u7F16\u8F91",
|
|
101
|
+
created: "\u521B\u5EFA",
|
|
102
|
+
changeBoard: "\u4FEE\u6539\u677F\u5757",
|
|
103
|
+
mention: "\u63D0\u5230",
|
|
104
|
+
pin: "\u7F6E\u9876",
|
|
105
|
+
unpin: "\u53D6\u6D88\u7F6E\u9876",
|
|
106
|
+
markAsFeatured: "\u6807\u8BB0\u4E3A\u7CBE\u54C1",
|
|
107
|
+
unmarkAsFeatured: "\u53D6\u6D88\u7CBE\u54C1",
|
|
108
|
+
expand: "\u67E5\u770B\u5168\u90E8",
|
|
109
|
+
collapse: "\u6536\u8D77",
|
|
110
|
+
expired: "\u7F16\u8F91\u8BB0\u5F55\u4E3A\u7A7A\u6216\u5DF2\u8FC7\u671F",
|
|
111
|
+
expire: "\u7F16\u8F91\u8BB0\u5F55\u4E3A\u7A7A\u6216\u5DF2\u8FC7\u671F",
|
|
112
|
+
passport: "\u901A\u884C\u8BC1",
|
|
113
|
+
passports: "\u901A\u884C\u8BC1"
|
|
114
|
+
},
|
|
115
|
+
pin: "\u7F6E\u9876",
|
|
116
|
+
unpin: "\u53D6\u6D88\u7F6E\u9876",
|
|
117
|
+
pinned: "\u7F6E\u9876"
|
|
118
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type SxProps } from '@mui/material/styles';
|
|
3
|
+
interface PaginationProps {
|
|
4
|
+
page?: number;
|
|
5
|
+
size?: number;
|
|
6
|
+
total: number;
|
|
7
|
+
onChange?: (page: number) => void;
|
|
8
|
+
routerMode?: boolean;
|
|
9
|
+
sx?: SxProps;
|
|
10
|
+
}
|
|
11
|
+
export default function Pagination({ page, size, total, onChange, routerMode, sx, ...rest }: PaginationProps): import("react").JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSearchParams } from "react-router-dom";
|
|
3
|
+
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
4
|
+
import { useTheme } from "@mui/material/styles";
|
|
5
|
+
import MuiPagination from "@mui/material/Pagination";
|
|
6
|
+
export default function Pagination({
|
|
7
|
+
page,
|
|
8
|
+
size = 20,
|
|
9
|
+
total,
|
|
10
|
+
onChange,
|
|
11
|
+
routerMode = true,
|
|
12
|
+
sx,
|
|
13
|
+
...rest
|
|
14
|
+
}) {
|
|
15
|
+
const theme = useTheme();
|
|
16
|
+
const downMd = useMediaQuery(theme.breakpoints.down("md"));
|
|
17
|
+
const [searchParams, setSearchParams] = useSearchParams();
|
|
18
|
+
const pageCount = Math.ceil(total / size);
|
|
19
|
+
const mergedSx = [{}, ...Array.isArray(sx) ? sx : [sx]];
|
|
20
|
+
const handleOnChange = (e, page2) => {
|
|
21
|
+
if (routerMode) {
|
|
22
|
+
searchParams.set("page", `${page2}`);
|
|
23
|
+
setSearchParams(searchParams);
|
|
24
|
+
} else {
|
|
25
|
+
onChange?.(page2);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
if (pageCount <= 1 || !total) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
MuiPagination,
|
|
33
|
+
{
|
|
34
|
+
page,
|
|
35
|
+
count: pageCount,
|
|
36
|
+
onChange: handleOnChange,
|
|
37
|
+
variant: "outlined",
|
|
38
|
+
shape: "rounded",
|
|
39
|
+
size: downMd ? "small" : "medium",
|
|
40
|
+
sx: mergedSx,
|
|
41
|
+
...rest
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|