Skip to content

Commit 888cf03

Browse files
authored
Merge pull request #5847 from thematters/develop
Release: 6.7.0
2 parents b823e27 + 1430f68 commit 888cf03

File tree

99 files changed

+4223
-234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+4223
-234
lines changed

.env.prod-next

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
###
2+
# Used by production environment
3+
#
4+
# @see `./github/workflows/deploy.yml`
5+
# @see {@url https://nextjs.org/docs/basic-features/environment-variables}
6+
#
7+
###
8+
NEXT_PUBLIC_RUNTIME_ENV=production
9+
NEXT_PUBLIC_SITE_DOMAIN=matters.town
10+
NEXT_PUBLIC_SITE_BRAND_NAME=Matters.Town
11+
NEXT_PUBLIC_SITE_DOMAIN_TLD=matters.town
12+
NEXT_PUBLIC_SITE_DOMAIN_TLD_OLD=matters.news
13+
NEXT_PUBLIC_ADMIN_VIEW=false
14+
NEXT_PUBLIC_EMBED_ASSET_DOMAIN=assets.matters.news
15+
NEXT_PUBLIC_CF_IMAGE_URL=https://imagedelivery.net/kDRCweMmqLnTPNlbum-pYA/prod
16+
NEXT_PUBLIC_NEXT_ASSET_DOMAIN=assets-next.mattersprotocol.io
17+
NEXT_PUBLIC_API_URL=https://server.matters.town/graphql
18+
NEXT_PUBLIC_OAUTH_URL=https://server.matters.town/oauth
19+
NEXT_PUBLIC_SEGMENT_KEY=Yk2ao5JvhOCyvCh9SCVBT1iTN4kfTpy7
20+
NEXT_PUBLIC_FB_APP_ID=1415638158583454
21+
NEXT_PUBLIC_WALLETCONNECT_ID=e7fc7d3ee120ec6611ea433a5bbb6613
22+
NEXT_PUBLIC_SENTRY_PUBLIC_KEY=5af839b6d42044548d8ec70f00af8c10
23+
NEXT_PUBLIC_SENTRY_PROJECT_ID=6153512
24+
NEXT_PUBLIC_SENTRY_DOMAIN=o1089931.ingest.us.sentry.io
25+
NEXT_PUBLIC_FIREBASE_CONFIG=eyJhcGlLZXkiOiJBSXphU3lEajFCV2tNa2tpaXdYYkpOQUFtSFVWX3hjVGZrRnQxWGciLCJhdXRoRG9tYWluIjoibWF0dGVycy0yZGQ3OC5maXJlYmFzZWFwcC5jb20iLCJkYXRhYmFzZVVSTCI6Imh0dHBzOi8vbWF0dGVycy0yZGQ3OC5maXJlYmFzZWlvLmNvbSIsInByb2plY3RJZCI6Im1hdHRlcnMtMmRkNzgiLCJzdG9yYWdlQnVja2V0IjoibWF0dGVycy0yZGQ3OC5hcHBzcG90LmNvbSIsIm1lc3NhZ2luZ1NlbmRlcklkIjoiNzE3MTM1MDcyNTcwIiwiYXBwSWQiOiIxOjcxNzEzNTA3MjU3MDp3ZWI6ODJjNWYwNjk0MmMwMjBkYThkZDQwMyIsIm1lYXN1cmVtZW50SWQiOiJHLU05VDM2MTRRSzEifQ
26+
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=pk_live_NfdCmUIPzQxKEMjLkInsjULK00W7AXBBrG
27+
NEXT_PUBLIC_TRAVELOGGERS_URL=https://traveloggers.matters.town
28+
NEXT_PUBLIC_LOGBOOKS_URL=https://logbook.matters.town
29+
NEXT_PUBLIC_ALCHEMY_KEY=bOu-fCphi9mvePsxg968Qe-pidHQNdlT
30+
NEXT_PUBLIC_CF_TURNSTILE_SITE_KEY=0x4AAAAAAAKVODkJMwfIxG78
31+
NEXT_PUBLIC_GOOGLE_CLIENT_ID=751677068109-rkml7q9ujf8ems09cclh7qckf14svcgs.apps.googleusercontent.com
32+
NEXT_PUBLIC_TWITTER_CLIENT_ID=cmdKbUlyd1ZZZDZYa3dTampidGo6MTpjaQ
33+
NEXT_PUBLIC_NOMAD_MATTERS_CAMPAIGN_LINK_EN=/@hi176/476405-a-guide-to-invite
34+
NEXT_PUBLIC_NOMAD_MATTERS_CAMPAIGN_LINK=/@hi176/476404
35+
NEXT_PUBLIC_CAMPAIGN_APPLICATION_LINK=https://docs.google.com/forms/d/e/1FAIpQLSeQzWJ8g2fZk5a9DD-1P_Y4pyQCTE1cbTI6T8-5K8PQXAZ6pA/viewform?usp=dialog
36+
NEXT_PUBLIC_BILLBOARD_OPERATOR_ADDRESS=0x92a117aeA74963Cd0CEdF9C50f99435451a291F7
37+
NEXT_PUBLIC_BILLBOARD_REGISTRY_ADDRESS=0x95bEFe8E08a56dCEBBa8d40BE3e9c3cb2fF81806
38+
NEXT_PUBLIC_BILLBOARD_TOKEN_ID=1
39+
NEXT_PUBLIC_BILLBOARD_IMAGE_URL=matters-billboard-ad.s3.ap-southeast-1.amazonaws.com/
40+
NEXT_PUBLIC_SITE_DOMAIN=web-next.matters.town
41+
NEXT_PUBLIC_ADMIN_VIEW=true
42+
43+
SENTRY_ORG=matters-lab
44+
SENTRY_PROJECT=matters-web-prod

.github/workflows/deploy.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
- main
88
- develop
9+
- release/next
910
types: [closed]
1011

1112
concurrency:
@@ -34,7 +35,7 @@ jobs:
3435
cache: 'npm'
3536

3637
- name: Setup rclone
37-
if: github.base_ref == 'develop' || github.base_ref == 'master' || github.base_ref == 'main'
38+
if: github.base_ref == 'develop' || github.base_ref == 'master' || github.base_ref == 'main' || github.base_ref == 'release/next'
3839
uses: AnimMouse/setup-rclone@v1
3940
with:
4041
rclone_config: |
@@ -72,7 +73,8 @@ jobs:
7273
run: npm run gen:type
7374

7475
- name: Generate Types (production)
75-
if: github.base_ref == 'master' || github.base_ref == 'main'
76+
if: github.base_ref == 'master' || github.base_ref == 'main' || github.base_ref == 'release/next'
77+
7678
run: npm run gen:type:prod
7779

7880
- name: Lint
@@ -100,21 +102,26 @@ jobs:
100102
if: github.base_ref == 'master' || github.base_ref == 'main'
101103
run: cp .env.prod .env.local && npm run build
102104

105+
# === `webnext` branch ===
106+
- name: Build (webnext)
107+
if: github.base_ref == 'release/next'
108+
run: cp .env.prod-next .env.local && npm run build
109+
103110
- name: Setup AWS
104-
if: github.base_ref == 'develop' || github.base_ref == 'master' || github.base_ref == 'main'
111+
if: github.base_ref == 'develop' || github.base_ref == 'master' || github.base_ref == 'main' || github.base_ref == 'release/next'
105112
uses: aws-actions/configure-aws-credentials@v1
106113
with:
107114
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
108115
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
109116
aws-region: ${{ github.base_ref == 'develop' && secrets.AWS_REGION_DEV || secrets.AWS_REGION_PROD }}
110117

111118
- name: Generate deployment package
112-
if: github.base_ref == 'develop' || github.base_ref == 'master' || github.base_ref == 'main'
119+
if: github.base_ref == 'develop' || github.base_ref == 'master' || github.base_ref == 'main' || github.base_ref == 'release/next'
113120
run: |
114121
zip -r --symlinks deploy.zip . -x .git/\* node_modules/\*
115122
116123
- name: Upload Assets (develop - R2)
117-
if: github.base_ref == 'develop' || github.base_ref == 'main'
124+
if: github.base_ref == 'develop'
118125
run: rclone copy .next r2:matters-assets-next-develop/_next --include "/*" --include "/static/**" -P
119126

120127
- name: Deploy to EB (develop)
@@ -133,7 +140,7 @@ jobs:
133140
wait_for_deployment: true
134141

135142
- name: Upload Assets (production - R2)
136-
if: github.base_ref == 'master' || github.base_ref == 'main'
143+
if: github.base_ref == 'master' || github.base_ref == 'main' || github.base_ref == 'release/next'
137144
run: rclone copy .next r2:matters-assets-next/_next --include "/*" --include "/static/**" -P
138145

139146
- name: Deploy to EB (production)
@@ -151,6 +158,21 @@ jobs:
151158
use_existing_version_if_available: true
152159
wait_for_deployment: true
153160

161+
- name: Deploy to EB (webnext)
162+
if: github.base_ref == 'release/next'
163+
uses: einaregilsson/beanstalk-deploy@v22
164+
with:
165+
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
166+
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
167+
application_name: matters-prod
168+
environment_name: ${{ secrets.AWS_EB_ENV_NAME_WEBNEXT }}
169+
version_label: matters-web-webnext-${{ hashFiles('deploy.zip') }}
170+
version_description: ${{ github.SHA }}
171+
region: ${{ secrets.AWS_REGION_DEV }}
172+
deployment_package: deploy.zip
173+
use_existing_version_if_available: true
174+
wait_for_deployment: true
175+
154176
- name: Slack Notification
155177
if: always()
156178
uses: 8398a7/action-slack@v3

bin/vercel-build.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,7 @@ function setEnvLocal(key, value) {
4040
}
4141

4242
// Check the branch and configure environment accordingly
43-
if (gitCommitRef && gitCommitRef === 'release/next') {
44-
// Production release/next branch
45-
// Deployed to web-next.matters.town
46-
console.log('Configuring for production (release/next)')
47-
exec('npm run gen:type:prod')
48-
exec('cp -va .env.prod .env.local')
49-
appendToEnvLocal('NEXT_PUBLIC_SITE_DOMAIN', 'web-next.matters.town')
50-
} else if (gitCommitRef && gitCommitRef === 'release/next-beta') {
43+
if (gitCommitRef && gitCommitRef === 'release/next-beta') {
5144
// Production release/next-beta branch
5245
// Deployed to beta-new-home.matters.town
5346
console.log('Configuring for production (release/next-beta)')

lang/default.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@
213213
"0xVT+0": {
214214
"defaultMessage": "Curated"
215215
},
216+
"11nXAM": {
217+
"defaultMessage": "Your schedule article published successfully, but failed to submit because the selection event has ended",
218+
"description": "src/components/Notice/ArticleNotice/ScheduledArticlePublishedNotice.tsx"
219+
},
216220
"18HJlm": {
217221
"defaultMessage": "Tag"
218222
},
@@ -299,6 +303,10 @@
299303
"2J3mz4": {
300304
"defaultMessage": "Add to event featured"
301305
},
306+
"2LRzPc": {
307+
"defaultMessage": "Matters",
308+
"description": "src/components/Notice/ActorAction/index.tsx"
309+
},
302310
"2P5JII": {
303311
"defaultMessage": "Disconnect",
304312
"description": "src/components/Dialogs/RemoveSocialLoginDialog/Content.tsx"
@@ -478,6 +486,9 @@
478486
"5jlQTx": {
479487
"defaultMessage": "Manage Invitation"
480488
},
489+
"5mu8HJ": {
490+
"defaultMessage": "Moment deleted"
491+
},
481492
"5rxHb7": {
482493
"defaultMessage": "May contain pornography, violence, gore, etc. Click here to expand all.",
483494
"description": "src/views/ArticleDetail/Wall/Sensitive/index.tsx"
@@ -929,6 +940,10 @@
929940
"defaultMessage": "Copy comment",
930941
"description": "src/components/Comment/DropdownActions/index.tsx"
931942
},
943+
"CZJdSn": {
944+
"defaultMessage": "mentioned you in a comment",
945+
"description": "src/components/Notice/CommentNotice/CommentMentionedYouNotice.tsx"
946+
},
932947
"CbRvzm": {
933948
"defaultMessage": "Schedule publish"
934949
},
@@ -999,6 +1014,10 @@
9991014
"DjIpR6": {
10001015
"defaultMessage": "Set Cover"
10011016
},
1017+
"DoOt1q": {
1018+
"defaultMessage": "Your channel suggestion has been accepted by the editor. Thank you for supporting Matters!",
1019+
"description": "src/components/Notice/ArticleNotice/TopicChannelFeedbackAcceptedNotice.tsx"
1020+
},
10021021
"Dom0EF": {
10031022
"defaultMessage": "Verification successful",
10041023
"description": "src/components/GlobalToast/index.tsx"
@@ -1180,6 +1199,10 @@
11801199
"defaultMessage": "Subscription cancellations",
11811200
"description": "src/views/Me/Settings/Notifications/Circle/index.tsx"
11821201
},
1202+
"Gju939": {
1203+
"defaultMessage": "mentioned you",
1204+
"description": "src/components/Notice/ArticleNotice/ArticleMentionedYouNotice.tsx"
1205+
},
11831206
"Gt7K6r": {
11841207
"defaultMessage": "Wallet address",
11851208
"description": "src/views/Me/Settings/Settings/Wallet/index.tsx"
@@ -1209,6 +1232,10 @@
12091232
"HBxXD/": {
12101233
"defaultMessage": "License"
12111234
},
1235+
"HDkifr": {
1236+
"defaultMessage": "Your schedule article has been published",
1237+
"description": "src/components/Notice/ArticleNotice/ScheduledArticlePublishedNotice.tsx"
1238+
},
12121239
"HFVDeB": {
12131240
"defaultMessage": "Related Tags",
12141241
"description": "src/views/TagDetail/RelatedTags/index.tsx"
@@ -1420,6 +1447,10 @@
14201447
"KhbWu2": {
14211448
"defaultMessage": "Your suggestion has been submitted to the editor."
14221449
},
1450+
"KkMtuC": {
1451+
"defaultMessage": "Claim for free",
1452+
"description": "src/components/Notice/TransactionNotice/PaymentReceivedDonationNotice.tsx"
1453+
},
14231454
"KlJEP9": {
14241455
"defaultMessage": "Wallet connected",
14251456
"description": "src/components/Forms/WalletAuthForm/Connect.tsx"
@@ -1601,6 +1632,10 @@
16011632
"O7ozeo": {
16021633
"defaultMessage": "Update profile"
16031634
},
1635+
"O9lnpa": {
1636+
"defaultMessage": "mentioned you in broadcast comment",
1637+
"description": "src/components/Notice/CircleNotice/CircleNewBroadcastComments.tsx"
1638+
},
16041639
"ODncRd": {
16051640
"defaultMessage": "Claiming..."
16061641
},
@@ -1897,6 +1932,10 @@
18971932
"T9oZC8": {
18981933
"defaultMessage": "Are you sure you want to delete this collection ‘{collection}’?"
18991934
},
1935+
"TDcpi1": {
1936+
"defaultMessage": "Great! Your work has been featured in the event!",
1937+
"description": "src/components/Notice/CampaignArticleNotice/CampaignArticleFeaturedNotice.tsx"
1938+
},
19001939
"TF1OhT": {
19011940
"defaultMessage": "This login code has expired, please try to resend"
19021941
},
@@ -2148,6 +2187,10 @@
21482187
"XZ8IJ3": {
21492188
"defaultMessage": "After the modification is completed, the new version will be released to IPFS again. You can view the historical version from \"IPFS\" under the article title."
21502189
},
2190+
"Xcz2mz": {
2191+
"defaultMessage": "mentioned you in your circle",
2192+
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
2193+
},
21512194
"XdLnXf": {
21522195
"defaultMessage": "Insufficient wallet balance.",
21532196
"description": "PAYMENT_BALANCE_INSUFFICIENT"
@@ -2574,6 +2617,10 @@
25742617
"defaultMessage": "Confirm",
25752618
"description": "src/views/CampaignDetail/Apply/Dialog/index.tsx"
25762619
},
2620+
"fAhR69": {
2621+
"defaultMessage": "invites you to join the circle {circleName}",
2622+
"description": "src/components/Notice/CircleNotice/CircleInvitationNotice.tsx"
2623+
},
25772624
"fBzH+2": {
25782625
"defaultMessage": "Disallow readers to respond to this article (you can enable responses later by editing this article)"
25792626
},
@@ -2808,6 +2855,10 @@
28082855
"defaultMessage": "Reviewing...",
28092856
"description": "type:apply"
28102857
},
2858+
"jOgBV9": {
2859+
"defaultMessage": "replied you",
2860+
"description": "src/components/Notice/CommentCommentNotice/CommentNewReplyNotice.tsx"
2861+
},
28112862
"jiB0Z2": {
28122863
"defaultMessage": "Unable to bind wallet",
28132864
"description": "src/components/Forms/PaymentForm/BindWallet/index.tsx"
@@ -2869,6 +2920,10 @@
28692920
"defaultMessage": "Liker ID",
28702921
"description": "src/views/Me/Settings/Misc/LikerID.tsx"
28712922
},
2923+
"kSWA0M": {
2924+
"defaultMessage": "commented in your circle",
2925+
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
2926+
},
28722927
"kc79d3": {
28732928
"defaultMessage": "Topics"
28742929
},
@@ -3086,6 +3141,13 @@
30863141
"defaultMessage": "Cancel schedule",
30873142
"description": "confirm cancel schedule button"
30883143
},
3144+
"oKcye/": {
3145+
"defaultMessage": "mentioned you in a moment"
3146+
},
3147+
"oNi7K5": {
3148+
"defaultMessage": "Your schedule article published successfully, but some full collections failed to be added",
3149+
"description": "src/components/Notice/ArticleNotice/ScheduledArticlePublishedNotice.tsx"
3150+
},
30893151
"ob+HDS": {
30903152
"defaultMessage": "View Circle"
30913153
},
@@ -3349,6 +3411,9 @@
33493411
"tQV8l8": {
33503412
"defaultMessage": "Unknown Error"
33513413
},
3414+
"tWCQCd": {
3415+
"defaultMessage": "The contract has sent {amount} USDT to the connected wallet"
3416+
},
33523417
"tZKvnZ": {
33533418
"defaultMessage": "Unlike moment"
33543419
},
@@ -3383,6 +3448,10 @@
33833448
"uQrkG8": {
33843449
"defaultMessage": "3 steps, migrate to Matters immediately"
33853450
},
3451+
"uQxskc": {
3452+
"defaultMessage": "Your work has been published to IPFS",
3453+
"description": "src/components/Notice/ArticleNotice/ArticlePublished.tsx"
3454+
},
33863455
"uVCg1l": {
33873456
"defaultMessage": "Explore Matters"
33883457
},
@@ -3422,6 +3491,10 @@
34223491
"v+hbfO": {
34233492
"defaultMessage": "fixed amount"
34243493
},
3494+
"v2dMFZ": {
3495+
"defaultMessage": "mentioned you",
3496+
"description": "src/components/Notice/CommentNotice/CommentMentionedYouNotice.tsx"
3497+
},
34253498
"v4ddaP": {
34263499
"defaultMessage": "Bind your wallet immediately, and link it to your personal account",
34273500
"description": "src/components/Forms/PaymentForm/BindWallet/index.tsx"
@@ -3515,6 +3588,10 @@
35153588
"defaultMessage": "left a comment in {circleName} and mentioned you",
35163589
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
35173590
},
3591+
"wHAfde": {
3592+
"defaultMessage": "Your schedule article published successfully, some archived articles failed to be curated",
3593+
"description": "src/components/Notice/ArticleNotice/ScheduledArticlePublishedNotice.tsx"
3594+
},
35183595
"wK4kLf": {
35193596
"defaultMessage": "Continue",
35203597
"description": "src/components/Forms/EmailSignUpForm/Init.tsx"
@@ -3549,6 +3626,10 @@
35493626
"wbcwKd": {
35503627
"defaultMessage": "View All"
35513628
},
3629+
"wcWAWv": {
3630+
"defaultMessage": "commented in broadcast",
3631+
"description": "src/components/Notice/CircleNotice/CircleNewBroadcastComments.tsx"
3632+
},
35523633
"wclk7z": {
35533634
"defaultMessage": "Summary to help readers quickly grasp the topic"
35543635
},

0 commit comments

Comments
 (0)