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
10560733
Commit
10560733
authored
Sep 07, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor account pages
parent
f8e951c9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
89 deletions
+28
-89
getStaticPaths.ts
lib/next/account/getStaticPaths.ts
+7
-0
api_key.tsx
pages/[network_type]/[network_sub_type]/account/api_key.tsx
+3
-13
custom_abi.tsx
.../[network_type]/[network_sub_type]/account/custom_abi.tsx
+3
-13
public_tags_request.tsx
..._type]/[network_sub_type]/account/public_tags_request.tsx
+3
-13
tag_address.tsx
...[network_type]/[network_sub_type]/account/tag_address.tsx
+3
-13
tag_transaction.tsx
...work_type]/[network_sub_type]/account/tag_transaction.tsx
+3
-13
watchlist.tsx
...s/[network_type]/[network_sub_type]/account/watchlist.tsx
+3
-13
profile.tsx
pages/[network_type]/[network_sub_type]/auth/profile.tsx
+3
-11
No files found.
lib/next/account/getStaticPaths.ts
0 → 100644
View file @
10560733
import
type
{
GetStaticPaths
}
from
'
next
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
pages/[network_type]/[network_sub_type]/account/api_key.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
ApiKeys
from
'
ui/pages/ApiKeys
'
;
...
...
@@ -27,14 +26,5 @@ const ApiKeysPage: NextPage<Props> = ({ pageParams }: Props) => {
export
default
ApiKeysPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/account/custom_abi.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
CustomAbi
from
'
ui/pages/CustomAbi
'
;
...
...
@@ -27,14 +26,5 @@ const CustomAbiPage: NextPage<Props> = ({ pageParams }: Props) => {
export
default
CustomAbiPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/account/public_tags_request.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
PublicTags
from
'
ui/pages/PublicTags
'
;
...
...
@@ -27,14 +26,5 @@ const PublicTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
export
default
PublicTagsPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/account/tag_address.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
PrivateTags
from
'
ui/pages/PrivateTags
'
;
...
...
@@ -27,14 +26,5 @@ const AddressTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
export
default
AddressTagsPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/account/tag_transaction.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
PrivateTags
from
'
ui/pages/PrivateTags
'
;
...
...
@@ -27,14 +26,5 @@ const TransactionTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
export
default
TransactionTagsPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/account/watchlist.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
WatchList
from
'
ui/pages/Watchlist
'
;
...
...
@@ -29,14 +28,5 @@ const WatchListPage: NextPage<Props> = ({ pageParams }: Props) => {
export
default
WatchListPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/auth/profile.tsx
View file @
10560733
import
type
{
NextPage
,
GetStaticPaths
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
MyProfile
from
'
ui/pages/MyProfile
'
;
const
MyProfilePage
:
NextPage
=
()
=>
{
...
...
@@ -16,12 +15,5 @@ const MyProfilePage: NextPage = () => {
export
default
MyProfilePage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
false
};
};
export
const
getStaticProps
=
async
()
=>
{
return
{
props
:
{},
};
};
export
{
getStaticPaths
}
from
'
lib/next/account/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
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