Skip to content

Commit

Permalink
Merge branch 'master' into #29-open-orders
Browse files Browse the repository at this point in the history
Conflicts:
	build/components.jsx
	build/styles.css
  • Loading branch information
priecint committed Jul 13, 2016
2 parents 9497d66 + 8ffaa20 commit 322a04a
Show file tree
Hide file tree
Showing 25 changed files with 309 additions and 322 deletions.
40 changes: 20 additions & 20 deletions build/components.jsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/styles.css

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "augur-ui-react-components",
"version": "3.0.10",
"version": "3.0.11",
"description": "Augur UI React Components",
"author": "Baz (@thinkloop)",
"license": "AAL",
Expand All @@ -14,7 +14,7 @@
},
"scripts": {
"*** top-level runnable scripts ***": "",
"start": "http-server ./demo -c-1 -p $PORT",
"start": "augur-ui-webserver -d './demo'",
"watch": "clear; echo \"* NPM UPDATE *\"; npm update; echo \"* CLEAN * HTML * ASSETS * CSS * WATCHIFY *\"; NODE_ENV=development; npm run -s watch:all",
"build": "clear; echo \"* NPM UPDATE *\"; npm update; echo \"* * * * BUILD * * * *\"; NODE_ENV=production npm run -s build:all",
"lint": "clear; echo begin linting... && eslint --ext .jsx,.js src && echo linting complete.",
Expand Down Expand Up @@ -46,7 +46,8 @@
},
"dependencies": {},
"devDependencies": {
"babel-eslint": "6.1.1",
"augur-ui-webserver": "^1.1.0",
"babel-eslint": "6.1.2",
"babel-preset-es2015": "6.9.0",
"babel-preset-react": "6.11.1",
"babel-preset-stage-0": "6.5.0",
Expand All @@ -65,17 +66,16 @@
"eslint-plugin-react": "5.2.2",
"exorcist": "0.4.0",
"firebase-tools": "3.x.x",
"http-server": "0.9.0",
"inline-source-cli": "1.1.1",
"less": "2.7.1",
"mocha": "2.5.3",
"moment": "2.14.1",
"npm-check-updates": "^2.7.0",
"onchange": "2.5.0",
"react": "15.2.0",
"react": "15.2.1",
"react-datetime": "2.3.2",
"react-dom": "15.2.0",
"react-highcharts": "8.4.1",
"react-dom": "15.2.1",
"react-highcharts": "9.0.0",
"rimraf": "2.5.3",
"uglify-js": "2.7.0",
"watchify": "3.7.0"
Expand Down
9 changes: 7 additions & 2 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { render } from 'react-dom';

import { ACCOUNT, MAKE, POSITIONS, TRANSACTIONS, M } from './modules/site/constants/pages';
import { NEW_REGISTER, REGISTER, LOGIN, LOGOUT } from './modules/auth/constants/auth-types';
import { REGISTER, LOGIN, LOGOUT } from './modules/auth/constants/auth-types';

import MarketsPage from './modules/markets/components/markets-page';
import MarketPage from './modules/market/components/market-page';
Expand All @@ -14,6 +14,7 @@ import TransactionsPage from './modules/transactions/components/transactions-pag

export default function (appElement, selectors) {
const p = selectors;
const url = p.url;
let node;

p.siteHeader = {
Expand All @@ -30,9 +31,13 @@ export default function (appElement, selectors) {
accountLinkText: p.loginAccount && p.loginAccount.linkText || undefined
};

if (url !== window.location.pathname + window.location.search) {
window.history.pushState(null, null, url);
window.scrollTo(0, 0);
}

switch (p.activePage) {
case REGISTER:
case NEW_REGISTER:
case LOGIN:
case LOGOUT:
node = (
Expand Down
94 changes: 48 additions & 46 deletions src/assertions.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,51 @@
import assertActivePage from '../test/assertions/active-page';
import assertAuthForm from '../test/assertions/auth-form';
import assertCreateMarketForm from '../test/assertions/create-market-form';
import assertFavoriteMarkets from '../test/assertions/favorite-markets';
import assertFilters from '../test/assertions/filters';
import assertIsTransactionsWorking from '../test/assertions/is-transactions-working';
import assertKeywords from '../test/assertions/keywords';
import assertLinks from '../test/assertions/links';
import assertLoginAccount from '../test/assertions/login-account';
import assertMarket from '../test/assertions/market';
import assertMarkets from '../test/assertions/markets';
import assertMarketsHeader from '../test/assertions/markets-header';
import assertMarketsTotals from '../test/assertions/markets-totals';
import assertPagination from '../test/assertions/pagination';
import assertPositionsMarkets from '../test/assertions/positions-markets';
import assertPositionsSummary from '../test/assertions/positions-summary';
import assertSearchSort from '../test/assertions/search-sort';
import assertSelectedOutcome from '../test/assertions/selected-outcome';
import assertSideOptions from '../test/assertions/side-options';
import assertSiteHeader from '../test/assertions/site-header';
import assertTrade from '../test/assertions/trade';
import assertTransactions from '../test/assertions/transactions';
import assertTransactionsTotals from '../test/assertions/transactions-totals';
import activePage from '../test/assertions/active-page';
import authForm from '../test/assertions/auth-form';
import createMarketForm from '../test/assertions/create-market-form';
import favoriteMarkets from '../test/assertions/favorite-markets';
import filters from '../test/assertions/filters';
import isTransactionsWorking from '../test/assertions/is-transactions-working';
import keywords from '../test/assertions/keywords';
import links from '../test/assertions/links';
import loginAccount from '../test/assertions/login-account';
import market from '../test/assertions/market';
import markets from '../test/assertions/markets';
import marketsHeader from '../test/assertions/markets-header';
import marketsTotals from '../test/assertions/markets-totals';
import pagination from '../test/assertions/pagination';
import positionsMarkets from '../test/assertions/positions-markets';
import positionsSummary from '../test/assertions/positions-summary';
import searchSort from '../test/assertions/search-sort';
import selectedOutcome from '../test/assertions/selected-outcome';
import sideOptions from '../test/assertions/side-options';
import siteHeader from '../test/assertions/site-header';
import trade from '../test/assertions/trade';
import transactions from '../test/assertions/transactions';
import transactionsTotals from '../test/assertions/transactions-totals';
import url from '../test/assertions/url';

export default {
assertActivePage,
assertAuthForm,
assertCreateMarketForm,
assertFavoriteMarkets,
assertFilters,
assertIsTransactionsWorking,
assertKeywords,
assertLinks,
assertLoginAccount,
assertMarket,
assertMarkets,
assertMarketsHeader,
assertMarketsTotals,
assertPagination,
assertPositionsMarkets,
assertPositionsSummary,
assertSearchSort,
assertSelectedOutcome,
assertSideOptions,
assertSiteHeader,
assertTrade,
assertTransactions,
assertTransactionsTotals
activePage,
authForm,
createMarketForm,
favoriteMarkets,
filters,
isTransactionsWorking,
keywords,
links,
loginAccount,
market,
markets,
marketsHeader,
marketsTotals,
pagination,
positionsMarkets,
positionsSummary,
searchSort,
selectedOutcome,
sideOptions,
siteHeader,
trade,
transactions,
transactionsTotals,
url
};
15 changes: 13 additions & 2 deletions src/components.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import App from './app';
import assertions from './assertions';
import * as PAGES from './modules/site/constants/pages';
import * as AUTH_TYPES from './modules/auth/constants/auth-types';
import * as TRANSACTION_TYPES from './modules/transactions/constants/types';

const constants = {
PAGES,
AUTH_TYPES,
TRANSACTION_TYPES
};

const components = {
App,
assertions
assertions,
constants
};
export default components;

// also adding this notation to allow for importing specific pieces: import { App } from '...';
export {
App,
assertions
assertions,
constants
};

Loading

0 comments on commit 322a04a

Please sign in to comment.