diff --git a/.gitignore b/.gitignore index 902e2bb..73a272f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ dist renderer node_modules +.DS_Store diff --git a/package.json b/package.json index 86ff1f8..0a380d0 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "main": "main/index.js", "scripts": { "start": "yarn prepare && electron main/index.js", - "build": "build", - "pack": "build --dir", + "build": "electron-builder", + "pack": "electron-builder --dir", "prepare": "babel src -d renderer", "watch": "babel src -d renderer -w" }, @@ -37,7 +37,7 @@ "build": { "appId": "io.blocks", "productName": "Blocks", - "copyright": "© 2019 Blocks contributores. All rights reserved", + "copyright": "© 2019 Blocks contributors. All rights reserved", "mac": { "category": "public.app-category.developer-tools" }, diff --git a/src/index.js b/src/index.js index 26f1712..d3bb475 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import { remote, ipcRenderer } from 'electron' import { jsx, Styled } from 'theme-ui' import { render } from 'react-dom' import { Editor, serializer, stringifyMDX } from '@blocks/editor' -import { Folder, FileText } from 'react-feather' +import { Folder, FileText, ArrowLeft } from 'react-feather' import debounce from 'lodash.debounce' import Layout from './layout' @@ -56,6 +56,8 @@ const App = () => { }, [openFilePathname]) if (openFilePathname && openFileContents) { + const parentDir = getParentDirectory(openFilePathname) + return ( { marginTop: '40px' }} > + { + handleFileListSelection(parentDir) + }} + > + + Back + + + + {openFilePathname} + {