Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-30530: Create a base for the new UDW
- Loading branch information
Piotr Nalepa
committed
May 10, 2019
1 parent
1235328
commit 364ce96
Showing
19 changed files
with
1,432 additions
and
148 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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
const path = require('path'); | ||
|
||
module.exports = (Encore) => { | ||
Encore.addEntry('ezplatform-admin-ui-modules-udw-js', [ | ||
path.resolve(__dirname, '../../src/modules/universal-discovery/universal.discovery.module.js'), | ||
]) | ||
.addEntry('ezplatform-admin-ui-modules-mfu-js', [ | ||
path.resolve(__dirname, '../../src/modules/multi-file-upload/multi.file.upload.module.js'), | ||
]) | ||
.addEntry('ezplatform-admin-ui-modules-subitems-js', [path.resolve(__dirname, '../../src/modules/sub-items/sub.items.module.js')]) | ||
.addEntry('ezplatform-admin-ui-modules-content-tree-js', [ | ||
path.resolve(__dirname, '../../src/modules/content-tree/content.tree.module.js'), | ||
]); | ||
Encore.addEntry('ezplatform-admin-ui-modules-udw-js', [ | ||
path.resolve(__dirname, '../../src/modules/universal-discovery/universal.discovery.module.js'), | ||
]) | ||
.addEntry('ezplatform-admin-ui-modules-mfu-js', [ | ||
path.resolve(__dirname, '../../src/modules/multi-file-upload/multi.file.upload.module.js'), | ||
]) | ||
.addEntry('ezplatform-admin-ui-modules-subitems-js', [path.resolve(__dirname, '../../src/modules/sub-items/sub.items.module.js')]) | ||
.addEntry('ezplatform-admin-ui-modules-content-tree-js', [ | ||
path.resolve(__dirname, '../../src/modules/content-tree/content.tree.module.js'), | ||
]) | ||
.addEntry('ezplatform-admin-ui-modules-udw-v2-js', [path.resolve(__dirname, '../../src/modules/udw/udw.module.js')]); | ||
}; |
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,5 @@ | ||
.ez-udw-module { | ||
.c-popup__body { | ||
padding: calculateRem(16px); | ||
} | ||
} |
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,10 @@ | ||
module.exports = { | ||
verbose: false, | ||
testMatch: [ | ||
'**/src/modules/udw/__tests__/**/*.[jt]s?(x)', | ||
'**/src/modules/udw/?(*.)+(spec|test).[jt]s?(x)', | ||
'**/src/modules/common/**/__tests__/**/*.[jt]s?(x)', | ||
'**/src/modules/common/**/?(*.)+(spec|test).[jt]s?(x)', | ||
], | ||
setupFiles: ['./jest.setup.js'], | ||
}; |
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,14 @@ | ||
import { ezConfigMock } from './jest.window.mock'; | ||
import $ from 'jquery'; | ||
|
||
global.$ = $; | ||
global.jQuery = $; | ||
global.$.fn.modal = jest.fn(); | ||
global.eZ = { | ||
...ezConfigMock, | ||
addConfig: jest.fn(), | ||
}; | ||
|
||
global.Translator = { | ||
trans: jest.fn(), | ||
}; |
Oops, something went wrong.