forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from amina-deriv/amina/feature/90115/update_ju…
…risdiction Amina/feature/90115/update jurisdiction
- Loading branch information
Showing
278 changed files
with
35,039 additions
and
3,966 deletions.
There are no files selected for viewing
File renamed without changes.
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
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
const trashcan_margin = 16; | ||
const core_footer_height = 36; | ||
export const initTrashCan = (margin = 16, height = 36) => { | ||
/** | ||
* Distance between trashcan and bottom edge of workspace. | ||
* @type {number} | ||
* @private | ||
*/ | ||
Blockly.Trashcan.prototype.MARGIN_BOTTOM_ = margin * 2 + height; // eslint-disable-line | ||
|
||
/** | ||
* Distance between trashcan and bottom edge of workspace. | ||
* @type {number} | ||
* @private | ||
*/ | ||
Blockly.Trashcan.prototype.MARGIN_BOTTOM_ = trashcan_margin * 2 + core_footer_height; // eslint-disable-line | ||
/** | ||
* Distance between trashcan and right edge of workspace. | ||
* @type {number} | ||
* @private | ||
*/ | ||
Blockly.Trashcan.prototype.MARGIN_SIDE_ = margin; // eslint-disable-line | ||
|
||
/** | ||
* Distance between trashcan and right edge of workspace. | ||
* @type {number} | ||
* @private | ||
*/ | ||
Blockly.Trashcan.prototype.MARGIN_SIDE_ = trashcan_margin; // eslint-disable-line | ||
/** | ||
* Inspect the contents of the trash. | ||
* @deriv/bot: Noop for us, restore original functionality when trashcan can be inspected. | ||
*/ | ||
Blockly.Trashcan.prototype.click = function () {}; | ||
|
||
/** | ||
* Inspect the contents of the trash. | ||
* @deriv/bot: Noop for us, restore original functionality when trashcan can be inspected. | ||
*/ | ||
Blockly.Trashcan.prototype.click = function () {}; | ||
window.dispatchEvent(new Event('resize')); // trigger UI update | ||
}; |
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
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
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,19 @@ | ||
const baseConfigForPackages = require('../../jest.config.base'); | ||
|
||
module.exports = { | ||
...baseConfigForPackages, | ||
clearMocks: true, | ||
moduleNameMapper: { | ||
'\\.s(c|a)ss$': '<rootDir>/../../__mocks__/styleMock.js', | ||
'^.+\\.svg$': '<rootDir>/../../__mocks__/styleMock.js', | ||
'^App/(.*)$': '<rootDir>/src/app/$1', | ||
'^Components/(.*)$': '<rootDir>/src/components/$1', | ||
'^Constants/(.*)$': '<rootDir>/src/constants/$1', | ||
'^Stores/(.*)$': '<rootDir>/src/stores/$1', | ||
'^Utils/(.*)$': '<rootDir>/src/utils/$1', | ||
}, | ||
collectCoverageFrom: ['**/*.{js,jsx,ts,tsx}', '!**/node_modules/**'], | ||
globals: { | ||
__webpack_public_path__: '/', | ||
}, | ||
}; |
Oops, something went wrong.