1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-27 07:52:28 -05:00

Move all components into 'components' subdirectory

This commit is contained in:
Aaron Lindsay 2016-10-05 13:45:09 -04:00
parent 6257e9193f
commit 0829393918
11 changed files with 18 additions and 19 deletions

View File

@ -2,7 +2,7 @@ var React = require('react');
var Combobox = require('react-widgets').Combobox; var Combobox = require('react-widgets').Combobox;
var getAccountDisplayList = require('./utils.js').getAccountDisplayList; var getAccountDisplayList = require('../utils').getAccountDisplayList;
module.exports = React.createClass({ module.exports = React.createClass({
displayName: "AccountCombobox", displayName: "AccountCombobox",

View File

@ -32,7 +32,7 @@ var DropdownList = ReactWidgets.DropdownList;
var Big = require('big.js'); var Big = require('big.js');
var models = require('./models.js'); var models = require('../models');
var Security = models.Security; var Security = models.Security;
var Account = models.Account; var Account = models.Account;
var Split = models.Split; var Split = models.Split;
@ -42,9 +42,9 @@ var TransactionStatusList = models.TransactionStatusList;
var TransactionStatusMap = models.TransactionStatusMap; var TransactionStatusMap = models.TransactionStatusMap;
var Error = models.Error; var Error = models.Error;
var getAccountDisplayName = require('./utils.js').getAccountDisplayName; var getAccountDisplayName = require('../utils').getAccountDisplayName;
var AccountCombobox = require('./AccountCombobox.js'); var AccountCombobox = require('./AccountCombobox');
const TransactionRow = React.createClass({ const TransactionRow = React.createClass({
handleClick: function(e) { handleClick: function(e) {

View File

@ -12,8 +12,7 @@ var FormControl = ReactBootstrap.FormControl;
var ControlLabel = ReactBootstrap.ControlLabel; var ControlLabel = ReactBootstrap.ControlLabel;
var Col = ReactBootstrap.Col; var Col = ReactBootstrap.Col;
var models = require('./models.js'); var User = require('../models').User;
var User = models.User;
module.exports = React.createClass({ module.exports = React.createClass({
displayName: "AccountSettingsModal", displayName: "AccountSettingsModal",

View File

@ -22,13 +22,13 @@ var Collapse = ReactBootstrap.Collapse;
var Combobox = require('react-widgets').Combobox; var Combobox = require('react-widgets').Combobox;
var models = require('./models.js'); var models = require('../models');
var Security = models.Security; var Security = models.Security;
var Account = models.Account; var Account = models.Account;
var AccountTypeList = models.AccountTypeList; var AccountTypeList = models.AccountTypeList;
var AccountCombobox = require('./AccountCombobox.js'); var AccountCombobox = require('./AccountCombobox');
var AccountRegister = require('./AccountRegister.js'); var AccountRegister = require('./AccountRegister');
const AddEditAccountModal = React.createClass({ const AddEditAccountModal = React.createClass({
getInitialState: function() { getInitialState: function() {

View File

@ -6,10 +6,10 @@ var Tabs = ReactBootstrap.Tabs;
var Tab = ReactBootstrap.Tab; var Tab = ReactBootstrap.Tab;
var Modal = ReactBootstrap.Modal; var Modal = ReactBootstrap.Modal;
var TopBarContainer = require('./containers/TopBarContainer'); var TopBarContainer = require('../containers/TopBarContainer');
var NewUserForm = require('./NewUserForm.js'); var NewUserForm = require('./NewUserForm');
var AccountSettingsModalContainer = require('./containers/AccountSettingsModalContainer'); var AccountSettingsModalContainer = require('../containers/AccountSettingsModalContainer');
var AccountsTabContainer = require('./containers/AccountsTabContainer'); var AccountsTabContainer = require('../containers/AccountsTabContainer');
module.exports = React.createClass({ module.exports = React.createClass({
displayName: "MoneyGoApp", displayName: "MoneyGoApp",

View File

@ -11,7 +11,7 @@ var Col = ReactBootstrap.Col;
var Button = ReactBootstrap.Button; var Button = ReactBootstrap.Button;
var ButtonGroup = ReactBootstrap.ButtonGroup; var ButtonGroup = ReactBootstrap.ButtonGroup;
var models = require('./models.js'); var models = require('../models');
var User = models.User; var User = models.User;
var Error = models.Error; var Error = models.Error;

View File

@ -12,7 +12,7 @@ var Col = ReactBootstrap.Col;
var ReactDOM = require('react-dom'); var ReactDOM = require('react-dom');
var User = require('./models.js').User; var User = require('../models').User;
const LoginBar = React.createClass({ const LoginBar = React.createClass({
getInitialState: function() { getInitialState: function() {

View File

@ -1,7 +1,7 @@
var connect = require('react-redux').connect; var connect = require('react-redux').connect;
var UserActions = require('../actions/UserActions'); var UserActions = require('../actions/UserActions');
var AccountSettingsModal = require('../AccountSettingsModal'); var AccountSettingsModal = require('../components/AccountSettingsModal');
function mapStateToProps(state) { function mapStateToProps(state) {
return { return {

View File

@ -1,7 +1,7 @@
var connect = require('react-redux').connect; var connect = require('react-redux').connect;
var AccountActions = require('../actions/AccountActions'); var AccountActions = require('../actions/AccountActions');
var AccountsTab = require('../AccountsTab'); var AccountsTab = require('../components/AccountsTab');
function mapStateToProps(state) { function mapStateToProps(state) {
var security_list = []; var security_list = [];

View File

@ -2,7 +2,7 @@ var connect = require('react-redux').connect;
var UserActions = require('../actions/UserActions'); var UserActions = require('../actions/UserActions');
var MoneyGoApp = require('../MoneyGoApp'); var MoneyGoApp = require('../components/MoneyGoApp');
function mapStateToProps(state) { function mapStateToProps(state) {
return { return {

View File

@ -3,7 +3,7 @@ var connect = require('react-redux').connect;
var UserActions = require('../actions/UserActions'); var UserActions = require('../actions/UserActions');
var ErrorActions = require('../actions/ErrorActions'); var ErrorActions = require('../actions/ErrorActions');
var TopBar = require('../TopBar'); var TopBar = require('../components/TopBar');
function mapStateToProps(state) { function mapStateToProps(state) {
return { return {