Skip to content

Commit

Permalink
some
Browse files Browse the repository at this point in the history
  • Loading branch information
liyatang committed Jul 2, 2018
1 parent a8d8bcc commit 28cb74c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion README.md
@@ -1,3 +1,6 @@
[![npm version](https://badge.fury.io/js/react-gm.svg)](https://badge.fury.io/js/react-gm)

[![npm](https://img.shields.io/npm/v/npm.svg)](https://www.npmjs.com/package/react-gm)

[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

[文档and demo](http://gmfe.github.io/react-gm/build/)
23 changes: 12 additions & 11 deletions demo/app.js
Expand Up @@ -8,7 +8,7 @@ import { Framework, RightTop } from '../frame'

const history = createHashHistory()

const version = __VERSION__; //eslint-disable-line
const version = __VERSION__ //eslint-disable-line

@withRouter
class App extends React.Component {
Expand Down Expand Up @@ -96,14 +96,8 @@ class App extends React.Component {
/>
</svg>
<span className='gm-gap-10'/>
<span>ReactGM</span>
<span>ReactGM v{version}</span>
<span className='gm-gap-10'/>
<a
className='github-button'
href='https://github.com/gmfe/react-gm'
data-show-count='true'
aria-label='Star gmfe/react-gm on GitHub'
>Star</a>
</Flex>
</div>
{nav}
Expand All @@ -121,16 +115,23 @@ class App extends React.Component {
leftWidth='230px'
info={(
<div className='gm-padding-lr-10'>
<iframe
src='https://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=star&count=true'
frameBorder='0'
scrolling='0'
width='170px'
height='20px'
style={{verticalAlign: 'middle'}}
/>
&nbsp;
<select value={this.state.lng} onChange={e => {
this.setState({lng: e.target.value})
Storage.set('lng', e.target.value)
setLocale(e.target.value)
}}>
}} style={{verticalAlign: 'middle'}}>
<option value='en'>English</option>
<option value='zh'>中文</option>
</select>
&nbsp;
v{version}
</div>
)}
/>}
Expand Down
1 change: 0 additions & 1 deletion template/index.html
Expand Up @@ -10,6 +10,5 @@
</head>
<body>
<div id="appContainer"></div>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>

0 comments on commit 28cb74c

Please sign in to comment.