diff --git a/lang/default.json b/lang/default.json index e1658a2b1c..a8442a1b2e 100644 --- a/lang/default.json +++ b/lang/default.json @@ -167,6 +167,10 @@ "defaultMessage": "Next Step", "description": "" }, + "8w3GEA": { + "defaultMessage": "mentioned you in {article}", + "description": "src/components/Notice/ArticleNotice/ArticleMentionedYouNotice.tsx" + }, "8xPi0N": { "defaultMessage": "Unsubscribe Circle", "description": "src/views/Circle/Profile/DropdownActions/index.tsx" @@ -567,10 +571,6 @@ "defaultMessage": "The original login via email will be kept for you. Please note that your wallet cannot be reset once it is connected because of your account security.", "description": "src/components/Forms/WalletAuthForm/Select.tsx" }, - "UgvfcU": { - "defaultMessage": "You have successfully completed Ethereum wallet settings. Please confirm wallet address:", - "description": "src/components/Notice/CryptoNotice/CryptoWalletConnectedNotice.tsx" - }, "UjKkhq": { "defaultMessage": "Tags added", "description": "src/views/TagDetail/DropdownActions/index.tsx" @@ -1007,10 +1007,6 @@ "defaultMessage": "Circle Name", "description": "" }, - "qQmSxu": { - "defaultMessage": "Airdrop registration completed. Your NFT will be revealed on November 12. Confirm your ETH wallet address:", - "description": "src/components/Notice/CryptoNotice/CryptoWalletAirdropNotice.tsx" - }, "qYzBk8": { "defaultMessage": "unsubscribed your circle", "description": "src/components/Notice/CircleNotice/CircleNewUserNotice.tsx" @@ -1063,10 +1059,6 @@ "defaultMessage": "Log in", "description": "src/components/Buttons/Login/index.tsx" }, - "sncOwi": { - "defaultMessage": "mentioned you in an article", - "description": "src/components/Notice/ArticleNotice/ArticleMentionedYouNotice.tsx" - }, "stjoBH": { "defaultMessage": "Now, go like the authors you support! Your Likes will become their income", "description": "src/components/Forms/EmailSignUpForm/Complete.tsx" diff --git a/lang/en.json b/lang/en.json index a8bebfafcf..c41800e648 100644 --- a/lang/en.json +++ b/lang/en.json @@ -423,8 +423,8 @@ "defaultMessage": "Your work {articleTitle} has been published to decentralized network", "description": "src/components/Notice/ArticleNotice/ArticlePublishedNotice.tsx" }, - "sncOwi": { - "defaultMessage": " mentioned you in an article", + "8w3GEA": { + "defaultMessage": "mentioned you in {article}", "description": "src/components/Notice/ArticleNotice/ArticleMentionedYouNotice.tsx" }, "CD688y": { @@ -435,7 +435,7 @@ "defaultMessage": "etc. {actorsCount} users", "description": "src/components/Notice/ArticleNotice/ArticleNewSubscriberNotice.tsx" }, - "PjT72J": { + "p5qZnJ": { "defaultMessage": "liked", "description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx" }, diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index 21ca7eb9af..fc94b81f9a 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -1107,8 +1107,8 @@ "defaultMessage": "登入", "description": "src/components/Buttons/Login/index.tsx" }, - "sncOwi": { - "defaultMessage": " 在作品中提及你", + "8w3GEA": { + "defaultMessage": "在作品 {article} 中提及你", "description": "src/components/Notice/ArticleNotice/ArticleMentionedYouNotice.tsx" }, "stjoBH": { diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index 6c62c39d30..dcac1c3505 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -1111,8 +1111,8 @@ "defaultMessage": "登录", "description": "src/components/Buttons/Login/index.tsx" }, - "sncOwi": { - "defaultMessage": " 在作品中提及你", + "8w3GEA": { + "defaultMessage": "在作品 {article} 中提及你", "description": "src/components/Notice/ArticleNotice/ArticleMentionedYouNotice.tsx" }, "stjoBH": { diff --git a/package-lock.json b/package-lock.json index f81962fb24..f9d90f5bc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "matters-web", - "version": "4.21.0", + "version": "4.22.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "matters-web", - "version": "4.21.0", + "version": "4.22.0", "license": "Apache-2.0", "dependencies": { "@apollo/react-common": "^3.1.3", diff --git a/package.json b/package.json index cd89e28e2c..38db3cee0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matters-web", - "version": "4.22.0", + "version": "4.22.1", "description": "codebase of Matters' website", "sideEffects": false, "author": "Matters ", diff --git a/src/common/gql/fragmentTypes.json b/src/common/gql/fragmentTypes.json index 5e275b3f35..0cd153dc52 100644 --- a/src/common/gql/fragmentTypes.json +++ b/src/common/gql/fragmentTypes.json @@ -19,7 +19,6 @@ { "name": "TagNotice" }, { "name": "TransactionNotice" }, { "name": "CircleNotice" }, - { "name": "CryptoNotice" }, { "name": "OfficialAnnouncementNotice" } ] }, diff --git a/src/common/styles/variables/typography.css b/src/common/styles/variables/typography.css index cb1bf964e4..ad81c0c781 100644 --- a/src/common/styles/variables/typography.css +++ b/src/common/styles/variables/typography.css @@ -3,11 +3,11 @@ :root { /* Font Stack */ --font-sans-tc: -apple-system, blinkmacsystemfont, 'Helvetica Neue', - 'Segoe UI', roboto, arial, 'PingFang TC', 'Microsoft YaHei', - 'Source Han Sans TC', 'Noto Sans CJK TC', 'WenQuanYi Micro Hei', sans-serif; + 'Segoe UI', roboto, arial, 'PingFang TC', 'Source Han Sans TC', + 'Noto Sans CJK TC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif; --font-sans-sc: -apple-system, blinkmacsystemfont, 'Helvetica Neue', - 'Segoe UI', roboto, arial, 'PingFang SC', 'Microsoft YaHei', - 'Source Han Sans SC', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif; + 'Segoe UI', roboto, arial, 'PingFang SC', 'Source Han Sans SC', + 'Noto Sans CJK SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif; --font-serif-tc: 'Noto Serif', 'Noto Serif CJK TC', 'Source Han Serif TC', 'Songti TC', serif; --font-serif-sc: 'Noto Serif', 'Noto Serif CJK SC', 'Source Han Serif SC', diff --git a/src/components/DateTime/index.tsx b/src/components/DateTime/index.tsx index 2604776c34..43a25c539b 100644 --- a/src/components/DateTime/index.tsx +++ b/src/components/DateTime/index.tsx @@ -1,3 +1,4 @@ +import classNames from 'classnames' import React, { useContext } from 'react' import { datetimeFormat } from '~/common/utils' @@ -7,6 +8,7 @@ import styles from './styles.css' interface DateTimeProps { date: Date | string | number + color?: 'grey' | 'grey-dark' type?: 'absolute' | 'relative' | 'standard' } @@ -26,11 +28,18 @@ interface DateTimeProps { * ``` */ -const BaseDateTime = ({ date, type = 'absolute' }: DateTimeProps) => { +const BaseDateTime = ({ + date, + type = 'absolute', + color = 'grey-dark', +}: DateTimeProps) => { const { lang } = useContext(LanguageContext) + const timeclasses = classNames({ + [color || '']: !!color, + }) return ( -