Merge branch 'ui' of git.backyard.segmentfault.com:opensource/answer into ui

This commit is contained in:
haitao(lj) 2022-09-29 11:28:33 +08:00
commit 00643fe65b
3 changed files with 15 additions and 14 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
.DS_Store .DS_Store
._* ._*
/.idea /.idea
/.fleet
/.vscode/*.log /.vscode/*.log
/cmd/answer/*.sh /cmd/answer/*.sh
/cmd/logs /cmd/logs

View File

@ -14,7 +14,7 @@ const Link: FC<IEditorContext> = ({ editor }) => {
}; };
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
const [link, setLink] = useState({ const [link, setLink] = useState({
value: 'http://', value: 'https://',
isInvalid: false, isInvalid: false,
errorMsg: '', errorMsg: '',
}); });

View File

@ -34,8 +34,8 @@
}, },
"suspended": { "suspended": {
"title": "Your Account has been Suspended", "title": "Your Account has been Suspended",
"until_time": "Your account was suspended until {{ time }}", "until_time": "Your account was suspended until {{ time }}.",
"forever": "This user was suspended forever. ", "forever": "This user was suspended forever.",
"end": "You dont meet a community guideline." "end": "You dont meet a community guideline."
}, },
"editor": { "editor": {
@ -123,17 +123,17 @@
"url": { "url": {
"label": "Image URL", "label": "Image URL",
"msg": { "msg": {
"empty": "Image URL cannot be empty" "empty": "Image URL cannot be empty."
} }
}, },
"name": { "name": {
"label": "Url name (optional)" "label": "Description (optional)"
} }
} }
}, },
"btn_cancel": "Cancel", "btn_cancel": "Cancel",
"btn_confirm": "Confirm", "btn_confirm": "Confirm",
"uploading": "uploading" "uploading": "Uploading"
}, },
"indent": { "indent": {
"text": "Indent" "text": "Indent"
@ -183,7 +183,7 @@
"empty": "Cannot be empty." "empty": "Cannot be empty."
}, },
"msg": { "msg": {
"empty": "Please select a reason" "empty": "Please select a reason."
} }
}, },
"report_modal": { "report_modal": {
@ -198,7 +198,7 @@
"empty": "Cannot be empty." "empty": "Cannot be empty."
}, },
"msg": { "msg": {
"empty": "Please select a reason" "empty": "Please select a reason."
} }
}, },
"tag_modal": { "tag_modal": {
@ -208,7 +208,7 @@
"display_name": { "display_name": {
"label": "Display name", "label": "Display name",
"msg": { "msg": {
"empty": "Display name cannot be empty" "empty": "Display name cannot be empty."
} }
}, },
"slug_name": { "slug_name": {
@ -257,8 +257,8 @@
"label": "Display name" "label": "Display name"
}, },
"slug_name": { "slug_name": {
"label": "Url slug", "label": "URL slug",
"info": "Spaces are not allowed, please use \"-\" instead." "info": "Spaces are not allowed, please use '-' instead."
}, },
"description": { "description": {
"label": "Description" "label": "Description"
@ -523,7 +523,7 @@
"website": { "website": {
"label": "Website (optional)", "label": "Website (optional)",
"placeholder": "https://example.com", "placeholder": "https://example.com",
"msg": "website incorrect format" "msg": "Website incorrect format"
}, },
"location": { "location": {
"label": "Location (optional)", "label": "Location (optional)",
@ -549,8 +549,8 @@
"label": "Current Password", "label": "Current Password",
"msg": { "msg": {
"empty": "Current Password cannot be empty.", "empty": "Current Password cannot be empty.",
"length": "The length needs to be between 8 and 32", "length": "The length needs to be between 8 and 32.",
"different": "The two entered passwords do not match" "different": "The two entered passwords do not match."
} }
}, },
"new_pass": { "new_pass": {