5 changed files with 70 additions and 61 deletions
@ -0,0 +1,31 @@ |
|||
import './polyfill'; |
|||
|
|||
// TODO remove
|
|||
// import dva from 'dva';
|
|||
|
|||
// import createHistory from 'history/createHashHistory';
|
|||
// // user BrowserHistory
|
|||
// // import createHistory from 'history/createBrowserHistory';
|
|||
// import createLoading from 'dva-loading';
|
|||
// import 'moment/locale/zh-cn';
|
|||
// import './rollbar';
|
|||
|
|||
// import './index.less';
|
|||
// // 1. Initialize
|
|||
// const app = dva({
|
|||
// history: createHistory(),
|
|||
// });
|
|||
|
|||
// // 2. Plugins
|
|||
// app.use(createLoading());
|
|||
|
|||
// // 3. Register global model
|
|||
// app.model(require('./models/global').default);
|
|||
|
|||
// // 4. Router
|
|||
// app.router(require('./router').default);
|
|||
|
|||
// // 5. Start
|
|||
// app.start('#root');
|
|||
|
|||
// export default app._store; // eslint-disable-line
|
|||
@ -0,0 +1,33 @@ |
|||
html, |
|||
body, |
|||
#root { |
|||
height: 100%; |
|||
} |
|||
|
|||
.colorWeak { |
|||
filter: invert(80%); |
|||
} |
|||
|
|||
.ant-layout { |
|||
min-height: 100vh; |
|||
} |
|||
|
|||
canvas { |
|||
display: block; |
|||
} |
|||
|
|||
body { |
|||
text-rendering: optimizeLegibility; |
|||
-webkit-font-smoothing: antialiased; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
} |
|||
|
|||
.globalSpin { |
|||
width: 100%; |
|||
margin: 40px 0 !important; |
|||
} |
|||
|
|||
// temp fix for https://github.com/ant-design/ant-design/commit/a1fafb5b727b62cb0be29ce6e9eca8f579d4f8b7 |
|||
.ant-spin-container { |
|||
overflow: visible !important; |
|||
} |
|||
@ -1,29 +0,0 @@ |
|||
import './polyfill'; |
|||
import dva from 'dva'; |
|||
|
|||
import createHistory from 'history/createHashHistory'; |
|||
// user BrowserHistory
|
|||
// import createHistory from 'history/createBrowserHistory';
|
|||
import createLoading from 'dva-loading'; |
|||
import 'moment/locale/zh-cn'; |
|||
import './rollbar'; |
|||
|
|||
import './index.less'; |
|||
// 1. Initialize
|
|||
const app = dva({ |
|||
history: createHistory(), |
|||
}); |
|||
|
|||
// 2. Plugins
|
|||
app.use(createLoading()); |
|||
|
|||
// 3. Register global model
|
|||
app.model(require('./models/global').default); |
|||
|
|||
// 4. Router
|
|||
app.router(require('./router').default); |
|||
|
|||
// 5. Start
|
|||
app.start('#root'); |
|||
|
|||
export default app._store; // eslint-disable-line
|
|||
Loading…
Reference in new issue