Skip to content

Om dev component for extra features - state history navigation, state snapshot etc ...

License

Notifications You must be signed in to change notification settings

ioRekz/om-dev-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omdev

An Om component that enlive your existing component adding extra features for developement. http://jvuillermet.svbtle.com/om-dev-component

  • State history navigation (undo/redo)
  • State snapshot
  • State inspection & edition(soon) with ankha
  • Go to State input
  • Pretty print (js object & edn) in console
  • Print State history on javascript error
  • hopefully more to come ...

Running example based on Om counters example: http://iorekz.github.io/

Usage

Clojars Project

Just replace om/root with omdev/dev-component

(ns goss.core
  (:require [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]
            [omdev.core :as omdev]))

(omdev/dev-component my-component
    (atom {:text "Instrument!"
           :list [{:text "Milk"} {:text "Cookies"} {:text "Applesss"}]})
    {:target (.getElementById js/document "app")
     :tx-listen (fn [tx-data root-cursor]
                  (println "listener 1: " tx-data))})

License

Copyright © 2014 Jeremy Vuillermet

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Om dev component for extra features - state history navigation, state snapshot etc ...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published