Skip to content

Commit

Permalink
feat(frontend): github env (#244)
Browse files Browse the repository at this point in the history
* feat(frontend): github env

* fix(frontend): fix lingui text

* fix(frontend): fix lingui text
  • Loading branch information
Vibes-INS authored Oct 14, 2024
1 parent da6a86f commit 2156141
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { t } from '@lingui/macro'
import { Trans } from '@lingui/macro'
import { VStack } from 'styled-system/jsx'

import ComingSoonSVG from '@/assets/coming-soon.svg'
Expand All @@ -10,7 +10,9 @@ export default function Page() {
return (
<VStack gap="10px" w="100%" bg="bg.card" maxW="content" p="30px" rounded="8px" pt="74px" pb="260px">
<ComingSoonSVG w="200px" h="200px" />
<Text color="text.third" fontSize="14px">{t`Coming soon, please stay tuned`}</Text>
<Text color="text.third" fontSize="14px">
<Trans>Coming soon, please stay tuned</Trans>
</Text>
</VStack>
)
}
3 changes: 2 additions & 1 deletion frontend/src/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const publicEnvSchema = z.object({
.default('https://github.com/ckb-cell/RGBPlusPlus-design/blob/main/docs/lockscript-design-prd-en.md'),
RGBPP_SDK_URL: z.string().default('https://github.com/ckb-cell/rgbpp-sdk'),
UTXO_STACK_TWITTER_URL: z.string().default('https://x.com/utxostack'),
CKB_CELL_GITHUB_URL: z.string().default('https://github.com/ckb-cell'),
CKB_CELL_GITHUB_URL: z.string().default('https://github.com/utxostack'),
UTXO_STACK_MEDIUM_URL: z.string().default('https://medium.com/@utxostack'),
RGBPP_EXPLORER_TESTNET_URL: z.string().default('https://testnet.explorer.utxostack.network'),
RGBPP_EXPLORER_MAINNET_URL: z.string().default('https://explorer.utxostack.network'),
Expand Down Expand Up @@ -54,5 +54,6 @@ export const env = {
RGBPP_SCRIPT_URL: process.env.NEXT_PUBLIC_RGBPP_SCRIPT_URL,
RGBPP_SDK_URL: process.env.NEXT_PUBLIC_RGBPP_SDK_URL,
RGBPP_DOMAINS: process.env.NEXT_PUBLIC_RGBPP_DOMAINS,
CKB_CELL_GITHUB_URL: process.env.NEXT_PUBLIC_CKB_CELL_GITHUB_URL,
}),
}
33 changes: 18 additions & 15 deletions frontend/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ msgid "Available"
msgstr "Available"

#: src/app/[lang]/address/[address]/transactions/page.tsx:265
msgid "Back to first page"
msgstr "Back to first page"
#~ msgid "Back to first page"
#~ msgstr "Back to first page"

#: src/app/not-found.tsx:19
msgid "Back to Home"
Expand Down Expand Up @@ -211,7 +211,7 @@ msgstr "Coming"
msgid "Coming Soon"
msgstr "Coming Soon"

#: src/app/[lang]/assets/coins/[typeHash]/holders/page.tsx:13
#: src/app/[lang]/assets/coins/[typeHash]/holders/page.tsx:14
#: src/components/coming-soon.tsx:14
msgid "Coming soon, please stay tuned"
msgstr "Coming soon, please stay tuned"
Expand Down Expand Up @@ -312,7 +312,7 @@ msgstr "Fee rate:<0>{0}</0>{feeUnit}/vB"
#~ msgid "Fee rate:<0>{0}</0>sats/vB"
#~ msgstr "Fee rate:<0>{0}</0>sats/vB"

#: src/components/pagination-searchparams.tsx:44
#: src/components/pagination-searchparams.tsx:43
msgid "Go"
msgstr "Go"

Expand Down Expand Up @@ -431,15 +431,19 @@ msgid "Nervos CKB"
msgstr "Nervos CKB"

#: src/app/[lang]/address/[address]/transactions/page.tsx:277
msgid "Next"
msgstr "Next"
#~ msgid "Next"
#~ msgstr "Next"

#: src/components/no-data.tsx:14
msgid "No Data"
msgstr "No Data"

#: src/app/[lang]/address/[address]/transactions/page.tsx:247
#: src/app/[lang]/address/[address]/transactions/page.tsx:303
#: src/components/infinite-list-bottom.tsx:29
msgid "No More"
msgstr "No More"

#: src/app/[lang]/address/[address]/transactions/btc-tx-list.tsx:55
#: src/app/[lang]/address/[address]/transactions/ckb-tx-list.tsx:57
msgid "No Transaction"
msgstr "No Transaction"

Expand Down Expand Up @@ -522,10 +526,10 @@ msgstr "RGB++ Txns"
msgid "sat/VB"
msgstr "sat/VB"

#: src/app/[lang]/block/btc/[hashOrHeight]/transactions/page.tsx:99
#: src/app/[lang]/block/ckb/[hashOrHeight]/transactions/page.tsx:102
#: src/components/btc/btc-transaction-card-in-address.tsx:37
#: src/components/btc/btc-transaction-card-in-address.tsx:35
#: src/components/btc/btc-transaction-card-with-query-in-block.tsx:20
#: src/components/btc/btc-transaction-overview.tsx:57
#: src/components/ckb/ckb-transaction-card-with-query-in-block.tsx:20
msgid "sats"
msgstr "sats"

Expand Down Expand Up @@ -563,7 +567,7 @@ msgstr "SDK"
msgid "Search by Address/Tx Hash/Block Hash/AssetID"
msgstr "Search by Address/Tx Hash/Block Hash/AssetID"

#: src/app/[lang]/address/[address]/transactions/page.tsx:316
#: src/components/ckb/ckb-transaction-card-with-query-in-address.tsx:24
msgid "shannons"
msgstr "shannons"

Expand Down Expand Up @@ -621,9 +625,8 @@ msgstr "Testnet"
msgid "Time"
msgstr "Time"

#: src/app/[lang]/address/[address]/transactions/page.tsx:325
#: src/app/[lang]/assets/coins/[typeHash]/transactions/page.tsx:106
#: src/app/[lang]/assets/coins/page.tsx:53
#: src/app/[lang]/assets/coins/page.tsx:54
msgid "Total {0} Items"
msgstr "Total {0} Items"

Expand All @@ -635,7 +638,7 @@ msgstr "Transaction"
#: src/app/[lang]/address/[address]/layout.tsx:103
#: src/app/[lang]/assets/coins/[typeHash]/layout.tsx:76
#: src/app/[lang]/block/btc/[hashOrHeight]/layout.tsx:67
#: src/app/[lang]/block/ckb/[hashOrHeight]/layout.tsx:62
#: src/app/[lang]/block/ckb/[hashOrHeight]/layout.tsx:59
#: src/components/transaction-header.tsx:45
msgid "Transactions"
msgstr "Transactions"
Expand Down

0 comments on commit 2156141

Please sign in to comment.