Skip to content

Commit

Permalink
fix: routes
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Feb 4, 2023
1 parent c6f7452 commit 4ffe17f
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 245 deletions.
6 changes: 4 additions & 2 deletions app/utils/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ export const getRoutes = (network: Network, env: string) => {
const walletConnectedRequiredRouteNames = ['activity', 'account']

const spotRoutes = spot.map((s) => `/spot/${s}`) || []
const spotRedirectRoutes = Object.keys(spotRoutes).map((s) => `/spot/${s}`)
const spotRedirectRoutes = Object.keys(spotMarketRedirectsSlugsPairs).map(
(s) => `/spot/${s}`
)

const futures = [...perpetuals, ...expiryFutures]
const futuresRoutes = futures.map((s) => `/futures/${s}`) || []
const binaryOptionsRoutes =
binaryOptions.map((s) => `/binary-options/${s}`) || []

const customStaticRoutes: string[] = ['register']
const customStaticRoutes: string[] = ['/register']
const upcomingMarketsRoutes: string[] = []
const deprecatedMarketsRoutes = IS_TESTNET || IS_DEVNET ? [] : []

Expand Down
6 changes: 2 additions & 4 deletions nuxt-config/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ export default {

if (outDirPathExist) {
copySync(tokenMetadataSrcDir, tokenMetadataDstDir, {
overwrite: true,
recursive: true
overwrite: true
})
} else {
copy(tokenMetadataSrcDir, tokenMetadataDstDir, {
overwrite: true,
recursive: true
overwrite: true
})
}
console.log('✔ Successfully copied token images!')
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
"*.{css,vue}": "stylelint"
},
"dependencies": {
"@amplitude/analytics-browser": "^1.6.6",
"@injectivelabs/contracts": "1.0.97",
"@amplitude/analytics-browser": "^1.7.1",
"@injectivelabs/contracts": "1.0.98",
"@injectivelabs/exceptions": "1.0.50",
"@injectivelabs/networks": "1.0.81",
"@injectivelabs/networks": "1.0.82",
"@injectivelabs/referral-consumer": "0.5.7",
"@injectivelabs/sdk-ts": "1.0.387",
"@injectivelabs/sdk-ui-ts": "1.0.496",
"@injectivelabs/token-metadata": "1.0.123",
"@injectivelabs/token-utils": "1.0.73",
"@injectivelabs/sdk-ts": "1.0.389",
"@injectivelabs/sdk-ui-ts": "1.0.498",
"@injectivelabs/token-metadata": "1.0.125",
"@injectivelabs/token-utils": "1.0.74",
"@injectivelabs/ts-types": "1.0.28",
"@injectivelabs/ui-notifications": "^1.0.8-alpha.8",
"@injectivelabs/utils": "1.0.69",
"@injectivelabs/wallet-ts": "1.0.384",
"@injectivelabs/utils": "1.0.70",
"@injectivelabs/wallet-ts": "1.0.386",
"@metamask/detect-provider": "2.0.0",
"@nuxtjs/dotenv": "^1.4.1",
"@nuxtjs/google-gtag": "^1.0.4",
Expand Down
Loading

0 comments on commit 4ffe17f

Please sign in to comment.