diff --git a/src/router/index.ts b/src/router/index.ts index 3cfefb206..96cdba37a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -6,8 +6,7 @@ import { createWebHistory, } from 'vue-router'; import { StateInterface } from 'src/store'; -import routes, { Path } from 'src/router/routes'; -import { $api } from '../boot/api'; +import routes from 'src/router/routes'; export { Path } from 'src/router/routes'; export { getHeaderName, buildTransferPageLink } from 'src/router/utils'; @@ -38,22 +37,5 @@ export default route(function (/* { store, ssrContext } */) { history: createHistory(process.env.MODE === 'ssr' ? void 0 : process.env.VUE_ROUTER_BASE), }); - // TODO - remove after the portal v3 is live. - Router.beforeEach((to, from, next) => { - // Prevent accessing to dApp staking pages if v3 is deployed to a node, but not supported by UI - const networksSupportV3 = ['development', 'shibuya-testnet', 'custom-node', 'shiden']; - const isStakingV3 = $api?.query.hasOwnProperty('dappStaking'); - const dontNavigateToDappStaking = - to.path.includes('/dapp-staking') && - !to.path.includes('/maintenance') && - !networksSupportV3.includes(to.params?.network?.toString()); - - if (isStakingV3 && dontNavigateToDappStaking) { - next({ path: Path.DappStaking + Path.Maintenance }); - } else { - next(); - } - }); - return Router; }); diff --git a/src/router/routes.ts b/src/router/routes.ts index ed6bda4df..b1ed6753d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -8,7 +8,6 @@ import XvmTransfer from 'pages/XvmTransfer.vue'; import { endpointKey, getNetworkName } from 'src/config/chainEndpoints'; import { LOCAL_STORAGE } from 'src/config/localStorage'; import Store from 'src/pages/DappStaking.vue'; -import StakingTop from 'components/dapp-staking/StakingTop.vue'; import Dashboard from 'src/pages/Dashboard.vue'; import RegisterDapp from 'src/pages/RegisterDapp.vue'; import StakeManage from 'src/pages/StakeManage.vue'; @@ -153,12 +152,7 @@ const routes: RouteRecordRaw[] = [ }, { path: 'discover', - component: - networkParam === '/development' || - networkParam === '/shibuya-testnet' || - networkParam === '/shiden' - ? DiscoverV3 - : StakingTop, + component: DiscoverV3, }, { path: 'owner', diff --git a/src/staking-v3/assets/category_unstoppable.webp b/src/staking-v3/assets/category_unstoppable.webp new file mode 100644 index 000000000..0fb991cc6 Binary files /dev/null and b/src/staking-v3/assets/category_unstoppable.webp differ diff --git a/src/staking-v3/components/Dapps.vue b/src/staking-v3/components/Dapps.vue index 176646082..fc58ce429 100644 --- a/src/staking-v3/components/Dapps.vue +++ b/src/staking-v3/components/Dapps.vue @@ -134,6 +134,7 @@ export default defineComponent({ tooling: require('/src/staking-v3/assets/category_blue.webp'), utility: require('/src/staking-v3/assets/category_sky.webp'), others: require('/src/staking-v3/assets/category_green.webp'), + 'unstoppable-grants': require('/src/staking-v3/assets/category_unstoppable.webp'), }; return { diff --git a/src/staking-v3/components/DiscoverV3.vue b/src/staking-v3/components/DiscoverV3.vue index 2ae571206..adb831598 100644 --- a/src/staking-v3/components/DiscoverV3.vue +++ b/src/staking-v3/components/DiscoverV3.vue @@ -49,7 +49,6 @@ import LeaderboardVote from './leaderboard/LeaderboardVote.vue'; import DynamicAdsArea from './DynamicAdsArea.vue'; import ToggleButtons from './ToggleButtons.vue'; import DataList from './data/DataList.vue'; -import RegisterBanner from './RegisterBanner.vue'; import { useDappStaking } from '../hooks'; export default defineComponent({ diff --git a/src/staking-v3/components/DynamicAdsArea.vue b/src/staking-v3/components/DynamicAdsArea.vue index 7ef4dad5e..4a243f4e9 100644 --- a/src/staking-v3/components/DynamicAdsArea.vue +++ b/src/staking-v3/components/DynamicAdsArea.vue @@ -95,3 +95,29 @@ export default defineComponent({ + + diff --git a/src/staking-v3/components/dapp/DappAvatar.vue b/src/staking-v3/components/dapp/DappAvatar.vue index 481f7883e..fe7d34254 100644 --- a/src/staking-v3/components/dapp/DappAvatar.vue +++ b/src/staking-v3/components/dapp/DappAvatar.vue @@ -1,15 +1,15 @@