-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
721ff97
commit 8f30da6
Showing
5 changed files
with
161 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "StippleUI" | ||
uuid = "a3c5d34a-b254-4859-a8fa-b86abb7e84a3" | ||
authors = ["Adrian Salceanu <[email protected]>"] | ||
version = "0.22.13" | ||
version = "0.22.14" | ||
|
||
[deps] | ||
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" | ||
|
@@ -22,10 +22,10 @@ StippleUIDataFramesExt = "DataFrames" | |
Colors = "0.12" | ||
DataFrames = "1" | ||
Dates = "1.6" | ||
Genie = "5" | ||
Genie = "5.23.7" | ||
OrderedCollections = "1" | ||
PrecompileTools = "1" | ||
Stipple = "0.27.15" | ||
Stipple = "0.27.27" | ||
Tables = "1" | ||
julia = "1.6" | ||
|
||
|
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,5 @@ | ||
[deps] | ||
GenieAutoReload = "c6228e60-a24f-11e9-1776-c313472ebacc" | ||
GenieFramework = "a59fdf5c-6bf0-4f5d-949c-a137c9e2f353" | ||
Stipple = "4acbeb90-81a0-11ea-1966-bdaff8155998" | ||
StippleUI = "a3c5d34a-b254-4859-a8fa-b86abb7e84a3" |
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,59 @@ | ||
module App | ||
|
||
using GenieFramework | ||
@genietools | ||
|
||
@app begin | ||
@event rejected begin | ||
@info "rejected" | ||
# @info params(:payload)["event"] | ||
end | ||
|
||
# @event added begin | ||
# @info "added" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
# @event removed begin | ||
# @info "removed" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
# @event started begin | ||
# @info "started" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
# @event uploading begin | ||
# @info "uploading" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
# @event uploaded begin | ||
# @info "uploaded" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
# @event finished begin | ||
# @info "finished" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
# @event failed begin | ||
# @info "failed" | ||
# # @info params(:payload)["event"] | ||
# end | ||
|
||
@onchange fileuploads begin | ||
if ! isempty(fileuploads) | ||
@info "File was uploaded: " fileuploads | ||
fileuploads = Dict{AbstractString,AbstractString}() | ||
end | ||
|
||
@info "All good" | ||
end | ||
end | ||
|
||
@page("/", "ui.jl") | ||
|
||
end |
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,24 @@ | ||
heading("File uploader demo") | ||
uploader( multiple = true, | ||
accept = ".jpg, .jpeg, .pdf, image/*", | ||
maxfilesize = 102400000000, | ||
maxfiles = 10, | ||
autoupload = true, | ||
hideuploadbtn = true, | ||
method = "POST", | ||
label = "Upload Images", | ||
nothumbnails = false, | ||
dark = false, | ||
square = false, | ||
flat = false, | ||
bordered = false, | ||
|
||
# @on("rejected", :rejected), | ||
# @on("added", :added), | ||
# @on("removed", :removed), | ||
# @on("uploaded", :uploaded), | ||
# @on("uploading", :uploading), | ||
# @on("start", :started), | ||
# @on("finish", :finished), | ||
# @on("failed", :failed) | ||
) |
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