Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOT] Shafin/bot 1711/chore bot separate package #8

Merged
merged 18 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ module.exports = {
extends: ['@deriv-com/eslint-config-deriv'],
rules: {
'global-require': 'off',
"import/no-extraneous-dependencies": 'off',
'import/no-extraneous-dependencies': 'off',
'class-methods-use-this': 'off',
indent: 'off',
},
overrides: [
{
Expand Down Expand Up @@ -30,6 +32,10 @@ module.exports = {
'plugin:prettier/recommended',
'plugin:react/jsx-runtime',
],
rules: {
// TODO: fix need to turn on later
'@typescript-eslint/no-explicit-any': 'off',
},
parserOptions: {
ecmaversion: 2018,
sourceType: 'module',
Expand Down
18 changes: 9 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"endOfLine": "lf",
"singleQuote": true,
"useTabs": false,
"tabWidth": 4,
"trailingComma": "es5",
"printWidth": 120,
"jsxSingleQuote": true,
"arrowParens": "avoid",
"proseWrap": "preserve"
"endOfLine": "lf",
"singleQuote": true,
"useTabs": false,
"tabWidth": 4,
"trailingComma": "es5",
"printWidth": 120,
"jsxSingleQuote": true,
"arrowParens": "avoid",
"proseWrap": "preserve"
}
2 changes: 2 additions & 0 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ module.exports = {
'no-duplicate-selectors': true,
'no-invalid-double-slash-comments': true,
'number-max-precision': 3,
'no-descending-specificity': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['export'],
},
],
'selector-class-pattern': null,
'selector-pseudo-element-colon-notation': 'single',
'selector-pseudo-element-no-unknown': true,
'selector-type-case': 'lower',
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Deriv V2</title>
</head>
<body>
<body class="body">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
4,173 changes: 3,358 additions & 815 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 40 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,61 @@
},
"scripts": {
"start": "vite",
"build": "tsc && vite build",
"build": "vite build",
"preview": "vite preview",
"test:lint": "prettier --log-level silent --write . && eslint \"./src/**/*.?(js|jsx|ts|tsx)\"",
"test:fix": "prettier --log-level silent --write . && eslint --fix --quiet \"./src/**/*.?(js|jsx|ts|tsx)\"",
"test": "vitest run",
"coverage": "vitest run --coverage",
"prepare": "husky install"
},
"dependencies": {
"@deriv-com/analytics": "^1.5.3",
"@deriv-com/api-hooks": "^0.0.22",
"@deriv-com/translations": "^1.2.4",
"@deriv-com/ui": "latest",
"@deriv-com/utils": "latest",
"@deriv/deriv-charts": "^2.1.18",
"@deriv/js-interpreter": "^3.0.0",
"@deriv/quill-icons": "latest",
"@svgr/core": "^8.1.0",
"@tanstack/react-query": "^5.29.2",
"@vitejs/plugin-react": "^4.2.1",
"binary-utils": "^4.21.0",
"blockly": "^10.4.3",
"canvas-toBlob": "^1.0.0",
"classnames": "^2.5.1",
"clsx": "^2.1.0",
"crc-32": "^1.2.2",
"debounce": "^2.1.0",
"dompurify": "^3.1.3",
"file-saver": "^2.0.5",
"formik": "^2.4.6",
"framer-motion": "^6.5.1",
"js-cookie": "^3.0.5",
"localforage": "^1.10.0",
"lz-string": "^1.5.0",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7",
"moment": "^2.30.1",
"pako": "^2.1.0",
"react": "^18.2.0",
"react-content-loader": "^7.0.0",
"react-div-100vh": "^0.3.8",
"react-dom": "^18.2.0",
"react-joyride": "^2.5.3",
"react-loadable": "^5.5.0",
"react-router-dom": "^5.3.4",
"react-tiny-popover": "^8.0.4",
"react-toastify": "^9.1.3",
"react-transition-group": "^4.4.5",
"react-virtualized": "^9.22.5",
"redux": "^5.0.1",
"redux-thunk": "^3.1.0",
"ua-parser-js": "^1.0.38",
"uuid": "^9.0.1",
"vite": "^5.1.4",
"vite-plugin-svgr": "^4.2.0"
"yup": "^1.4.0"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
Expand All @@ -53,8 +85,11 @@
"@types/jest": "^29.5.12",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@types/react-router-dom": "^5.3.3",
"@types/react-transition-group": "^4.4.10",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
Expand All @@ -76,6 +111,9 @@
"stylelint-selector-bem-pattern": "^4.0.0",
"ts-jest": "^29.1.2",
"typescript": "^5.2.2",
"vite-plugin-svgr": "^4.2.0",
"vite-require": "^0.2.3",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
}
}
Binary file added public/media/1x1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/announcement.mp3
Binary file not shown.
Binary file added public/media/click.mp3
Binary file not shown.
Binary file added public/media/click.ogg
Binary file not shown.
Binary file added public/media/click.wav
Binary file not shown.
Binary file added public/media/coins.mp3
Binary file not shown.
10 changes: 10 additions & 0 deletions public/media/comment-arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/media/comment-arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/create_variable.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/media/delete-x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/media/delete.mp3
Binary file not shown.
Binary file added public/media/delete.ogg
Binary file not shown.
Binary file added public/media/delete.wav
Binary file not shown.
1 change: 1 addition & 0 deletions public/media/dropdown-arrow-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/media/dropdown-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions public/media/extensions/microbit-block-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions public/media/extensions/music-block-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading