-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new review pages for admin and ISV (#591)
- Loading branch information
dongrui
authored
Dec 20, 2018
1 parent
879a69e
commit aa5f664
Showing
24 changed files
with
1,215 additions
and
138 deletions.
There are no files selected for viewing
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,55 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Link } from 'react-router-dom'; | ||
import classnames from 'classnames'; | ||
import { translate } from 'react-i18next'; | ||
|
||
import { Image } from 'components/Base'; | ||
import styles from './index.scss'; | ||
|
||
@translate() | ||
export default class AppName extends React.Component { | ||
static propTypes = { | ||
className: PropTypes.string, | ||
icon: PropTypes.string, | ||
linkUrl: PropTypes.string, | ||
name: PropTypes.string, | ||
type: PropTypes.string, | ||
versionName: PropTypes.string | ||
}; | ||
|
||
render() { | ||
const { | ||
className, icon, name, linkUrl, type, versionName | ||
} = this.props; | ||
|
||
return ( | ||
<div className={classnames(styles.appName, className)}> | ||
<span className={styles.image}> | ||
<Image src={icon} iconLetter={name} iconSize={40} /> | ||
</span> | ||
|
||
<span className={styles.info}> | ||
{linkUrl ? ( | ||
<Link to={linkUrl} title={name} className={styles.name}> | ||
{name} | ||
</Link> | ||
) : ( | ||
<div title={name} className={styles.name}> | ||
{name} | ||
</div> | ||
)} | ||
|
||
{Boolean(type || versionName) && ( | ||
<div className={styles.description}> | ||
<span className={styles.type}>{type}</span> | ||
/ <span className={styles.versionName}> | ||
{versionName} | ||
</span> | ||
</div> | ||
)} | ||
</span> | ||
</div> | ||
); | ||
} | ||
} |
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,48 @@ | ||
@import '~scss/vars'; | ||
|
||
.appName { | ||
display: inline-block; | ||
.image { | ||
display: inline-block; | ||
float: left; | ||
margin-right: 8px; | ||
width: 40px; | ||
height: 40px; | ||
line-height: 40px; | ||
|
||
img { | ||
max-width: 100%; | ||
max-height: 100%; | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
.info { | ||
display: inline-block; | ||
line-height: 20px; | ||
font-size: 12px; | ||
|
||
.name { | ||
width: 120px; | ||
color: $N500; | ||
font-weight: 500; | ||
width: 130px; | ||
@include textCut; | ||
} | ||
|
||
a:hover { | ||
color: $link-hover; | ||
} | ||
|
||
.description { | ||
.type { | ||
color: $N300; | ||
font-weight: 500; | ||
} | ||
|
||
.versionName { | ||
color: $N300; | ||
} | ||
} | ||
} | ||
} |
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 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 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 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 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 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
Empty file.
Oops, something went wrong.