-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c04a9b
commit 8ce257c
Showing
637 changed files
with
81,698 additions
and
14,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "open-source-portal-frontend", | ||
"license": "UNLICENSED", | ||
"private": true, | ||
"version": "0.9.65-hotfix1", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"dev:base": "webpack serve --mode development", | ||
"dev": "cross-env MOCK_API=always yarn dev:base", | ||
|
@@ -16,11 +16,11 @@ | |
"postinstall": "husky install", | ||
"storybook": "start-storybook -p 6006", | ||
"storybook:build": "build-storybook", | ||
"test": "jest", | ||
"test:update": "jest -u", | ||
"test:watch": "jest --watch", | ||
"test:coverage": "jest --coverage", | ||
"test:negative": "jest -t='\\[NEGATIVE\\]'" | ||
"test": "cross-env TZ=UTC jest", | ||
"test:update": "yarn test -u", | ||
"test:watch": "yarn test --watch", | ||
"test:coverage": "yarn test --coverage", | ||
"test:negative": "yarn test -t='\\[NEGATIVE\\]'" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
@@ -31,8 +31,11 @@ | |
"@floating-ui/react-dom": "^1.0.0", | ||
"@floating-ui/react-dom-interactions": "^0.9.3", | ||
"@reduxjs/toolkit": "^1.8.1", | ||
"@transcend-io/conflux": "^4.0.3", | ||
"@types/d3": "^7.4.0", | ||
"@types/react-dnd-html5-backend": "^3.0.2", | ||
"@types/textarea-caret": "^3.0.1", | ||
"antlr4": "^4.12.0", | ||
"codemirror": "^5.65.8", | ||
"connected-react-router": "^6.9.2", | ||
"css-spring": "^4.1.0", | ||
|
@@ -44,9 +47,11 @@ | |
"lodash": "^4.17.21", | ||
"luxon": "^2.4.0", | ||
"password-validator": "^5.3.0", | ||
"pdfjs-dist": "^3.4.120", | ||
"qs": "^6.10.5", | ||
"react": "^18.1.0", | ||
"react-dnd": "^16.0.1", | ||
"react-dnd-html5-backend": "^16.0.1", | ||
"react-dnd-touch-backend": "^16.0.1", | ||
"react-dom": "^18.1.0", | ||
"react-redux": "^8.0.2", | ||
|
@@ -57,7 +62,11 @@ | |
"react-virtual": "^2.10.4", | ||
"resize-observer-polyfill": "^1.5.1", | ||
"smoothscroll-polyfill": "^0.4.4", | ||
"styled-components": "^5.3.5" | ||
"streamsaver": "^2.0.6", | ||
"styled-components": "^5.3.5", | ||
"textarea-caret": "^3.1.0", | ||
"uuid": "^9.0.0", | ||
"web-streams-polyfill": "^3.2.1" | ||
}, | ||
"resolutions": { | ||
"loader-utils": "^2.0.4", | ||
|
@@ -67,7 +76,9 @@ | |
"trim": "^0.0.3", | ||
"decode-uri-component": "^0.2.1", | ||
"json5": "^2.2.2", | ||
"luxon": "^2.5.2" | ||
"luxon": "^2.5.2", | ||
"http-cache-semantics": "4.1.1", | ||
"webpack": "^5.76.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.0", | ||
|
@@ -100,7 +111,9 @@ | |
"@types/react-router-dom": "^5.3.3", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"@types/react-transition-group": "^4.4.5", | ||
"@types/streamsaver": "^2.0.1", | ||
"@types/styled-components": "^5.1.25", | ||
"@types/uuid": "^9.0.1", | ||
"@types/webpack-env": "^1.17.0", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
|
@@ -135,6 +148,7 @@ | |
"jsdom": "^20.0.1", | ||
"lint-staged": "^12.4.1", | ||
"mini-css-extract-plugin": "^2.6.1", | ||
"node-polyfill-webpack-plugin": "^2.0.1", | ||
"prettier": "^2.6.2", | ||
"react-refresh": "^0.13.0", | ||
"react-test-renderer": "^18.2.0", | ||
|
@@ -143,7 +157,7 @@ | |
"ts-loader": "^9.3.0", | ||
"typescript": "^4.6.4", | ||
"typescript-plugin-styled-components": "^2.0.0", | ||
"webpack": "^5.72.1", | ||
"webpack": "^5.76.0", | ||
"webpack-bundle-analyzer": "^4.5.0", | ||
"webpack-cli": "^4.9.2", | ||
"webpack-dev-server": "^4.9.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let isEnabled = true; | ||
|
||
const originalDateNow = Date.now; | ||
|
||
Date.now = jest.fn(() => (isEnabled ? 1680842869025 : originalDateNow())); | ||
|
||
export function enableDateNowMock() { | ||
isEnabled = true; | ||
} | ||
|
||
export function disableDateNowMock() { | ||
isEnabled = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { TextEncoder, TextDecoder } from 'util'; | ||
|
||
global.TextEncoder = TextEncoder; | ||
global.TextDecoder = TextDecoder as typeof global.TextDecoder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
global.URL.createObjectURL = jest.fn(() => 'blob:'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
beforeAll(() => { | ||
(SVGElement.prototype as SVGTextContentElement).getComputedTextLength = () => 0; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
beforeAll(() => { | ||
window.HTMLElement.prototype.scrollIntoView = jest.fn(); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.