Skip to content

Commit d61e0da

Browse files
author
haitaoo
committed
Merge branch 'feat/1.1.2/ui' into beta.2/1.1.0
2 parents dacc27e + 016fd7b commit d61e0da

File tree

115 files changed

+3381
-1329
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3381
-1329
lines changed

i18n/en_US.yaml

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ ui:
340340
until_time: "Your account was suspended until {{ time }}."
341341
forever: This user was suspended forever.
342342
end: You don't meet a community guideline.
343+
contact_us: Contact us
343344
editor:
344345
blockquote:
345346
text: Blockquote
@@ -733,6 +734,7 @@ ui:
733734
label: Confirm New Password
734735
settings:
735736
page_title: Settings
737+
goto_modify: Go to Modify
736738
nav:
737739
profile: Profile
738740
notification: Notifications
@@ -897,6 +899,10 @@ ui:
897899
skip: Skip
898900
discard_draft: Discard draft
899901
pinned: Pinned
902+
all: All
903+
question: Question
904+
answer: Answer
905+
comment: Comment
900906
search:
901907
title: Search Results
902908
keywords: Keywords
@@ -1119,12 +1125,16 @@ ui:
11191125
seo: SEO
11201126
customize: Customize
11211127
themes: Themes
1122-
css-html: CSS/HTML
1128+
css_html: CSS/HTML
11231129
login: Login
1130+
privileges: Privileges
11241131
plugins: Plugins
11251132
installed_plugins: Installed Plugins
11261133
website_welcome: Welcome to {{site_name}}
11271134
plugins:
1135+
login: Login
1136+
qrcode_login_tip: Please use {{ agentName }} to scan the QR code and log in.
1137+
login_failed_email_tip: Login failed, please allow this app to access your email information before try again.
11281138
oauth:
11291139
connect: Connect with {{ auth_name }}
11301140
remove: Remove {{ auth_name }}
@@ -1171,6 +1181,7 @@ ui:
11711181
pending: Pending
11721182
completed: Completed
11731183
flagged: Flagged
1184+
flagged_type: Flagged {{ type }}
11741185
created: Created
11751186
action: Action
11761187
review: Review
@@ -1321,9 +1332,6 @@ ui:
13211332
label: Timezone
13221333
msg: Timezone cannot be empty.
13231334
text: Choose a city in the same timezone as you.
1324-
avatar:
1325-
label: Default Avatar
1326-
text: For users without a custom avatar of their own.
13271335
smtp:
13281336
page_title: SMTP
13291337
from_email:
@@ -1433,12 +1441,22 @@ ui:
14331441
footer:
14341442
label: Footer
14351443
text: This will insert before </html>.
1444+
sidebar:
1445+
label: Sidebar
1446+
text: This will insert in sidebar.
14361447
login:
14371448
page_title: Login
14381449
membership:
14391450
title: Membership
14401451
label: Allow new registrations
14411452
text: Turn off to prevent anyone from creating a new account.
1453+
email_registration:
1454+
title: Email registration
1455+
label: Allow email registration
1456+
text: Turn off to prevent anyone creating new account through email.
1457+
allowed_email_domains:
1458+
title: Allowed email domains
1459+
text: Email domains that users must register accounts with. One domain per line. Ignored when empty.
14421460
private:
14431461
title: Private
14441462
label: Login required
@@ -1460,7 +1478,30 @@ ui:
14601478
deactivate: Deactivate
14611479
activate: Activate
14621480
settings: Settings
1463-
1481+
settings_users:
1482+
title: Users
1483+
avatar:
1484+
label: Default Avatar
1485+
text: For users without a custom avatar of their own.
1486+
profile_editable:
1487+
title: Profile Editable
1488+
allow_update_display_name:
1489+
label: Allow users to change their display name
1490+
allow_update_username:
1491+
label: Allow users to change their username
1492+
allow_update_avatar:
1493+
label: Allow users to change their profile image
1494+
allow_update_bio:
1495+
label: Allow users to change their about me
1496+
allow_update_website:
1497+
label: Allow users to change their website
1498+
allow_update_location:
1499+
label: Allow users to change their location
1500+
privilege:
1501+
title: Privileges
1502+
level:
1503+
label: Reputation required level
1504+
text: Choose the reputation required for the privileges
14641505

14651506
form:
14661507
optional: (optional)

i18n/zh_CN.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,10 @@ ui:
837837
skip: 略过
838838
discard_draft: 丢弃草稿
839839
pinned: 已置顶
840+
all: 所有
841+
question: 问题
842+
answer: 回答
843+
comment: 评论
840844
search:
841845
title: 搜索结果
842846
keywords: 关键词
@@ -1103,6 +1107,7 @@ ui:
11031107
pending: 等待处理
11041108
completed: 已完成
11051109
flagged: 被举报内容
1110+
flagged_type: 被举报的{{ type }}
11061111
created: 创建于
11071112
action: 操作
11081113
review: 审查

ui/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = {
3636
'react/no-unescaped-entities': 'off',
3737
'react/require-default-props': 'off',
3838
'arrow-body-style': 'off',
39+
"global-require": "off",
3940
'react/prop-types': 0,
4041
'react/no-danger': 'off',
4142
'jsx-a11y/no-static-element-interactions': 'off',

ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
"dependencies": {
1616
"axios": "^0.27.2",
1717
"bootstrap": "^5.2.0",
18-
"bootstrap-icons": "1.10.2",
18+
"bootstrap-icons": "1.10.4",
1919
"classnames": "^2.3.1",
2020
"codemirror": "5.65.0",
2121
"color": "^4.2.3",
2222
"copy-to-clipboard": "^3.3.2",
2323
"dayjs": "^1.11.5",
2424
"diff": "^5.1.0",
25-
"emoji-regex": "^10.2.1",
2625
"i18next": "^21.9.0",
2726
"katex": "^0.16.2",
2827
"lodash": "^4.17.21",
2928
"marked": "^4.0.19",
3029
"md5": "^2.3.0",
3130
"mermaid": "^9.1.7",
3231
"next-share": "^0.18.1",
32+
"qrcode": "^1.5.1",
3333
"qs": "^6.11.0",
3434
"react": "^18.2.0",
3535
"react-bootstrap": "^2.5.0",

0 commit comments

Comments
 (0)