|
| 1 | +"use strict"; |
| 2 | +var __extends = (this && this.__extends) || function (d, b) { |
| 3 | + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; |
| 4 | + function __() { this.constructor = d; } |
| 5 | + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
| 6 | +}; |
| 7 | +var __assign = (this && this.__assign) || Object.assign || function(t) { |
| 8 | + for (var s, i = 1, n = arguments.length; i < n; i++) { |
| 9 | + s = arguments[i]; |
| 10 | + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) |
| 11 | + t[p] = s[p]; |
| 12 | + } |
| 13 | + return t; |
| 14 | +}; |
| 15 | +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
| 16 | + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
| 17 | + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
| 18 | + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
| 19 | + return c > 3 && r && Object.defineProperty(target, key, r), r; |
| 20 | +}; |
| 21 | +var __metadata = (this && this.__metadata) || function (k, v) { |
| 22 | + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); |
| 23 | +}; |
| 24 | +var React = require('react'); |
| 25 | +var react_redux_1 = require('react-redux'); |
| 26 | +var index_1 = require('./index'); |
| 27 | +var Routes_1 = require('./Routes'); |
| 28 | +var Drawer_1 = require('material-ui/Drawer'); |
| 29 | +var App = (function (_super) { |
| 30 | + __extends(App, _super); |
| 31 | + function App() { |
| 32 | + _super.apply(this, arguments); |
| 33 | + } |
| 34 | + App.prototype.render = function () { |
| 35 | + var store = this.props.store; |
| 36 | + return (React.createElement("section", null, React.createElement(Drawer_1.default, {width: 400, openSecondary: true, open: store.windowToggle}, React.createElement("div", {className: 'cr-bg'}, React.createElement(index_1.AppMenu, __assign({}, store)), React.createElement(Routes_1.default, __assign({}, store)))), React.createElement(index_1.Alert, __assign({}, store)))); |
| 37 | + }; |
| 38 | + App = __decorate([ |
| 39 | + react_redux_1.connect(function (store) { |
| 40 | + return { store: store }; |
| 41 | + }), |
| 42 | + __metadata('design:paramtypes', []) |
| 43 | + ], App); |
| 44 | + return App; |
| 45 | +}(React.Component)); |
| 46 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 47 | +exports.default = App; |
| 48 | +; |
0 commit comments