rename lib

This commit is contained in:
Swrup 2024-04-16 04:03:20 +02:00
parent f0ef5803b7
commit fc4b8f5b8f
10 changed files with 63 additions and 55 deletions

8
LICENSE.md Normal file
View file

@ -0,0 +1,8 @@
The ISC License (ISC)
=====================
Copyright © 2024, swrup <swrup@protonmail.com>
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.

View file

@ -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 ## TODOs
- add a default css - use webstorage to make it work accross pages?
- make slider container dragable
- make a color picker

View file

@ -1,26 +1,27 @@
(lang dune 3.14) (lang dune 3.14)
(name slippery_slidy) (name gadgetobrr)
(generate_opam_files true) (generate_opam_files true)
(authors "swrup <swrup@protonmail.com>")
(maintainers "Swrup")
(source (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) (license ISC)
(documentation https://url/to/documentation)
(package (package
(name slippery_slidy) (name gadgetobrr)
(synopsis "A short synopsis") (synopsis "Brr based library to help making input elements")
(description "A longer description") (description "library based on Brr to make input elements and setup listeners \
on them to tweak values")
(depends ocaml dune js_of_ocaml brr) (depends ocaml dune js_of_ocaml brr)
(tags (tags
(topics "to describe" your project))) (topics js_of_ocaml brr widget)))
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

View file

@ -1,5 +1,5 @@
(executable (executable
(name main) (name main)
(modules main) (modules main)
(libraries js_of_ocaml brr slippery_slidy) (libraries js_of_ocaml brr gadgetobrr)
(modes js)) (modes js))

View file

@ -1,7 +1,7 @@
(* This add a slidder to into <main> (* This add a slidder to into <main>
moving the slider print its value to the console *) moving the slider print its value to the console *)
open Brr open Brr
open Slippery_slidy open Gadgetobrr
let append_el_to_main el = let append_el_to_main el =
let main = let main =

33
gadgetobrr.opam Normal file
View file

@ -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 <swrup@protonmail.com>"]
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"

View file

@ -1,4 +1,4 @@
(library (library
(name slippery_slidy) (name gadgetobrr)
(public_name slippery_slidy) (public_name gadgetobrr)
(libraries js_of_ocaml brr)) (libraries js_of_ocaml brr))

View file

@ -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"