Mainly just documentation
This commit is contained in:
parent
4f1a97d731
commit
0afe3c5d2b
|
@ -2,7 +2,7 @@
|
||||||
* *
|
* *
|
||||||
* swinging-needle-meter.css *
|
* swinging-needle-meter.css *
|
||||||
* *
|
* *
|
||||||
* CSS styling for the swinging needle meter. *
|
* CSS styling for the swinging needle meter itself. *
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
(ns swinging-needle-meter.config)
|
(ns swinging-needle-meter.config)
|
||||||
|
|
||||||
|
;;; This file is unchanged (except this line) from the leiningen recom template
|
||||||
|
|
||||||
(def debug?
|
(def debug?
|
||||||
^boolean goog.DEBUG)
|
^boolean goog.DEBUG)
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
[swinging-needle-meter.views :as views]
|
[swinging-needle-meter.views :as views]
|
||||||
[swinging-needle-meter.config :as config]))
|
[swinging-needle-meter.config :as config]))
|
||||||
|
|
||||||
|
;;; This file is unchanged (except this line) from the leiningen recom template
|
||||||
|
|
||||||
|
|
||||||
(defn dev-setup []
|
(defn dev-setup []
|
||||||
(when config/debug?
|
(when config/debug?
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
(:require [re-frame.core :as re-frame]
|
(:require [re-frame.core :as re-frame]
|
||||||
[swinging-needle-meter.db :as db]))
|
[swinging-needle-meter.db :as db]))
|
||||||
|
|
||||||
|
;;; This file is unchanged (except this line) from the leiningen recom template
|
||||||
|
|
||||||
(re-frame/reg-event-db
|
(re-frame/reg-event-db
|
||||||
:initialize-db
|
:initialize-db
|
||||||
(fn [_ _]
|
(fn [_ _]
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
(:require-macros [reagent.ratom :refer [reaction]])
|
(:require-macros [reagent.ratom :refer [reaction]])
|
||||||
(:require [re-frame.core :as re-frame]))
|
(:require [re-frame.core :as re-frame]))
|
||||||
|
|
||||||
|
;;; This file is unchanged (except this line) from the leiningen recom template
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
:name
|
:name
|
||||||
(fn [db]
|
(fn [db]
|
||||||
|
|
|
@ -5,6 +5,30 @@
|
||||||
[re-com.validate :refer [number-or-string? css-style? html-attr? validate-args-macro]]
|
[re-com.validate :refer [number-or-string? css-style? html-attr? validate-args-macro]]
|
||||||
[reagent.core :as reagent]))
|
[reagent.core :as reagent]))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;;;
|
||||||
|
;;;; swinging-needle-meter: an experiment in animating SVG from re-frame.
|
||||||
|
;;;; Draws heavily on re-com..
|
||||||
|
;;;;
|
||||||
|
;;;; This program is free software; you can redistribute it and/or
|
||||||
|
;;;; modify it under the terms of the GNU General Public License
|
||||||
|
;;;; as published by the Free Software Foundation; either version 2
|
||||||
|
;;;; of the License, or (at your option) any later version.
|
||||||
|
;;;;
|
||||||
|
;;;; This program is distributed in the hope that it will be useful,
|
||||||
|
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
;;;; GNU General Public License for more details.
|
||||||
|
;;;;
|
||||||
|
;;;; You should have received a copy of the GNU General Public License
|
||||||
|
;;;; along with this program; if not, write to the Free Software
|
||||||
|
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||||
|
;;;; USA.
|
||||||
|
;;;;
|
||||||
|
;;;; Copyright (C) 2014 Simon Brooke
|
||||||
|
;;;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
;; ------------------------------------------------------------------------------------
|
;; ------------------------------------------------------------------------------------
|
||||||
;; Component: swinging-needle
|
;; Component: swinging-needle
|
||||||
;; ------------------------------------------------------------------------------------
|
;; ------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue