Skip to content

Commit 4252986

Browse files
committed
Fix styles; add registration feature
1 parent e56ab16 commit 4252986

File tree

9 files changed

+457
-234
lines changed

9 files changed

+457
-234
lines changed

src/components/AddLabelDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ const AddLabelDialog = (props: AddLabelDialogProps) => {
130130
<Input
131131
placeholder={t("home.tag.name")}
132132
value={name()}
133-
onChange={(e) => setName(e.currentTarget.value)}
133+
maxLength={10}
134+
onInput={(e) => setName(e.currentTarget.value)}
134135
/>
136+
<FormHelperText pl="$1">{name().length}/10</FormHelperText>
135137
</FormControl>
136138
<FormControl>
137139
<FormLabel>{t("home.tag.description")}</FormLabel>

src/components/EditLabelDialog.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ const EditLabelDialog = (props: EditLabelDialogProps) => {
8282
const handleSubmit = async () => {
8383
try {
8484
setLoading(true)
85-
const labelIdsString = selectedLabelIds().join(",")
86-
8785
// 调用批量打标签接口
8886
const objectsToProcess =
8987
props.isBatch && props.selectedObjs ? props.selectedObjs : [props.obj]
9088
const resp = await createLabelFileBindingBatch(
91-
labelIdsString,
89+
selectedLabelIds(),
9290
objectsToProcess,
9391
)
9492

src/lang/en/login.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@
1010
"clear": "Clear",
1111
"login": "Login",
1212
"use_guest": "Browse as a guest",
13-
"success": "Login successfully"
13+
"success": "Login successfully",
14+
"register": "Register",
15+
"go_login": "Go to login",
16+
"register_disabled": "Register is disabled",
17+
"register_success": "Register successfully"
1418
}

src/lang/en/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"allow_indexed": "Allow indexed",
33
"allow_mounted": "Allow mounted",
4+
"use_newui": "Use new UI",
45
"allow_register": "Allow register",
6+
"default_role": "Default role",
57
"announcement": "Announcement",
68
"aria2_secret": "Aria2 secret",
79
"aria2_uri": "Aria2 uri",
@@ -15,7 +17,6 @@
1517
"decompress_download_task_threads_num": "Decompress download task threads num",
1618
"decompress_upload_task_threads_num": "Decompress upload task threads num",
1719
"default_page_size": "Default page size",
18-
"default_role": "Default role",
1920
"external_previews": "External previews",
2021
"favicon": "Favicon",
2122
"filename_char_mapping": "Filename char mapping",
@@ -123,7 +124,6 @@
123124
"transmission_seedtime": "Transmission seedtime",
124125
"transmission_uri": "Transmission uri",
125126
"upload_task_threads_num": "Upload task threads num",
126-
"use_newui": "Use newui",
127127
"version": "Version",
128128
"video_autoplay": "Video autoplay",
129129
"video_types": "Video types",

0 commit comments

Comments
 (0)