-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bootstrap): 重新调整了bootstrap的逻辑,entry不再依赖项目的结构,可由开发调整
- Loading branch information
Showing
12 changed files
with
110 additions
and
97 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
import '@talentui/bootstrap-react'; | ||
import app from '@talentui/bootstrap-react'; | ||
import reducer from './reducers'; | ||
import Layout from './components/common/layout' | ||
|
||
app.config({ | ||
afterCreateStore: function(store) { | ||
console.log('store created'); | ||
}, | ||
initialState: {}, | ||
el: '#bsMain', | ||
reducer, | ||
layout: Layout, | ||
pageLoader: path => | ||
import(/* webpackMode: "lazy", webpackChunkName: "[request]" */ `_/src/pages/${path}/page-view`) | ||
}); | ||
|
||
app.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import Header from './header'; | ||
import Footer from './footer'; | ||
export default class Layout extends React.Component { | ||
render() { | ||
return ( | ||
<div> | ||
<Header name="hehe" title={3} /> | ||
<div className="content-wrapper">{this.props.children}</div> | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters