{"remainingRequest":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js??ref--4-2!/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js??ref--4-3!/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/administration/configuration/configuration.tsx","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/administration/configuration/configuration.tsx","mtime":1533613272293},{"path":"/var/www/html/payroll_manager/front-end/node_modules/react-hot-loader/webpack.js","mtime":1505850161000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/cache-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js","mtime":1530127508000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js","mtime":1519899048000}],"contextDependencies":[],"result":["import * as tslib_1 from \"tslib\";\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { Table, Input, Row, Col, Badge } from 'reactstrap';\nimport { getConfigurations, getEnv } from '../administration.reducer';\nvar ConfigurationPage = /** @class */ (function (_super) {\n tslib_1.__extends(ConfigurationPage, _super);\n function ConfigurationPage() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = {\n filter: '',\n reversePrefix: false,\n reverseProperties: false\n };\n _this.setFilter = function (evt) {\n _this.setState({\n filter: evt.target.value\n });\n };\n _this.envFilterFn = function (configProp) { return configProp.toUpperCase().includes(_this.state.filter.toUpperCase()); };\n _this.propsFilterFn = function (configProp) { return configProp.prefix.toUpperCase().includes(_this.state.filter.toUpperCase()); };\n _this.reversePrefix = function () {\n _this.setState({\n reversePrefix: !_this.state.reversePrefix\n });\n };\n _this.reverseProperties = function () {\n _this.setState({\n reverseProperties: !_this.state.reverseProperties\n });\n };\n _this.getContextList = function (contexts) {\n return Object.values(contexts)\n .map(function (v) { return v.beans; })\n .reduce(function (acc, e) { return (tslib_1.__assign({}, acc, e)); });\n };\n return _this;\n }\n ConfigurationPage.prototype.componentDidMount = function () {\n this.props.getConfigurations();\n this.props.getEnv();\n };\n ConfigurationPage.prototype.render = function () {\n var _this = this;\n var configuration = this.props.configuration;\n var filter = this.state.filter;\n var configProps = configuration && configuration.configProps ? configuration.configProps : {};\n var env = configuration && configuration.env ? configuration.env : {};\n return (React.createElement(\"div\", null,\n React.createElement(\"h2\", { className: \"configuration-page-heading\" }, \"Configuration\"),\n React.createElement(\"span\", null, \"Filter\"),\n \" \",\n React.createElement(Input, { type: \"search\", value: filter, onChange: this.setFilter, name: \"search\", id: \"search\" }),\n React.createElement(\"label\", null, \"Spring configuration\"),\n React.createElement(Table, { className: \"table table-striped table-bordered table-responsive d-table\" },\n React.createElement(\"thead\", null,\n React.createElement(\"tr\", null,\n React.createElement(\"th\", { onClick: this.reversePrefix }, \"Prefix\"),\n React.createElement(\"th\", { onClick: this.reverseProperties }, \"Properties\"))),\n React.createElement(\"tbody\", null, configProps.contexts\n ? Object.values(this.getContextList(configProps.contexts))\n .filter(this.propsFilterFn)\n .map(function (property, propIndex) { return (React.createElement(\"tr\", { key: propIndex },\n React.createElement(\"td\", null, property['prefix']),\n React.createElement(\"td\", null, Object.keys(property['properties']).map(function (propKey, index) { return (React.createElement(Row, { key: index },\n React.createElement(Col, { md: \"4\" }, propKey),\n React.createElement(Col, { md: \"8\" },\n React.createElement(Badge, { className: \"float-right badge-secondary break\" }, JSON.stringify(property['properties'][propKey]))))); })))); })\n : null)),\n env.propertySources\n ? env.propertySources.map(function (envKey, envIndex) { return (React.createElement(\"div\", { key: envIndex },\n React.createElement(\"h4\", null,\n React.createElement(\"span\", null, envKey.name)),\n React.createElement(Table, { className: \"table table-sm table-striped table-bordered table-responsive d-table\" },\n React.createElement(\"thead\", null,\n React.createElement(\"tr\", { key: envIndex },\n React.createElement(\"th\", { className: \"w-40\" }, \"Property\"),\n React.createElement(\"th\", { className: \"w-60\" }, \"Value\"))),\n React.createElement(\"tbody\", null, Object.keys(envKey.properties)\n .filter(_this.envFilterFn)\n .map(function (propKey, propIndex) { return (React.createElement(\"tr\", { key: propIndex },\n React.createElement(\"td\", { className: \"break\" }, propKey),\n React.createElement(\"td\", { className: \"break\" },\n React.createElement(\"span\", { className: \"float-right badge badge-secondary break\" }, envKey.properties[propKey].value)))); }))))); })\n : null));\n };\n return ConfigurationPage;\n}(React.Component));\nexport { ConfigurationPage };\nvar mapStateToProps = function (_a) {\n var administration = _a.administration;\n return ({\n configuration: administration.configuration,\n isFetching: administration.loading\n });\n};\nvar mapDispatchToProps = { getConfigurations: getConfigurations, getEnv: getEnv };\nexport default connect(mapStateToProps, mapDispatchToProps)(ConfigurationPage);\n",{"version":3,"file":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/administration/configuration/configuration.tsx","sourceRoot":"","sources":["/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/administration/configuration/configuration.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAWtE;IAAuC,6CAAiE;IAAxG;QAAA,qEA6GC;QA5GC,WAAK,GAA4B;YAC/B,MAAM,EAAE,EAAE;YACV,aAAa,EAAE,KAAK;YACpB,iBAAiB,EAAE,KAAK;SACzB,CAAC;QAOF,eAAS,GAAG,UAAA,GAAG;YACb,KAAI,CAAC,QAAQ,CAAC;gBACZ,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK;aACzB,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,iBAAW,GAAG,UAAA,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AAC,OAAO;KACnC,CAAC;AAH0D,CAG1D,CAAC;AAEH,IAAM,kBAAkB,GAAG,EAAE,iBAAiB,mBAAA,EAAE,MAAM,QAAA,EAAE,CAAC;AAKzD,eAAe,OAAO,CACpB,eAAe,EACf,kBAAkB,CACnB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { connect } from 'react-redux';\nimport { Table, Input, Row, Col, Badge } from 'reactstrap';\n\nimport { getConfigurations, getEnv } from '../administration.reducer';\nimport { IRootState } from 'app/shared/reducers';\n\nexport interface IConfigurationPageProps extends StateProps, DispatchProps {}\n\nexport interface IConfigurationPageState {\n filter: string;\n reversePrefix: boolean;\n reverseProperties: boolean;\n}\n\nexport class ConfigurationPage extends React.Component {\n state: IConfigurationPageState = {\n filter: '',\n reversePrefix: false,\n reverseProperties: false\n };\n\n componentDidMount() {\n this.props.getConfigurations();\n this.props.getEnv();\n }\n\n setFilter = evt => {\n this.setState({\n filter: evt.target.value\n });\n };\n\n envFilterFn = configProp => configProp.toUpperCase().includes(this.state.filter.toUpperCase());\n propsFilterFn = configProp => configProp.prefix.toUpperCase().includes(this.state.filter.toUpperCase());\n\n reversePrefix = () => {\n this.setState({\n reversePrefix: !this.state.reversePrefix\n });\n };\n\n reverseProperties = () => {\n this.setState({\n reverseProperties: !this.state.reverseProperties\n });\n };\n\n getContextList = contexts =>\n Object.values(contexts)\n .map((v: any) => v.beans)\n .reduce((acc, e) => ({ ...acc, ...e }));\n\n render() {\n const { configuration } = this.props;\n const { filter } = this.state;\n const configProps = configuration && configuration.configProps ? configuration.configProps : {};\n const env = configuration && configuration.env ? configuration.env : {};\n return (\n
\n

Configuration

\n Filter \n \n \n \n \n \n \n \n \n \n {configProps.contexts\n ? Object.values(this.getContextList(configProps.contexts))\n .filter(this.propsFilterFn)\n .map((property, propIndex) => (\n \n \n {propKey}\n \n {JSON.stringify(property['properties'][propKey])}\n \n \n ))}\n \n \n ))\n : null}\n \n
PrefixProperties
{property['prefix']}\n {Object.keys(property['properties']).map((propKey, index) => (\n \n
\n {env.propertySources\n ? env.propertySources.map((envKey, envIndex) => (\n
\n

\n {envKey.name}\n

\n \n \n \n \n \n \n \n \n {Object.keys(envKey.properties)\n .filter(this.envFilterFn)\n .map((propKey, propIndex) => (\n \n \n \n \n ))}\n \n
PropertyValue
{propKey}\n {envKey.properties[propKey].value}\n
\n
\n ))\n : null}\n
\n );\n }\n}\n\nconst mapStateToProps = ({ administration }: IRootState) => ({\n configuration: administration.configuration,\n isFetching: administration.loading\n});\n\nconst mapDispatchToProps = { getConfigurations, getEnv };\n\ntype StateProps = ReturnType;\ntype DispatchProps = typeof mapDispatchToProps;\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(ConfigurationPage);\n"]}]}