mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 22:18:01 -03:30
Add tooling for building static files
This commit is contained in:
parent
10f324110e
commit
abcf8fea96
@ -11,11 +11,6 @@
|
||||
"plugins": ["react-hooks"],
|
||||
"extends": ["airbnb", "prettier", "prettier/react"],
|
||||
"settings": {
|
||||
"import/resolver": {
|
||||
"webpack": {
|
||||
"config": "webpack.config.js"
|
||||
}
|
||||
},
|
||||
"react": {
|
||||
"version": "16.5.2"
|
||||
}
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
process (src, filename) {
|
||||
return `module.exports=${JSON.stringify(path.basename(filename))};`;
|
||||
},
|
||||
};
|
||||
@ -1 +0,0 @@
|
||||
module.exports = {};
|
||||
@ -1,18 +0,0 @@
|
||||
module.exports = api => {
|
||||
api.cache(false);
|
||||
return {
|
||||
plugins: [
|
||||
'babel-plugin-styled-components',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'macros'
|
||||
],
|
||||
presets: [
|
||||
['@babel/preset-env', {
|
||||
targets: {
|
||||
node: '8.11'
|
||||
}
|
||||
}],
|
||||
'@babel/preset-react'
|
||||
]
|
||||
};
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
awx/ui_next/dist/index.html
vendored
7
awx/ui_next/dist/index.html
vendored
@ -1,7 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<body>
|
||||
<div id="app" style="height: 100%"></div>
|
||||
<script src="/bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,232 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{display:none;}
|
||||
.st1{display:inline;fill:#ED1C24;}
|
||||
.st2{fill:#42210B;}
|
||||
.st3{fill:#FFFFFF;}
|
||||
.st4{fill:#C69C6D;stroke:#8C6239;stroke-width:5;stroke-miterlimit:10;}
|
||||
.st5{fill:#FFFFFF;stroke:#42210B;stroke-width:3;stroke-miterlimit:10;}
|
||||
.st6{fill:#ED1C24;stroke:#8C6239;stroke-width:5;stroke-miterlimit:10;}
|
||||
.st7{fill:#A67C52;}
|
||||
.st8{fill:#ED1C24;}
|
||||
</style>
|
||||
<g class="st0">
|
||||
<path class="st1" d="M319.8,169.3c1.5-14.2,13.7-27.2,29.9-31.9c-13.1,1.5-27.3-1.7-36-10c-8.7-8.3-10-21.9-1.4-30.1
|
||||
c-12,6.7-28.1,8.1-41.4,3.4c-13.3-4.6-23.5-15.1-26.2-26.9c-2-8.8,0-17.9,2-26.7c-6.2,9.4-17.6,17.3-30.5,17.3
|
||||
c-12.9,0.1-25.7-10.2-22.9-20.7c-5.5,7.8-11.4,15.9-21,20.2c-9.5,4.3-23.7,2.7-28.2-5.5c-1.6,10.8-7.5,22-19.1,27
|
||||
c-9,3.9-21.5,2.2-28-3.8c5.7,11.4,4.3,25.3-4.1,35.6c-9.9,12.2-29.1,18.6-46.4,15.6c14.7,7.2,28.5,17.7,32.1,31.5
|
||||
c3.7,13.8-7.1,30.7-24.1,31.7c13.6,3.1,28,7.4,35.6,17.2c7.6,9.8,2.9,26.4-11.1,28c12.8-2.6,27.4,3.9,31.9,14.2
|
||||
c4.1,9.5-0.9,20.9-10.9,26.5c18.6-8.9,41-17.1,59.6-8.8c13.9,6.2,20.8,21.6,15.1,33.8c10.4-10.6,23-21.3,39.2-23.5
|
||||
c12.8-1.8,27.5,4.6,31.9,14.1c-0.3-12.7,6.1-25.5,17.5-34c13.8-10.3,34.4-14,52-9.2c-11.1-7.8-14.9-22-8.9-33
|
||||
c6-11,21.3-18,35.7-16.2C327.5,198.1,318.3,183.5,319.8,169.3z"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st2" d="M179.7,297.3c-10.1,3.2-20.3,6-30.6,8.4c-10.7,2.5-21.7,5-32.8,5.1C96,311.1,79.9,297.2,60,296.1
|
||||
c-5.8-0.3-5.8,8.7,0,9c9.9,0.5,18.9,5.1,27.9,8.8c9.8,4,19.6,6.3,30.2,5.9c21.5-0.8,43.5-7.4,64-13.8
|
||||
C187.6,304.3,185.2,295.6,179.7,297.3L179.7,297.3z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st2" d="M322.2,194.8c17.9-8,36-18.5,44.3-37.2c4.2-9.3,6-19.2,7.2-29.3c1.5-11.7,2.5-23.4,3.7-35.2
|
||||
c0.6-5.8-8.4-5.7-9,0c-1.1,10.3-2.1,20.6-3.3,30.9c-1.1,9.7-2.5,19.7-6.4,28.7c-7.5,17.5-24.6,26.8-41.2,34.2
|
||||
C312.4,189.4,316.9,197.2,322.2,194.8L322.2,194.8z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
|
||||
<ellipse transform="matrix(0.5541 -0.8324 0.8324 0.5541 -219.4917 376.0051)" class="st2" cx="241.2" cy="392.9" rx="65.5" ry="33.7"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st3" d="M224.1,442.5c22-11.5,38.7-31,47.1-54.3c2-5.5-6.7-7.8-8.7-2.4c-7.6,21.1-23.1,38.5-43,48.9
|
||||
C214.4,437.4,218.9,445.1,224.1,442.5L224.1,442.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
|
||||
<ellipse transform="matrix(0.9684 -0.2494 0.2494 0.9684 -66.4734 109.0276)" class="st2" cx="397" cy="316.8" rx="63.9" ry="32.9"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st3" d="M363.8,341.5c28.3,7,58.7-0.8,80.2-20.5c4.3-3.9-2.1-10.3-6.4-6.4c-19.1,17.5-46.4,24.4-71.5,18.2
|
||||
C360.5,331.5,358.1,340.1,363.8,341.5L363.8,341.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<path class="st4" d="M156.9,96c-25.4,4.5-32.9,20.2-45,46.9c-20.2,44.4,2,90.3,5.6,97.5c18.4,36.5,42.3,36.8,60,80.6
|
||||
c8.6,21.2,4.6,25.2,13.1,37.5c20.4,29.2,63.7,36.1,91.9,33.8c40.3-3.3,91.5-28.8,108.8-82.5c17.1-53.2-6-112.1-41.2-131.2
|
||||
c-25.3-13.7-44.9-0.5-71.2-20.6c-21.6-16.5-18.4-33.1-37.5-48.8C227.9,98.1,203.7,87.7,156.9,96z"/>
|
||||
<ellipse transform="matrix(0.6622 -0.7494 0.7494 0.6622 65.2068 309.6339)" class="st2" cx="376" cy="82.5" rx="21" ry="15.5"/>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st3" d="M379.8,75.3c0.8,0.2-0.6-0.4-0.1-0.1c0.2,0.1,0.3,0.2,0.5,0.3c0.4,0.2-0.6-0.7-0.1-0.1
|
||||
c0.1,0.1,0.7,0.8,0.2,0.2c-0.4-0.5,0,0,0.1,0.1c0.4,0.7,0,0.2,0-0.2c0,0.1,0.1,0.4,0.2,0.5c0.3,0.9-0.1-1,0-0.1
|
||||
c0.1,2.3,2,4.6,4.5,4.5c2.3-0.1,4.6-2,4.5-4.5c-0.3-4.4-3-8.1-7.3-9.4c-2.2-0.7-5,0.8-5.5,3.1C376.1,72.2,377.4,74.5,379.8,75.3
|
||||
L379.8,75.3z"/>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<ellipse transform="matrix(0.9999 -1.433736e-02 1.433736e-02 0.9999 -4.303 0.8051)" class="st2" cx="54" cy="300.5" rx="21" ry="15.5"/>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st3" d="M52.2,297.5c1.1-0.3,1.4-0.4,2.5,0c0.8,0.3,1.3,0.7,2,1.7c1.5,1.9,4.8,1.6,6.4,0c1.9-1.9,1.5-4.4,0-6.4
|
||||
c-3.1-3.9-8.6-5.4-13.3-4C44.3,290.5,46.7,299.2,52.2,297.5L52.2,297.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st2" d="M149.3,108.8c4.9-10.8-1.3-24.2-12.9-26.9c-1.9-0.4-2.7,2.4-0.8,2.9c9.6,2.3,15.3,13.5,11.2,22.5
|
||||
C145.9,109,148.5,110.5,149.3,108.8L149.3,108.8z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st2" d="M141.2,112.3c2.4-9.4-5.4-19.3-15.2-19c-1.9,0.1-1.9,3.1,0,3c7.8-0.2,14.2,7.6,12.3,15.2
|
||||
C137.8,113.4,140.7,114.2,141.2,112.3L141.2,112.3z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st2" d="M132.6,118c-1.1-8.3-10.9-13.4-18.2-9.1c-1.7,1-0.2,3.6,1.5,2.6c5.2-3,12.9,0.4,13.7,6.5
|
||||
C129.8,119.9,132.8,119.9,132.6,118L132.6,118z"/>
|
||||
</g>
|
||||
</g>
|
||||
<path class="st5" d="M215.5,166.5l34-73c0,0,35,0,46,21c7.5,14.3,8,39,8,39L215.5,166.5z"/>
|
||||
<path class="st5" d="M208.2,170.5l-79.5-12.7c0,0-19.6,29-8.4,49.9c7.6,14.2,27.8,28.5,27.8,28.5L208.2,170.5z"/>
|
||||
<path class="st2" d="M210.5,164.5l33-74c0,0-2.5-5.5-8-7s-12,0-12,0L210.5,164.5z"/>
|
||||
<path class="st2" d="M207.4,165.3l-73.1-35c0,0-5.6,2.4-7.2,7.8c-1.6,5.5-0.3,12-0.3,12L207.4,165.3z"/>
|
||||
<path d="M215.5,166.5L234,127c0,0,17-6,25.5,7.5c8.6,13.6-3.5,25.5-3.5,25.5L215.5,166.5z"/>
|
||||
<path d="M206.7,170.9l-29.6,32c0,0-18,0.5-22-14.9c-4-15.6,11.1-23.2,11.1-23.2L206.7,170.9z"/>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st3" d="M243.4,139.1c-0.6,0.2-0.7,0.3-0.4,0.2c0.3-0.1,0.2-0.1-0.5,0.1c0.7,0-0.3,0-0.4-0.1c0.1,0,0.3,0.1,0.4,0.1
|
||||
c0.3,0.1,0.2,0-0.4-0.2c0,0,0.6,0.3,0.6,0.3c0.5,0.2-0.9-0.6-0.1-0.1c0.6,0.4-0.3-0.5-0.1-0.1c0.3,0.5-0.3-1-0.1-0.2
|
||||
c0.2,0.8,0-1,0-0.1c0,2.4,2.1,4.6,4.5,4.5c2.5-0.1,4.5-2,4.5-4.5c0-3-1.6-5.7-4.1-7.3c-2.6-1.7-5.6-1.6-8.4-0.4
|
||||
c-2.2,0.9-2.8,4.3-1.6,6.2C238.7,139.7,241,140.1,243.4,139.1L243.4,139.1z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st3" d="M173.5,176.4c-0.5-0.3-0.1,0,0.2,0.1c-0.7-0.6,0.3,0.5,0.1,0c-0.3-0.5,0.4,0.8,0.1,0.2
|
||||
c-0.4-0.8,0.2,0.2,0,0.1c0,0,0-0.6,0-0.6c-0.1,0.1-0.1,1,0,0.3c-0.1,0.2-0.1,0.3-0.2,0.5c0.2-0.3,0.2-0.4,0-0.1
|
||||
c-0.2,0.2-0.2,0.3-0.1,0.1c0.2-0.2,0.1-0.2-0.3,0.2c1.9-1.4,3-4,1.6-6.2c-1.2-1.9-4.1-3.1-6.2-1.6c-2.4,1.7-4,4.3-3.9,7.4
|
||||
c0.1,3,1.6,5.7,4.1,7.3c2,1.2,5,0.5,6.2-1.6C176.3,180.4,175.7,177.7,173.5,176.4L173.5,176.4z"/>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<ellipse transform="matrix(0.862 -0.5069 0.5069 0.862 -88.3186 186.5516)" class="st6" cx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||||
<g>
|
||||
<g>
|
||||
<path class="st7" d="M265.9,179.6c0.2,0.4,0.5,0.9,0.7,1.3c0.6,1.1,1.8,2,3,2.3c1.2,0.3,2.8,0.2,3.9-0.5c1.1-0.7,2-1.7,2.3-3
|
||||
c0.3-1.4,0.1-2.6-0.5-3.9c-0.2-0.4-0.5-0.9-0.7-1.3c-0.6-1.1-1.8-2-3-2.3c-1.2-0.3-2.8-0.2-3.9,0.5c-1.1,0.7-2,1.7-2.3,3
|
||||
C265.1,177.1,265.3,178.3,265.9,179.6L265.9,179.6z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st7" d="M200.4,295.8c-6.1,1.6-8.1,8.6-5,13.7c2.8,4.7,9.1,7.2,14.3,5.4c4.9-1.7,7.8-7.1,6.3-12.2
|
||||
c-0.8-2.7-2.7-4.8-5.3-5.8c-1.4-0.5-2.8-0.7-4.2-0.8c-0.1,0-0.9-0.1-0.9-0.1c0.2-0.4,1.2,2.5,0.9,0.7c0,0.9,0,1.8,0,2.7
|
||||
c-0.1,0.1-0.1,0.1-0.2,0.2c3.1-5.6-5.5-10.7-8.6-5c-1.7,3-1.1,6.6,1.4,9c1.3,1.2,2.8,2,4.5,2.3c0.8,0.1,1.6,0.2,2.4,0.3
|
||||
c0.4,0,0.7,0,1.1,0.1c0.2,0.1,0.1,0.1-0.2-0.1c0,0.1-0.6-0.5-0.6-0.5c-0.1-0.1-0.1-0.2,0-0.3c0.1-0.3,0.1-0.1-0.1,0.5
|
||||
c-0.3-0.1,0.7-0.2-0.3-0.3c-0.9-0.1-1.1-0.6-1.8-0.9c0,0-0.2-0.3-0.3-0.3c0.3,0-0.8,1.2-0.8,1.2
|
||||
C209.3,303.8,206.6,294.2,200.4,295.8L200.4,295.8z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st7" d="M244.8,355.3c-4-6.2-11.2-2.3-12,3.9c-0.8,5.9,1.8,12,6.5,15.6c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-0.5-1-0.2,0.6,0.7
|
||||
c0.2,0.8,0.5,1.7,0.7,2.5c-3.4,1.1-4.4,1.9-2.8,2.7c0.4,0.2,0.7,0.4,1.1,0.7C336.9,349.6,341.9,340.9,336.5,337.4L336.5,337.4z"
|
||||
/>
|
||||
</g>
|
||||
</g>
|
||||
<path class="st3" d="M224.3,256.5L252,273v-40l32,20v-38l28,17l4-28l23,12l-3-24c0,0-14-8-35.5-6.4c-11.6,0.9-24.3,6.8-33.5,11.4
|
||||
c-14,7-23.7,18.9-31.2,29.1C227,238,224.3,256.5,224.3,256.5z"/>
|
||||
<path class="st3" d="M372.9,248.9l-28.8-14.5l2.9,39.9l-33.3-17.7l2.7,37.9l-29.1-15l-2,28.2l-23.8-10.3l4.7,23.7
|
||||
c0,0,14.5,7,35.9,3.8c11.5-1.7,23.7-8.5,32.6-13.8c13.5-8,22.3-20.5,29-31.2C371.5,267.5,372.9,248.9,372.9,248.9z"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st8" d="M235.2,121.6c8.5-3.1,23.2-0.1,27.8,8.4c2.3,4.4,4.5,9.9,4.5,14.9c0.1,5.5-2.7,10.5-5.3,15.3
|
||||
c-1.5,2.8,2.8,5.4,4.3,2.5c3.1-5.8,6.3-11.9,6-18.7c-0.3-6-2.8-12.8-5.9-17.9c-6-9.5-22.6-13.1-32.7-9.4
|
||||
C230.9,117.8,232.2,122.7,235.2,121.6L235.2,121.6z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st8" d="M241.1,110.5c11.6-2.3,25.6,2.3,32.2,12.4c6.6,10.2,6.1,22.8,3.1,34.2c-1.3,5,6.4,7.1,7.7,2.1
|
||||
c3.8-14.3,3.8-30.3-5.5-42.6c-8.9-11.7-25.5-16.6-39.6-13.8C233.9,103.8,236.1,111.5,241.1,110.5L241.1,110.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st8" d="M245.4,97.5c7.8-1.8,15.5,0,22.9,2.8c7.2,2.7,15,6.1,20.3,11.8c10.7,11.7,9.5,29.3,8.7,44
|
||||
c-0.3,6.4,9.7,6.4,10,0c1-17.9,1.2-38.5-12.7-52.1c-6.4-6.3-15.3-10.2-23.6-13.3c-9.1-3.4-18.6-4.9-28.2-2.8
|
||||
C236.5,89.2,239.1,98.9,245.4,97.5L245.4,97.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st8" d="M155.8,158.5c-13.1,4.8-14.2,21.6-10.1,33.1c4.3,12,15.2,20.6,28.2,20.5c3.2,0,3.2-5,0-5
|
||||
c-9.9,0.1-18.6-5.9-22.6-14.9c-3.9-8.6-5.2-24.8,5.8-28.9C160.2,162.3,158.9,157.4,155.8,158.5L155.8,158.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st8" d="M164.1,216.5c-11.4-2.2-18.8-11.4-22.7-21.9c-3.6-9.6-7.7-25.3,1.2-33.1c3.9-3.4-1.8-9-5.7-5.7
|
||||
c-11.3,9.9-7.9,28.5-3.3,40.9c4.8,13,14.1,24.7,28.3,27.5C167,225.2,169.1,217.5,164.1,216.5L164.1,216.5z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st8" d="M152,231.7c-27.3-13.3-38.1-46.5-23.3-73.2c3.1-5.6-5.5-10.7-8.6-5c-17.3,31.2-5.3,71.1,26.9,86.9
|
||||
C152.7,243.1,157.8,234.5,152,231.7L152,231.7z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB |
@ -1,35 +0,0 @@
|
||||
module.exports = {
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{js,jsx}',
|
||||
'testUtils/**/*.{js,jsx}'
|
||||
],
|
||||
coveragePathIgnorePatterns: [
|
||||
'<rootDir>/src/locales',
|
||||
'index.js'
|
||||
],
|
||||
moduleNameMapper: {
|
||||
'\\.(css|scss|less)$': '<rootDir>/__mocks__/styleMock.js',
|
||||
},
|
||||
setupFiles: [
|
||||
'@nteract/mockument'
|
||||
],
|
||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
snapshotSerializers: [
|
||||
"enzyme-to-json/serializer"
|
||||
],
|
||||
testMatch: [
|
||||
'<rootDir>/**/*.test.{js,jsx}'
|
||||
],
|
||||
testEnvironment: 'jsdom',
|
||||
testURL: 'http://127.0.0.1:3001',
|
||||
transform: {
|
||||
'^.+\\.(js|jsx)$': 'babel-jest',
|
||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'[/\\\\]node_modules[/\\\\].+\\.(?!(axios)/)(js|jsx)$'
|
||||
],
|
||||
watchPathIgnorePatterns: [
|
||||
'<rootDir>/node_modules'
|
||||
]
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
require('@babel/polyfill');
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const asyncFlush = () => new Promise((resolve) => setImmediate(resolve));
|
||||
|
||||
const enzyme = require('enzyme');
|
||||
const Adapter = require('enzyme-adapter-react-16');
|
||||
|
||||
jest.setTimeout(5000 * 4);
|
||||
|
||||
enzyme.configure({ adapter: new Adapter() });
|
||||
24806
awx/ui_next/package-lock.json
generated
24806
awx/ui_next/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,41 @@
|
||||
{
|
||||
"name": "awx-react",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.jsx",
|
||||
"name": "ui_next",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@lingui/react": "^2.9.1",
|
||||
"@patternfly/patternfly": "^2.71.3",
|
||||
"@patternfly/react-core": "^3.153.3",
|
||||
"@patternfly/react-icons": "^3.15.15",
|
||||
"@patternfly/react-tokens": "^2.8.12",
|
||||
"@testing-library/jest-dom": "^4.2.4",
|
||||
"@testing-library/react": "^9.3.2",
|
||||
"@testing-library/user-event": "^7.1.2",
|
||||
"ansi-to-html": "^0.6.11",
|
||||
"axios": "^0.18.1",
|
||||
"codemirror": "^5.47.0",
|
||||
"d3": "^5.12.0",
|
||||
"dagre": "^0.8.4",
|
||||
"formik": "^2.1.2",
|
||||
"has-ansi": "^3.0.0",
|
||||
"html-entities": "^1.2.1",
|
||||
"js-yaml": "^3.13.1",
|
||||
"prop-types": "^15.6.2",
|
||||
"react": "^16.13.1",
|
||||
"react-codemirror2": "^6.0.0",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-router-dom": "^5.1.2",
|
||||
"react-scripts": "3.4.1",
|
||||
"react-virtualized": "^9.21.1",
|
||||
"rrule": "^2.6.4",
|
||||
"styled-components": "^4.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "webpack-dev-server --config ./webpack.config.js --mode development",
|
||||
"test": "TZ='UTC' jest --coverage",
|
||||
"test-watch": "TZ='UTC' jest --watch",
|
||||
"start": "PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "TZ='UTC' react-scripts test --coverage --watchAll=false",
|
||||
"test-watch": "TZ='UTC' react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "eslint --ext .js --ext .jsx .",
|
||||
"add-locale": "lingui add-locale",
|
||||
"extract-strings": "lingui extract",
|
||||
@ -14,25 +43,23 @@
|
||||
"prettier": "prettier --write \"src/**/*.{js,jsx,scss}\"",
|
||||
"prettier-check": "prettier --check \"src/**/*.{js,jsx,scss}\""
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "Apache",
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.3",
|
||||
"@babel/plugin-proposal-class-properties": "^7.1.0",
|
||||
"@babel/polyfill": "^7.0.0",
|
||||
"@babel/preset-env": "^7.8.3",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@lingui/cli": "^2.7.4",
|
||||
"@lingui/macro": "^2.7.2",
|
||||
"@babel/polyfill": "^7.8.7",
|
||||
"@lingui/cli": "^2.9.1",
|
||||
"@lingui/macro": "^2.9.1",
|
||||
"@nteract/mockument": "^1.0.4",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-jest": "^25.1.0",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-macros": "^2.4.2",
|
||||
"babel-plugin-styled-components": "^1.10.0",
|
||||
"css-loader": "^1.0.0",
|
||||
"enzyme": "^3.10.0",
|
||||
"enzyme-adapter-react-16": "^1.14.0",
|
||||
"enzyme-to-json": "^3.3.5",
|
||||
@ -44,40 +71,20 @@
|
||||
"eslint-plugin-jsx-a11y": "^6.1.1",
|
||||
"eslint-plugin-react": "^7.11.1",
|
||||
"eslint-plugin-react-hooks": "^2.2.0",
|
||||
"file-loader": "^2.0.0",
|
||||
"history": "^4.9.0",
|
||||
"jest": "^25.1.0",
|
||||
"node-sass": "^4.13.1",
|
||||
"prettier": "^1.18.2",
|
||||
"react-hot-loader": "^4.3.3",
|
||||
"sass-loader": "^7.1.0",
|
||||
"style-loader": "^0.23.0",
|
||||
"webpack": "^4.41.2",
|
||||
"webpack-cli": "^3.0.8",
|
||||
"webpack-dev-server": "^3.1.14"
|
||||
"http-proxy-middleware": "^1.0.3",
|
||||
"prettier": "^1.18.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lingui/react": "^2.7.2",
|
||||
"@patternfly/patternfly": "^2.71.3",
|
||||
"@patternfly/react-core": "^3.153.3",
|
||||
"@patternfly/react-icons": "^3.15.15",
|
||||
"@patternfly/react-tokens": "^2.8.12",
|
||||
"ansi-to-html": "^0.6.11",
|
||||
"axios": "^0.18.1",
|
||||
"codemirror": "^5.47.0",
|
||||
"d3": "^5.12.0",
|
||||
"dagre": "^0.8.4",
|
||||
"formik": "^2.1.2",
|
||||
"has-ansi": "^3.0.0",
|
||||
"html-entities": "^1.2.1",
|
||||
"js-yaml": "^3.13.1",
|
||||
"prop-types": "^15.6.2",
|
||||
"react": "^16.13.0",
|
||||
"react-codemirror2": "^6.0.0",
|
||||
"react-dom": "^16.13.0",
|
||||
"react-router-dom": "^5.1.2",
|
||||
"react-virtualized": "^9.21.1",
|
||||
"rrule": "^2.6.4",
|
||||
"styled-components": "^4.2.0"
|
||||
"jest": {
|
||||
"snapshotSerializers": [
|
||||
"enzyme-to-json/serializer"
|
||||
],
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.{js,jsx}",
|
||||
"testUtils/**/*.{js,jsx}"
|
||||
],
|
||||
"coveragePathIgnorePatterns": [
|
||||
"<rootDir>/src/locales",
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
BIN
awx/ui_next/public/images/pfbg_2000.jpg
Normal file
BIN
awx/ui_next/public/images/pfbg_2000.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 270 KiB |
BIN
awx/ui_next/public/images/pfbg_576.jpg
Normal file
BIN
awx/ui_next/public/images/pfbg_576.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
BIN
awx/ui_next/public/images/pfbg_576@2x.jpg
Normal file
BIN
awx/ui_next/public/images/pfbg_576@2x.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
BIN
awx/ui_next/public/images/pfbg_768.jpg
Normal file
BIN
awx/ui_next/public/images/pfbg_768.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
BIN
awx/ui_next/public/images/pfbg_768@2x.jpg
Normal file
BIN
awx/ui_next/public/images/pfbg_768@2x.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 354 KiB |
17
awx/ui_next/public/index.html
Normal file
17
awx/ui_next/public/index.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="AWX"
|
||||
/>
|
||||
<title>AWX</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="app" style="height: 100%"></div>
|
||||
</body>
|
||||
</html>
|
||||
284
awx/ui_next/src/locales/en/messages.js
Normal file
284
awx/ui_next/src/locales/en/messages.js
Normal file
@ -0,0 +1,284 @@
|
||||
/* eslint-disable */ module.exports = {
|
||||
languageData: {
|
||||
plurals: function(n, ord) {
|
||||
var s = String(n).split('.'),
|
||||
v0 = !s[1],
|
||||
t0 = Number(s[0]) == n,
|
||||
n10 = t0 && s[0].slice(-1),
|
||||
n100 = t0 && s[0].slice(-2);
|
||||
if (ord)
|
||||
return n10 == 1 && n100 != 11
|
||||
? 'one'
|
||||
: n10 == 2 && n100 != 12
|
||||
? 'two'
|
||||
: n10 == 3 && n100 != 13
|
||||
? 'few'
|
||||
: 'other';
|
||||
return n == 1 && v0 ? 'one' : 'other';
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
'404': '404',
|
||||
'> add': '> add',
|
||||
'> edit': '> edit',
|
||||
'AWX Logo': 'AWX Logo',
|
||||
About: 'About',
|
||||
'AboutModal Logo': 'AboutModal Logo',
|
||||
Access: 'Access',
|
||||
Add: 'Add',
|
||||
'Add Roles': 'Add Roles',
|
||||
'Add Team Roles': 'Add Team Roles',
|
||||
'Add User Roles': 'Add User Roles',
|
||||
Administration: 'Administration',
|
||||
Admins: 'Admins',
|
||||
'Ansible Environment': 'Ansible Environment',
|
||||
'Ansible Version': 'Ansible Version',
|
||||
Applications: 'Applications',
|
||||
'Apply roles': 'Apply roles',
|
||||
'Are you sure you want to delete:': 'Are you sure you want to delete:',
|
||||
'Are you sure you want to remove {0} access from {1}? Doing so affects all members of the team.': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'Are you sure you want to remove ',
|
||||
a('0'),
|
||||
' access from ',
|
||||
a('1'),
|
||||
'? Doing so affects all members of the team.',
|
||||
];
|
||||
},
|
||||
'Are you sure you want to remove {0} access from {username}?': function(a) {
|
||||
return [
|
||||
'Are you sure you want to remove ',
|
||||
a('0'),
|
||||
' access from ',
|
||||
a('username'),
|
||||
'?',
|
||||
];
|
||||
},
|
||||
Authentication: 'Authentication',
|
||||
'Authentication Settings': 'Authentication Settings',
|
||||
'Brand Image': 'Brand Image',
|
||||
Cancel: 'Cancel',
|
||||
'Cannot find organization with ID': 'Cannot find organization with ID',
|
||||
'Cannot find resource.': 'Cannot find resource.',
|
||||
'Cannot find route {0}.': function(a) {
|
||||
return ['Cannot find route ', a('0'), '.'];
|
||||
},
|
||||
Close: 'Close',
|
||||
Collapse: 'Collapse',
|
||||
'Copyright 2018 Red Hat, Inc.': 'Copyright 2018 Red Hat, Inc.',
|
||||
'Copyright 2019 Red Hat, Inc.': 'Copyright 2019 Red Hat, Inc.',
|
||||
'Create New Organization': 'Create New Organization',
|
||||
Created: 'Created',
|
||||
'Credential Types': 'Credential Types',
|
||||
Credentials: 'Credentials',
|
||||
'Current page': 'Current page',
|
||||
Dashboard: 'Dashboard',
|
||||
Delete: 'Delete',
|
||||
'Delete {0}': function(a) {
|
||||
return ['Delete ', a('0')];
|
||||
},
|
||||
'Delete {itemName}': function(a) {
|
||||
return ['Delete ', a('itemName')];
|
||||
},
|
||||
Description: 'Description',
|
||||
Details: 'Details',
|
||||
Edit: 'Edit',
|
||||
'Edit Details': 'Edit Details',
|
||||
Expand: 'Expand',
|
||||
Failure: 'Failure',
|
||||
First: 'First',
|
||||
'Go to first page': 'Go to first page',
|
||||
'Go to last page': 'Go to last page',
|
||||
'Go to next page': 'Go to next page',
|
||||
'Go to previous page': 'Go to previous page',
|
||||
Help: 'Help',
|
||||
'If you {0} want to remove access for this particular user, please remove them from the team.': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'If you ',
|
||||
a('0'),
|
||||
' want to remove access for this particular user, please remove them from the team.',
|
||||
];
|
||||
},
|
||||
Info: 'Info',
|
||||
'Instance Groups': 'Instance Groups',
|
||||
Integrations: 'Integrations',
|
||||
'Invalid username or password. Please try again.':
|
||||
'Invalid username or password. Please try again.',
|
||||
Inventories: 'Inventories',
|
||||
'Inventory Scripts': 'Inventory Scripts',
|
||||
'Items Per Page': 'Items Per Page',
|
||||
'Items per page': 'Items per page',
|
||||
'Items {itemMin} \u2013 {itemMax} of {count}': function(a) {
|
||||
return [
|
||||
'Items ',
|
||||
a('itemMin'),
|
||||
' \u2013 ',
|
||||
a('itemMax'),
|
||||
' of ',
|
||||
a('count'),
|
||||
];
|
||||
},
|
||||
Jobs: 'Jobs',
|
||||
'Jobs Settings': 'Jobs Settings',
|
||||
Last: 'Last',
|
||||
'Last Modified': 'Last Modified',
|
||||
'Last Name': 'Last Name',
|
||||
License: 'License',
|
||||
'Loading...': 'Loading...',
|
||||
Logout: 'Logout',
|
||||
'Management Jobs': 'Management Jobs',
|
||||
Members: 'Members',
|
||||
Modified: 'Modified',
|
||||
'My View': 'My View',
|
||||
Name: 'Name',
|
||||
Next: 'Next',
|
||||
'No {0} Found': function(a) {
|
||||
return ['No ', a('0'), ' Found'];
|
||||
},
|
||||
'Notification Templates': 'Notification Templates',
|
||||
Notifications: 'Notifications',
|
||||
'Organization Add': 'Organization Add',
|
||||
'Organization detail tabs': 'Organization detail tabs',
|
||||
Organizations: 'Organizations',
|
||||
'Organizations List': 'Organizations List',
|
||||
Page: 'Page',
|
||||
'Page <0/> of {pageCount}': function(a) {
|
||||
return ['Page <0/> of ', a('pageCount')];
|
||||
},
|
||||
'Page Number': 'Page Number',
|
||||
Pagination: 'Pagination',
|
||||
Password: 'Password',
|
||||
'Per Page': 'Per Page',
|
||||
'Please add {0} to populate this list': function(a) {
|
||||
return ['Please add ', a('0'), ' to populate this list'];
|
||||
},
|
||||
'Please add {0} {itemName} to populate this list': function(a) {
|
||||
return [
|
||||
'Please add ',
|
||||
a('0'),
|
||||
' ',
|
||||
a('itemName'),
|
||||
' to populate this list',
|
||||
];
|
||||
},
|
||||
'Portal Mode': 'Portal Mode',
|
||||
Previous: 'Previous',
|
||||
'Primary Navigation': 'Primary Navigation',
|
||||
Projects: 'Projects',
|
||||
'Remove {0} Access': function(a) {
|
||||
return ['Remove ', a('0'), ' Access'];
|
||||
},
|
||||
Resources: 'Resources',
|
||||
Save: 'Save',
|
||||
Schedules: 'Schedules',
|
||||
Search: 'Search',
|
||||
'Search text input': 'Search text input',
|
||||
Select: 'Select',
|
||||
'Select Input': 'Select Input',
|
||||
'Select Users Or Teams': 'Select Users Or Teams',
|
||||
'Select a row to delete': 'Select a row to delete',
|
||||
'Select all': 'Select all',
|
||||
'Select items from list': 'Select items from list',
|
||||
'Select the Instance Groups for this Organization to run on.':
|
||||
'Select the Instance Groups for this Organization to run on.',
|
||||
'Select {header}': function(a) {
|
||||
return ['Select ', a('header')];
|
||||
},
|
||||
Selected: 'Selected',
|
||||
Settings: 'Settings',
|
||||
Sort: 'Sort',
|
||||
Successful: 'Successful',
|
||||
System: 'System',
|
||||
'System Settings': 'System Settings',
|
||||
Team: 'Team',
|
||||
'Team Roles': 'Team Roles',
|
||||
Teams: 'Teams',
|
||||
Templates: 'Templates',
|
||||
'This field must not be blank': 'This field must not be blank',
|
||||
'This field must not exceed {max} characters': function(a) {
|
||||
return ['This field must not exceed ', a('max'), ' characters'];
|
||||
},
|
||||
'Toggle notification failure': 'Toggle notification failure',
|
||||
'Toggle notification success': 'Toggle notification success',
|
||||
'Use Default {label}': function(a) {
|
||||
return ['Use Default ', a('label')];
|
||||
},
|
||||
User: 'User',
|
||||
'User Details': 'User Details',
|
||||
'User Interface': 'User Interface',
|
||||
'User Interface Settings': 'User Interface Settings',
|
||||
'User Roles': 'User Roles',
|
||||
Username: 'Username',
|
||||
Users: 'Users',
|
||||
Views: 'Views',
|
||||
'Welcome to Ansible {brandName}! Please Sign In.': function(a) {
|
||||
return ['Welcome to Ansible ', a('brandName'), '! Please Sign In.'];
|
||||
},
|
||||
'You do not have permission to delete the following {0}: {itemsUnableToDelete}': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'You do not have permission to delete the following ',
|
||||
a('0'),
|
||||
': ',
|
||||
a('itemsUnableToDelete'),
|
||||
];
|
||||
},
|
||||
'You have been logged out.': 'You have been logged out.',
|
||||
'add {currentTab}': function(a) {
|
||||
return ['add ', a('currentTab')];
|
||||
},
|
||||
'adding {currentTab}': function(a) {
|
||||
return ['adding ', a('currentTab')];
|
||||
},
|
||||
'cancel delete': 'cancel delete',
|
||||
'confirm delete': 'confirm delete',
|
||||
'confirm removal of {currentTab}/cancel and go back to {currentTab} view.': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'confirm removal of ',
|
||||
a('currentTab'),
|
||||
'/cancel and go back to ',
|
||||
a('currentTab'),
|
||||
' view.',
|
||||
];
|
||||
},
|
||||
'delete {currentTab}': function(a) {
|
||||
return ['delete ', a('currentTab')];
|
||||
},
|
||||
'deleting {currentTab} association with orgs': function(a) {
|
||||
return ['deleting ', a('currentTab'), ' association with orgs'];
|
||||
},
|
||||
'edit view': 'edit view',
|
||||
items: 'items',
|
||||
'of {pageCount}': function(a) {
|
||||
return ['of ', a('pageCount')];
|
||||
},
|
||||
pages: 'pages',
|
||||
'per page': 'per page',
|
||||
'save/cancel and go back to view': 'save/cancel and go back to view',
|
||||
'save/cancel and go back to {currentTab} view': function(a) {
|
||||
return ['save/cancel and go back to ', a('currentTab'), ' view'];
|
||||
},
|
||||
'select organization {itemId}': function(a) {
|
||||
return ['select organization ', a('itemId')];
|
||||
},
|
||||
'{0}': function(a) {
|
||||
return [a('0')];
|
||||
},
|
||||
'{0} List': function(a) {
|
||||
return [a('0'), ' List'];
|
||||
},
|
||||
'{currentTab} detail view': function(a) {
|
||||
return [a('currentTab'), ' detail view'];
|
||||
},
|
||||
'{itemMin} - {itemMax} of {count}': function(a) {
|
||||
return [a('itemMin'), ' - ', a('itemMax'), ' of ', a('count')];
|
||||
},
|
||||
},
|
||||
};
|
||||
272
awx/ui_next/src/locales/ja/messages.js
Normal file
272
awx/ui_next/src/locales/ja/messages.js
Normal file
@ -0,0 +1,272 @@
|
||||
/* eslint-disable */ module.exports = {
|
||||
languageData: {
|
||||
plurals: function(n, ord) {
|
||||
if (ord) return 'other';
|
||||
return 'other';
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
'404': '404',
|
||||
'> add': '> add',
|
||||
'> edit': '> edit',
|
||||
'AWX Logo': 'AWX Logo',
|
||||
About: 'About',
|
||||
'AboutModal Logo': 'AboutModal Logo',
|
||||
Access: 'Access',
|
||||
Add: 'Add',
|
||||
'Add Roles': 'Add Roles',
|
||||
'Add Team Roles': 'Add Team Roles',
|
||||
'Add User Roles': 'Add User Roles',
|
||||
Administration: 'Administration',
|
||||
Admins: 'Admins',
|
||||
'Ansible Environment': 'Ansible Environment',
|
||||
'Ansible Version': 'Ansible Version',
|
||||
Applications: 'Applications',
|
||||
'Apply roles': 'Apply roles',
|
||||
'Are you sure you want to delete:': 'Are you sure you want to delete:',
|
||||
'Are you sure you want to remove {0} access from {1}? Doing so affects all members of the team.': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'Are you sure you want to remove ',
|
||||
a('0'),
|
||||
' access from ',
|
||||
a('1'),
|
||||
'? Doing so affects all members of the team.',
|
||||
];
|
||||
},
|
||||
'Are you sure you want to remove {0} access from {username}?': function(a) {
|
||||
return [
|
||||
'Are you sure you want to remove ',
|
||||
a('0'),
|
||||
' access from ',
|
||||
a('username'),
|
||||
'?',
|
||||
];
|
||||
},
|
||||
Authentication: 'Authentication',
|
||||
'Authentication Settings': 'Authentication Settings',
|
||||
'Brand Image': 'Brand Image',
|
||||
Cancel: 'Cancel',
|
||||
'Cannot find organization with ID': 'Cannot find organization with ID',
|
||||
'Cannot find resource.': 'Cannot find resource.',
|
||||
'Cannot find route {0}.': function(a) {
|
||||
return ['Cannot find route ', a('0'), '.'];
|
||||
},
|
||||
Close: 'Close',
|
||||
Collapse: 'Collapse',
|
||||
'Copyright 2018 Red Hat, Inc.': 'Copyright 2018 Red Hat, Inc.',
|
||||
'Copyright 2019 Red Hat, Inc.': 'Copyright 2019 Red Hat, Inc.',
|
||||
'Create New Organization': 'Create New Organization',
|
||||
Created: 'Created',
|
||||
'Credential Types': 'Credential Types',
|
||||
Credentials: 'Credentials',
|
||||
'Current page': 'Current page',
|
||||
Dashboard: 'Dashboard',
|
||||
Delete: 'Delete',
|
||||
'Delete {0}': function(a) {
|
||||
return ['Delete ', a('0')];
|
||||
},
|
||||
'Delete {itemName}': function(a) {
|
||||
return ['Delete ', a('itemName')];
|
||||
},
|
||||
Description: 'Description',
|
||||
Details: 'Details',
|
||||
Edit: 'Edit',
|
||||
'Edit Details': 'Edit Details',
|
||||
Expand: 'Expand',
|
||||
Failure: 'Failure',
|
||||
First: 'First',
|
||||
'Go to first page': 'Go to first page',
|
||||
'Go to last page': 'Go to last page',
|
||||
'Go to next page': 'Go to next page',
|
||||
'Go to previous page': 'Go to previous page',
|
||||
Help: 'Help',
|
||||
'If you {0} want to remove access for this particular user, please remove them from the team.': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'If you ',
|
||||
a('0'),
|
||||
' want to remove access for this particular user, please remove them from the team.',
|
||||
];
|
||||
},
|
||||
Info: 'Info',
|
||||
'Instance Groups': 'Instance Groups',
|
||||
Integrations: 'Integrations',
|
||||
'Invalid username or password. Please try again.':
|
||||
'Invalid username or password. Please try again.',
|
||||
Inventories: 'Inventories',
|
||||
'Inventory Scripts': 'Inventory Scripts',
|
||||
'Items Per Page': 'Items Per Page',
|
||||
'Items per page': 'Items per page',
|
||||
'Items {itemMin} \u2013 {itemMax} of {count}': function(a) {
|
||||
return [
|
||||
'Items ',
|
||||
a('itemMin'),
|
||||
' \u2013 ',
|
||||
a('itemMax'),
|
||||
' of ',
|
||||
a('count'),
|
||||
];
|
||||
},
|
||||
Jobs: 'Jobs',
|
||||
'Jobs Settings': 'Jobs Settings',
|
||||
Last: 'Last',
|
||||
'Last Modified': 'Last Modified',
|
||||
'Last Name': 'Last Name',
|
||||
License: 'License',
|
||||
'Loading...': 'Loading...',
|
||||
Logout: 'Logout',
|
||||
'Management Jobs': 'Management Jobs',
|
||||
Members: 'Members',
|
||||
Modified: 'Modified',
|
||||
'My View': 'My View',
|
||||
Name: 'Name',
|
||||
Next: 'Next',
|
||||
'No {0} Found': function(a) {
|
||||
return ['No ', a('0'), ' Found'];
|
||||
},
|
||||
'Notification Templates': 'Notification Templates',
|
||||
Notifications: 'Notifications',
|
||||
'Organization Add': 'Organization Add',
|
||||
'Organization detail tabs': 'Organization detail tabs',
|
||||
Organizations: 'Organizations',
|
||||
'Organizations List': 'Organizations List',
|
||||
Page: 'Page',
|
||||
'Page <0/> of {pageCount}': function(a) {
|
||||
return ['Page <0/> of ', a('pageCount')];
|
||||
},
|
||||
'Page Number': 'Page Number',
|
||||
Pagination: 'Pagination',
|
||||
Password: 'Password',
|
||||
'Per Page': 'Per Page',
|
||||
'Please add {0} to populate this list': function(a) {
|
||||
return ['Please add ', a('0'), ' to populate this list'];
|
||||
},
|
||||
'Please add {0} {itemName} to populate this list': function(a) {
|
||||
return [
|
||||
'Please add ',
|
||||
a('0'),
|
||||
' ',
|
||||
a('itemName'),
|
||||
' to populate this list',
|
||||
];
|
||||
},
|
||||
'Portal Mode': 'Portal Mode',
|
||||
Previous: 'Previous',
|
||||
'Primary Navigation': 'Primary Navigation',
|
||||
Projects: 'Projects',
|
||||
'Remove {0} Access': function(a) {
|
||||
return ['Remove ', a('0'), ' Access'];
|
||||
},
|
||||
Resources: 'Resources',
|
||||
Save: 'Save',
|
||||
Schedules: 'Schedules',
|
||||
Search: 'Search',
|
||||
'Search text input': 'Search text input',
|
||||
Select: 'Select',
|
||||
'Select Input': 'Select Input',
|
||||
'Select Users Or Teams': 'Select Users Or Teams',
|
||||
'Select a row to delete': 'Select a row to delete',
|
||||
'Select all': 'Select all',
|
||||
'Select items from list': 'Select items from list',
|
||||
'Select the Instance Groups for this Organization to run on.':
|
||||
'Select the Instance Groups for this Organization to run on.',
|
||||
'Select {header}': function(a) {
|
||||
return ['Select ', a('header')];
|
||||
},
|
||||
Selected: 'Selected',
|
||||
Settings: 'Settings',
|
||||
Sort: 'Sort',
|
||||
Successful: 'Successful',
|
||||
System: 'System',
|
||||
'System Settings': 'System Settings',
|
||||
Team: 'Team',
|
||||
'Team Roles': 'Team Roles',
|
||||
Teams: 'Teams',
|
||||
Templates: 'Templates',
|
||||
'This field must not be blank': 'This field must not be blank',
|
||||
'This field must not exceed {max} characters': function(a) {
|
||||
return ['This field must not exceed ', a('max'), ' characters'];
|
||||
},
|
||||
'Toggle notification failure': 'Toggle notification failure',
|
||||
'Toggle notification success': 'Toggle notification success',
|
||||
'Use Default {label}': function(a) {
|
||||
return ['Use Default ', a('label')];
|
||||
},
|
||||
User: 'User',
|
||||
'User Details': 'User Details',
|
||||
'User Interface': 'User Interface',
|
||||
'User Interface Settings': 'User Interface Settings',
|
||||
'User Roles': 'User Roles',
|
||||
Username: 'Username',
|
||||
Users: 'Users',
|
||||
Views: 'Views',
|
||||
'Welcome to Ansible {brandName}! Please Sign In.': function(a) {
|
||||
return ['Welcome to Ansible ', a('brandName'), '! Please Sign In.'];
|
||||
},
|
||||
'You do not have permission to delete the following {0}: {itemsUnableToDelete}': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'You do not have permission to delete the following ',
|
||||
a('0'),
|
||||
': ',
|
||||
a('itemsUnableToDelete'),
|
||||
];
|
||||
},
|
||||
'You have been logged out.': 'You have been logged out.',
|
||||
'add {currentTab}': function(a) {
|
||||
return ['add ', a('currentTab')];
|
||||
},
|
||||
'adding {currentTab}': function(a) {
|
||||
return ['adding ', a('currentTab')];
|
||||
},
|
||||
'cancel delete': 'cancel delete',
|
||||
'confirm delete': 'confirm delete',
|
||||
'confirm removal of {currentTab}/cancel and go back to {currentTab} view.': function(
|
||||
a
|
||||
) {
|
||||
return [
|
||||
'confirm removal of ',
|
||||
a('currentTab'),
|
||||
'/cancel and go back to ',
|
||||
a('currentTab'),
|
||||
' view.',
|
||||
];
|
||||
},
|
||||
'delete {currentTab}': function(a) {
|
||||
return ['delete ', a('currentTab')];
|
||||
},
|
||||
'deleting {currentTab} association with orgs': function(a) {
|
||||
return ['deleting ', a('currentTab'), ' association with orgs'];
|
||||
},
|
||||
'edit view': 'edit view',
|
||||
items: 'items',
|
||||
'of {pageCount}': function(a) {
|
||||
return ['of ', a('pageCount')];
|
||||
},
|
||||
pages: 'pages',
|
||||
'per page': 'per page',
|
||||
'save/cancel and go back to view': 'save/cancel and go back to view',
|
||||
'save/cancel and go back to {currentTab} view': function(a) {
|
||||
return ['save/cancel and go back to ', a('currentTab'), ' view'];
|
||||
},
|
||||
'select organization {itemId}': function(a) {
|
||||
return ['select organization ', a('itemId')];
|
||||
},
|
||||
'{0}': function(a) {
|
||||
return [a('0')];
|
||||
},
|
||||
'{0} List': function(a) {
|
||||
return [a('0'), ' List'];
|
||||
},
|
||||
'{currentTab} detail view': function(a) {
|
||||
return [a('currentTab'), ' detail view'];
|
||||
},
|
||||
'{itemMin} - {itemMax} of {count}': function(a) {
|
||||
return [a('itemMin'), ' - ', a('itemMax'), ' of ', a('count')];
|
||||
},
|
||||
},
|
||||
};
|
||||
40
awx/ui_next/src/setupProxy.js
Normal file
40
awx/ui_next/src/setupProxy.js
Normal file
@ -0,0 +1,40 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
|
||||
const TARGET_PORT = process.env.TARGET_PORT || 8043;
|
||||
const TARGET_HOST = process.env.TARGET_HOST || 'localhost';
|
||||
const TARGET = `https://${TARGET_HOST}:${TARGET_PORT}`;
|
||||
|
||||
module.exports = app => {
|
||||
app.use(
|
||||
'/api/login/',
|
||||
createProxyMiddleware({
|
||||
target: TARGET,
|
||||
secure: false,
|
||||
ws: false,
|
||||
headers: {
|
||||
Host: `localhost:${TARGET_PORT}`,
|
||||
Origin: TARGET,
|
||||
Referer: `${TARGET}/`,
|
||||
},
|
||||
})
|
||||
);
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: TARGET,
|
||||
secure: false,
|
||||
ws: false,
|
||||
bypass: req =>
|
||||
req.originalUrl.includes('hot-update.json') ||
|
||||
req.originalUrl.includes('login'),
|
||||
})
|
||||
);
|
||||
app.use(
|
||||
'/websocket',
|
||||
createProxyMiddleware({
|
||||
target: TARGET,
|
||||
secure: false,
|
||||
ws: true,
|
||||
})
|
||||
);
|
||||
};
|
||||
14
awx/ui_next/src/setupTests.js
Normal file
14
awx/ui_next/src/setupTests.js
Normal file
@ -0,0 +1,14 @@
|
||||
import { configure } from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
|
||||
require('@babel/polyfill');
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
|
||||
jest.setTimeout(5000 * 4);
|
||||
|
||||
// apply polyfills for jsdom
|
||||
require('@nteract/mockument');
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const asyncFlush = () => new Promise(resolve => setImmediate(resolve));
|
||||
@ -1,110 +0,0 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const TARGET_PORT = process.env.TARGET_PORT || 8043;
|
||||
const TARGET_HOST = process.env.TARGET_HOST || 'localhost';
|
||||
const TARGET = `https://${TARGET_HOST}:${TARGET_PORT}`;
|
||||
|
||||
const ROOT_PATH = __dirname;
|
||||
const SRC_PATH = path.join(ROOT_PATH, 'src');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.jsx',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel-loader'
|
||||
},
|
||||
{
|
||||
test: /\.s?[ac]ss$/,
|
||||
use: [
|
||||
{ loader: 'style-loader' },
|
||||
{ loader: 'css-loader' },
|
||||
{ loader: 'sass-loader' },
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
|
||||
use: [{
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[name].[ext]',
|
||||
outputPath: 'assets/fonts/',
|
||||
publicPath: 'assets/fonts',
|
||||
includePaths: [
|
||||
'node_modules/@patternfly/patternfly/assets/fonts',
|
||||
]
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
test: /\.(jpg|png|gif|svg)(\?v=\d+\.\d+\.\d+)?$/,
|
||||
use: [{
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[name].[ext]',
|
||||
outputPath: 'assets/images/',
|
||||
publicPath: 'assets/images',
|
||||
includePaths: [
|
||||
'node_modules/@patternfly/patternfly/assets/images',
|
||||
]
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['*', '.js', '.jsx', '.css'],
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '/dist'),
|
||||
publicPath: '/',
|
||||
filename: 'bundle.js'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.HotModuleReplacementPlugin()
|
||||
],
|
||||
devServer: {
|
||||
contentBase: './dist',
|
||||
hot: true,
|
||||
inline: true,
|
||||
stats: 'minimal',
|
||||
host: '0.0.0.0',
|
||||
disableHostCheck: true,
|
||||
https: true,
|
||||
port: 3001,
|
||||
clientLogLevel: 'none',
|
||||
proxy: [
|
||||
{
|
||||
context: '/api/login/',
|
||||
target: TARGET,
|
||||
secure: false,
|
||||
ws: false,
|
||||
headers: {
|
||||
Host: `localhost:${TARGET_PORT}`,
|
||||
Origin: TARGET,
|
||||
Referer: `${TARGET}/`
|
||||
}
|
||||
},
|
||||
{
|
||||
context: '/api',
|
||||
target: TARGET,
|
||||
secure: false,
|
||||
ws: false,
|
||||
bypass: req => (req.originalUrl.includes('hot-update.json') || req.originalUrl.includes('login')),
|
||||
},
|
||||
{
|
||||
context: '/websocket',
|
||||
target: TARGET,
|
||||
secure: false,
|
||||
ws: true
|
||||
}
|
||||
]
|
||||
},
|
||||
// https://github.com/lingui/js-lingui/issues/408
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user