mirror of
https://github.com/wassname/talk.git
synced 2026-08-17 11:27:52 +08:00
Removing divs from routes
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
body, #root {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "./node_modules/.bin/webpack --config webpack.config.js",
|
||||
"watch": "./node_modules/.bin/webpack --config webpack.config.js --watch",
|
||||
"start": "./node_modules/.bin/webpack-dev-server --config webpack.config.dev.js --inline --hot --content-base public --port 3142"
|
||||
},
|
||||
"keywords": [],
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
body, #root {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -18,14 +18,13 @@ export default class App extends React.Component {
|
||||
<Provider store={store}>
|
||||
<Layout>
|
||||
<Header>
|
||||
<div>
|
||||
<Router history={browserHistory}>
|
||||
<Route path={config.base} component={ModerationQueue} />
|
||||
<Route path={`${config.base}/embed`} component={CommentStream} />
|
||||
<Route path={`${config.base}/embedlink`} component={EmbedLink} />
|
||||
<Route path={`${config.base}/configure`} component={Configure} />
|
||||
<Route path={config.base} component={ModerationQueue}>
|
||||
<Route path="embed" component={CommentStream} />
|
||||
<Route path="embedlink" component={EmbedLink} />
|
||||
<Route path="configure" component={Configure} />
|
||||
</Route>
|
||||
</Router>
|
||||
</div>
|
||||
</Header>
|
||||
</Layout>
|
||||
</Provider>
|
||||
|
||||
@@ -9,14 +9,15 @@ export default (props) => (
|
||||
<Layout fixedDrawer>
|
||||
<Header title='Talk'>
|
||||
<Navigation>
|
||||
<Link className={styles.navLink} href={`/${config.base}/`}>Moderate</Link>
|
||||
<Link className={styles.navLink} href={`/${config.base}/configure`}>Configure</Link>
|
||||
<Link className={styles.navLink} to={`/${config.basePath}/`}>Moderate</Link>
|
||||
<Link className={styles.navLink} to={`/${config.basePath}/`}>Community</Link>
|
||||
<Link className={styles.navLink} to={`/${config.basePath}/configure`}>Configure</Link>
|
||||
</Navigation>
|
||||
</Header>
|
||||
<Drawer>
|
||||
<Navigation>
|
||||
<Link className={styles.navLink} href={`/${config.base}/`}>Moderate</Link>
|
||||
<Link className={styles.navLink} href={`/${config.base}/configure`}>Configure</Link>
|
||||
<Link className={styles.navLink} to={`/${config.basePath}/`}>Moderate</Link>
|
||||
<Link className={styles.navLink} to={`/${config.basePath}/configure`}>Configure</Link>
|
||||
</Navigation>
|
||||
</Drawer>
|
||||
{props.children}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import React, { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import I18n from 'coral-framework/i18n/i18n'
|
||||
import translations from '../translations'
|
||||
|
||||
export default class CommunityContainer extends Component {
|
||||
render() {
|
||||
return <div>Hello</div>
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,12 @@ module.exports = {
|
||||
context: __dirname,
|
||||
postcss: [autoprefixer, precss]
|
||||
}
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
'NODE_ENV': JSON.stringify('development'),
|
||||
'VERSION': JSON.stringify(require("./package.json").version)
|
||||
}
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
|
||||
@@ -35,6 +35,12 @@ module.exports = Object.assign({}, devConfig, {
|
||||
debug: false
|
||||
}
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin()
|
||||
new webpack.optimize.UglifyJsPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
'NODE_ENV': JSON.stringify('production'),
|
||||
'VERSION': JSON.stringify(require("./package.json").version)
|
||||
}
|
||||
})
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user