diff --git a/.github/workflows/capsule-cypress-manual-trigger.yml b/.github/workflows/capsule-cypress-manual-trigger.yml index 15e5d55e6..4fa247cea 100644 --- a/.github/workflows/capsule-cypress-manual-trigger.yml +++ b/.github/workflows/capsule-cypress-manual-trigger.yml @@ -13,7 +13,6 @@ on: - console-lite-e2e - explorer-e2e - liquidity-provision-dashboard-e2e - - stats-e2e - token-e2e - trading-e2e tags: diff --git a/.github/workflows/capsule-cypress-night-run.yml b/.github/workflows/capsule-cypress-night-run.yml index 239ef9a70..d5e5f7389 100644 --- a/.github/workflows/capsule-cypress-night-run.yml +++ b/.github/workflows/capsule-cypress-night-run.yml @@ -12,6 +12,6 @@ jobs: uses: ./.github/workflows/tests-dispatcher.yml secrets: inherit with: - project: '[console-lite-e2e, explorer-e2e, liquidity-provision-dashboard-e2e, stats-e2e, token-e2e, trading-e2e]' + project: '[console-lite-e2e, explorer-e2e, liquidity-provision-dashboard-e2e, token-e2e, trading-e2e]' tags: --env.grepTags '[ @smoke, @regression, @slow ]' night-run: true diff --git a/.github/workflows/cypress-stats-e2e.yml b/.github/workflows/cypress-stats-e2e.yml deleted file mode 100644 index 3e6a20f45..000000000 --- a/.github/workflows/cypress-stats-e2e.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Cypress - stats - -on: - workflow_call: - inputs: - trigger: - required: true - type: string - default: 'false' - -jobs: - stats-e2e: - runs-on: self-hosted - if: ${{ inputs.trigger == 'true' }} - timeout-minutes: 10 - steps: - # Checkout front ends - - name: Checkout frontend mono repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - path: './frontend-monorepo' - - # Restore node_modules from cache if possible - - name: Restore node_modules from cache - uses: actions/cache@v3 - with: - path: | - frontend-monorepo/node_modules - /home/runner/.cache/Cypress - key: node_modules_cypress-${{ hashFiles('frontend-monorepo/yarn.lock') }} - - # Install frontend dependencies - - name: Install root dependencies - run: yarn install --frozen-lockfile - working-directory: frontend-monorepo - - # To make sure that all Cypress binaries are installed properly - - name: Install cypress bins - run: yarn cypress install - working-directory: frontend-monorepo - - - name: Run Cypress tests - run: npx nx run stats-e2e:e2e --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome - working-directory: frontend-monorepo - env: - CYPRESS_SLACK_WEBHOOK: ${{ secrets.CYPRESS_SLACK_WEBHOOK }} diff --git a/.github/workflows/tests-dispatcher.yml b/.github/workflows/tests-dispatcher.yml index e902798a5..17e5cc23f 100644 --- a/.github/workflows/tests-dispatcher.yml +++ b/.github/workflows/tests-dispatcher.yml @@ -38,12 +38,6 @@ jobs: with: trigger: ${{ contains(inputs.project, 'liquidity-provision-dashboard-e2e') || contains(inputs.project, 'liquidity-provision-dashboard') }} - run-stats-e2e: - uses: ./.github/workflows/cypress-stats-e2e.yml - secrets: inherit - with: - trigger: ${{ contains(inputs.project, 'stats-e2e') || contains(inputs.project, 'stats') }} - run-token-e2e: uses: ./.github/workflows/cypress-token-e2e.yml secrets: inherit diff --git a/README.md b/README.md index f2aef576e..3702ec48d 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,6 @@ The utility dApp for interacting with the Vega token and using its' utility. Thi The block explorer for the Vega network, showing details of raw chain states and the state of markets on the Vega network. -### [Stats](./apps/stats) - -An application for the status of the Vega network. Showing block height and other network activity. - ### [Static](./apps/static) Hosting for static content being shared across apps, for example fonts. diff --git a/apps/stats-e2e/.env b/apps/stats-e2e/.env deleted file mode 100644 index b63130085..000000000 --- a/apps/stats-e2e/.env +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=STAGNET3 -CYPRESS_VEGA_ENV=STAGNET3 diff --git a/apps/stats-e2e/.env.devnet b/apps/stats-e2e/.env.devnet deleted file mode 100644 index b3a24296b..000000000 --- a/apps/stats-e2e/.env.devnet +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=DEVNET -CYPRESS_VEGA_ENV=DEVNET diff --git a/apps/stats-e2e/.env.mainnet b/apps/stats-e2e/.env.mainnet deleted file mode 100644 index 07e20a88b..000000000 --- a/apps/stats-e2e/.env.mainnet +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=MAINNET -CYPRESS_VEGA_ENV=MAINNET diff --git a/apps/stats-e2e/.env.stagnet3 b/apps/stats-e2e/.env.stagnet3 deleted file mode 100644 index b63130085..000000000 --- a/apps/stats-e2e/.env.stagnet3 +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=STAGNET3 -CYPRESS_VEGA_ENV=STAGNET3 diff --git a/apps/stats-e2e/.env.testnet b/apps/stats-e2e/.env.testnet deleted file mode 100644 index 9e19154ea..000000000 --- a/apps/stats-e2e/.env.testnet +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=TESTNET -CYPRESS_VEGA_ENV=TESTNET diff --git a/apps/stats-e2e/.eslintrc.json b/apps/stats-e2e/.eslintrc.json deleted file mode 100644 index 696cb8b12..000000000 --- a/apps/stats-e2e/.eslintrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": ["plugin:cypress/recommended", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/apps/stats-e2e/cypress.config.js b/apps/stats-e2e/cypress.config.js deleted file mode 100644 index ca0f53e7f..000000000 --- a/apps/stats-e2e/cypress.config.js +++ /dev/null @@ -1,30 +0,0 @@ -const { defineConfig } = require('cypress'); -module.exports = defineConfig({ - projectId: 'et4snf', - - e2e: { - setupNodeEvents(on, config) { - require('@cypress/grep/src/plugin')(config); - return config; - }, - baseUrl: 'http://localhost:3010', - fileServerFolder: '.', - fixturesFolder: false, - specPattern: './src/integration/*.ts', - excludeSpecPattern: '**/*.js', - modifyObstructiveCode: false, - supportFile: './src/support/index.ts', - video: false, - videoUploadOnPasses: false, - videosFolder: '../../dist/cypress/apps/explorer-e2e/videos', - screenshotsFolder: '../../dist/cypress/apps/explorer-e2e/screenshots', - chromeWebSecurity: false, - viewportWidth: 1440, - viewportHeight: 900, - }, - env: { - grepTags: '@regression @smoke @slow', - grepFilterSpecs: true, - grepOmitFiltered: true, - }, -}); diff --git a/apps/stats-e2e/project.json b/apps/stats-e2e/project.json deleted file mode 100644 index d3acf7d55..000000000 --- a/apps/stats-e2e/project.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/stats-e2e/src", - "projectType": "application", - "targets": { - "e2e": { - "executor": "@nrwl/cypress:cypress", - "options": { - "cypressConfig": "apps/stats-e2e/cypress.config.js", - "devServerTarget": "stats:serve" - }, - "configurations": { - "production": { - "devServerTarget": "stats:serve:production" - } - } - }, - "lint": { - "executor": "@nrwl/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["apps/stats-e2e/**/*.{js,ts}"] - } - }, - "build": { - "executor": "@nrwl/workspace:run-commands", - "outputs": [], - "options": { - "command": "yarn tsc --project ./apps/stats-e2e/" - } - } - }, - "tags": [], - "implicitDependencies": ["stats"] -} diff --git a/apps/stats-e2e/src/fixtures/example.json b/apps/stats-e2e/src/fixtures/example.json deleted file mode 100644 index 294cbed6c..000000000 --- a/apps/stats-e2e/src/fixtures/example.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io" -} diff --git a/apps/stats-e2e/src/integration/app.test.ts b/apps/stats-e2e/src/integration/app.test.ts deleted file mode 100644 index ce4ac8274..000000000 --- a/apps/stats-e2e/src/integration/app.test.ts +++ /dev/null @@ -1,9 +0,0 @@ -const textToCheck = Cypress.env('VEGA_ENV'); -// breaking changes fail -describe('stats', () => { - beforeEach(() => cy.visit('/')); - - it.skip('should display header based on environment name', () => { - cy.get('h3', { timeout: 10000 }).should('have.text', `/ ${textToCheck}`); - }); -}); diff --git a/apps/stats-e2e/src/support/index.ts b/apps/stats-e2e/src/support/index.ts deleted file mode 100644 index 5899bd57f..000000000 --- a/apps/stats-e2e/src/support/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -import '@vegaprotocol/cypress'; diff --git a/apps/stats-e2e/tsconfig.json b/apps/stats-e2e/tsconfig.json deleted file mode 100644 index 6b19c9191..000000000 --- a/apps/stats-e2e/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "strict": true, - "jsx": "react-jsx", - "sourceMap": false, - "allowSyntheticDefaultImports": true, - "outDir": "../../dist/out-tsc", - "allowJs": true, - "types": ["cypress", "node", "@cypress/grep"] - }, - "include": ["src/**/*.ts", "src/**/*.js"] -} diff --git a/apps/stats/.babelrc b/apps/stats/.babelrc deleted file mode 100644 index 61641ec8a..000000000 --- a/apps/stats/.babelrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "presets": [ - [ - "@nrwl/react/babel", - { - "runtime": "automatic" - } - ] - ], - "plugins": [] -} diff --git a/apps/stats/.browserslistrc b/apps/stats/.browserslistrc deleted file mode 100644 index f1d12df4f..000000000 --- a/apps/stats/.browserslistrc +++ /dev/null @@ -1,16 +0,0 @@ -# This file is used by: -# 1. autoprefixer to adjust CSS to support the below specified browsers -# 2. babel preset-env to adjust included polyfills -# -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# -# If you need to support different browsers in production, you may tweak the list below. - -last 1 Chrome version -last 1 Firefox version -last 2 Edge major versions -last 2 Safari major version -last 2 iOS major versions -Firefox ESR -not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/apps/stats/.env b/apps/stats/.env deleted file mode 100644 index 09839cb09..000000000 --- a/apps/stats/.env +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=MAINNET -NX_VEGA_URL=https://api.vega.xyz/query diff --git a/apps/stats/.env.devnet b/apps/stats/.env.devnet deleted file mode 100644 index 4a7d135c8..000000000 --- a/apps/stats/.env.devnet +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=DEVNET -NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql diff --git a/apps/stats/.env.mainnet b/apps/stats/.env.mainnet deleted file mode 100644 index ad3e827e6..000000000 --- a/apps/stats/.env.mainnet +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables. No overrides for default urls -NX_VEGA_ENV=MAINNET -NX_VEGA_URL=https://api.vega.xyz/query diff --git a/apps/stats/.env.stagnet3 b/apps/stats/.env.stagnet3 deleted file mode 100644 index e0f1b7159..000000000 --- a/apps/stats/.env.stagnet3 +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_URL=https://api.stagnet3.vega.xyz/graphql -NX_VEGA_ENV=STAGNET3 diff --git a/apps/stats/.env.testnet b/apps/stats/.env.testnet deleted file mode 100644 index af17e43cf..000000000 --- a/apps/stats/.env.testnet +++ /dev/null @@ -1,3 +0,0 @@ -# App configuration variables -NX_VEGA_ENV=TESTNET -NX_VEGA_URL=https://api.n11.testnet.vega.xyz/graphql diff --git a/apps/stats/.eslintrc.json b/apps/stats/.eslintrc.json deleted file mode 100644 index 734ddacee..000000000 --- a/apps/stats/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["plugin:@nrwl/nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/apps/stats/.fleek.json b/apps/stats/.fleek.json deleted file mode 100644 index 13a05dab9..000000000 --- a/apps/stats/.fleek.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "site": { - "id": "2365cbf8-20f8-4d3a-8014-19e813eab683", - "team": "886f256a-fd19-40d5-9551-bcd71a7c8100", - "platform": "ipfs", - "source": "github", - "name": "vega-status" - }, - "build": { - "baseDir": "", - "publicDir": "dist/apps/stats/", - "command": "yarn && yarn nx run build:stats static", - "rootDir": "" - } -} diff --git a/apps/stats/README.md b/apps/stats/README.md deleted file mode 100644 index cdc999913..000000000 --- a/apps/stats/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Stats viewer - -https://status.vega.xyz - -# LICENSE - -MIT diff --git a/apps/stats/jest.config.ts b/apps/stats/jest.config.ts deleted file mode 100644 index 63b4728e5..000000000 --- a/apps/stats/jest.config.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'stats', - preset: '../../jest.preset.js', - transform: { - '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest', - '^.+\\.[tj]sx?$': 'babel-jest', - }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../coverage/apps/stats', - setupFilesAfterEnv: ['./src/setup-tests.ts'], -}; diff --git a/apps/stats/postcss.config.js b/apps/stats/postcss.config.js deleted file mode 100644 index cbdd9c22c..000000000 --- a/apps/stats/postcss.config.js +++ /dev/null @@ -1,10 +0,0 @@ -const { join } = require('path'); - -module.exports = { - plugins: { - tailwindcss: { - config: join(__dirname, 'tailwind.config.js'), - }, - autoprefixer: {}, - }, -}; diff --git a/apps/stats/project.json b/apps/stats/project.json deleted file mode 100644 index a91297962..000000000 --- a/apps/stats/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/stats/src", - "projectType": "application", - "targets": { - "build": { - "executor": "./tools/executors/webpack:build", - "outputs": ["{options.outputPath}"], - "defaultConfiguration": "production", - "options": { - "compiler": "babel", - "outputPath": "dist/apps/stats", - "index": "apps/stats/src/index.html", - "main": "apps/stats/src/main.tsx", - "polyfills": "apps/stats/src/polyfills.ts", - "tsConfig": "apps/stats/tsconfig.app.json", - "assets": ["apps/stats/src/assets"], - "styles": ["apps/stats/src/styles/styles.css"], - "scripts": [], - "webpackConfig": "@nrwl/react/plugins/webpack" - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "apps/stats/src/environments/environment.ts", - "with": "apps/stats/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false - } - } - }, - "serve": { - "executor": "./tools/executors/webpack:serve", - "options": { - "port": 3010, - "buildTarget": "stats:build:development", - "hmr": true - }, - "configurations": { - "production": { - "buildTarget": "stats:build:production", - "hmr": false - } - } - }, - "lint": { - "executor": "@nrwl/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["apps/stats/**/*.{ts,tsx,js,jsx}"] - } - }, - "test": { - "executor": "@nrwl/jest:jest", - "outputs": ["coverage/apps/stats"], - "options": { - "jestConfig": "apps/stats/jest.config.ts", - "passWithNoTests": true - } - }, - "build-spec": { - "executor": "@nrwl/workspace:run-commands", - "outputs": [], - "options": { - "command": "yarn tsc --project ./apps/stats/tsconfig.spec.json" - } - } - }, - "tags": [] -} diff --git a/apps/stats/src/app.tsx b/apps/stats/src/app.tsx deleted file mode 100644 index 8149dbf06..000000000 --- a/apps/stats/src/app.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { EnvironmentProvider, NetworkLoader } from '@vegaprotocol/environment'; -import { Header } from './components/header'; -import { StatsManager } from '@vegaprotocol/network-stats'; - -function App() { - return ( - -
-
-
- -
-
-
- ); -} - -const Wrapper = () => { - return ( - - - - ); -}; - -export default Wrapper; diff --git a/apps/stats/src/assets/apple-touch-icon.png b/apps/stats/src/assets/apple-touch-icon.png deleted file mode 100644 index 50cdf7782..000000000 Binary files a/apps/stats/src/assets/apple-touch-icon.png and /dev/null differ diff --git a/apps/stats/src/assets/logo.png b/apps/stats/src/assets/logo.png deleted file mode 100644 index 0245ca6ca..000000000 Binary files a/apps/stats/src/assets/logo.png and /dev/null differ diff --git a/apps/stats/src/assets/logo192.png b/apps/stats/src/assets/logo192.png deleted file mode 100644 index a229d08ba..000000000 Binary files a/apps/stats/src/assets/logo192.png and /dev/null differ diff --git a/apps/stats/src/assets/manifest.json b/apps/stats/src/assets/manifest.json deleted file mode 100644 index 949569331..000000000 --- a/apps/stats/src/assets/manifest.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "short_name": "Mainnet Stats", - "name": "Vega Mainnet statistics", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/apps/stats/src/assets/robots.txt b/apps/stats/src/assets/robots.txt deleted file mode 100644 index e9e57dc4d..000000000 --- a/apps/stats/src/assets/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/apps/stats/src/components/header/header.tsx b/apps/stats/src/components/header/header.tsx deleted file mode 100644 index 86ca81292..000000000 --- a/apps/stats/src/components/header/header.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { - BackgroundVideo, - VegaLogo, - ThemeSwitcher, -} from '@vegaprotocol/ui-toolkit'; - -export const Header = () => { - return ( -
- - -
-
- - -
-
-
- ); -}; diff --git a/apps/stats/src/components/header/index.ts b/apps/stats/src/components/header/index.ts deleted file mode 100644 index ddd972315..000000000 --- a/apps/stats/src/components/header/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { Header } from './header'; diff --git a/apps/stats/src/index.html b/apps/stats/src/index.html deleted file mode 100644 index 04a18f79e..000000000 --- a/apps/stats/src/index.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - Vega Network Stats - - - - -
- - - diff --git a/apps/stats/src/main.tsx b/apps/stats/src/main.tsx deleted file mode 100644 index a2da43b23..000000000 --- a/apps/stats/src/main.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React, { StrictMode } from 'react'; -import './styles/styles.css'; -import App from './app'; -import reportWebVitals from './report-web-vitals'; -import { createRoot } from 'react-dom/client'; - -const rootElement = document.getElementById('root'); -const root = rootElement && createRoot(rootElement); - -root?.render( - - - -); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); diff --git a/apps/stats/src/polyfills.ts b/apps/stats/src/polyfills.ts deleted file mode 100644 index 2adf3d05b..000000000 --- a/apps/stats/src/polyfills.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Polyfill stable language features. These imports will be optimized by `@babel/preset-env`. - * - * See: https://github.com/zloirock/core-js#babel - */ -import 'core-js/stable'; -import 'regenerator-runtime/runtime'; diff --git a/apps/stats/src/react-app-env.d.ts b/apps/stats/src/react-app-env.d.ts deleted file mode 100644 index 6431bc5fc..000000000 --- a/apps/stats/src/react-app-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/apps/stats/src/report-web-vitals.ts b/apps/stats/src/report-web-vitals.ts deleted file mode 100644 index 6071e230d..000000000 --- a/apps/stats/src/report-web-vitals.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { ReportHandler } from 'web-vitals'; - -const reportWebVitals = (onPerfEntry?: ReportHandler) => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; diff --git a/apps/stats/src/setup-tests.ts b/apps/stats/src/setup-tests.ts deleted file mode 100644 index 8f2609b7b..000000000 --- a/apps/stats/src/setup-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -// jest-dom adds custom jest matchers for asserting on DOM nodes. -// allows you to do things like: -// expect(element).toHaveTextContent(/react/i) -// learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom'; diff --git a/apps/stats/src/styles/styles.css b/apps/stats/src/styles/styles.css deleted file mode 100644 index 0025eee69..000000000 --- a/apps/stats/src/styles/styles.css +++ /dev/null @@ -1,34 +0,0 @@ -@tailwind base; -@tailwind components; - -.layout-grid { - display: grid; - grid-template-columns: 1fr; - grid-template-rows: repeat(2, auto) 1fr; -} - -.stats-grid { - display: grid; -} - -@media (min-width: 768px) { - .stats-grid { - grid-template-columns: 18rem 1fr; - grid-column-gap: 1.25rem; - align-items: flex-start; - } -} - -@media (min-width: 640px) { - .promoted-stats { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } -} - -@media (min-width: 768px) { - .promoted-stats { - grid-template-columns: repeat(1, minmax(0, 1fr)); - } -} - -@tailwind utilities; diff --git a/apps/stats/tailwind.config.js b/apps/stats/tailwind.config.js deleted file mode 100644 index 51ca67ff2..000000000 --- a/apps/stats/tailwind.config.js +++ /dev/null @@ -1,15 +0,0 @@ -const { join } = require('path'); -const { createGlobPatternsForDependencies } = require('@nrwl/next/tailwind'); -const theme = require('../../libs/tailwindcss-config/src/theme'); -const vegaCustomClasses = require('../../libs/tailwindcss-config/src/vega-custom-classes'); - -module.exports = { - content: [ - join(__dirname, 'src/**/*.{js,ts,jsx,tsx}'), - 'libs/ui-toolkit/src/utils/shared.ts', - ...createGlobPatternsForDependencies(__dirname), - ], - darkMode: 'class', - theme, - plugins: [vegaCustomClasses], -}; diff --git a/apps/stats/tsconfig.app.json b/apps/stats/tsconfig.app.json deleted file mode 100644 index b2447df1e..000000000 --- a/apps/stats/tsconfig.app.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "types": ["node"] - }, - "files": [ - "../../node_modules/@nrwl/react/typings/cssmodule.d.ts", - "../../node_modules/@nrwl/react/typings/image.d.ts" - ], - "exclude": [ - "**/*.spec.ts", - "**/*.test.ts", - "**/*.spec.tsx", - "**/*.test.tsx", - "**/*.spec.js", - "**/*.test.js", - "**/*.spec.jsx", - "**/*.test.jsx", - "jest.config.ts" - ], - "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"] -} diff --git a/apps/stats/tsconfig.json b/apps/stats/tsconfig.json deleted file mode 100644 index 842a5c68a..000000000 --- a/apps/stats/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "jsx": "react-jsx", - "allowJs": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "noImplicitOverride": true, - "noPropertyAccessFromIndexSignature": false, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true - }, - "include": [], - "references": [ - { - "path": "./tsconfig.app.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/apps/stats/tsconfig.spec.json b/apps/stats/tsconfig.spec.json deleted file mode 100644 index 2fd491d52..000000000 --- a/apps/stats/tsconfig.spec.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "**/*.test.ts", - "**/*.spec.ts", - "**/*.test.tsx", - "**/*.spec.tsx", - "**/*.test.js", - "**/*.spec.js", - "**/*.test.jsx", - "**/*.spec.jsx", - "**/*.d.ts", - "jest.config.ts" - ], - "files": [ - "../../node_modules/@nrwl/react/typings/cssmodule.d.ts", - "../../node_modules/@nrwl/react/typings/image.d.ts" - ] -} diff --git a/workspace.json b/workspace.json index 70341c7a2..bf60f9234 100644 --- a/workspace.json +++ b/workspace.json @@ -30,8 +30,6 @@ "react-helpers": "libs/react-helpers", "smart-contracts": "libs/smart-contracts", "static": "apps/static", - "stats": "apps/stats", - "stats-e2e": "apps/stats-e2e", "tailwindcss-config": "libs/tailwindcss-config", "token": "apps/token", "token-e2e": "apps/token-e2e",