diff --git a/.gitignore b/.gitignore index bcd8b0059..6f14d09b0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /tmp /out-tsc /tools/executors/**/*.js +/tools/utils/*.js # dependencies /node_modules diff --git a/apps/explorer/.env b/apps/explorer/.env index a978e7639..b6b59b054 100644 --- a/apps/explorer/.env +++ b/apps/explorer/.env @@ -13,6 +13,7 @@ NX_VEGA_ENV=TESTNET NX_VEGA_REST=https://lb.testnet.vega.xyz/datanode/rest NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' CYPRESS_VEGA_TENDERMINT_URL=https://lb.testnet.vega.xyz/tm +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions # App flags NX_EXPLORER_ASSETS=1 diff --git a/apps/explorer/.env.capsule b/apps/explorer/.env.capsule index e9cd02f8c..e603825a6 100644 --- a/apps/explorer/.env.capsule +++ b/apps/explorer/.env.capsule @@ -6,6 +6,7 @@ NX_VEGA_URL=http://localhost:3028/query NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' NX_VEGA_ENV=CUSTOM NX_VEGA_REST=http://localhost:3029 +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions # App flags NX_EXPLORER_ASSETS=1 diff --git a/apps/explorer/.env.devnet b/apps/explorer/.env.devnet index c5c245622..738e500ad 100644 --- a/apps/explorer/.env.devnet +++ b/apps/explorer/.env.devnet @@ -7,3 +7,4 @@ NX_VEGA_URL=https://n04.d.vega.xyz/query NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' NX_VEGA_ENV=DEVNET NX_VEGA_REST=https://n04.d.vega.xyz/datanode/rest +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions diff --git a/apps/explorer/.env.mainnet b/apps/explorer/.env.mainnet index 721af8681..bdfcded65 100644 --- a/apps/explorer/.env.mainnet +++ b/apps/explorer/.env.mainnet @@ -7,3 +7,4 @@ NX_VEGA_URL=https://api.token.vega.xyz/query NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' NX_VEGA_ENV=MAINNET NX_VEGA_REST=https://api.token.vega.xyz/ +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions diff --git a/apps/explorer/.env.stagnet1 b/apps/explorer/.env.stagnet1 index 7a7359f9d..164257d9c 100644 --- a/apps/explorer/.env.stagnet1 +++ b/apps/explorer/.env.stagnet1 @@ -7,3 +7,4 @@ NX_VEGA_URL=https://n03.s.vega.xyz/query NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' NX_VEGA_ENV=STAGNET NX_VEGA_REST=https://n03.s.vega.xyz/datanode/rest +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions diff --git a/apps/explorer/.env.stagnet2 b/apps/explorer/.env.stagnet2 index 38baff594..a55708673 100644 --- a/apps/explorer/.env.stagnet2 +++ b/apps/explorer/.env.stagnet2 @@ -7,3 +7,4 @@ NX_VEGA_URL=https://n03.stagnet2.vega.xyz/query NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' NX_VEGA_ENV=STAGNET2 NX_VEGA_REST=https://n01.stagnet2.vega.xyz/datanode/rest +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions diff --git a/apps/explorer/.env.testnet b/apps/explorer/.env.testnet index 750098142..68a985352 100644 --- a/apps/explorer/.env.testnet +++ b/apps/explorer/.env.testnet @@ -7,3 +7,4 @@ NX_VEGA_URL=https://lb.testnet.vega.xyz/query NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' NX_VEGA_ENV=TESTNET NX_VEGA_REST=https://lb.testnet.vega.xyz/datanode/rest +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions diff --git a/apps/explorer/.env.vegacapsule b/apps/explorer/.env.vegacapsule index b15ae01ae..348f7604d 100644 --- a/apps/explorer/.env.vegacapsule +++ b/apps/explorer/.env.vegacapsule @@ -5,3 +5,4 @@ NX_TENDERMINT_WEBSOCKET_URL=wss://localhost:26607/websocket NX_VEGA_URL=http://localhost:3003/query NX_VEGA_ENV=CUSTOM NX_VEGA_REST=http://localhost:3029/rest +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions diff --git a/apps/explorer/project.json b/apps/explorer/project.json index a97dc0c4d..62df33978 100644 --- a/apps/explorer/project.json +++ b/apps/explorer/project.json @@ -4,7 +4,7 @@ "projectType": "application", "targets": { "build": { - "executor": "@nrwl/web:webpack", + "executor": "./tools/executors/webpack:build", "outputs": ["{options.outputPath}"], "defaultConfiguration": "production", "options": { @@ -38,7 +38,7 @@ } }, "serve": { - "executor": "./tools/executors/serve:serve", + "executor": "./tools/executors/webpack:serve", "options": { "port": 3000, "buildTarget": "explorer:build", diff --git a/apps/explorer/src/app/app.tsx b/apps/explorer/src/app/app.tsx index 088ae5594..da2cd690c 100644 --- a/apps/explorer/src/app/app.tsx +++ b/apps/explorer/src/app/app.tsx @@ -2,6 +2,7 @@ import { useState, useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import { ThemeContext, useThemeSwitcher } from '@vegaprotocol/react-helpers'; import { EnvironmentProvider, NetworkLoader } from '@vegaprotocol/environment'; +import { NetworkInfo } from '@vegaprotocol/network-info'; import { createClient } from './lib/apollo-client'; import { Nav } from './components/nav'; import { Header } from './components/header'; @@ -36,6 +37,9 @@ function App() { />