flechtwerk
is a visualization of commit graphs from replikativ using vega or quil.
See gorilla example use here.
flechtwerk
is available at Clojars. Add the following to the :dependencies
section of your project.clj
file:
[io.replikativ/flechtwerk "0.1.1-SNAPSHOT"]
Start a gorilla
worksheet in your project and add the following:
(ns harmonious-creek
(:require [gorilla-repl.vega :as v]
[full.async :refer [<??]]
[konserve.memory :refer [new-mem-store]]
[flechtwerk.core :as g]
[flechtwerk.graph :as graph]))
(def store (<?? (new-mem-store (atom (into {} (map (fn [k v] [k v]) (range 17) (repeat {:branch "master"})))))))
(v/vega-view (<?? (g/vega-commit-graph graph/test-graph :store store)))
(ns harmonious-creek
(:require [full.async :refer [<??]]
[konserve.memory :refer [new-mem-store]]
[flechtwerk.core :as g]
[flechtwerk.graph :as graph]
[flechtwerk.quilesque :as q]))
(def store (<?? (new-mem-store (atom (into {} (map (fn [k v] [k v]) (range 17) (repeat {:branch "master"})))))))
(q/sketch (<?? (g/quil-commit-graph graph/test-graph :store store)))
Quit frame via q
, show commit id via mouse-over and print current frame to a given output-file via p
.
In ClojureScript it works accordingly, look at demo.cljs and the provided index.html for details.
- State “DONE” from “TODO” [2016-04-10 So 01:01]
- State “DONE” from “TODO” [2015-07-16 Do 15:57]
- State “FIXED” from “DONE” [2015-07-16 Do 13:18]
- State “DONE” from “TODO” [2015-07-16 Do 13:18]
Copyright © 2016 Konrad Kühne, Christian Weilbach
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.