diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..033b70e --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,8 @@ +The ISC License (ISC) +===================== + +Copyright © 2024, swrup + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md index a8a3316..e9d84ba 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -# slippery_slidy +# gadgetobrr -js_of_ocmal + brr library to make slider +utilitarian Brr based library to make widgets. +Help to create input elements and listen to input events on them ## TODOs -- add a default css -- make slider container dragable -- make a color picker +- use webstorage to make it work accross pages? diff --git a/dune-project b/dune-project index 88902de..5433884 100644 --- a/dune-project +++ b/dune-project @@ -1,26 +1,27 @@ (lang dune 3.14) -(name slippery_slidy) +(name gadgetobrr) (generate_opam_files true) +(authors "swrup ") + +(maintainers "Swrup") + (source - (github username/reponame)) + (uri git+https://git.zapashcanon.fr/swrup/gadgetobrr.git)) -(authors "Author Name") +(homepage https://git.zapashcanon.fr/swrup/gadgetobrr) -(maintainers "Maintainer Name") +(bug_reports https://git.zapashcanon.fr/swrup/gadgetobrr/issues) -(license LICENSE) - -(documentation https://url/to/documentation) +(license ISC) (package - (name slippery_slidy) - (synopsis "A short synopsis") - (description "A longer description") + (name gadgetobrr) + (synopsis "Brr based library to help making input elements") + (description "library based on Brr to make input elements and setup listeners \ + on them to tweak values") (depends ocaml dune js_of_ocaml brr) (tags - (topics "to describe" your project))) - -; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project + (topics js_of_ocaml brr widget))) diff --git a/examples/dune b/examples/dune index de9fad8..731c5fa 100644 --- a/examples/dune +++ b/examples/dune @@ -1,5 +1,5 @@ (executable (name main) (modules main) - (libraries js_of_ocaml brr slippery_slidy) + (libraries js_of_ocaml brr gadgetobrr) (modes js)) diff --git a/examples/main.ml b/examples/main.ml index 5266987..10ce5ce 100644 --- a/examples/main.ml +++ b/examples/main.ml @@ -1,7 +1,7 @@ (* This add a slidder to into
moving the slider print its value to the console *) open Brr -open Slippery_slidy +open Gadgetobrr let append_el_to_main el = let main = diff --git a/gadgetobrr.opam b/gadgetobrr.opam new file mode 100644 index 0000000..0454828 --- /dev/null +++ b/gadgetobrr.opam @@ -0,0 +1,33 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "Brr based library to help making input elements" +description: + "library based on Brr to make input elements and setup listeners on them to tweak values" +maintainer: ["Swrup"] +authors: ["swrup "] +license: "ISC" +tags: ["topics" "js_of_ocaml" "brr" "widget"] +homepage: "https://git.zapashcanon.fr/swrup/gadgetobrr" +bug-reports: "https://git.zapashcanon.fr/swrup/gadgetobrr/issues" +depends: [ + "ocaml" + "dune" {>= "3.14"} + "js_of_ocaml" + "brr" + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://git.zapashcanon.fr/swrup/gadgetobrr.git" diff --git a/lib/dune b/lib/dune index 2660ae3..4fb7358 100644 --- a/lib/dune +++ b/lib/dune @@ -1,4 +1,4 @@ (library - (name slippery_slidy) - (public_name slippery_slidy) + (name gadgetobrr) + (public_name gadgetobrr) (libraries js_of_ocaml brr)) diff --git a/lib/slippery_slidy.ml b/lib/gadgetobrr.ml similarity index 100% rename from lib/slippery_slidy.ml rename to lib/gadgetobrr.ml diff --git a/lib/slippery_slidy.mli b/lib/gadgetobrr.mli similarity index 100% rename from lib/slippery_slidy.mli rename to lib/gadgetobrr.mli diff --git a/slippery_slidy.opam b/slippery_slidy.opam deleted file mode 100644 index bd2671a..0000000 --- a/slippery_slidy.opam +++ /dev/null @@ -1,33 +0,0 @@ -# This file is generated by dune, edit dune-project instead -opam-version: "2.0" -synopsis: "A short synopsis" -description: "A longer description" -maintainer: ["Maintainer Name"] -authors: ["Author Name"] -license: "LICENSE" -tags: ["topics" "to describe" "your" "project"] -homepage: "https://github.com/username/reponame" -doc: "https://url/to/documentation" -bug-reports: "https://github.com/username/reponame/issues" -depends: [ - "ocaml" - "dune" {>= "3.14"} - "js_of_ocaml" - "brr" - "odoc" {with-doc} -] -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@runtest" {with-test} - "@doc" {with-doc} - ] -] -dev-repo: "git+https://github.com/username/reponame.git"