This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns app.rpc | |
(:require-macros | |
[adzerk.env :as env]) | |
(:require | |
[ui.util :as util] | |
[ui.paging :as p :refer-macros [defp]] | |
[castra.core :as castra :refer [mkremote]])) | |
(env/def | |
GEIR_BRANCH nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ui.paging | |
(:require [hoplon.core :refer (def-values)])) | |
(defmacro defp | |
[name & args] | |
`(def ~name (paginate ~@args))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns metosin.dates | |
"Use this namespace to format dates and datetimes for user. | |
Don't use for serializing or deserializing. | |
Clojure side uses always Helsinki timezone. | |
On Cljs side, uses the timezone of browser." | |
#?(:cljs (:require goog.date.UtcDateTime | |
goog.date.Date | |
goog.i18n.DateTimeFormat)) | |
#?(:clj (:import [org.joda.time DateTimeZone]))) |