Skip to content

Commit

Permalink
refactor(campaign): remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Jul 17, 2024
1 parent d74f654 commit f9b6ab4
Show file tree
Hide file tree
Showing 16 changed files with 332 additions and 240 deletions.
27 changes: 24 additions & 3 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,6 @@
"AGDFGs": {
"defaultMessage": "Discrimination, insult, or hatred"
},
"ALzRKc": {
"defaultMessage": "還沒有人投稿,晚點再來瞧瞧吧!"
},
"ANA7sk": {
"defaultMessage": "Maintain",
"description": "src/views/TagDetail/Owner/index.tsx"
Expand Down Expand Up @@ -849,6 +846,9 @@
"D9R/ol": {
"defaultMessage": "Add articles to your circle"
},
"D9tEst": {
"defaultMessage": "Matters Architect"
},
"DP3yqI": {
"defaultMessage": "Donation count"
},
Expand Down Expand Up @@ -885,6 +885,9 @@
"defaultMessage": "Unblock",
"description": "src/views/Me/Settings/Blocked/ToggleBlockButton.tsx"
},
"DqTwwn": {
"defaultMessage": "Free-writing Badge"
},
"DrBuEI": {
"defaultMessage": "Unpin Broadcast",
"description": "src/components/CircleComment/DropdownActions/PinButton.tsx"
Expand Down Expand Up @@ -940,6 +943,9 @@
"defaultMessage": "You do not have permission to perform this operation",
"description": "FORBIDDEN_BY_STATE"
},
"EvJnpb": {
"defaultMessage": "Because you continue to write with all your heart, I give you the best honor"
},
"F3zk7E": {
"defaultMessage": "(This action cannot be undone)",
"description": "src/components/DraftDigest/Feed/DeleteButton.tsx"
Expand Down Expand Up @@ -1561,6 +1567,9 @@
"defaultMessage": "Set the Circle URL (cannot be modified after creation)",
"description": "src/components/Forms/CreateCircleForm/Init.tsx"
},
"QbjADp": {
"defaultMessage": "Seed User"
},
"QfVedX": {
"defaultMessage": "Insert divider"
},
Expand Down Expand Up @@ -1725,6 +1734,9 @@
"defaultMessage": "Payment will be processed by Stripe, allowing your support to be unrestricted by region.",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx"
},
"TZgskS": {
"defaultMessage": "No one has published yet, check back later!"
},
"TcTp+J": {
"defaultMessage": "Image uploaded"
},
Expand Down Expand Up @@ -2466,6 +2478,9 @@
"iEJeQH": {
"defaultMessage": "Liker ID"
},
"iNXSkV": {
"defaultMessage": "Seven Days Grand Slam"
},
"iNZdM/": {
"defaultMessage": "Switch to support creators with the Optimism network {br} Make support more convenient and affordable",
"description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx"
Expand Down Expand Up @@ -2638,6 +2653,9 @@
"defaultMessage": "commented",
"description": "src/components/Notice/CommentNotice/ArticleNewCommentNotice.tsx"
},
"lfiBVR": {
"defaultMessage": "CIVIC LIKER"
},
"liBHHE": {
"defaultMessage": "Any thoughts? Leave a kind comment~"
},
Expand Down Expand Up @@ -2780,6 +2798,9 @@
"onDesU": {
"defaultMessage": "Congratulations! Now you can browse all works within the circle for free and chat with everyone."
},
"orIq4X": {
"defaultMessage": "More than 100 supports"
},
"p5qZnJ": {
"defaultMessage": "liked",
"description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx"
Expand Down
27 changes: 24 additions & 3 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,6 @@
"AGDFGs": {
"defaultMessage": "Discrimination, insult, or hatred"
},
"ALzRKc": {
"defaultMessage": "還沒有人投稿,晚點再來瞧瞧吧!"
},
"ANA7sk": {
"defaultMessage": "Maintain",
"description": "src/views/TagDetail/Owner/index.tsx"
Expand Down Expand Up @@ -849,6 +846,9 @@
"D9R/ol": {
"defaultMessage": "Add articles to your circle"
},
"D9tEst": {
"defaultMessage": "Matters Architect"
},
"DP3yqI": {
"defaultMessage": "Donation count"
},
Expand Down Expand Up @@ -885,6 +885,9 @@
"defaultMessage": "Unblock",
"description": "src/views/Me/Settings/Blocked/ToggleBlockButton.tsx"
},
"DqTwwn": {
"defaultMessage": "Free-writing Badge"
},
"DrBuEI": {
"defaultMessage": "Unpin Broadcast",
"description": "src/components/CircleComment/DropdownActions/PinButton.tsx"
Expand Down Expand Up @@ -940,6 +943,9 @@
"defaultMessage": "You do not have permission to perform this operation",
"description": "FORBIDDEN_BY_STATE"
},
"EvJnpb": {
"defaultMessage": "Because you continue to write with all your heart, I give you the best honor"
},
"F3zk7E": {
"defaultMessage": "(This action cannot be undone)",
"description": "src/components/DraftDigest/Feed/DeleteButton.tsx"
Expand Down Expand Up @@ -1561,6 +1567,9 @@
"defaultMessage": "Set the Circle URL (cannot be modified after creation)",
"description": "src/components/Forms/CreateCircleForm/Init.tsx"
},
"QbjADp": {
"defaultMessage": "Seed User"
},
"QfVedX": {
"defaultMessage": "Insert divider"
},
Expand Down Expand Up @@ -1725,6 +1734,9 @@
"defaultMessage": "Payment will be processed by Stripe, allowing your support to be unrestricted by region.",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx"
},
"TZgskS": {
"defaultMessage": "No one has published yet, check back later!"
},
"TcTp+J": {
"defaultMessage": "Image uploaded"
},
Expand Down Expand Up @@ -2466,6 +2478,9 @@
"iEJeQH": {
"defaultMessage": "Liker ID"
},
"iNXSkV": {
"defaultMessage": "Seven Days Grand Slam"
},
"iNZdM/": {
"defaultMessage": "Switch to support creators with the Optimism network {br} Make support more convenient and affordable",
"description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx"
Expand Down Expand Up @@ -2638,6 +2653,9 @@
"defaultMessage": "commented",
"description": "src/components/Notice/CommentNotice/ArticleNewCommentNotice.tsx"
},
"lfiBVR": {
"defaultMessage": "CIVIC LIKER"
},
"liBHHE": {
"defaultMessage": "Any thoughts? Leave a kind comment~"
},
Expand Down Expand Up @@ -2780,6 +2798,9 @@
"onDesU": {
"defaultMessage": "Congratulations! Now you can browse all works within the circle for free and chat with everyone."
},
"orIq4X": {
"defaultMessage": "More than 100 supports"
},
"p5qZnJ": {
"defaultMessage": "liked",
"description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx"
Expand Down
27 changes: 24 additions & 3 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,6 @@
"AGDFGs": {
"defaultMessage": "歧视、侮辱或仇恨"
},
"ALzRKc": {
"defaultMessage": "還沒有人投稿,晚點再來瞧瞧吧!"
},
"ANA7sk": {
"defaultMessage": "主理",
"description": "src/views/TagDetail/Owner/index.tsx"
Expand Down Expand Up @@ -849,6 +846,9 @@
"D9R/ol": {
"defaultMessage": "将作品加入围炉,让更多人一起参与讨论"
},
"D9tEst": {
"defaultMessage": "马特市建筑师"
},
"DP3yqI": {
"defaultMessage": "支持人数"
},
Expand Down Expand Up @@ -885,6 +885,9 @@
"defaultMessage": "解除屏蔽",
"description": "src/views/Me/Settings/Blocked/ToggleBlockButton.tsx"
},
"DqTwwn": {
"defaultMessage": "自由写计画纪念徽章"
},
"DrBuEI": {
"defaultMessage": "取消置顶",
"description": "src/components/CircleComment/DropdownActions/PinButton.tsx"
Expand Down Expand Up @@ -940,6 +943,9 @@
"defaultMessage": "你无权限进行该操作",
"description": "FORBIDDEN_BY_STATE"
},
"EvJnpb": {
"defaultMessage": "由于你持续用心地写作,为你献上最佳荣耀"
},
"F3zk7E": {
"defaultMessage": "(草稿删除后无法恢复)",
"description": "src/components/DraftDigest/Feed/DeleteButton.tsx"
Expand Down Expand Up @@ -1561,6 +1567,9 @@
"defaultMessage": "设置围炉网址(创建后不可修改)",
"description": "src/components/Forms/CreateCircleForm/Init.tsx"
},
"QbjADp": {
"defaultMessage": "种子用户"
},
"QfVedX": {
"defaultMessage": "插入分隔线"
},
Expand Down Expand Up @@ -1725,6 +1734,9 @@
"defaultMessage": "付款将由 Stripe 处理,让你的支持不受地域限制",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx"
},
"TZgskS": {
"defaultMessage": "还没有人投稿,晚点再来瞧瞧吧!"
},
"TcTp+J": {
"defaultMessage": "图片上传成功"
},
Expand Down Expand Up @@ -2466,6 +2478,9 @@
"iEJeQH": {
"defaultMessage": "设置 Liker ID"
},
"iNXSkV": {
"defaultMessage": "七日书大满贯"
},
"iNZdM/": {
"defaultMessage": "切换后即可支持创作者,采用 Optimism 网络{br}让支持更方便且费用低廉",
"description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx"
Expand Down Expand Up @@ -2638,6 +2653,9 @@
"defaultMessage": "评论了",
"description": "src/components/Notice/CommentNotice/ArticleNewCommentNotice.tsx"
},
"lfiBVR": {
"defaultMessage": "赞赏公民"
},
"liBHHE": {
"defaultMessage": "什么看法,都可以留个友善的评论~"
},
Expand Down Expand Up @@ -2780,6 +2798,9 @@
"onDesU": {
"defaultMessage": "恭喜成为围炉一员。现在你可以免费浏览围炉内作品,还可以去围炉与大家谈天说地。"
},
"orIq4X": {
"defaultMessage": "支持超过 100 次"
},
"p5qZnJ": {
"defaultMessage": "赞赏了",
"description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx"
Expand Down
27 changes: 24 additions & 3 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,6 @@
"AGDFGs": {
"defaultMessage": "歧視、侮辱或仇恨"
},
"ALzRKc": {
"defaultMessage": "還沒有人投稿,晚點再來瞧瞧吧!"
},
"ANA7sk": {
"defaultMessage": "主理",
"description": "src/views/TagDetail/Owner/index.tsx"
Expand Down Expand Up @@ -849,6 +846,9 @@
"D9R/ol": {
"defaultMessage": "將作品加入圍爐,讓更多人一起參與討論"
},
"D9tEst": {
"defaultMessage": "馬特市建築師"
},
"DP3yqI": {
"defaultMessage": "支持人數"
},
Expand Down Expand Up @@ -885,6 +885,9 @@
"defaultMessage": "解除封鎖",
"description": "src/views/Me/Settings/Blocked/ToggleBlockButton.tsx"
},
"DqTwwn": {
"defaultMessage": "自由寫計畫紀念徽章"
},
"DrBuEI": {
"defaultMessage": "取消置頂",
"description": "src/components/CircleComment/DropdownActions/PinButton.tsx"
Expand Down Expand Up @@ -940,6 +943,9 @@
"defaultMessage": "你無權限進行該操作",
"description": "FORBIDDEN_BY_STATE"
},
"EvJnpb": {
"defaultMessage": "由於你持續用心地寫作,為你獻上最佳榮耀"
},
"F3zk7E": {
"defaultMessage": " (草稿刪除後無法恢復)",
"description": "src/components/DraftDigest/Feed/DeleteButton.tsx"
Expand Down Expand Up @@ -1561,6 +1567,9 @@
"defaultMessage": "設置圍爐網址(創建後不可修改)",
"description": "src/components/Forms/CreateCircleForm/Init.tsx"
},
"QbjADp": {
"defaultMessage": "種子用戶"
},
"QfVedX": {
"defaultMessage": "插入分隔線"
},
Expand Down Expand Up @@ -1725,6 +1734,9 @@
"defaultMessage": "付款將由 Stripe 處理,讓你的支持不受地域限制",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx"
},
"TZgskS": {
"defaultMessage": "還沒有人投稿,晚點再來瞧瞧吧!"
},
"TcTp+J": {
"defaultMessage": "圖片上傳成功"
},
Expand Down Expand Up @@ -2466,6 +2478,9 @@
"iEJeQH": {
"defaultMessage": "設置 Liker ID"
},
"iNXSkV": {
"defaultMessage": "七日書大滿貫"
},
"iNZdM/": {
"defaultMessage": "切換後即可支持創作者,採用 Optimism 網路{br}讓支持更方便且費用低廉",
"description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx"
Expand Down Expand Up @@ -2638,6 +2653,9 @@
"defaultMessage": "評論了",
"description": "src/components/Notice/CommentNotice/ArticleNewCommentNotice.tsx"
},
"lfiBVR": {
"defaultMessage": "讚賞公民"
},
"liBHHE": {
"defaultMessage": "什麼看法,都可以留個友善的評論~"
},
Expand Down Expand Up @@ -2780,6 +2798,9 @@
"onDesU": {
"defaultMessage": "恭喜成為圍爐一員。現在你可以免費瀏覽圍爐內作品,還可以去圍爐與大家談天說地。"
},
"orIq4X": {
"defaultMessage": "支持超過 100 次"
},
"p5qZnJ": {
"defaultMessage": "讚賞了",
"description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx"
Expand Down
3 changes: 2 additions & 1 deletion src/common/enums/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const OPEN_UNIVERSAL_AUTH_DIALOG = 'openUniversalAuthDialog'
export const CLOSE_ACTIVE_DIALOG = 'closeActiveDialog'
export const OPEN_SUBSCRIBE_CIRCLE_DIALOG = 'openSubscribeCircleDialog'
export const OPEN_SET_USER_NAME_DIALOG = 'openSetUserNameDialog'
export const OPEN_SHOW_NOMAD_BADGE_DIALOG = 'openShowNomadBadgeDialog'
export const OPEN_NOMAD_BADGE_DIALOG = 'openNomadBadgeDialog'
export const OPEN_GRAND_SLAM_BADGE_DIALOG = 'openGrandSlamBadgeDialog'
export const OPEN_COMMENT_DETAIL_DIALOG = 'openCommentDetailDialog'
export const OPEN_SET_PAYMENT_PASSWORD_DIALOG = 'openSetPaymentPasswordDialog'
export const CLOSE_SET_PAYMENT_PASSWORD_DIALOG = 'closeSetPaymentPasswordDialog'
Expand Down
1 change: 1 addition & 0 deletions src/common/enums/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const URL_FRAGMENT = {

export const URL_USER_PROFILE = {
OPEN_NOMAD_BADGE_DIALOG: { key: 'dialog', value: 'nomad-badge' },
OPEN_GRAND_SLAM_BADGE_DIALOG: { key: 'dialog', value: 'grand-slam-badge' },
}

export const URL_ME_SETTINGS = {
Expand Down
4 changes: 2 additions & 2 deletions src/views/CampaignDetail/ArticleFeeds/MainFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ const MainFeed = ({ feedType }: MainFeedProps) => {
icon={<Icon icon={IconRead} size={88} />}
description={
<FormattedMessage
defaultMessage="還沒有人投稿,晚點再來瞧瞧吧!"
id="ALzRKc"
defaultMessage="No one has published yet, check back later!"
id="TZgskS"
/>
}
/>
Expand Down
Loading

0 comments on commit f9b6ab4

Please sign in to comment.