Merge pull request #12 from jorilallo/jori-user-accounts

Jori user accounts
This commit is contained in:
Jori Lallo authored and GitHub committed 2016-09-13 00:36:18 -07:00
commit 780b9c187f
3 files changed
+19 -6

No files matched your search

+2 -2
View File
@@ -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('/'));
}
+3 -4
View File
@@ -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();
}
}
+14
View File
@@ -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');