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
87da6184
Commit
87da6184
authored
Nov 21, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paths.js -> paths.json
parent
32857407
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
27 deletions
+25
-27
redirects.js
configs/nextjs/redirects.js
+1
-1
paths.js
lib/link/paths.js
+0
-25
paths.json
lib/link/paths.json
+23
-0
routes.ts
lib/link/routes.ts
+1
-1
No files found.
configs/nextjs/redirects.js
View file @
87da6184
const
PATHS
=
require
(
'
../../lib/link/paths
'
);
const
PATHS
=
require
(
'
../../lib/link/paths
.json
'
);
const
oldUrls
=
[
{
...
...
lib/link/paths.js
deleted
100644 → 0
View file @
32857407
const
paths
=
{
network_index
:
`/`
,
watchlist
:
`/account/watchlist`
,
private_tags
:
`/account/tag_address`
,
public_tags
:
`/account/public_tags_request`
,
api_keys
:
`/account/api_key`
,
custom_abi
:
`/account/custom_abi`
,
profile
:
`/auth/profile`
,
txs
:
`/txs`
,
tx
:
`/tx/:id`
,
blocks
:
`/blocks`
,
block
:
`/block/:id`
,
tokens
:
`/tokens`
,
token_index
:
`/token/:hash`
,
token_instance_item
:
`/token/:hash/instance/:id`
,
address_index
:
`/address/:id`
,
address_contract_verification
:
`/address/:id/contract_verifications/new`
,
apps
:
`/apps`
,
app_index
:
`/apps/:id`
,
search_results
:
`/search-results`
,
other
:
`/search-results`
,
auth
:
`/auth/auth0`
,
};
module
.
exports
=
paths
;
lib/link/paths.json
0 → 100644
View file @
87da6184
{
"network_index"
:
"/"
,
"watchlist"
:
"/account/watchlist"
,
"private_tags"
:
"/account/tag_address"
,
"public_tags"
:
"/account/public_tags_request"
,
"api_keys"
:
"/account/api_key"
,
"custom_abi"
:
"/account/custom_abi"
,
"profile"
:
"/auth/profile"
,
"txs"
:
"/txs"
,
"tx"
:
"/tx/:id"
,
"blocks"
:
"/blocks"
,
"block"
:
"/block/:id"
,
"tokens"
:
"/tokens"
,
"token_index"
:
"/token/:hash"
,
"token_instance_item"
:
"/token/:hash/instance/:id"
,
"address_index"
:
"/address/:id"
,
"address_contract_verification"
:
"/address/:id/contract_verifications/new"
,
"apps"
:
"/apps"
,
"app_index"
:
"/apps/:id"
,
"search_results"
:
"/search-results"
,
"other"
:
"/search-results"
,
"auth"
:
"/auth/auth0"
}
lib/link/routes.ts
View file @
87da6184
import
appConfig
from
'
configs/app/config
'
;
import
PATHS
from
'
./paths.js
'
;
import
PATHS
from
'
./paths.js
on
'
;
export
interface
Route
{
pattern
:
string
;
...
...
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