Skip to content

Commit f9a2da9

Browse files
author
viet salt
committed
fix language
1 parent 43c24d5 commit f9a2da9

File tree

13 files changed

+71
-68
lines changed

13 files changed

+71
-68
lines changed

client/admin/pages/ArticleEdit/Drawer/index.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ export default function Index({ visible, onCancel, formData }) {
8080
<UploadButton></UploadButton>
8181
</ImageCropper>
8282
</Form.Item>
83-
<Form.Item name="category" label="Phân loại bài viết" rules={[{ required: false, message: 'Phân loại không thể trống!' }]}>
83+
<Form.Item
84+
name="category"
85+
label="Phân loại bài viết"
86+
rules={[{ required: false, message: 'Phân loại không thể trống!' }]}
87+
>
8488
<Select placeholder="Hãy chọn một danh mục">{categoryOptions}</Select>
8589
</Form.Item>
8690
<Form.Item name="tags" label="Nhãn">
@@ -89,16 +93,24 @@ export default function Index({ visible, onCancel, formData }) {
8993
<Form.Item
9094
name="summary"
9195
label="Tóm tắt"
92-
rules={[{ required: true, message: 'Tóm tắt bài viết không thể trống và tối đa 800 ký tự!', max: 800 }]}
96+
rules={[
97+
{
98+
required: true,
99+
message: 'Tóm tắt bài viết không thể trống và tối đa 800 ký tự!',
100+
max: 800,
101+
},
102+
]}
93103
>
94104
<TextArea placeholder="Vui lòng nhập tóm tắt bài viết" rows={4}></TextArea>
95105
</Form.Item>
96106
<Form.Item>
97107
<Button htmlType="submit" type="link">
98-
<SendOutlined />Gửi
108+
<SendOutlined />
109+
Gửi
99110
</Button>
100111
<Button type="link" danger>
101-
<DeleteFilled />Hủy
112+
<DeleteFilled />
113+
Hủy
102114
</Button>
103115
</Form.Item>
104116
</Form>

client/admin/pages/StaticFiles/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default function StaticFiles() {
162162
style={{ marginRight: '5px' }}
163163
icon={<CopyFilled />}
164164
>
165-
Sao chép URL
165+
Sao chép URL
166166
</Button>
167167
)}
168168
<Popconfirm title="确认要删除?" onConfirm={() => deleteFile(record._id)}>

client/web/components/app-footer/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,28 @@ export const AppFooter = () => {
2020
<ReactSVG src={config.siteLogo} />
2121
<p className={style.siteTitle}>Chào mừng bạn đến {config.siteTitle} 😀</p>
2222
</div>
23-
<p className={style.siteTitle}>Ở đây chúng tôi chủ yếu chia sẻ các bài báo công nghệ mặt trận, dành riêng cho nghiên cứu công nghệ web.</p>
23+
<p className={style.siteTitle}>
24+
Ở đây chúng tôi chủ yếu chia sẻ các bài báo công nghệ mặt trận, dành riêng cho nghiên cứu công
25+
nghệ web.
26+
</p>
2427
</div>
2528
<div className={style.contact}>
2629
<div className={style.contactTitle}>Liên hệ với tôi: </div>
2730
<div className={style.contactList}>
28-
<a href="mailto:[email protected]" target="_blank">
31+
<a href="mailto:[email protected]" target="_blank">
2932
<EmailIcon></EmailIcon>
3033
</a>
31-
<a href='https://www.facebook.com/Viethaui/' target="_blank">
34+
<a href="https://www.facebook.com/Viethaui/" target="_blank">
3235
<FacebookIcon></FacebookIcon>
3336
</a>
34-
<a href={config.projectGithub||"https://github.com/VietHoang24"} target="_blank">
37+
<a href={config.projectGithub || 'https://github.com/VietHoang24'} target="_blank">
3538
<GithubIcon></GithubIcon>
3639
</a>
3740
</div>
3841
</div>
3942
<div className={style.statement}>
4043
{/* <BlogRuningTime></BlogRuningTime> */}
41-
Bản quyền © 2021-{new Date().getFullYear()}{' '}
42-
{config.siteTitle}
44+
Bản quyền © 2021-{new Date().getFullYear()} {config.siteTitle}
4345
{/* <a href={config.icpGovCn}>
4446
<img src={icpPng.src} alt={icpPng.src} />
4547
<span>{config.siteIcp}</span>

client/web/components/app-header/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const AppHeader = () => {
5252
</a>
5353
</NavLink> */}
5454
</nav>
55-
<div style={{ display: "flex", alignItems: "center", gap: "20px" }}>
55+
<div style={{ display: 'flex', alignItems: 'center', gap: '20px' }}>
5656
<SearchForm style={{ marginRight: '15px' }} />
5757
{theme === 'light' ? (
5858
<Button
@@ -81,7 +81,6 @@ export const AppHeader = () => {
8181
</a>
8282
</NavLink>
8383
</div>
84-
8584
</header>
8685
);
8786
};

client/web/components/article/article-item.tsx

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,30 @@ export default function ArticleItem(props: Props) {
3434
<h2 className={style.articleTitle}>{article.title}</h2>
3535
</a>
3636
</Link>
37-
3837
</div>
3938
<div className={style.articleContent}>
4039
<MarkdownBody content={article.content} />
4140
</div>
42-
41+
4342
<div className={style.statement}>
4443
<div>
45-
<div className={style.articleMetaInfo}>
46-
<span>Đăng lúc {parseTime(article.createdAt)}</span>
47-
<span>
48-
Danh mục <> </>
49-
<Link href={`/blog/articles?cid=${article.category && article.category._id}`} passHref={true}>
50-
<a>{article.category && article.category.name}</a>
51-
</Link>
52-
</span>
53-
<span>{article.commentCount}<> </> Bình luận</span>
54-
<span>Số lần đọc {article.viewsCount}</span>
55-
</div>
44+
<div className={style.articleMetaInfo}>
45+
<span>Đăng lúc {parseTime(article.createdAt)}</span>
46+
<span>
47+
Danh mục <> </>
48+
<Link
49+
href={`/blog/articles?cid=${article.category && article.category._id}`}
50+
passHref={true}
51+
>
52+
<a>{article.category && article.category.name}</a>
53+
</Link>
54+
</span>
55+
<span>
56+
{article.commentCount}
57+
<> </> Bình luận
58+
</span>
59+
<span>Số lần đọc {article.viewsCount}</span>
60+
</div>
5661
<strong>Liên kết trong bài viết này:</strong>
5762
<ArticleAddress articleId={article._id}></ArticleAddress>
5863
</div>

client/web/components/article/comment-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const CommentItem = (props: { item: IComment; index: number }) => {
110110
style={{ color: 'var(--secondary-text-color)' }}
111111
onClick={() => setShowCommentForm(showCommentForm ? '' : item._id)}
112112
>
113-
Phản hồi
113+
Phản hồi
114114
</a>
115115
</Space>
116116
</div>

client/web/components/article/comment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const comemnt = (props: { article: any; comments: any }) => {
77
const comments = props.comments;
88
return (
99
<div>
10-
<h3 style={{ textAlign: 'start',marginTop:"20px" }}>Bình luận</h3>
10+
<h3 style={{ textAlign: 'start', marginTop: '20px' }}>Bình luận</h3>
1111
<CommentForm url="/comments" articleId={article._id} />
1212
<div>
1313
{comments.map((item: any, index: number) => (

client/web/components/article/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const Page = () => {
2828
<div style={{ display: 'flex' }}>
2929
<Head>
3030
<title>{article.title + ' - ' + config.siteTitle}</title>
31-
3231
</Head>
3332
<ArticleItem article={article} comments={comments}></ArticleItem>
3433
<WidgetArea recentArticles={recentArticles.slice(0, 5)}></WidgetArea>

client/web/components/article/widget-area/style.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
.articleTime {
6161
font-size: 13px;
6262
color: var(--secondary-text-color);
63-
margin-top:15px;
63+
margin-top: 15px;
6464
}

client/web/components/articles/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Page = () => {
2121
return (
2222
<AppLayout>
2323
<Head>
24-
<title>{config.siteTitle }</title>
24+
<title>{config.siteTitle}</title>
2525
<link rel="shortcut icon" href="./assets/images/blogLogo.png "></link>
2626
</Head>
2727
<Categories></Categories>

0 commit comments

Comments
 (0)