Merge remote-tracking branch 'remotes/origin/wip-customer' into private-event-sourcing-examples-37
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -101,7 +101,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _MyAccounts2 = _interopRequireDefault(_MyAccounts);
|
||||
|
||||
var _Account = __webpack_require__(602);
|
||||
var _Account = __webpack_require__(603);
|
||||
|
||||
var _Account2 = _interopRequireDefault(_Account);
|
||||
|
||||
@@ -3922,11 +3922,15 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _reactSelect2 = _interopRequireDefault(_reactSelect);
|
||||
|
||||
var _modals = __webpack_require__(591);
|
||||
var _AccountInfo = __webpack_require__(591);
|
||||
|
||||
var _AccountInfo2 = _interopRequireDefault(_AccountInfo);
|
||||
|
||||
var _modals = __webpack_require__(594);
|
||||
|
||||
var Modals = _interopRequireWildcard(_modals);
|
||||
|
||||
var _IndexPanel = __webpack_require__(600);
|
||||
var _IndexPanel = __webpack_require__(601);
|
||||
|
||||
var _IndexPanel2 = _interopRequireDefault(_IndexPanel);
|
||||
|
||||
@@ -3938,7 +3942,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _readProp2 = _interopRequireDefault(_readProp);
|
||||
|
||||
var _Money = __webpack_require__(601);
|
||||
var _Money = __webpack_require__(602);
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
||||
|
||||
@@ -4135,11 +4139,7 @@ webpackJsonp([0,3],{
|
||||
_react2.default.createElement(
|
||||
"td",
|
||||
{ key: 0 },
|
||||
_react2.default.createElement(
|
||||
_reactRouter.Link,
|
||||
{ to: "/account/" + accountId },
|
||||
title
|
||||
),
|
||||
_react2.default.createElement(_AccountInfo2.default, { accountId: accountId }),
|
||||
description ? [_react2.default.createElement("br", null), _react2.default.createElement(
|
||||
"span",
|
||||
null,
|
||||
@@ -4175,11 +4175,7 @@ webpackJsonp([0,3],{
|
||||
_react2.default.createElement(
|
||||
"td",
|
||||
{ key: 0 },
|
||||
_react2.default.createElement(
|
||||
_reactRouter.Link,
|
||||
{ to: "/account/" + id },
|
||||
title
|
||||
),
|
||||
_react2.default.createElement(_AccountInfo2.default, { accountId: id }),
|
||||
description ? [_react2.default.createElement("br", null), _react2.default.createElement(
|
||||
"span",
|
||||
null,
|
||||
@@ -4396,13 +4392,152 @@ webpackJsonp([0,3],{
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.AccountInfo = undefined;
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _react = __webpack_require__(2);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _reactRedux = __webpack_require__(170);
|
||||
|
||||
var _reactLoader = __webpack_require__(592);
|
||||
|
||||
var _reactLoader2 = _interopRequireDefault(_reactLoader);
|
||||
|
||||
var _reactBootstrap = __webpack_require__(336);
|
||||
|
||||
var BS = _interopRequireWildcard(_reactBootstrap);
|
||||
|
||||
var _entities = __webpack_require__(326);
|
||||
|
||||
var A = _interopRequireWildcard(_entities);
|
||||
|
||||
var _readProp = __webpack_require__(334);
|
||||
|
||||
var _readProp2 = _interopRequireDefault(_readProp);
|
||||
|
||||
var _reactRouter = __webpack_require__(183);
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
||||
* Created by andrew on 3/22/16.
|
||||
*/
|
||||
|
||||
|
||||
var AccountInfo = exports.AccountInfo = function (_React$Component) {
|
||||
_inherits(AccountInfo, _React$Component);
|
||||
|
||||
function AccountInfo() {
|
||||
_classCallCheck(this, AccountInfo);
|
||||
|
||||
return _possibleConstructorReturn(this, (AccountInfo.__proto__ || Object.getPrototypeOf(AccountInfo)).apply(this, arguments));
|
||||
}
|
||||
|
||||
_createClass(AccountInfo, [{
|
||||
key: "componentWillMount",
|
||||
value: function componentWillMount() {
|
||||
this.ensureData(this.props);
|
||||
}
|
||||
}, {
|
||||
key: "componentWillReceiveProps",
|
||||
value: function componentWillReceiveProps(nextProps) {
|
||||
this.ensureData(nextProps);
|
||||
}
|
||||
}, {
|
||||
key: "ensureData",
|
||||
value: function ensureData(_ref) {
|
||||
var dispatch = _ref.dispatch;
|
||||
var entities = _ref.entities;
|
||||
var accountId = _ref.accountId;
|
||||
|
||||
if (entities[accountId]) {
|
||||
return;
|
||||
}
|
||||
dispatch(A.fetchAccount(accountId));
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _props = this.props;
|
||||
var entities = _props.entities;
|
||||
var accountId = _props.accountId;
|
||||
var customerId = _props.customerId;
|
||||
|
||||
|
||||
var account = entities[accountId];
|
||||
|
||||
if (!account || !accountId) {
|
||||
return _react2.default.createElement(
|
||||
"div",
|
||||
{ title: "" + accountId },
|
||||
accountId,
|
||||
" ",
|
||||
_react2.default.createElement(_reactLoader2.default, { loaded: false })
|
||||
);
|
||||
// {/*return (<Link to={ `/account/${accountId}` }>{ accountId } <Spinner loaded={false} /></Link>)*/}
|
||||
}
|
||||
|
||||
var title = account.title;
|
||||
var owner = account.owner;
|
||||
|
||||
|
||||
if (typeof owner !== 'undefined' && customerId !== owner) {
|
||||
return _react2.default.createElement(
|
||||
BS.Button,
|
||||
{ bsStyle: "link", disabled: true, title: "" + accountId, style: { padding: '0 0' } },
|
||||
title
|
||||
);
|
||||
} else {
|
||||
return _react2.default.createElement(
|
||||
_reactRouter.Link,
|
||||
{ to: "/account/" + accountId },
|
||||
title
|
||||
);
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
||||
return AccountInfo;
|
||||
}(_react2.default.Component);
|
||||
|
||||
exports.default = (0, _reactRedux.connect)(function (_ref2) {
|
||||
var app = _ref2.app;
|
||||
return {
|
||||
entities: app.data.entities,
|
||||
customerId: (0, _readProp2.default)(app, 'auth.user.isSignedIn', false) ? (0, _readProp2.default)(app, 'auth.user.attributes.id', null) : null
|
||||
};
|
||||
})(AccountInfo);
|
||||
|
||||
/* REACT HOT LOADER */ }).call(this); } finally { if (false) { (function () { var foundReactClasses = module.hot.data && module.hot.data.foundReactClasses || false; if (module.exports && module.makeHot) { var makeExportsHot = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/makeExportsHot.js"); if (makeExportsHot(module, require("react"))) { foundReactClasses = true; } var shouldAcceptModule = true && foundReactClasses; if (shouldAcceptModule) { module.hot.accept(function (err) { if (err) { console.error("Cannot not apply hot update to " + "AccountInfo.js" + ": " + err.message); } }); } } module.hot.dispose(function (data) { data.makeHot = module.makeHot; data.foundReactClasses = foundReactClasses; }); })(); } }
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 594:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _Add3rdPartyAccountModal = __webpack_require__(592);
|
||||
var _Add3rdPartyAccountModal = __webpack_require__(595);
|
||||
|
||||
Object.defineProperty(exports, 'Add3rdPartyAccountModal', {
|
||||
enumerable: true,
|
||||
@@ -4411,7 +4546,7 @@ webpackJsonp([0,3],{
|
||||
}
|
||||
});
|
||||
|
||||
var _NewAccountModal = __webpack_require__(598);
|
||||
var _NewAccountModal = __webpack_require__(599);
|
||||
|
||||
Object.defineProperty(exports, 'NewAccountModal', {
|
||||
enumerable: true,
|
||||
@@ -4420,7 +4555,7 @@ webpackJsonp([0,3],{
|
||||
}
|
||||
});
|
||||
|
||||
var _RemoveAccountModal = __webpack_require__(599);
|
||||
var _RemoveAccountModal = __webpack_require__(600);
|
||||
|
||||
Object.defineProperty(exports, 'RemoveAccountBookmarkModal', {
|
||||
enumerable: true,
|
||||
@@ -4435,7 +4570,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 592:
|
||||
/***/ 595:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -4459,15 +4594,15 @@ webpackJsonp([0,3],{
|
||||
|
||||
var BS = _interopRequireWildcard(_reactBootstrap);
|
||||
|
||||
var _ButtonLoader = __webpack_require__(593);
|
||||
var _ButtonLoader = __webpack_require__(596);
|
||||
|
||||
var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
||||
|
||||
var _Input = __webpack_require__(596);
|
||||
var _Input = __webpack_require__(597);
|
||||
|
||||
var _Input2 = _interopRequireDefault(_Input);
|
||||
|
||||
var _AuxErrorLabel = __webpack_require__(597);
|
||||
var _AuxErrorLabel = __webpack_require__(598);
|
||||
|
||||
var _AuxErrorLabel2 = _interopRequireDefault(_AuxErrorLabel);
|
||||
|
||||
@@ -4729,7 +4864,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 593:
|
||||
/***/ 596:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -4750,7 +4885,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _reactBootstrap = __webpack_require__(336);
|
||||
|
||||
var _reactLoader = __webpack_require__(594);
|
||||
var _reactLoader = __webpack_require__(592);
|
||||
|
||||
var _reactLoader2 = _interopRequireDefault(_reactLoader);
|
||||
|
||||
@@ -4857,7 +4992,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 596:
|
||||
/***/ 597:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -4969,7 +5104,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 597:
|
||||
/***/ 598:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -5068,7 +5203,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 598:
|
||||
/***/ 599:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -5094,11 +5229,11 @@ webpackJsonp([0,3],{
|
||||
|
||||
var BS = _interopRequireWildcard(_reactBootstrap);
|
||||
|
||||
var _Input = __webpack_require__(596);
|
||||
var _Input = __webpack_require__(597);
|
||||
|
||||
var _Input2 = _interopRequireDefault(_Input);
|
||||
|
||||
var _ButtonLoader = __webpack_require__(593);
|
||||
var _ButtonLoader = __webpack_require__(596);
|
||||
|
||||
var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
||||
|
||||
@@ -5291,7 +5426,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 599:
|
||||
/***/ 600:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -5446,7 +5581,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 600:
|
||||
/***/ 601:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -5514,7 +5649,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 601:
|
||||
/***/ 602:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -5574,7 +5709,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 602:
|
||||
/***/ 603:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -5600,7 +5735,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
var BS = _interopRequireWildcard(_reactBootstrap);
|
||||
|
||||
var _reactLoader = __webpack_require__(594);
|
||||
var _reactLoader = __webpack_require__(592);
|
||||
|
||||
var _reactLoader2 = _interopRequireDefault(_reactLoader);
|
||||
|
||||
@@ -5608,21 +5743,21 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _reactSelect2 = _interopRequireDefault(_reactSelect);
|
||||
|
||||
var _Input = __webpack_require__(596);
|
||||
var _Input = __webpack_require__(597);
|
||||
|
||||
var _Input2 = _interopRequireDefault(_Input);
|
||||
|
||||
var _Money = __webpack_require__(601);
|
||||
var _Money = __webpack_require__(602);
|
||||
|
||||
var _TransfersTable = __webpack_require__(603);
|
||||
var _TransfersTable = __webpack_require__(604);
|
||||
|
||||
var _reactRouter = __webpack_require__(183);
|
||||
|
||||
var _IndexPanel = __webpack_require__(600);
|
||||
var _IndexPanel = __webpack_require__(601);
|
||||
|
||||
var _IndexPanel2 = _interopRequireDefault(_IndexPanel);
|
||||
|
||||
var _modals = __webpack_require__(591);
|
||||
var _modals = __webpack_require__(594);
|
||||
|
||||
var Modals = _interopRequireWildcard(_modals);
|
||||
|
||||
@@ -6075,7 +6210,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 603:
|
||||
/***/ 604:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
@@ -6093,7 +6228,7 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _reactLoader = __webpack_require__(594);
|
||||
var _reactLoader = __webpack_require__(592);
|
||||
|
||||
var _reactLoader2 = _interopRequireDefault(_reactLoader);
|
||||
|
||||
@@ -6101,13 +6236,13 @@ webpackJsonp([0,3],{
|
||||
|
||||
var BS = _interopRequireWildcard(_reactBootstrap);
|
||||
|
||||
var _reactTimeago = __webpack_require__(604);
|
||||
var _reactTimeago = __webpack_require__(605);
|
||||
|
||||
var _reactTimeago2 = _interopRequireDefault(_reactTimeago);
|
||||
|
||||
var _Money = __webpack_require__(601);
|
||||
var _Money = __webpack_require__(602);
|
||||
|
||||
var _AccountInfo = __webpack_require__(605);
|
||||
var _AccountInfo = __webpack_require__(591);
|
||||
|
||||
var _AccountInfo2 = _interopRequireDefault(_AccountInfo);
|
||||
|
||||
@@ -6363,129 +6498,6 @@ webpackJsonp([0,3],{
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 605:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* REACT HOT LOADER */ if (false) { (function () { var ReactHotAPI = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/node_modules/react-hot-api/modules/index.js"), RootInstanceProvider = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/RootInstanceProvider.js"), ReactMount = require("react/lib/ReactMount"), React = require("react"); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.AccountInfo = undefined;
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _react = __webpack_require__(2);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _reactRedux = __webpack_require__(170);
|
||||
|
||||
var _reactLoader = __webpack_require__(594);
|
||||
|
||||
var _reactLoader2 = _interopRequireDefault(_reactLoader);
|
||||
|
||||
var _entities = __webpack_require__(326);
|
||||
|
||||
var A = _interopRequireWildcard(_entities);
|
||||
|
||||
var _reactRouter = __webpack_require__(183);
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
||||
* Created by andrew on 3/22/16.
|
||||
*/
|
||||
|
||||
// import * as BS from "react-bootstrap";
|
||||
|
||||
|
||||
// import { Money } from '../components/Money';
|
||||
|
||||
var AccountInfo = exports.AccountInfo = function (_React$Component) {
|
||||
_inherits(AccountInfo, _React$Component);
|
||||
|
||||
function AccountInfo() {
|
||||
_classCallCheck(this, AccountInfo);
|
||||
|
||||
return _possibleConstructorReturn(this, (AccountInfo.__proto__ || Object.getPrototypeOf(AccountInfo)).apply(this, arguments));
|
||||
}
|
||||
|
||||
_createClass(AccountInfo, [{
|
||||
key: "componentWillMount",
|
||||
value: function componentWillMount() {
|
||||
this.ensureData(this.props);
|
||||
}
|
||||
}, {
|
||||
key: "componentWillReceiveProps",
|
||||
value: function componentWillReceiveProps(nextProps) {
|
||||
this.ensureData(nextProps);
|
||||
}
|
||||
}, {
|
||||
key: "ensureData",
|
||||
value: function ensureData(_ref) {
|
||||
var dispatch = _ref.dispatch;
|
||||
var entities = _ref.entities;
|
||||
var accountId = _ref.accountId;
|
||||
|
||||
if (entities[accountId]) {
|
||||
return;
|
||||
}
|
||||
dispatch(A.fetchAccount(accountId));
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _props = this.props;
|
||||
var entities = _props.entities;
|
||||
var accountId = _props.accountId;
|
||||
|
||||
|
||||
var account = entities[accountId];
|
||||
|
||||
if (!account) {
|
||||
return _react2.default.createElement(
|
||||
_reactRouter.Link,
|
||||
{ to: "/account/" + accountId },
|
||||
accountId,
|
||||
" ",
|
||||
_react2.default.createElement(_reactLoader2.default, { loaded: false })
|
||||
);
|
||||
}
|
||||
|
||||
var title = account.title;
|
||||
|
||||
|
||||
return _react2.default.createElement(
|
||||
_reactRouter.Link,
|
||||
{ to: "/account/" + accountId },
|
||||
title
|
||||
);
|
||||
}
|
||||
}]);
|
||||
|
||||
return AccountInfo;
|
||||
}(_react2.default.Component);
|
||||
|
||||
exports.default = (0, _reactRedux.connect)(function (_ref2) {
|
||||
var app = _ref2.app;
|
||||
return {
|
||||
entities: app.data.entities
|
||||
};
|
||||
})(AccountInfo);
|
||||
|
||||
/* REACT HOT LOADER */ }).call(this); } finally { if (false) { (function () { var foundReactClasses = module.hot.data && module.hot.data.foundReactClasses || false; if (module.exports && module.makeHot) { var makeExportsHot = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/makeExportsHot.js"); if (makeExportsHot(module, require("react"))) { foundReactClasses = true; } var shouldAcceptModule = true && foundReactClasses; if (shouldAcceptModule) { module.hot.accept(function (err) { if (err) { console.error("Cannot not apply hot update to " + "AccountInfo.js" + ": " + err.message); } }); } } module.hot.dispose(function (data) { data.makeHot = module.makeHot; data.foundReactClasses = foundReactClasses; }); })(); } }
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 606:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
@@ -6687,15 +6699,15 @@ webpackJsonp([0,3],{
|
||||
|
||||
var BS = _interopRequireWildcard(_reactBootstrap);
|
||||
|
||||
var _Input = __webpack_require__(596);
|
||||
var _Input = __webpack_require__(597);
|
||||
|
||||
var _Input2 = _interopRequireDefault(_Input);
|
||||
|
||||
var _ButtonLoader = __webpack_require__(593);
|
||||
var _ButtonLoader = __webpack_require__(596);
|
||||
|
||||
var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
||||
|
||||
var _AuxErrorLabel = __webpack_require__(597);
|
||||
var _AuxErrorLabel = __webpack_require__(598);
|
||||
|
||||
var _AuxErrorLabel2 = _interopRequireDefault(_AuxErrorLabel);
|
||||
|
||||
@@ -7035,15 +7047,15 @@ webpackJsonp([0,3],{
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _Input = __webpack_require__(596);
|
||||
var _Input = __webpack_require__(597);
|
||||
|
||||
var _Input2 = _interopRequireDefault(_Input);
|
||||
|
||||
var _ButtonLoader = __webpack_require__(593);
|
||||
var _ButtonLoader = __webpack_require__(596);
|
||||
|
||||
var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
||||
|
||||
var _IndexPanel = __webpack_require__(600);
|
||||
var _IndexPanel = __webpack_require__(601);
|
||||
|
||||
var _IndexPanel2 = _interopRequireDefault(_IndexPanel);
|
||||
|
||||
@@ -7365,4 +7377,4 @@ webpackJsonp([0,3],{
|
||||
/***/ }
|
||||
|
||||
});
|
||||
//# sourceMappingURL=app.d91662ee734b40065ff3.js.map
|
||||
//# sourceMappingURL=app.fcbedf54f0345474ccc1.js.map
|
||||
1
js-frontend/build/app.fcbedf54f0345474ccc1.js.map
Normal file
1
js-frontend/build/app.fcbedf54f0345474ccc1.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css"><link href="/style.6d7a32b1405ea1bb2bdf.css" rel="stylesheet"></head>
|
||||
<body><div id="root"></div><script src="/manifest.2f607228f88f59be77bc.js"></script><script src="/vendor.f73c0104cb72cfb2809e.js"></script><script src="/style.6d7a32b1405ea1bb2bdf.js"></script><script src="/app.d91662ee734b40065ff3.js"></script><script>
|
||||
<body><div id="root"></div><script src="/manifest.087a5454fa0c34daf3c9.js"></script><script src="/vendor.c882d66445aebc52c21b.js"></script><script src="/style.6d7a32b1405ea1bb2bdf.js"></script><script src="/app.fcbedf54f0345474ccc1.js"></script><script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
@@ -27,5 +27,5 @@
|
||||
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script><!--{"files":{"publicPath":"/","chunks":{"manifest":{"size":0,"entry":"/manifest.2f607228f88f59be77bc.js","hash":"2f607228f88f59be77bc","css":[]},"vendor":{"size":1670874,"entry":"/vendor.f73c0104cb72cfb2809e.js","hash":"f73c0104cb72cfb2809e","css":[]},"style":{"size":122,"entry":"/style.6d7a32b1405ea1bb2bdf.js","hash":"6d7a32b1405ea1bb2bdf","css":["/style.6d7a32b1405ea1bb2bdf.css"]},"app":{"size":351599,"entry":"/app.d91662ee734b40065ff3.js","hash":"d91662ee734b40065ff3","css":[]}},"js":["/manifest.2f607228f88f59be77bc.js","/vendor.f73c0104cb72cfb2809e.js","/style.6d7a32b1405ea1bb2bdf.js","/app.d91662ee734b40065ff3.js"],"css":["/style.6d7a32b1405ea1bb2bdf.css"]},"options":{"template":"/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/html-webpack-plugin/lib/loader.js!/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/public/index.ejs","filename":"index.html","hash":false,"inject":false,"compile":true,"favicon":false,"minify":false,"cache":true,"showErrors":true,"chunks":"all","excludeChunks":[],"title":"Money Transfer App","xhtml":false,"description":"ES Money Transfer App","appMountId":"root","googleAnalytics":{"trackingId":"UA-XXXX-XX","pageViewOnLoad":true},"mobile":true}}--></body>
|
||||
</script><!--{"files":{"publicPath":"/","chunks":{"manifest":{"size":0,"entry":"/manifest.087a5454fa0c34daf3c9.js","hash":"087a5454fa0c34daf3c9","css":[]},"vendor":{"size":1670874,"entry":"/vendor.c882d66445aebc52c21b.js","hash":"c882d66445aebc52c21b","css":[]},"style":{"size":122,"entry":"/style.6d7a32b1405ea1bb2bdf.js","hash":"6d7a32b1405ea1bb2bdf","css":["/style.6d7a32b1405ea1bb2bdf.css"]},"app":{"size":352314,"entry":"/app.fcbedf54f0345474ccc1.js","hash":"fcbedf54f0345474ccc1","css":[]}},"js":["/manifest.087a5454fa0c34daf3c9.js","/vendor.c882d66445aebc52c21b.js","/style.6d7a32b1405ea1bb2bdf.js","/app.fcbedf54f0345474ccc1.js"],"css":["/style.6d7a32b1405ea1bb2bdf.css"]},"options":{"template":"/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/html-webpack-plugin/lib/loader.js!/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/public/index.ejs","filename":"index.html","hash":false,"inject":false,"compile":true,"favicon":false,"minify":false,"cache":true,"showErrors":true,"chunks":"all","excludeChunks":[],"title":"Money Transfer App","xhtml":false,"description":"ES Money Transfer App","appMountId":"root","googleAnalytics":{"trackingId":"UA-XXXX-XX","pageViewOnLoad":true},"mobile":true}}--></body>
|
||||
</html>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.async = true;
|
||||
/******/
|
||||
/******/ script.src = __webpack_require__.p + "" + {"0":"d91662ee734b40065ff3","1":"6d7a32b1405ea1bb2bdf","2":"f73c0104cb72cfb2809e"}[chunkId] + ".js";
|
||||
/******/ script.src = __webpack_require__.p + "" + {"0":"fcbedf54f0345474ccc1","1":"6d7a32b1405ea1bb2bdf","2":"c882d66445aebc52c21b"}[chunkId] + ".js";
|
||||
/******/ head.appendChild(script);
|
||||
/******/ }
|
||||
/******/ };
|
||||
@@ -92,4 +92,4 @@
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([]);
|
||||
//# sourceMappingURL=manifest.2f607228f88f59be77bc.js.map
|
||||
//# sourceMappingURL=manifest.087a5454fa0c34daf3c9.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap f41b5db61be80a08031d?"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAQ,oBAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAA+C,iFAAiF;AAChI;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA","file":"manifest.2f607228f88f59be77bc.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t3:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"\" + {\"0\":\"d91662ee734b40065ff3\",\"1\":\"6d7a32b1405ea1bb2bdf\",\"2\":\"f73c0104cb72cfb2809e\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap f41b5db61be80a08031d\n **/"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap edd3ecd6d3192330eb69?"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAQ,oBAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAA+C,iFAAiF;AAChI;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA","file":"manifest.087a5454fa0c34daf3c9.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t3:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"\" + {\"0\":\"fcbedf54f0345474ccc1\",\"1\":\"6d7a32b1405ea1bb2bdf\",\"2\":\"c882d66445aebc52c21b\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap edd3ecd6d3192330eb69\n **/"],"sourceRoot":""}
|
||||
@@ -13,14 +13,14 @@ webpackJsonp([2,3],[
|
||||
__webpack_require__(2);
|
||||
__webpack_require__(336);
|
||||
__webpack_require__(158);
|
||||
__webpack_require__(594);
|
||||
__webpack_require__(592);
|
||||
__webpack_require__(623);
|
||||
__webpack_require__(170);
|
||||
__webpack_require__(183);
|
||||
__webpack_require__(579);
|
||||
__webpack_require__(625);
|
||||
__webpack_require__(585);
|
||||
__webpack_require__(604);
|
||||
__webpack_require__(605);
|
||||
__webpack_require__(160);
|
||||
__webpack_require__(626);
|
||||
__webpack_require__(182);
|
||||
@@ -49406,15 +49406,13 @@ webpackJsonp([2,3],[
|
||||
|
||||
/***/ },
|
||||
/* 591 */,
|
||||
/* 592 */,
|
||||
/* 593 */,
|
||||
/* 594 */
|
||||
/* 592 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {
|
||||
|
||||
if (true) {
|
||||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2), __webpack_require__(158), __webpack_require__(595)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
||||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2), __webpack_require__(158), __webpack_require__(593)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
||||
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
module.exports = factory(require('react'), require('react-dom'), require('spin.js'));
|
||||
} else {
|
||||
@@ -49535,7 +49533,7 @@ webpackJsonp([2,3],[
|
||||
|
||||
|
||||
/***/ },
|
||||
/* 595 */
|
||||
/* 593 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
||||
@@ -49918,6 +49916,8 @@ webpackJsonp([2,3],[
|
||||
|
||||
|
||||
/***/ },
|
||||
/* 594 */,
|
||||
/* 595 */,
|
||||
/* 596 */,
|
||||
/* 597 */,
|
||||
/* 598 */,
|
||||
@@ -49926,7 +49926,8 @@ webpackJsonp([2,3],[
|
||||
/* 601 */,
|
||||
/* 602 */,
|
||||
/* 603 */,
|
||||
/* 604 */
|
||||
/* 604 */,
|
||||
/* 605 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict'
|
||||
@@ -50059,7 +50060,6 @@ webpackJsonp([2,3],[
|
||||
|
||||
|
||||
/***/ },
|
||||
/* 605 */,
|
||||
/* 606 */,
|
||||
/* 607 */,
|
||||
/* 608 */,
|
||||
@@ -55902,4 +55902,4 @@ webpackJsonp([2,3],[
|
||||
|
||||
/***/ }
|
||||
]);
|
||||
//# sourceMappingURL=vendor.f73c0104cb72cfb2809e.js.map
|
||||
//# sourceMappingURL=vendor.c882d66445aebc52c21b.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -4,13 +4,11 @@
|
||||
import React from "react";
|
||||
import { connect } from 'react-redux';
|
||||
import Spinner from "react-loader";
|
||||
// import * as BS from "react-bootstrap";
|
||||
import * as BS from "react-bootstrap";
|
||||
import * as A from '../actions/entities';
|
||||
import read from '../utils/readProp';
|
||||
import { Route, IndexRoute, Link, IndexLink } from "react-router";
|
||||
|
||||
|
||||
// import { Money } from '../components/Money';
|
||||
|
||||
export class AccountInfo extends React.Component {
|
||||
componentWillMount() {
|
||||
this.ensureData(this.props);
|
||||
@@ -28,20 +26,26 @@ export class AccountInfo extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { entities, accountId } = this.props;
|
||||
const { entities, accountId, customerId } = this.props;
|
||||
|
||||
const account = entities[accountId];
|
||||
|
||||
if (!account) {
|
||||
return (<Link to={ `/account/${accountId}` }>{ accountId } <Spinner loaded={false} /></Link>)
|
||||
if (!account || !accountId) {
|
||||
return (<div title={ `${accountId}` }>{ accountId } <Spinner loaded={false} /></div>);
|
||||
// {/*return (<Link to={ `/account/${accountId}` }>{ accountId } <Spinner loaded={false} /></Link>)*/}
|
||||
}
|
||||
|
||||
const { title } = account;
|
||||
const { title, owner } = account;
|
||||
|
||||
return (<Link to={ `/account/${accountId}` }>{ title }</Link>);
|
||||
if ((typeof owner !== 'undefined') && (customerId !== owner)) {
|
||||
return (<BS.Button bsStyle="link" disabled title={ `${accountId}` } style={{ padding: '0 0' }}>{ title }</BS.Button>);
|
||||
} else {
|
||||
return (<Link to={ `/account/${accountId}` }>{ title }</Link>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(({ app }) => ({
|
||||
entities: app.data.entities
|
||||
entities: app.data.entities,
|
||||
customerId: read(app, 'auth.user.isSignedIn', false) ? read(app, 'auth.user.attributes.id', null): null,
|
||||
}))(AccountInfo);
|
||||
|
||||
@@ -8,6 +8,7 @@ import { Link, IndexLink} from "react-router";
|
||||
import { connect } from "react-redux";
|
||||
//import * as DefaultTheme from "redux-auth";
|
||||
import Select from "react-select";
|
||||
import AccountInfo from '../components/AccountInfo';
|
||||
import * as Modals from './modals';
|
||||
import IndexPanel from "./../components/partials/IndexPanel";
|
||||
|
||||
@@ -164,7 +165,7 @@ class MyAccounts extends React.Component {
|
||||
accountId, balance, description = '', title
|
||||
}, idx) => (
|
||||
<tr key={`own_${idx}`}>
|
||||
<td key={0}><Link to={`/account/${accountId}`}>{ title }</Link>{
|
||||
<td key={0}><AccountInfo accountId={accountId} />{
|
||||
(description) ? [
|
||||
(<br />),
|
||||
<span>{ description }</span>
|
||||
@@ -182,7 +183,7 @@ class MyAccounts extends React.Component {
|
||||
id
|
||||
}, idx) => (
|
||||
<tr key={`ref_${idx}`}>
|
||||
<td key={0}><Link to={`/account/${id}`}>{ title }</Link>{
|
||||
<td key={0}><AccountInfo accountId={id} />{
|
||||
(description) ? [
|
||||
(<br />),
|
||||
<span>{ description }</span>
|
||||
|
||||
Reference in New Issue
Block a user