Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
4bd43c93
Commit
4bd43c93
authored
Jun 06, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change links to ton explorer
parent
dd445832
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
tac.ts
configs/app/features/tac.ts
+2
-2
.env.tac_turin
configs/envs/.env.tac_turin
+1
-1
mockEnvs.ts
playwright/fixtures/mockEnvs.ts
+1
-1
AddressEntityTacTon.tsx
ui/shared/entities/address/AddressEntityTacTon.tsx
+1
-1
TxEntityTon.tsx
ui/shared/entities/tx/TxEntityTon.tsx
+1
-1
No files found.
configs/app/features/tac.ts
View file @
4bd43c93
...
@@ -7,12 +7,12 @@ const title = 'Ton Application Chain (TAC)';
...
@@ -7,12 +7,12 @@ const title = 'Ton Application Chain (TAC)';
const
tonExplorerUrl
=
getEnvValue
(
'
NEXT_PUBLIC_TAC_TON_EXPLORER_URL
'
);
const
tonExplorerUrl
=
getEnvValue
(
'
NEXT_PUBLIC_TAC_TON_EXPLORER_URL
'
);
const
config
:
Feature
<
{
e
xplorerUrl
:
string
}
>
=
(()
=>
{
const
config
:
Feature
<
{
tonE
xplorerUrl
:
string
}
>
=
(()
=>
{
if
(
apis
.
tac
&&
tonExplorerUrl
)
{
if
(
apis
.
tac
&&
tonExplorerUrl
)
{
return
Object
.
freeze
({
return
Object
.
freeze
({
title
,
title
,
isEnabled
:
true
,
isEnabled
:
true
,
explorerUrl
:
tonExplorerUrl
,
tonExplorerUrl
,
});
});
}
}
...
...
configs/envs/.env.tac_turin
View file @
4bd43c93
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=tac_turin"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=tac_turin"
NEXT_PUBLIC_TAC_OPERATION_LIFECYCLE_API_HOST=https://tac-operation-lifecycle.k8s-dev.blockscout.com
NEXT_PUBLIC_TAC_OPERATION_LIFECYCLE_API_HOST=https://tac-operation-lifecycle.k8s-dev.blockscout.com
NEXT_PUBLIC_TAC_TON_EXPLORER_URL=https://testnet.ton
scan.org
NEXT_PUBLIC_TAC_TON_EXPLORER_URL=https://testnet.ton
viewer.com
# Local ENVs
# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
NEXT_PUBLIC_APP_PROTOCOL=http
...
...
playwright/fixtures/mockEnvs.ts
View file @
4bd43c93
...
@@ -107,6 +107,6 @@ export const ENVS_MAP: Record<string, Array<[string, string]>> = {
...
@@ -107,6 +107,6 @@ export const ENVS_MAP: Record<string, Array<[string, string]>> = {
],
],
tac
:
[
tac
:
[
[
'
NEXT_PUBLIC_TAC_OPERATION_LIFECYCLE_API_HOST
'
,
'
http://localhost:3100
'
],
[
'
NEXT_PUBLIC_TAC_OPERATION_LIFECYCLE_API_HOST
'
,
'
http://localhost:3100
'
],
[
'
NEXT_PUBLIC_TAC_TON_EXPLORER_URL
'
,
'
https://testnet.ton
scan.org
'
],
[
'
NEXT_PUBLIC_TAC_TON_EXPLORER_URL
'
,
'
https://testnet.ton
viewer.com
'
],
],
],
};
};
ui/shared/entities/address/AddressEntityTacTon.tsx
View file @
4bd43c93
...
@@ -23,7 +23,7 @@ const AddressEntityTacTon = (props: Props) => {
...
@@ -23,7 +23,7 @@ const AddressEntityTacTon = (props: Props) => {
const
href
=
(()
=>
{
const
href
=
(()
=>
{
switch
(
props
.
chainType
)
{
switch
(
props
.
chainType
)
{
case
tac
.
BlockchainType
.
TON
:
case
tac
.
BlockchainType
.
TON
:
return
tacFeature
.
e
xplorerUrl
+
route
({
return
tacFeature
.
tonE
xplorerUrl
+
route
({
pathname
:
'
/address/[hash]
'
,
pathname
:
'
/address/[hash]
'
,
query
:
{
query
:
{
...
props
.
query
,
...
props
.
query
,
...
...
ui/shared/entities/tx/TxEntityTon.tsx
View file @
4bd43c93
...
@@ -14,7 +14,7 @@ const TxEntityTon = (props: TxEntity.EntityProps) => {
...
@@ -14,7 +14,7 @@ const TxEntityTon = (props: TxEntity.EntityProps) => {
}
}
const
formattedHash
=
props
.
hash
.
replace
(
/^0x/
,
''
);
const
formattedHash
=
props
.
hash
.
replace
(
/^0x/
,
''
);
const
defaultHref
=
`
${
stripTrailingSlash
(
tacFeature
.
explorerUrl
)
}
/tx
/
${
formattedHash
}
`
;
const
defaultHref
=
`
${
stripTrailingSlash
(
tacFeature
.
tonExplorerUrl
)
}
/transaction
/
${
formattedHash
}
`
;
return
<
TxEntity
.
default
{
...
props
}
hash=
{
formattedHash
}
href=
{
props
.
href
??
defaultHref
}
icon=
{
{
name
:
'
brands/ton
'
}
}
isExternal
/>;
return
<
TxEntity
.
default
{
...
props
}
hash=
{
formattedHash
}
href=
{
props
.
href
??
defaultHref
}
icon=
{
{
name
:
'
brands/ton
'
}
}
isExternal
/>;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment