Skip to content

Commit

Permalink
Merge 6ff3278 into 3285a18
Browse files Browse the repository at this point in the history
  • Loading branch information
gabitoesmiapodo committed Sep 6, 2018
2 parents 3285a18 + 6ff3278 commit 05b1c33
Show file tree
Hide file tree
Showing 78 changed files with 2,164 additions and 3,132 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 9 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"gulp-uglifycss": "^1.0.6",
"gulp-util": "^3.0.8",
"husky": "0.14.3",
"jest-localstorage-mock": "^2.2.0",
"markdown-toc": "^1.2.0",
"mobx-react-devtools": "^4.2.15",
"mockdate": "^2.0.2",
Expand Down Expand Up @@ -75,6 +76,7 @@
"final-form": "^4.3.1",
"final-form-arrays": "^1.0.4",
"final-form-calculate": "^1.1.0",
"final-form-set-field-touched": "^1.0.0",
"fs-extra": "3.0.1",
"html-webpack-plugin": "2.29.0",
"immutability-helper": "^2.5.0",
Expand Down Expand Up @@ -156,45 +158,25 @@
"stop": "nps test.e2e.stop"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
],
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testMatch": [
"<rootDir>/test/**/__tests__/**/*.js?(x)",
"<rootDir>/test/**/?(*.)(spec|test).js?(x)"
],
"collectCoverageFrom": [ "src/**/*.{js,jsx}" ],
"setupFiles": [ "<rootDir>/config/polyfills.js", "jest-localstorage-mock" ],
"testMatch": [ "<rootDir>/test/**/__tests__/**/*.js?(x)", "<rootDir>/test/**/?(*.)(spec|test).js?(x)" ],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$" ],
"moduleNameMapper": {
"^react-native$": "react-native-web"
},
"moduleFileExtensions": [
"web.js",
"js",
"json",
"web.jsx",
"jsx",
"node"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
"moduleFileExtensions": [ "web.js", "js", "json", "web.jsx", "jsx", "node" ],
"snapshotSerializers": [ "enzyme-to-json/serializer" ]
},
"babel": {
"presets": [
"react-app"
]
"presets": [ "react-app" ]
},
"eslintConfig": {
"extends": "react-app"
Expand Down
24 changes: 6 additions & 18 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
import React, { Component } from 'react'
import { inject, observer } from 'mobx-react'
import {
Header,
Footer,
Home,
Manage,
stepOne,
stepTwo,
stepThree,
stepFour,
Crowdsale,
Contribute,
Stats
} from './components/index'
import { Home, Manage, stepOne, stepTwo, stepThree, stepFour, Crowdsale, Contribute, Stats } from './components/index'
import NoWeb3 from './components/Common/NoWeb3'
import IncompleteDeploy from './components/IncompleteDeploy'
import { getQueryVariable } from './utils/utils'
import { getAddrFromQuery, toast } from './utils/utils'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import AlertContainer from 'react-alert'
import { TOAST } from './utils/constants'
import { toast } from './utils/utils'
import { Web3Provider } from './react-web3'
import { getQueryVariable } from './utils/utils'

// import './assets/stylesheets/application.css'

Expand All @@ -43,12 +31,12 @@ class App extends Component {
}
render() {
const { deploymentStore } = this.props
var crowdsaleAddr = getQueryVariable('addr')
let crowdsaleAddr = getAddrFromQuery()

return (
<Router>
<div>
<Header />
{/* <Header /> */}

<Switch>
<Route exact path="/crowdsale" component={Crowdsale} />
Expand Down Expand Up @@ -76,7 +64,7 @@ class App extends Component {
</Route>
</Switch>

<Footer />
{/* <Footer /> */}
<AlertContainer ref={a => (toast.msg = a)} {...TOAST.DEFAULT_OPTIONS} />
</div>
</Router>
Expand Down
1 change: 1 addition & 0 deletions src/assets/images/v2.0/Loader/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions src/assets/images/v2.0/LogoPrimary/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/v2.0/ModalWindow/icon-close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/stylesheets/styles.css

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/assets/stylesheets/v2.0/base/_display.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.hidden {
display: none;
}

.display-block {
display: block;
}

.display-inline {
display: inline;
}
16 changes: 16 additions & 0 deletions src/assets/stylesheets/v2.0/base/_effects.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.background-blur {
animation-duration: 0.25s;
animation-fill-mode: forwards;
animation-iteration-count: 1;
animation-name: sw-ModalAnimation_in;
animation-timing-function: linear;
}

@keyframes sw-ModalAnimation_in {
0% {
filter: blur(0);
}
100% {
filter: blur(2px);
}
}
4 changes: 4 additions & 0 deletions src/assets/stylesheets/v2.0/base/_index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
@import 'reset';
@import 'normalize';

@import 'display';
@import 'effects';
@import 'typography';
3 changes: 3 additions & 0 deletions src/assets/stylesheets/v2.0/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* {
box-sizing: border-box;
}
4 changes: 2 additions & 2 deletions src/assets/stylesheets/v2.0/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

body {
-webkit-font-smoothing: antialiased;
color: #4a4a4a;
color: $base-text-color;
font-family: Nunito, sans-serif;
font-size: 16px;
font-size: $base-font-size;
}
50 changes: 50 additions & 0 deletions src/assets/stylesheets/v2.0/components/_Button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
$sw-Button-height: 40px;

@mixin btn-common($bg-color, $darken: 10%) {
background-color: $bg-color;
border-color: $bg-color;
border-style: solid;

&:focus,
&.active,
&:hover {
background-color: darken($bg-color, $darken);
border-color: darken($bg-color, $darken);
}

&[disabled] {
&:focus,
&.active,
&:hover {
background-color: $bg-color;
border-color: $bg-color;
}
}

}

.sw-Button {
border-radius: 6px;
border-width: 1px;
color: #fff;
cursor: pointer;
display: inline-block;
font-size: 16px;
font-weight: 600;
height: $sw-Button-height;
line-height: $sw-Button-height;
padding: 0 20px;

&[disabled] {
cursor: not-allowed;
opacity: 0.7;
}
}

.sw-Button-primary {
@include btn-common($brand-primary);
}

.sw-Button-secondary {
@include btn-common($brand-secondary);
}
11 changes: 11 additions & 0 deletions src/assets/stylesheets/v2.0/components/_EmptyContentTextOnly.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.sw-EmptyContentTextOnly {
font-size: 18px;
line-height: 1.5;
margin: 0;
text-align: center;
word-wrap: break-word;

@media (min-width: $breakpoint-md) {
padding-top: 40px;
}
}
75 changes: 75 additions & 0 deletions src/assets/stylesheets/v2.0/components/_FlexTable.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@


.sw-FlexTable {
display: flex;
flex-direction: column;
position: relative;
// little gradient to indicate when there's some content overflow
&:after {
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 16%, #ffffff);
content: '';
height: 100%;
position: absolute;
right: -#{ $sw-ModalWindow-horizontal-padding-xs };
top: 0;
width: 80px;
z-index: 12;
@media (min-width: $breakpoint-md) {
display: none;
}
}
}

.sw-FlexTable_Head {
font-weight: 700;
}

.sw-FlexTable_Body-scrollable {
display: flex;
flex-direction: column;
flex: 1;
max-width: 100%;
min-height: auto;
overflow: auto;
}

.sw-FlexTable_Row {
display: flex;
min-height: min-content;
min-width: max-content;
padding: 14px 10px;

&:not(.sw-FlexTable_Head):nth-child(odd) {
background-color: rgba(155, 155, 155, 0.2);
}

&:not(.sw-FlexTable_Head):hover {
background-color: rgba(155, 155, 155, 0.4);
}

&:not(.sw-FlexTable_Head).selected {
color: #fff;
background-color: $brand-secondary;
}

}

.sw-FlexTable_Row-selectable {
cursor: pointer;
}

.sw-FlexTable_Td {
font-size: 16px;
line-height: 1.2;
}

// special / unique cases
.sw-FlexTable_Body-crowdsale {
max-height: 305px;
min-height: 305px;

@media (min-width: $breakpoint-md) {
max-height: 230px;
min-height: 230px;
}
}
Loading

0 comments on commit 05b1c33

Please sign in to comment.