๐Ÿ“๐Ÿ–ผ๏ธ๐Ÿน A small thing where I can upload a file and get a link back. https://media.strawmelonjuice.com/
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

allow dismiss

+7
+7
dashboard/src/strawmediajuice_fe.gleam
··· 114 114 ApiFileUploaded(String) 115 115 ApiFileUploadFailed 116 116 UploadableFileContent(String) 117 + UserDismissedUploadSuccess 117 118 } 118 119 119 120 fn update(model: Model, msg: Msg) -> #(Model, Effect(Msg)) { 120 121 case msg { 122 + UserDismissedUploadSuccess -> #( 123 + Model(..model, successfully_uploaded_dialog: None), 124 + effect.none(), 125 + ) 126 + 121 127 UserSubmittedLoginForm(form_data) -> { 122 128 let username = 123 129 option.from_result( ··· 1037 1043 "alert alert-vertical sm:alert-horizontal bg-secondary text-secondary-content", 1038 1044 ), 1039 1045 attribute.role("alert"), 1046 + event.on_click(UserDismissedUploadSuccess), 1040 1047 ], 1041 1048 [ 1042 1049 svg.svg(