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

View File

@ -1,26 +1,27 @@
(lang dune 3.14)
(name slippery_slidy)
(name gadgetobrr)
(generate_opam_files true)
(authors "swrup <swrup@protonmail.com>")
(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)))

View File

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

View File

@ -1,7 +1,7 @@
(* This add a slidder to into <main>
moving the slider print its value to the console *)
open Brr
open Slippery_slidy
open Gadgetobrr
let append_el_to_main el =
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
(name slippery_slidy)
(public_name slippery_slidy)
(name gadgetobrr)
(public_name gadgetobrr)
(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"