2016-01-16 17:36:22 +05:30
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2016-01-16 18:05:12 +05:30
|
|
|
import Helmet from 'react-helmet';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
|
|
|
import buttons from 'components/ui/buttons.scss';
|
|
|
|
import icons from 'components/ui/icons.scss';
|
|
|
|
import { Panel, PanelBody, PanelFooter, PanelBodyHeader } from 'components/ui/Panel';
|
|
|
|
|
2016-01-19 11:47:21 +05:30
|
|
|
import styles from './permissions.scss';
|
|
|
|
import {helpLinks as helpLinksStyles} from './helpLinks.scss';
|
|
|
|
import messages from './Permissions.messages';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
2016-01-31 18:29:38 +05:30
|
|
|
export default function Permissions() {
|
|
|
|
return {
|
|
|
|
Title: () => ( // TODO: separate component for PageTitle
|
|
|
|
<Message {...messages.permissionsTitle}>
|
|
|
|
{(msg) => <span>{msg}<Helmet title={msg} /></span>}
|
|
|
|
</Message>
|
|
|
|
),
|
|
|
|
Body: () => (
|
|
|
|
<div>
|
|
|
|
<PanelBodyHeader>
|
|
|
|
<div className={styles.authInfo}>
|
|
|
|
<div className={styles.authInfoAvatar}>
|
|
|
|
{/*<img src="//lorempixel.com/g/90/90" />*/}
|
|
|
|
<span className={icons.user} />
|
|
|
|
</div>
|
|
|
|
<div className={styles.authInfoTitle}>
|
|
|
|
<Message {...messages.youAuthorizedAs} />
|
|
|
|
</div>
|
|
|
|
<div className={styles.authInfoEmail}>
|
|
|
|
erickskrauch@yandex.ru
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</PanelBodyHeader>
|
|
|
|
<div className={styles.permissionsContainer}>
|
|
|
|
<div className={styles.permissionsTitle}>
|
2016-02-06 15:32:23 +05:30
|
|
|
<Message {...messages.theAppNeedsAccess1} /><br />
|
|
|
|
<Message {...messages.theAppNeedsAccess2} />
|
2016-01-31 18:29:38 +05:30
|
|
|
</div>
|
|
|
|
<ul className={styles.permissionsList}>
|
|
|
|
<li>Authorization for Minecraft servers</li>
|
|
|
|
<li>Manage your skins directory and additional rows for multiline</li>
|
|
|
|
<li>Change the active skin</li>
|
|
|
|
<li>View your E-mail address</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
Footer: () => (
|
|
|
|
<button className={buttons.green}>
|
|
|
|
<Message {...messages.approve} />
|
|
|
|
</button>
|
|
|
|
),
|
|
|
|
Links: () => (
|
|
|
|
<a href="#">
|
|
|
|
<Message {...messages.decline} />
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class _Permissions extends Component {
|
2016-01-16 17:36:22 +05:30
|
|
|
displayName = 'Permissions';
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2016-01-19 11:47:21 +05:30
|
|
|
<div>
|
|
|
|
<Message {...messages.permissionsTitle}>
|
|
|
|
{(msg) => <Helmet title={msg} />}
|
|
|
|
</Message>
|
2016-01-16 18:05:12 +05:30
|
|
|
|
2016-01-16 17:36:22 +05:30
|
|
|
<Panel title={<Message {...messages.permissionsTitle} />}>
|
2016-01-19 02:17:32 +05:30
|
|
|
<PanelBody>
|
|
|
|
<PanelBodyHeader>
|
2016-01-16 17:36:22 +05:30
|
|
|
<div className={styles.authInfo}>
|
|
|
|
<div className={styles.authInfoAvatar}>
|
|
|
|
{/*<img src="//lorempixel.com/g/90/90" />*/}
|
|
|
|
<span className={icons.user} />
|
|
|
|
</div>
|
|
|
|
<div className={styles.authInfoTitle}>
|
|
|
|
<Message {...messages.youAuthorizedAs} />
|
|
|
|
</div>
|
|
|
|
<div className={styles.authInfoEmail}>
|
|
|
|
erickskrauch@yandex.ru
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</PanelBodyHeader>
|
2016-01-19 02:17:32 +05:30
|
|
|
<div className={styles.permissionsContainer}>
|
|
|
|
<div className={styles.permissionsTitle}>
|
|
|
|
<Message {...messages.theAppNeedsAccess} />
|
|
|
|
</div>
|
|
|
|
<ul className={styles.permissionsList}>
|
|
|
|
<li>Authorization for Minecraft servers</li>
|
|
|
|
<li>Manage your skins directory and additional rows for multiline</li>
|
|
|
|
<li>Change the active skin</li>
|
|
|
|
<li>View your E-mail address</li>
|
|
|
|
</ul>
|
2016-01-16 17:36:22 +05:30
|
|
|
</div>
|
|
|
|
</PanelBody>
|
|
|
|
<PanelFooter>
|
|
|
|
<button className={buttons.green}>
|
|
|
|
<Message {...messages.approve} />
|
|
|
|
</button>
|
|
|
|
</PanelFooter>
|
|
|
|
</Panel>
|
2016-01-19 11:47:21 +05:30
|
|
|
<div className={helpLinksStyles}>
|
2016-01-16 17:36:22 +05:30
|
|
|
<a href="#">
|
|
|
|
<Message {...messages.decline} />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|