-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from robur-coop/updated_volumes
Upload and download data from and to volumes
- Loading branch information
Showing
17 changed files
with
650 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
let modal_dialog ~modal_title ~button_content ?(button_type = `Primary_full) | ||
~content () = | ||
Tyxml_html.( | ||
section ~a:[] | ||
[ | ||
div | ||
~a:[ Unsafe.string_attrib "x-data" "{modalIsOpen: false}" ] | ||
[ | ||
Utils.button_component ~content:button_content ~btn_type:button_type | ||
~attribs: | ||
[ Unsafe.string_attrib "x-on:click" "modalIsOpen = true" ] | ||
(); | ||
div | ||
~a: | ||
[ | ||
Unsafe.string_attrib "x-cloak" ""; | ||
Unsafe.string_attrib "x-show" "modalIsOpen"; | ||
Unsafe.string_attrib "x-transition.opacity.duration.200ms" ""; | ||
Unsafe.string_attrib "x-trap.inert.noscroll" "modalIsOpen"; | ||
Unsafe.string_attrib "x-on:keydown.esc.window" | ||
"modalIsOpen = false"; | ||
Unsafe.string_attrib "x-on:click.self" "modalIsOpen = false"; | ||
a_class | ||
[ | ||
"fixed inset-0 z-30 flex items-end justify-center \ | ||
bg-black/20 p-4 backdrop-blur-md sm:items-center"; | ||
]; | ||
a_role [ "dialog" ]; | ||
a_aria "modal" [ "true" ]; | ||
] | ||
[ | ||
div | ||
~a: | ||
[ | ||
Unsafe.string_attrib "x-show" "modalIsOpen"; | ||
Unsafe.string_attrib "x-transition:enter" | ||
"transition ease-out duration-200 delay-100 \ | ||
motion-reduce:transition-opacity"; | ||
Unsafe.string_attrib "x-transition:enter-start" | ||
"opacity-0 scale-50"; | ||
Unsafe.string_attrib "x-transition:enter-end" | ||
"opacity-100 scale-100"; | ||
a_class | ||
[ | ||
"flex max-w-xl flex-col gap-4 overflow-hidden \ | ||
rounded-md border border-neutral-300 bg-gray-50"; | ||
]; | ||
] | ||
[ | ||
div | ||
~a: | ||
[ | ||
a_class | ||
[ "flex items-center justify-between border-b p-4" ]; | ||
] | ||
[ | ||
h3 | ||
~a:[ a_class [ "font-bold text-gray-700" ] ] | ||
[ txt modal_title ]; | ||
i | ||
~a: | ||
[ | ||
a_class [ "fa-solid fa-x text-sm cursor-pointer" ]; | ||
Unsafe.string_attrib "x-on:click" | ||
"modalIsOpen = false"; | ||
] | ||
[]; | ||
]; | ||
div ~a:[ a_class [ "px-4" ] ] [ content ]; | ||
]; | ||
]; | ||
]; | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.