This commit is contained in:
Andy Mikulski 2018-02-22 13:32:34 -07:00
Родитель 9b121ab121
Коммит affda3dff4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 66788E5FB2565F8B
6 изменённых файлов: 77 добавлений и 39 удалений

Просмотреть файл

@ -12,6 +12,8 @@
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.2.0",
"react-redux": "^5.0.7",
"react-router": "^4.2.0",
"react-router-dom": "^4.2.2",
"react-scripts": "1.1.1",
"redux": "^3.7.2",
"redux-little-router": "^15.0.0",
@ -27,7 +29,7 @@
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,json,css,md}": ["prettier --write", "git add"]
"*.{js,json,css,md,less}": ["prettier --write", "git add"]
},
"devDependencies": {
"babel-plugin-import": "^1.6.5",

Просмотреть файл

@ -1,7 +1,3 @@
.App {
text-align: center;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;
@ -12,10 +8,14 @@
height: 150px;
padding: 20px;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
.App-title {
font-size: 1.5em;
color: white;
}
.App-intro {
@ -23,6 +23,10 @@
}
@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

Просмотреть файл

@ -1,18 +0,0 @@
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
</div>
);
}
}
export default App;

Просмотреть файл

@ -1,8 +1,35 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
// import registerServiceWorker from './registerServiceWorker';
import React, { Component } from "react";
import logo from "./logo.svg";
import "./App.css";
import Normandy from "normandy/index.js";
import { BrowserRouter, Link } from "react-router-dom";
import { Route } from "react-router";
ReactDOM.render(<App />, document.getElementById('root'));
// registerServiceWorker();
class App extends Component {
render() {
return (
<BrowserRouter>
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to Delivery Console</h1>
</header>
<div>
<Route
path="/"
component={() => (
<div>
<h1>Delivery Console</h1>
<Link to="/normandy/">Normandy</Link>
</div>
)}
/>
<Route path="/normandy/" component={Normandy} />
</div>
</div>
</BrowserRouter>
);
}
}
export default App;

Просмотреть файл

@ -1,7 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import DevConsoleApp from './console/App';
import React from "react";
import ReactDOM from "react-dom";
import DevConsoleApp from "./console";
// import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<DevConsoleApp />, document.getElementById('root'));
ReactDOM.render(<DevConsoleApp />, document.getElementById("root"));
// registerServiceWorker();

Просмотреть файл

@ -3442,7 +3442,7 @@ he@1.1.x:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
history@^4.6.1:
history@^4.6.1, history@^4.7.2:
version "4.7.2"
resolved "https://registry.yarnpkg.com/history/-/history-4.7.2.tgz#22b5c7f31633c5b8021c7f4a8a954ac139ee8d5b"
dependencies:
@ -3468,7 +3468,7 @@ hoek@4.x.x:
version "4.2.1"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb"
hoist-non-react-statics@^2.3.1, hoist-non-react-statics@^2.5.0:
hoist-non-react-statics@^2.3.0, hoist-non-react-statics@^2.3.1, hoist-non-react-statics@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40"
@ -5748,7 +5748,7 @@ path-to-regexp@0.1.7:
version "0.1.7"
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
path-to-regexp@^1.0.1:
path-to-regexp@^1.0.1, path-to-regexp@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d"
dependencies:
@ -6718,6 +6718,29 @@ react-redux@^5.0.7:
loose-envify "^1.1.0"
prop-types "^15.6.0"
react-router-dom@^4.2.2:
version "4.2.2"
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-4.2.2.tgz#c8a81df3adc58bba8a76782e946cbd4eae649b8d"
dependencies:
history "^4.7.2"
invariant "^2.2.2"
loose-envify "^1.3.1"
prop-types "^15.5.4"
react-router "^4.2.0"
warning "^3.0.0"
react-router@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-4.2.0.tgz#61f7b3e3770daeb24062dae3eedef1b054155986"
dependencies:
history "^4.7.2"
hoist-non-react-statics "^2.3.0"
invariant "^2.2.2"
loose-envify "^1.3.1"
path-to-regexp "^1.7.0"
prop-types "^15.5.4"
warning "^3.0.0"
react-scripts@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-1.1.1.tgz#279d449f7311fed910506987a1ade014027788a8"