 
 
 (defn-ui-component     main-hosting-component   [app]
-  {:on-mount
-   (do  (go (let [x (remote  !getfilecontents  {:file-name nil})]
-              (js/createEditor)
-              (js/populateEditor (get x :value)))))}
+  {}
 
 
   (div nil




(defn-ui-component     editor-component   [app]
 {:on-mount
  (do  (go (if  (read-ui app [:app-id])
             (let [x (remote  !getfilecontents  {:id (read-ui app [:app-id]) })]
               (js/createEditor)
               (js/populateEditor (get x :value))))))}


  (div {}
            (div {:style {:display "inline-block" :width "1200" :height "800" :verticalAlign "top"}}
                 (textarea {:id "cm" :style {:display "inline-block" :width "1200" :height "800"}} ""))

       (iframe {:id "appframe" :style {:display "inline-block"} :src
                (str (cond
                      @c/debug-mode
                      "http://127.0.0.1:3449"

                      :else
                      "http://appshare.co/appshare")
                     "/devclient.html") :width "600" :height "800"})))








                                         ))))


                      ; if we select a different app
                      :else
                      (do
                        (div {:onClick     #(go  (write-ui app [:submode] "editappname")
                                                 (write-ui app [:app-id] (<-- :id)))

                              :style {:display "inline-block" :fontFamily "Ubuntu" :fontWeight "700" :fontSize "1.3em" ::marginTop "0.7em"}}
                             (str (<-- :application_name)))))



