-
Notifications
You must be signed in to change notification settings - Fork 1
Tony/153 refactor file browsing code #198
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
tonypioneer
wants to merge
30
commits into
dev
Choose a base branch
from
tony/153_refactor_file_browsing_code
base: dev
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.
+1,011
−478
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
5cda084
Add a popup to inform users that the file they are about to download …
tonypioneer 6ef5cad
Fix the issue that uploaded file appears in the unexpected directory
tonypioneer 9583f73
Refactor file-browsing code built upon basePath
tonypioneer 2ccc3bc
Lint
tonypioneer 5a01f4e
Add validation for absolute paths or empty path
tonypioneer 4aca698
Merge branch 'dev' of https://github.com/anusii/solidui into tony/153…
tonypioneer 551aaa1
Merge branch 'dev' of https://github.com/anusii/solidui into tony/154…
tonypioneer b6e5689
Use `pathType: PathType.relativeToPod` instead of `pathType: pathType…
tonypioneer 3c43e1c
Remove basePath in utils folder
tonypioneer fe24889
Remove basePath in widgets folder
tonypioneer 00a4e53
Remove basePath in widgets folder
tonypioneer b96c7bc
Lint
tonypioneer 33dba75
Ensure the security key is available before writing encrypted data
tonypioneer 7b57ad9
Change the input filePath to a file URL
tonypioneer 60cfc23
Add an 'All POD Files' page
tonypioneer f54bb66
Revert filePath
tonypioneer f484dc8
Revert filePath
tonypioneer 4b26351
Merge branch 'tony/153_refactor_file_browsing_code' of https://github…
tonypioneer 0976de1
Replace basePath with currentPath
tonypioneer 482db53
Refine the code
tonypioneer cc471ed
Add initialPath to enable browsing files on the root directory of the…
tonypioneer 9f04472
Adjust the warning message
tonypioneer d3489ea
Merge branch 'dev' of https://github.com/anusii/solidui into tony/154…
tonypioneer f6ba52f
Merge branch 'dev' of https://github.com/anusii/solidui into tony/153…
tonypioneer 07fd2b4
Remove hard-coded path names related to HealthPod
tonypioneer 75f41bc
Lint
tonypioneer 258c062
Merge pull request #202 from anusii/tony/199_healthpod_hard_coded_paths
gjwgit b69de34
Merge pull request #196 from anusii/tony/154_download_files_from_othe…
gjwgit 68150a7
Merge pull request #196 from anusii/tony/154_download_files_from_othe…
gjwgit fdd4a5e
Merge remote-tracking branch 'origin/tony/153_refactor_file_browsing_…
tonypioneer 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
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,49 @@ | ||
| /// All POD Files page - Displays all folders on the POD for testing. | ||
| /// | ||
| /// Copyright (C) 2026, Software Innovation Institute, ANU. | ||
| /// | ||
| /// Licensed under the MIT License (the "License"). | ||
| /// | ||
| /// License: https://choosealicense.com/licenses/mit/. | ||
| // | ||
| // Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| // of this software and associated documentation files (the "Software"), to deal | ||
| // in the Software without restriction, including without limitation the rights | ||
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| // copies of the Software, and to permit persons to whom the Software is | ||
| // furnished to do so, subject to the following conditions: | ||
| // | ||
| // The above copyright notice and this permission notice shall be included in | ||
| // all copies or substantial portions of the Software. | ||
| // | ||
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| // SOFTWARE. | ||
| /// | ||
| /// Authors: Tony Chen | ||
|
|
||
| library; | ||
|
|
||
| import 'package:flutter/material.dart'; | ||
|
|
||
| import 'package:solidui/solidui.dart'; | ||
|
|
||
| /// A page that browses all folders and files on the POD from the root. | ||
|
|
||
| class AllPodFilesPage extends StatelessWidget { | ||
| const AllPodFilesPage({super.key}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return const SolidFile( | ||
| currentPath: SolidFile.podRoot, | ||
| friendlyFolderName: 'All POD Files', | ||
| showBackButton: true, | ||
| backButtonText: 'Back to POD Root', | ||
| ); | ||
| } | ||
| } |
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
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.