aboutsummaryrefslogtreecommitdiff
path: root/src/main.ml
diff options
context:
space:
mode:
authorJoris2021-05-13 14:50:51 +0200
committerJoris2021-05-13 14:58:26 +0200
commit221b6451fb4f8559a10e7fefebd13ce125ef29d0 (patch)
tree3ab337b7b2d40e8235f887046a580b0850540f11 /src/main.ml
parent5c636f11cdfed82634ee572645d765b704941b68 (diff)
downloadtabata-221b6451fb4f8559a10e7fefebd13ce125ef29d0.tar.gz
tabata-221b6451fb4f8559a10e7fefebd13ce125ef29d0.tar.bz2
tabata-221b6451fb4f8559a10e7fefebd13ce125ef29d0.zip
Rewrite in TypeScript
BuckleScript is no longer maintained. Choose a widely used techno that will still be maintained in the following years.
Diffstat (limited to 'src/main.ml')
-rw-r--r--src/main.ml14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main.ml b/src/main.ml
deleted file mode 100644
index 003880b..0000000
--- a/src/main.ml
+++ /dev/null
@@ -1,14 +0,0 @@
-type view = Config of Config.config | Timer of Config.config
-
-let () =
- let html = Document.querySelectorUnsafe "html" in
- let main = Document.querySelectorUnsafe "main" in
- let rec showView v =
- Animation.replaceChild html main (fun _ ->
- match v with
- | Config config ->
- ConfigView.render config (fun config -> showView (Timer config))
- | Timer config ->
- TimerView.render config (fun config -> showView (Config config)))
- in
- showView (Config Config.init)