-
Notifications
You must be signed in to change notification settings - Fork 56
Attachment upload with file dialog #674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alanpoon
wants to merge
37
commits into
project-robius:main
Choose a base branch
from
alanpoon:image_upload
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 23 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
72020cb
add image upload
alanpoon 824b6cf
added progress bar widget
alanpoon ba038cc
file upload modal
alanpoon 51e388c
added file_previewer
alanpoon 172462b
code improvement
alanpoon 13109ff
fix clippy
alanpoon bdb0b34
add FilePreviewer in App
alanpoon 0ca00fb
image upload improvement
alanpoon 2afea24
Merge branch 'main' into image_upload
alanpoon f922cf2
image_upload improvement
alanpoon 59860ab
fix clippy
alanpoon cc335f7
Merge branch 'main' into image_upload
alanpoon 36b2432
send attachment improvement
alanpoon e41250c
fix file upload modal white space issue
alanpoon 46efd21
Merge branch 'main' into image_upload
alanpoon 6f198d0
Merge branch 'main' into image_upload
alanpoon 81f4718
image_upload fix after review
alanpoon 916353c
fix hiding issue in UploadProgressView
alanpoon 99b2df5
cleanup extra line
alanpoon b4fb87b
max width fix
alanpoon 19630ea
format fix
alanpoon e9ca7ee
code improvement
alanpoon 65acc69
Merge branch 'image_upload' of https://github.com/alanpoon/robrix int…
alanpoon 3338a8b
Avoid string allocations
alanpoon 98d230e
remove string allocation
alanpoon 295ea3d
PopupItem Fix
alanpoon e1007c6
fix format
alanpoon c85e246
Add retry button
alanpoon b702d7e
Merge branch 'main' into image_upload
alanpoon b3bc48f
fix clippy
alanpoon c874b5a
fix formatting
alanpoon 7f7f08b
Fix clippy
alanpoon f3b76f4
revert formatting for room_input_bar
alanpoon db65190
add UploadViewState enum
alanpoon 56ade94
minor code improvement
alanpoon c13111d
code optimization
alanpoon 7a86e85
change from set_visible to set_enable
alanpoon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,40 @@ | ||
| //! A simple loading view displayed while generating thumbnails for file uploads. | ||
|
|
||
| use makepad_widgets::*; | ||
|
|
||
| live_design! { | ||
| use link::theme::*; | ||
| use link::shaders::*; | ||
| use link::widgets::*; | ||
| use crate::shared::styles::*; | ||
|
|
||
| // A view that displays a loading spinner and text while generating thumbnails. | ||
| pub ThumbnailLoadingView = <View> { | ||
| visible: false, | ||
| width: Fill, | ||
| height: Fit, | ||
| padding: {top: 8, bottom: 8, left: 10, right: 10} | ||
| flow: Right, | ||
| spacing: 10, | ||
| align: {y: 0.5} | ||
|
|
||
| loading_spinner = <LoadingSpinner> { | ||
| width: 25, | ||
| height: 25, | ||
| draw_bg: { | ||
| color: (COLOR_ACTIVE_PRIMARY) | ||
| border_size: 3.0, | ||
| } | ||
| } | ||
|
|
||
| loading_text = <Label> { | ||
| width: Fit, | ||
| height: Fit, | ||
| draw_text: { | ||
| text_style: <REGULAR_TEXT>{font_size: 11}, | ||
| color: #666 | ||
| } | ||
| text: "Generating thumbnail..." | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.