Skip to content

Instantly share code, notes, and snippets.

@wildermuthn
Last active February 17, 2016 15:59
Show Gist options
  • Save wildermuthn/12aca077efd8a078c8ae to your computer and use it in GitHub Desktop.
Save wildermuthn/12aca077efd8a078c8ae to your computer and use it in GitHub Desktop.
;;; Should run datascript instance on main process (nodejs)
(def pane-layout [pane-1 [pane-2 pane-3 [pane-4a pane4b]] pane-5]) ;; defines rows of panes from top-left down.
;;; Should wrap each pane in a toolbar for reodering a pane in the pane-layout.
;;; toolbar should allow for popout, attach, close.
;;; should listen for toolbar events
;;; Should run on main process (nodejs) of Electron
;;; Needs to have access to BrowserWindow api methods for opening/closing windows.
{:popout {:height nil :width nil} ;; Can this be popped out? Is it resizable?
:attach {:height nil :width nil} ;; Can this be attached? Is it resizable?
:state (atom {:header “Hi”})
:query [[:find? …] [:find? …]]
:render (fn [state query1 query2]) [:div (:header @state)]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment