This file contains hidden or 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+ ^{:hoplon/page "index.html"} foop.core | |
(:require [hoplon.core :refer :all] | |
[javelin.core :refer :all] | |
[cljsjs.jquery])) | |
(defc things #{}) | |
(cell= (print :things things)) | |
(defn toggle-set-val |
This file contains hidden or 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.form | |
(:refer-hoplon :exclude [select input textarea label form]) | |
(:require [clojure.string :as str] | |
[ui.form.input :as input] | |
[ui.button :as button] | |
[ui.modal :as modal] | |
[ui.grid :as grid] | |
[ui.icon :as icon] | |
[ui.filters :as filters] | |
[ui.link :as link] |
This file contains hidden or 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.form.input | |
(:refer-hoplon :exclude (input textarea select))) | |
(defn- change-state | |
[state handler] | |
(let [handler (or handler (fn []))] | |
#(do (reset! state @%) | |
(handler %)))) | |
(defn- field |
This file contains hidden or 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.ui.login | |
(:require [goog.net.cookies :as cks] | |
[app.rpc :as rpc] | |
[ui.form :as form] | |
[ui.button :as button] | |
[workflow.form :as workflow] | |
[ui.modal :as modal] | |
[ui.app :as app] | |
[cemerick.url :refer [url]])) |
This file contains hidden or 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 workflow.form | |
(:require | |
[castra.core :as castra] | |
[clojure.walk :as walk] | |
[clojure.data :as data])) | |
;; Form data manager ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(defn- reset-vals! | |
[map-of-cells default] |
This file contains hidden or 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.app | |
(:refer-hoplon :exclude [main body]) | |
(:refer-clojure :exclude [meta]) | |
(:require-macros [ui.app :as app]) | |
(:require [app.routes :as routes] | |
[app.integrations :as int] | |
[ui.global-state :as global])) | |
(def meta html-meta) |
This file contains hidden or 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
(page "index.html" | |
(:require | |
[cljs.reader :refer [read-string]] | |
[app.rpc :as rpc] | |
[app.routes :as routes] | |
[app.ui.nav :as nav] | |
[app.ui.login :as login] | |
[app.ui.loading :as loading] | |
[app.ui.advertisers.creatives :as creatives] | |
[app.ui.inventory.adtypes :as adtypes] |
This file contains hidden or 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
(deftest bind-events | |
(let [c (j/cell nil) | |
f #(reset! c true) | |
i (h/div :click f)] | |
(-> js/document .-body (.appendChild i)) | |
(with-dom i | |
; Native event. | |
(is (nil? @c)) |
This file contains hidden or 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 gymir.main | |
(:require | |
[gymir | |
[worker :refer [start stop]] | |
[util :refer [with-stderr print-trace]]])) | |
(Thread/setDefaultUncaughtExceptionHandler | |
(reify Thread$UncaughtExceptionHandler | |
(uncaughtException [_ thread ex] | |
(with-stderr (prn :UNCAUGHT {:thread (.getName thread)})) |
This file contains hidden or 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
#include <stddef.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <stdio.h> | |
typedef enum { | |
JS_OBJECT = 1, | |
JS_ARRAY, | |
JS_NULL, | |
JS_NUMBER, |