4ef8218267
* Feat/800: Configured routes for different proposal types * Feat/800: Refactored propose.tsx to be a hub for the new proposal routes * Feat/800: Link style tweak for proposals guide * Feat/927: Hydrating the new proposal forms * chore: fix typings for shared components * Feat/927: Proposal forms built with reusable components * Feat/800: Updated network params, added new method to get param keys as well as values, updated generated types * Feat/800: Updated and built more reusable proposal form components * Feat/800: Removed old catchall file of reusable proposal form components * Feat/800: Added utils for vote deadline and enactment timestamps * Feat/800: Readded necessary 'color-scheme-dark' class for dark-theme date and datetime inputs * Feat/800: Tweak to icon positioning on the dialog component * Feat/800: Regenerated types for network params * Feat/800: Added iso8601-duration package for working with API vote deadline and enactment data * Feat/800: Reworked the proposal forms * Feat/800: Couple of translation additions * Feat/800: Another translation addition * Feat/800: Raw proposal test (tests as per old proposal form test) * Feat/800: Some basic proposal form tests * Feat/800: Fixing small types error in test * Feat/800: Updating simple proposal form tests * Feat/800: Set up env-specific proposal docs links * Feat/800: Deadlines to the bottom of proposal forms * Feat/800: Another type error from API changes fixed * Feat/800: Added the spam protection min tokens network param to proposal forms requests, and the min requirements now displays the larger value of spam protection or min proposer balance * Feat/800: Network param value change now a textarea * Feat/800: Improved way to pass docs url * Feat/800: Added useful explorer links to proposal forms * Feat/800: Show current value of selected network param in proposal form * Feat/800: Removed wallet-confirmation buffer, suspect it is not necessary * Feat/800: Condense vote and enactment ui into single component for simpler state management, memoised some stuff * Feat/800: Set a default select option for the market selector * Feat/800: For network params that aren't JSON, display the network param current value in a readonly text input rather than the syntax highlighter * Feat/800: Corrected network param form network params * Feat/800: Timestamp functions for closing, enactment and validation, with tests * Feat/800: More translations * Feat/800: Added validation options to proposal-form-vote-and-enactment-deadline.tsx, generally improved the component and added tests * Feat/800: Improved workings of proposal-form-min-requirements.tsx and wrote tests * Feat/800: Tests for the other reusable form components * Feat/800: Improved tests for the proposal forms * Feat/800: Corrected mistake in get-enactment-timestamp.ts * Feat/800: Fixed type issues that were preventing spotting an error * Feat/800: Added some extra docs links * Feat/800: Using renamed Dialog passed in from useProposalSubmit * refactor: network params to return an object * fix: update net param form, remove old net params obj * fix: check for params before rendering * Feat/800: Rename and simplify isJson based off PR comment * Feat/800: Small tweaks to timestamp helpers based on PR comments * Feat/800: Removed proposal-docs-link.tsx * Feat/800: Used bignumber for min-requirements calculation * Feat/800: Update tests to work with merged network params branch * Feat/800: Removed unnecessary translations splitting * Feat/800: Removed unwanted test * Feat/800: Removed unwanted tests * Feat/800: Consistent arrow functions * Feat/800: Sorted links * Feat/800: Removed unnecessary typecasting * Feat/800: Refactored routing * Feat/800: Refactored mocking of proposal forms to use MockedProvider * Feat/800: Correct response from the raw proposal submission test * Feat/800: Removed console.logs added for debugging * Feat/800: Result of running 'nx format:write' * Feat/800: Cleaning up lint warnings * Update apps/token/.env.stagnet3 Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com> * Feat/800: Added extra test for docs link in the proposal-form-terms component * Feat/800: Removed stray console.log * Feat/800: Added basic render test for proposal-form-terms and cleaned up a bit * Feat/800: Added tests for the correct form components for the different forms * Feat/800: Split up the proposal-form-vote-and-enactment-deadline components inside the file to make things a bit more readable * Feat/800: router config webpack chunk name tweak * Feat/800: Lint issue fixed * Feat/800: Fixed timing issue with get-[deadline]-timestamp tests * Feat/800: Setting a system time in proposal-form-vote-and-enactment-deadline.spec.tsx that doesn't get affected by British Summer Time * Feat/800: Skipping a cypress test as the newProposalButton no longer takes a user directly to a proposal form. Leaving it in the codebase as the test is very likely to be updated. * Feat/800: Adding comment on why I've skipped a cypress test Co-authored-by: Dexter <dexter@vega.xyz> Co-authored-by: Matthew Russell <mattrussell36@gmail.com> Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
192 lines
6.3 KiB
JSON
192 lines
6.3 KiB
JSON
{
|
|
"name": "nx-monorepo",
|
|
"version": "0.0.0",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"start": "nx serve",
|
|
"build": "nx build",
|
|
"test": "nx test",
|
|
"postinstall": "husky install && yarn tsc -b tools/executors/next && yarn tsc -b tools/executors/webpack",
|
|
"test:all": "nx run-many --all --target=test",
|
|
"vegacapsule": "vegacapsule network bootstrap --config-path=../frontend-monorepo/vegacapsule/config.hcl"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.14.0"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@apollo/client": "^3.5.8",
|
|
"@blueprintjs/icons": "^3.32.0",
|
|
"@emotion/react": "11.10.0",
|
|
"@emotion/styled": "11.10.0",
|
|
"@radix-ui/react-accordion": "^0.1.6",
|
|
"@radix-ui/react-checkbox": "^1.0.0",
|
|
"@radix-ui/react-dialog": "^0.1.5",
|
|
"@radix-ui/react-dropdown-menu": "^0.1.6",
|
|
"@radix-ui/react-icons": "^1.1.1",
|
|
"@radix-ui/react-popover": "^1.0.0",
|
|
"@radix-ui/react-radio-group": "^0.1.5",
|
|
"@radix-ui/react-select": "^0.1.1",
|
|
"@radix-ui/react-slider": "^1.0.0",
|
|
"@radix-ui/react-tabs": "^0.1.5",
|
|
"@radix-ui/react-tooltip": "^1.0.0",
|
|
"@sentry/nextjs": "^6.19.3",
|
|
"@sentry/react": "^6.19.2",
|
|
"@sentry/tracing": "^6.19.2",
|
|
"@walletconnect/ethereum-provider": "^1.7.5",
|
|
"@web3-react/core": "8.0.20-beta.0",
|
|
"@web3-react/metamask": "8.0.16-beta.0",
|
|
"@web3-react/walletconnect": "^8.0.23-beta.0",
|
|
"ag-grid-community": "^27.0.1",
|
|
"ag-grid-react": "^27.0.1",
|
|
"allotment": "^1.14.5",
|
|
"alpha-lyrae": "vegaprotocol/alpha-lyrae",
|
|
"apollo": "^2.33.9",
|
|
"bignumber.js": "^9.0.2",
|
|
"buffer": "^6.0.3",
|
|
"classnames": "^2.3.1",
|
|
"core-js": "^3.6.5",
|
|
"date-fns": "^2.28.0",
|
|
"duration-js": "^4.0.0",
|
|
"env-cmd": "^10.1.0",
|
|
"ethers": "^5.6.0",
|
|
"graphql": "^15.7.2",
|
|
"graphql-ws": "^5.6.3",
|
|
"i18next": "^20.3.5",
|
|
"i18next-browser-languagedetector": "^6.1.2",
|
|
"immer": "^9.0.12",
|
|
"iso8601-duration": "^2.1.1",
|
|
"js-sha3": "^0.8.0",
|
|
"lodash": "^4.17.21",
|
|
"next": "12.2.3",
|
|
"pennant": "^0.4.14",
|
|
"react": "18.2.0",
|
|
"react-copy-to-clipboard": "^5.0.4",
|
|
"react-dom": "18.2.0",
|
|
"react-hook-form": "^7.27.0",
|
|
"react-i18next": "^11.11.4",
|
|
"react-intersection-observer": "^9.2.2",
|
|
"react-router-dom": "6.3.0",
|
|
"react-syntax-highlighter": "^15.4.5",
|
|
"react-use-websocket": "^3.0.0",
|
|
"react-virtualized-auto-sizer": "^1.0.6",
|
|
"react-window": "^1.8.7",
|
|
"react-window-infinite-loader": "^1.0.7",
|
|
"recharts": "^2.1.2",
|
|
"regenerator-runtime": "0.13.7",
|
|
"tslib": "^2.0.0",
|
|
"uuid": "^8.3.2",
|
|
"web-vitals": "^2.1.4",
|
|
"zod": "^3.17.3",
|
|
"zustand": "^4.0.0-rc.1"
|
|
},
|
|
"devDependencies": {
|
|
"@apollo/react-testing": "^4.0.0",
|
|
"@babel/core": "7.12.13",
|
|
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
"@babel/preset-env": "^7.18.10",
|
|
"@babel/preset-typescript": "7.12.13",
|
|
"@commitlint/cli": "^16.2.4",
|
|
"@commitlint/config-conventional": "^16.2.4",
|
|
"@ethersproject/experimental": "^5.6.0",
|
|
"@graphql-codegen/cli": "^2.11.8",
|
|
"@graphql-codegen/near-operation-file-preset": "^2.4.1",
|
|
"@graphql-codegen/typescript": "^2.7.3",
|
|
"@graphql-codegen/typescript-operations": "^2.5.3",
|
|
"@graphql-codegen/typescript-react-apollo": "^3.3.3",
|
|
"@graphql-inspector/cli": "^3.3.0",
|
|
"@graphql-inspector/validate-command": "^3.3.0",
|
|
"@nrwl/cli": "14.5.10",
|
|
"@nrwl/cypress": "14.5.10",
|
|
"@nrwl/eslint-plugin-nx": "14.5.10",
|
|
"@nrwl/jest": "14.5.10",
|
|
"@nrwl/linter": "14.5.10",
|
|
"@nrwl/next": "14.5.10",
|
|
"@nrwl/nx-cloud": "14.5.4",
|
|
"@nrwl/react": "14.5.10",
|
|
"@nrwl/storybook": "14.5.10",
|
|
"@nrwl/tao": "14.5.10",
|
|
"@nrwl/web": "14.5.10",
|
|
"@nrwl/workspace": "14.5.10",
|
|
"@sentry/webpack-plugin": "^1.18.8",
|
|
"@storybook/addon-a11y": "^6.4.19",
|
|
"@storybook/addon-essentials": "6.5.10",
|
|
"@storybook/builder-webpack5": "6.5.10",
|
|
"@storybook/core-server": "6.5.10",
|
|
"@storybook/manager-webpack5": "6.5.10",
|
|
"@storybook/react": "6.5.10",
|
|
"@svgr/webpack": "^5.4.0",
|
|
"@testing-library/jest-dom": "^5.16.2",
|
|
"@testing-library/react": "13.3.0",
|
|
"@testing-library/user-event": "^14.4.1",
|
|
"@types/classnames": "^2.3.1",
|
|
"@types/faker": "^5.5.8",
|
|
"@types/jest": "27.4.1",
|
|
"@types/lodash": "^4.14.171",
|
|
"@types/node": "18.7.5",
|
|
"@types/prismjs": "^1.26.0",
|
|
"@types/react": "18.0.17",
|
|
"@types/react-copy-to-clipboard": "^5.0.2",
|
|
"@types/react-dom": "18.0.6",
|
|
"@types/react-router-dom": "5.3.1",
|
|
"@types/react-syntax-highlighter": "^15.5.5",
|
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
"@types/react-window": "^1.8.5",
|
|
"@types/react-window-infinite-loader": "^1.0.6",
|
|
"@types/uuid": "^8.3.4",
|
|
"@typescript-eslint/eslint-plugin": "5.35.1",
|
|
"@typescript-eslint/parser": "5.35.1",
|
|
"autoprefixer": "10.4.8",
|
|
"babel-jest": "27.5.1",
|
|
"babel-loader": "8.1.0",
|
|
"cypress": "^10.2.0",
|
|
"cypress-grep": "^3.0.3",
|
|
"cypress-real-events": "^1.7.1",
|
|
"dotenv": "^16.0.1",
|
|
"eslint": "8.15.0",
|
|
"eslint-config-next": "12.2.3",
|
|
"eslint-config-prettier": "8.1.0",
|
|
"eslint-plugin-cypress": "^2.10.3",
|
|
"eslint-plugin-import": "2.25.2",
|
|
"eslint-plugin-jest": "^26.1.5",
|
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
"eslint-plugin-react": "7.30.1",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"eslint-plugin-unicorn": "^41.0.0",
|
|
"faker": "^5.5.3",
|
|
"glob": "^8.0.3",
|
|
"husky": "^7.0.4",
|
|
"jest": "27.5.1",
|
|
"jest-canvas-mock": "^2.3.1",
|
|
"jest-websocket-mock": "^2.3.0",
|
|
"lint-staged": "^12.3.3",
|
|
"mock-apollo-client": "^1.2.0",
|
|
"mock-socket": "^9.1.5",
|
|
"npmlog": "^6.0.2",
|
|
"nx": "14.5.10",
|
|
"postcss": "8.4.16",
|
|
"prettier": "2.7.1",
|
|
"react-test-renderer": "18.2.0",
|
|
"recast": "^0.21.1",
|
|
"regenerator-runtime": "0.13.7",
|
|
"replace-in-file": "^6.3.2",
|
|
"resize-observer-polyfill": "^1.5.1",
|
|
"sass": "1.54.0",
|
|
"storybook-addon-themes": "^6.1.0",
|
|
"tailwindcss": "3.1.8",
|
|
"ts-jest": "27.1.4",
|
|
"ts-node": "10.9.1",
|
|
"tslib": "^2.0.0",
|
|
"type-fest": "^2.12.2",
|
|
"typescript": "4.7.4",
|
|
"url-loader": "^3.0.0"
|
|
},
|
|
"lint-staged": {
|
|
"*": "yarn nx format:write --uncommitted",
|
|
"*.{ts,tsx,js,jsx}": "yarn eslint --fix"
|
|
},
|
|
"resolutions": {
|
|
"graphql": "15.8.0"
|
|
}
|
|
}
|