-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* asshub account link * subscan link * subsquare link * statescan link * in-site tips link * in-site user detail link * delete make url pathname
- Loading branch information
Showing
13 changed files
with
49 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
// NOTE: collection for all api urls | ||
// TODO: move all to here | ||
import { makeUrlPathname } from "../utils/url"; | ||
|
||
// page user detail | ||
// route: /:symbol/users/:address | ||
export function userDetailProposalCounts(address, role) { | ||
return makeUrlPathname("account", address, role, "counts"); | ||
export function userDetailProposalCountsApi(address, role) { | ||
return `/account/${address}/${role}/counts`; | ||
} | ||
export function userDetailCouncilorTerms(address) { | ||
return makeUrlPathname("account", address, "councilor", "terms"); | ||
export function userDetailCouncilorTermsApi(address) { | ||
return `/account/${address}/councilor/terms`; | ||
} | ||
export function userDetailCouncilorMotions(address) { | ||
return makeUrlPathname("account", address, "councilor", "motions"); | ||
export function userDetailCouncilorMotionsApi(address) { | ||
return `/account/${address}/councilor/motions`; | ||
} | ||
export function userDetailCouncilorTips(address) { | ||
return makeUrlPathname("account", address, "councilor", "tippers"); | ||
export function userDetailCouncilorTipsApi(address) { | ||
return `/account/${address}/councilor/tips`; | ||
} | ||
export function userDetailCouncilorRates(address) { | ||
return makeUrlPathname("account", address, "councilor", "rates"); | ||
export function userDetailCouncilorRatesApi(address) { | ||
return `/account/${address}/councilor/rates`; | ||
} | ||
|
||
export function userDetailRates(address) { | ||
return makeUrlPathname("account", address, "rates"); | ||
export function userDetailRatesApi(address) { | ||
return `/account/${address}/rates`; | ||
} | ||
|
||
export function userDetailCouncilorRateStats(address) { | ||
return makeUrlPathname("account", address, "councilor", "ratestats"); | ||
export function userDetailCouncilorRateStatsApi(address) { | ||
return `/account/${address}/councilor/ratestats`; | ||
} | ||
|
||
export function userDetailRateStats(address) { | ||
return makeUrlPathname("account", address, "ratestats"); | ||
export function userDetailRateStatsApi(address) { | ||
return `/account/${address}/ratestats`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters