mirror of https://gitee.com/answerdev/answer.git
Merge branch 'ui' into 'main'
optimize scss file & add version info See merge request opensource/answer!79
This commit is contained in:
commit
2278844355
|
@ -1,2 +1,2 @@
|
|||
REACT_APP_API_URL=http://10.0.10.98:2060
|
||||
CDN_PATH=https://cdn.dev.segmentfault.com/<projectName>/<version>/
|
||||
REACT_APP_API_URL=http://10.0.10.98:206
|
||||
REACT_APP_VERSION=
|
||||
|
|
|
@ -68,7 +68,7 @@ const Index: FC = () => {
|
|||
{t('edit')}
|
||||
</Button>
|
||||
</Card.Header>
|
||||
<Card.Body className="mx-n1">
|
||||
<Card.Body className="m-n1">
|
||||
{followingTags?.length ? (
|
||||
<>
|
||||
{followingTags.map((item) => {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15), $box-shadow-sm;
|
||||
.logo {
|
||||
max-height: 1.75rem;
|
||||
line-height: 1;
|
||||
}
|
||||
.nav-link {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
"title": "Your Account has been Suspended",
|
||||
"until_time": "Your account was suspended until {{ time }}.",
|
||||
"forever": "This user was suspended forever.",
|
||||
"end": "You don’t meet a community guideline."
|
||||
"end": "You don't meet a community guideline."
|
||||
},
|
||||
"editor": {
|
||||
"blockquote": {
|
||||
|
@ -350,7 +350,7 @@
|
|||
},
|
||||
"title": {
|
||||
"label": "Title",
|
||||
"placeholder": "Be specific and imagine you’re asking a question to another person",
|
||||
"placeholder": "Be specific and imagine you're asking a question to another person",
|
||||
"msg": {
|
||||
"empty": "Title cannot be empty.",
|
||||
"range": "Title up to 150 characters"
|
||||
|
@ -417,7 +417,7 @@
|
|||
}
|
||||
},
|
||||
"inactive": {
|
||||
"first": "You’re almost done! We sent an activation mail to <bold>{{mail}}</bold>. Please follow the instructions in the mail to activate your account.",
|
||||
"first": "You're almost done! We sent an activation mail to <bold>{{mail}}</bold>. Please follow the instructions in the mail to activate your account.",
|
||||
"info": "If it doesn't arrive, check your spam folder.",
|
||||
"another": "We sent another activation email to you at <bold>{{mail}}</bold>. It might take a few minutes for it to arrive; be sure to check your spam folder.",
|
||||
"btn_name": "Resend activation email",
|
||||
|
@ -427,7 +427,7 @@
|
|||
},
|
||||
"login": {
|
||||
"page_title": "Welcome to Answer",
|
||||
"info_sign": "Don’t have an account? <1>Sign up</1>",
|
||||
"info_sign": "Don't have an account? <1>Sign up</1>",
|
||||
"info_login": "Already have an account? <1>Log in</1>",
|
||||
"forgot_pass": "Forgot password?",
|
||||
"name": {
|
||||
|
@ -454,7 +454,7 @@
|
|||
"account_forgot": {
|
||||
"page_title": "Forgot Your Password",
|
||||
"btn_name": "Send me recovery email",
|
||||
"send_success": "If an account matches <bold>{{mail}}</bold>, you should receive an email with instructions on how to reset your password shortly.",
|
||||
"send_success": "If an account matches <strong>{{mail}}</strong>, you should receive an email with instructions on how to reset your password shortly.",
|
||||
"email": {
|
||||
"label": "Email",
|
||||
"msg": {
|
||||
|
@ -497,7 +497,7 @@
|
|||
},
|
||||
"username": {
|
||||
"label": "Username",
|
||||
"caption": "People can mention you as @username",
|
||||
"caption": "People can mention you as \"@username\".",
|
||||
"msg": "Username cannot be empty.",
|
||||
"msg_range": "Username up to 30 characters",
|
||||
"character": "Must use the character set \"a-z\", \"0-9\", \" - . _\""
|
||||
|
@ -738,7 +738,8 @@
|
|||
},
|
||||
"dashboard": {
|
||||
"title": "Dashboard",
|
||||
"welcome": "Welcome to Answer Admin !"
|
||||
"welcome": "Welcome to Answer Admin !",
|
||||
"version": "Version"
|
||||
},
|
||||
"flags": {
|
||||
"title": "Flags",
|
||||
|
@ -773,7 +774,7 @@
|
|||
"normal_name": "normal",
|
||||
"normal_description": "A normal post available to everyone.",
|
||||
"closed_name": "closed",
|
||||
"closed_description": "A closed question can’t answer, but still can edit, vote and comment.",
|
||||
"closed_description": "A closed question can't answer, but still can edit, vote and comment.",
|
||||
"deleted_name": "deleted",
|
||||
"deleted_description": "All reputation gained and lost will be restored.",
|
||||
"btn_cancel": "Cancel",
|
||||
|
@ -858,4 +859,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ a {
|
|||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
top: 0px;
|
||||
top: 0;
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,12 @@ const Dashboard: FC = () => {
|
|||
<>
|
||||
<h3 className="text-capitalize">{t('title')}</h3>
|
||||
<p className="mt-4">{t('welcome')}</p>
|
||||
{process.env.REACT_APP_VERSION && (
|
||||
<p className="mt-4">
|
||||
{`${t('version')} `}
|
||||
{process.env.REACT_APP_VERSION}
|
||||
</p>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue