From 63b6ba904deca9660913ca7965918a803de1fd4a Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 27 Oct 2023 17:49:44 +0900 Subject: [PATCH 1/8] chore: add joy_id in en.json --- src/locales/en.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locales/en.json b/src/locales/en.json index 0577fe013..6a0e4f541 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -422,6 +422,7 @@ "cota": "CoTA", "spore_cluster": "Spore Cluster", "spore": "Spore", + "joy_id": "JoyID", "unknown_nft": "anonymous", "nft_limited": "Limited", "nft_unlimited": "Unlimited", From d5107db04925087dffc2c27aa60962785189faa5 Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 27 Oct 2023 17:52:49 +0900 Subject: [PATCH 2/8] chore: add joy_id in sh.json --- src/locales/zh.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locales/zh.json b/src/locales/zh.json index e46c96669..6eaf3be74 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -420,6 +420,7 @@ "cota": "CoTA", "spore_cluster": "Spore Cluster", "spore": "Spore", + "joy_id": "Joy ID", "unknown_nft": "匿名", "nft_limited": "限量", "nft_unlimited": "不限量", From 5a0f212a40c2ec4180dc39272e49844372129ea4 Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 27 Oct 2023 18:08:23 +0900 Subject: [PATCH 3/8] chore: update joy id tag name --- src/pages/ScriptList/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index f3d98e0aa..e26109e00 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -189,7 +189,7 @@ export const scripts = new Map([ [ 'joy_id', { - name: 'joy_id', + name: 'Joy ID', description: 'An universal Account Protocol for Web3 Mass-adoption.', doc: 'https://docs.joy.id/', website: ' https://joy.id/', From f377c24588d18ed38011083c1769c186ce1e5efc Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 27 Oct 2023 18:17:31 +0900 Subject: [PATCH 4/8] chore: rename joy_id to joy id (#1366) * chore: rename joy_id to joy id * chore: rename joy_id to joy id --- src/constants/scripts.ts | 2 +- src/pages/ScriptList/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/scripts.ts b/src/constants/scripts.ts index 8cae750e7..53c8d237b 100644 --- a/src/constants/scripts.ts +++ b/src/constants/scripts.ts @@ -243,7 +243,7 @@ export const MainnetContractHashTags: ContractHashTag[] = [ txHashes: ['0xf05188e5f3a6767fc4687faf45ba5f1a6e25d3ada6129dae8722cb282f262493-0'], depType: 'dep_group', hashType: 'type', - tag: 'joy_id', + tag: 'joy id', category: 'lock', }, ] diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index e26109e00..7dac4aa74 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -187,7 +187,7 @@ export const scripts = new Map([ }, ], [ - 'joy_id', + 'joy id', { name: 'Joy ID', description: 'An universal Account Protocol for Web3 Mass-adoption.', From a5f7dc26ba668cf620ca609ec15b6a4220dd1214 Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 27 Oct 2023 18:25:53 +0900 Subject: [PATCH 5/8] chore: rename Joy ID to JoyID --- src/pages/ScriptList/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index 7dac4aa74..618707031 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -189,7 +189,7 @@ export const scripts = new Map([ [ 'joy id', { - name: 'Joy ID', + name: 'JoyID', description: 'An universal Account Protocol for Web3 Mass-adoption.', doc: 'https://docs.joy.id/', website: ' https://joy.id/', From a47a95d418ac0316209e39db63c3524c827842cf Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 27 Oct 2023 18:31:32 +0900 Subject: [PATCH 6/8] Rename joy id to joyid (#1367) * Update scripts.ts * Update index.tsx --- src/constants/scripts.ts | 2 +- src/pages/ScriptList/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/scripts.ts b/src/constants/scripts.ts index 53c8d237b..b717f7268 100644 --- a/src/constants/scripts.ts +++ b/src/constants/scripts.ts @@ -243,7 +243,7 @@ export const MainnetContractHashTags: ContractHashTag[] = [ txHashes: ['0xf05188e5f3a6767fc4687faf45ba5f1a6e25d3ada6129dae8722cb282f262493-0'], depType: 'dep_group', hashType: 'type', - tag: 'joy id', + tag: 'JoyID', category: 'lock', }, ] diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index 618707031..6e06be2b8 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -187,7 +187,7 @@ export const scripts = new Map([ }, ], [ - 'joy id', + 'JoyID', { name: 'JoyID', description: 'An universal Account Protocol for Web3 Mass-adoption.', From 984c024571700457b3c8d9b9342e60bede176498 Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Wed, 8 Nov 2023 12:42:42 +0900 Subject: [PATCH 7/8] feat: add JoyID testnet (#141) Ref: https://github.com/Magickbase/ckb-explorer-public-issues/issues/123#issuecomment-1800846202 --- src/constants/scripts.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/constants/scripts.ts b/src/constants/scripts.ts index b717f7268..d2e475c02 100644 --- a/src/constants/scripts.ts +++ b/src/constants/scripts.ts @@ -489,4 +489,12 @@ export const TestnetContractHashTags: ContractHashTag[] = [ tag: 'omni_lock v2', category: 'lock', }, + { + codeHashes: ['0xd23761b364210735c19c60561d213fb3beae2fd6172743719eff6920e020baac'], + txHashes: ['0x4dcf3f3b09efac8995d6cbee87c5345e812d310094651e0c3d9a730f32dc9263-0'], + depType: 'dep_group', + hashType: 'type', + tag: 'JoyID', + category: 'lock', + }, ] From 01495d032a8e9880482b8d9b22c6767d35ec0194 Mon Sep 17 00:00:00 2001 From: Chen Yu Date: Fri, 10 Nov 2023 01:54:19 +0900 Subject: [PATCH 8/8] feat: hide script item from list if its deployment info is not set (#140) * feat: hide script item from list if its deployment info is not set * refactor: remove useless ternary --- src/pages/ScriptList/index.tsx | 35 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index 6e06be2b8..c66418783 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -210,6 +210,7 @@ const ScriptList: FC = () => {
{[...scripts].map(([label, meta]) => { const script = scriptDataList.find(s => s.tag === label) + if (!script) return null return (
@@ -226,22 +227,19 @@ const ScriptList: FC = () => { ) : null, )} - {script ? ( - - {t('script_list.link.detail')} - - ) : null} + + {t('script_list.link.detail')} +
- {script ? ( - <> -

{`${t(`script_list.on_chain_data`)}:`}

- {script.codeHashes.map((codeHash: string, idx: number) => ( -
-                        {`{
+                <>
+                  

{`${t(`script_list.on_chain_data`)}:`}

+ {script.codeHashes.map((codeHash: string, idx: number) => ( +
+                      {`{
   "code_hash": "${codeHash}",
   "hash_type": "${script.hashType}",
   "out_point": {
@@ -250,10 +248,9 @@ const ScriptList: FC = () => {
   },
   "dep_type": "${script.depType}"
 }`}
-                      
- ))} - - ) : null} +
+ ))} + )