Merge pull request #12 from jorilallo/jori-user-accounts
Jori user accounts
This commit is contained in:
@@ -36,13 +36,13 @@ class Layout extends React.Component {
|
||||
|
||||
@keydown(['/', 't'])
|
||||
search() {
|
||||
if (!this.props.user) return;
|
||||
// if (!this.props.user) return;
|
||||
_.defer(() => browserHistory.push('/search'));
|
||||
}
|
||||
|
||||
@keydown(['d'])
|
||||
dashboard() {
|
||||
if (!this.props.user) return;
|
||||
// if (!this.props.user) return;
|
||||
_.defer(() => browserHistory.push('/'));
|
||||
}
|
||||
|
||||
|
||||
@@ -79,18 +79,17 @@ class DocumentEdit extends Component {
|
||||
|
||||
if (key) {
|
||||
// Cmd + Enter
|
||||
if(key.key === 'Enter' && (key.metaKey || key.ctrl.Key)) {
|
||||
if (key.key === 'Enter' && (key.metaKey || key.ctrl.Key)) {
|
||||
this.onSave();
|
||||
}
|
||||
|
||||
// Cmd + Esc
|
||||
if(key.key === 'Escape' && (key.metaKey || key.ctrl.Key)) {
|
||||
if (key.key === 'Escape' && (key.metaKey || key.ctrl.Key)) {
|
||||
this.onCancel();
|
||||
}
|
||||
|
||||
// Cmd + m
|
||||
console.log(key)
|
||||
if(key.key === 'P' && key.shiftKey && (key.metaKey || key.ctrl.Key)) {
|
||||
if (key.key === 'P' && key.shiftKey && (key.metaKey || key.ctrl.Key)) {
|
||||
this.store.togglePreview();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,20 @@
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Atlas Grotesk';
|
||||
src: url('../fonts/atlas/AtlasGrotesk-Light-Web.woff') format('woff');
|
||||
font-weight: lighter;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Atlas Grotesk';
|
||||
src: url('../fonts/atlas/AtlasGrotesk-LightItalic-Web.woff') format('woff');
|
||||
font-weight: lighter;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Atlas Grotesk';
|
||||
src: url('../fonts/atlas/AtlasGrotesk-RegularItalic-Web.woff') format('woff');
|
||||
|
||||
Reference in New Issue
Block a user