aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxj92019-11-26 12:29:00 -0700
committerxj92019-11-26 12:29:00 -0700
commitfd95ee035b27985ce6ce70f6c97f6915dd1694c7 (patch)
treea7b23e323ef77365e13d7469360d0f7ad424c932
parentcb97cc0a361adf241ae68e1b10bcd58a092d64a1 (diff)
parent776a56d215b4eead769a813c9cc2c0fbe935d205 (diff)
downloadtracker-master.tar.gz
tracker-master.tar.xz
Merge branch 'master' of sunshinegardens.org:repos/g/trackerHEADmaster
-rw-r--r--README.md43
-rw-r--r--src/Main.elm43
2 files changed, 74 insertions, 12 deletions
diff --git a/README.md b/README.md
index 6a54ac3..74a95ac 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# tracker
+# tracker(1) - a cybermapping tool
> THIS IS ALPHA SOFTWARE, USE AT YOUR OWN RISK
@@ -6,16 +6,6 @@ like it says on the tin, tracker is about keeping an eye on stuff. interact with
all kinds of information and media in one place including feddy frens, peertube
channels, rss, maybe nntpchan, using an eventually native client written in elm.
-sorry friends, but v1 will be web-based.
-
-- https://elm-lang.org/
-
-this will make adoption easier, while allowing use to develop the majority
-application in portable elm. in the future we can write in an elm compiler in
-chicken scheme and attach a selection of runtime libraries that can be used to
-run tracker clients natively on small computers. hopefully this will also give
-us a chance to drag a bunch of web data off the web and onto the mesh as well.
-
> S-expressions were originally intended only for data to be manipulated by
> M-expressions, but the first implementation of Lisp was an interpreter of
> S-expression encodings of M-expressions, and Lisp programmers soon became
@@ -28,6 +18,16 @@ kinda wanted to make a scheme dialect, but i don't think that will help scheme
particularly. rather i would like to try taking the M-expression route and see
where it takes us.
+this will make adoption easier, while allowing use to develop the majority
+application in portable elm. in the future we can write in an elm compiler in
+chicken scheme and attach a selection of runtime libraries that can be used to
+run tracker clients natively on small computers. hopefully this will also give
+us a chance to drag a bunch of web data off the web and onto the mesh as well.
+
+sorry friends, but v1 will be web-based.
+
+- https://elm-lang.org/
+
## clients
> tracker is an *elm* application. web is just a stepping stone to bigger and
@@ -71,6 +71,25 @@ gpg --no-version --armor --sign WAIVER
[editor plugins]: https://guide.elm-lang.org/install/editor.html
[pe]: https://sunshinegardens.org/git/xj9/g/pe-vim/about/
+## dependencies
+
+> tracker is an *elm* application. web is just a stepping stone to bigger and
+> better things.
+
+- [elm][elm]
+- [mk][mk]
+
+[elm]: https://guide.elm-lang.org/install/elm.html
+[mk]: https://github.com/9fans/plan9port
+
+## editor
+
+- [editor plugins][editor plugins]
+- [pe][pe]
+
+[editor plugins]: https://guide.elm-lang.org/install/editor.html
+[pe]: https://sunshinegardens.org/git/xj9/g/pe-vim/about/
+
## questions? ideas? problems?
- [mailing list](https://lists.sr.ht/~xj9/walkaway.software.tracker)
@@ -82,7 +101,7 @@ tracker is designed around a subjective identity model. users can associate
various identities to their passport which is stored in an encrypted blob. this
passport allows seamless interactions with many networks at once.
-- https://handbook.scuttlebutt.nz/principles/
+- https://scuttlebutt.nz/docs/principles/
## storage
diff --git a/src/Main.elm b/src/Main.elm
index 13f5fc9..caa40fc 100644
--- a/src/Main.elm
+++ b/src/Main.elm
@@ -63,3 +63,46 @@ view model =
[ h2 [] [ text "Welcome to Tracker" ] ]
, p [] [ text "u mom gay" ]
]
+=======
+module Main exposing (..)
+
+import Browser
+import Html exposing (Html, h2, header, button, article, text, p)
+import Html.Events exposing (onClick)
+
+-- MAIN
+
+main =
+ Browser.sandbox { init = init, update = update, view = view }
+
+-- MODEL
+
+type alias Model = Int
+
+init : Model
+init =
+ 0
+
+-- UPDATE
+
+type Msg
+ = Increment
+ | Decrement
+
+update : Msg -> Model -> Model
+update msg model =
+ case msg of
+ Increment ->
+ model + 1
+ Decrement ->
+ model - 1
+
+-- VIEW
+
+view : Model -> Html Msg
+view model =
+ article []
+ [ header []
+ [ h2 [] [ text "Welcome to Tracker" ] ]
+ , p [] [ text "u mom gay" ]
+ ]