Coder Social home page Coder Social logo

reactiveui / camelotia Goto Github PK

View Code? Open in Web Editor NEW
515.0 515.0 58.0 6.31 MB

Cross-platform sample .NET GUI for cloud file management.

Home Page: https://www.reactiveui.net/

License: MIT License

C# 100.00%
avalonia avaloniaui dotnet dotnetcore dynamicdata linux macos microsoft-visual-studio mvvm reactive-programming reactiveui reactivex solid-principles unit-testing uwp windows wpf xamarin-forms xunit

camelotia's Introduction

Build Code Coverage #yourfirstpr



What is ReactiveUI?

ReactiveUI is a composable, cross-platform model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming, which is a paradigm that allows you to abstract mutable state away from your user interfaces and express the idea around a feature in one readable place and improve the testability of your application.

πŸ”¨ Get Started πŸ› Install Packages 🎞 Watch Videos πŸŽ“ View Samples 🎀 Discuss ReactiveUI

Book

There has been an excellent book written by our Alumni maintainer Kent Boogart.

NuGet Packages

Install the following packages to start building your own ReactiveUI app. Note: some of the platform-specific packages are required. This means your app won't perform as expected until you install the packages properly. See the Installation docs page for more info.

Platform ReactiveUI Package NuGet
.NET Standard ReactiveUI CoreBadge
ReactiveUI.Fody FodyBadge
Unit Testing ReactiveUI.Testing TestBadge
WPF ReactiveUI.WPF WpfBadge
UWP ReactiveUI.Uwp UwpBadge
WinUI ReactiveUI.WinUI WinUiBadge
MAUI ReactiveUI.Maui MauiBadge
Windows Forms ReactiveUI.WinForms WinBadge
Xamarin.Forms ReactiveUI.XamForms XamBadge
Xamarin.Essentials ReactiveUI CoreBadge
AndroidX (Xamarin) ReactiveUI.AndroidX DroXBadge
Xamarin.Android ReactiveUI.AndroidSupport DroBadge
Xamarin.iOS ReactiveUI CoreBadge
Xamarin.Mac ReactiveUI CoreBadge
Tizen ReactiveUI CoreBadge
Blazor ReactiveUI.Blazor BlazBadge
Platform Uno ReactiveUI.Uno UnoBadge
Platform Uno ReactiveUI.Uno.WinUI UnoWinUiBadge
Avalonia Avalonia.ReactiveUI AvaBadge
Any ReactiveUI.Validation ValBadge

Sponsorship

The core team members, ReactiveUI contributors and contributors in the ecosystem do this open-source work in their free time. If you use ReactiveUI, a serious task, and you'd like us to invest more time on it, please donate. This project increases your income/productivity too. It makes development and applications faster and it reduces the required bandwidth.

Become a sponsor.

This is how we use the donations:

  • Allow the core team to work on ReactiveUI
  • Thank contributors if they invested a large amount of time in contributing
  • Support projects in the ecosystem

Support

If you have a question, please see if any discussions in our GitHub issues or Stack Overflow have already answered it.

If you want to discuss something or just need help, here is our Slack room, where there are always individuals looking to help out!

Please do not open GitHub issues for support requests.

Contribute

ReactiveUI is developed under an OSI-approved open source license, making it freely usable and distributable, even for commercial use.

If you want to submit pull requests please first open a GitHub issue to discuss. We are first time PR contributors friendly.

See Contribution Guidelines for further information how to contribute changes.

Core Team


Glenn Watson

Melbourne, Australia


Rodney Littles II

Texas, USA


Artyom Gorchakov

Moscow, Russia


Colt Bauman

South Korea


Chris Pulman

United Kingdom

Alumni Core Team

The following have been core team members in the past.


Geoffrey Huntley

Sydney, Australia


Kent Boogaart

Brisbane, Australia


Olly Levett

London, United Kingdom


AnaΓ―s Betts

San Francisco, USA


Brendan Forster

Melbourne, Australia


Claire Novotny

New York, USA

.NET Foundation

ReactiveUI is part of the .NET Foundation. Other projects that are associated with the foundation include the Microsoft .NET Compiler Platform ("Roslyn") as well as the Microsoft ASP.NET family of projects, Microsoft .NET Core & Xamarin Forms.

camelotia's People

Contributors

arhell avatar blindmatrix avatar dependabot[bot] avatar gamidon avatar glennawatson avatar markuskgit avatar maxkatz6 avatar reallinfo avatar vzolotov avatar worldbeater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

camelotia's Issues

LocalFileSystemProvider.GetSizeOnAllDisks throws "System.IO.IOException: The device is not ready"

Stacktrace:

at System.IO.DriveInfo.get_AvailableFreeSpace()
at Camelotia.Services.Providers.LocalFileSystemProvider.<>c.b__29_0(DriveInfo x) in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Services\Providers\LocalFileSystemProvider.cs:line 116
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.Sum(IEnumerable1 source)
at Camelotia.Services.Providers.LocalFileSystemProvider.GetSizeOnAllDisks() in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Services\Providers\LocalFileSystemProvider.cs:line 115
at Camelotia.Services.Providers.LocalFileSystemProvider.get_Size() in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Services\Providers\LocalFileSystemProvider.cs:line 14
at Camelotia.Presentation.ViewModels.ProviderViewModel.get_Size() in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Presentation\ViewModels\ProviderViewModel.cs:line 281

image

Use Akavache to store auth tokens locally

Storing tokens locally will definitely improve the UX.

Implementation Details

We could use Akavache to implement this feature. Akavache is an asynchronous, persistent key-value store that works on all platforms, including Windows, Android, iOS, Linux, OSX (without any need to take care of creating database files, choosing secure paths to store tokens, etc. really a great library)

Task List

  • Add Akavache package to Camelotia.Services project
  • Create an IStringCache interface with Write and Read methods
  • Create AkavacheStringCache class that implements IStringCache
  • Write integrational tests for the cache
  • Inject the cache into file providers and reuse

[Bug]: UWP app won't build due to certain views not being recognised

Describe the bug 🐞

Tried to build UWP app.
Build failed, due to
XDG0008 The name "DirectAuthView" does not exist in the namespace "using:Camelotia.Presentation.Uwp.Views". Camelotia.Presentation.Uwp D:\Downloads\Camelotia-main (2)\Camelotia-main\src\Camelotia.Presentation.Uwp\Views\AuthView.xam
The 'missing' files do exist, and they all render properly in Visual Studio 22.
The Avalonia and WPF example work without any issue.

Step to reproduce

Downloaded the example
Tried to build

Reproduction repository

https://github.com/reactiveui/ReactiveUI

Expected behavior

App should build, and display

Screenshots πŸ–ΌοΈ

CamelotiaUWPerror
Views are present, just not recognised

IDE

Visual Studio 2022

Operating system

Windows 11

Version

No response

Device

No response

ReactiveUI Version

No response

Additional information ℹ️

No response

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency fluentftp to v37.1.2
  • chore(deps): update dependency google.apis.drive.v3 to v1.67.0.3373
  • chore(deps): update dependency materialdesigncolors to v2.1.4
  • chore(deps): update dependency materialdesignthemes to v4.9.0
  • chore(deps): update dependency materialdesignthemes.mahapps to v0.3.0
  • chore(deps): update dependency microsoft.net.test.sdk to v17.9.0
  • chore(deps): update dependency nuke.common to v6.3.0
  • chore(deps): update dependency reactivemarbles.observableevents.sourcegenerator to v1.3.1
  • chore(deps): update dependency reactiveui to v18.4.44
  • chore(deps): update dependency reactiveui.fody to v18.4.44
  • chore(deps): update dependency reactiveui.uwp to v18.4.1
  • chore(deps): update dependency reactiveui.validation to v3.1.7
  • chore(deps): update dependency reactiveui.wpf to v18.4.44
  • chore(deps): update dependency reactiveui.xamforms to v18.4.44
  • chore(deps): update dependency roslynator.analyzers to v4.12.0
  • chore(deps): update dependency vknet to v1.78.0
  • chore(deps): update dependency xamlnamereferencegenerator to v1.6.1
  • chore(deps): update xunit-dotnet monorepo (xunit, xunit.runner.visualstudio)
  • chore(deps): update dependency avalonia.desktop to v11
  • chore(deps): update dependency avalonia.diagnostics to v11
  • chore(deps): update dependency avalonia.reactiveui to v11
  • chore(deps): update dependency citrus.avalonia to v2
  • chore(deps): update dependency coverlet.msbuild to v6
  • chore(deps): update dependency fluentftp to v49
  • chore(deps): update dependency materialdesigncolors to v3
  • chore(deps): update dependency materialdesignthemes to v5
  • chore(deps): update dependency materialdesignthemes.mahapps to v1
  • chore(deps): update dependency nsubstitute to v5
  • chore(deps): update dependency nuke.common to v8
  • chore(deps): update dependency octokit to v10
  • chore(deps): update dependency reactiveui to v19
  • chore(deps): update dependency reactiveui.fody to v19
  • chore(deps): update dependency reactiveui.wpf to v19
  • chore(deps): update dependency reactiveui.xamforms to v19
  • chore(deps): update dependency ssh.net to v2024
  • chore(deps): update dependency system.reactive to v6
  • chore(deps): update dessant/lock-threads action to v5
  • πŸ” Create all rate-limited PRs at once πŸ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci-build.yml
.github/workflows/lock.yml
  • dessant/lock-threads v3
nuget
build/build.csproj
  • Nuke.Common 6.2.1
src/Camelotia.Presentation.Avalonia/Camelotia.Presentation.Avalonia.csproj
  • ReactiveMarbles.ObservableEvents.SourceGenerator 1.1.4
  • XamlNameReferenceGenerator 1.3.4
  • Citrus.Avalonia 1.6.1
  • Avalonia.ReactiveUI 0.10.18
  • Avalonia.Desktop 0.10.18
  • Avalonia.Diagnostics 0.10.18
src/Camelotia.Presentation.Uwp/Camelotia.Presentation.Uwp.csproj
  • ReactiveMarbles.ObservableEvents.SourceGenerator 1.1.4
  • ReactiveUI.Uwp 18.3.1
  • ReactiveUI 18.3.1
  • Microsoft.NETCore.UniversalWindowsPlatform 6.2.14
src/Camelotia.Presentation.Wpf/Camelotia.Presentation.Wpf.csproj
  • ReactiveMarbles.ObservableEvents.SourceGenerator 1.1.4
  • ReactiveUI.WPF 18.3.1
  • MaterialDesignThemes.MahApps 0.2.2
  • MaterialDesignThemes 4.5.0
  • MaterialDesignColors 2.0.6
  • MahApps.Metro 2.4.9
src/Camelotia.Presentation.Xamarin.Android/Camelotia.Presentation.Xamarin.Droid.csproj
  • Xamarin.Android.Support.v7.AppCompat 28.0.0.3
  • Xamarin.Android.Support.Compat 28.0.0.3
  • System.Threading.Tasks.Extensions 4.5.4
  • Xamarin.Plugin.FilePicker 2.1.41
  • ReactiveUI.XamForms 18.3.1
src/Camelotia.Presentation.Xamarin/Camelotia.Presentation.Xamarin.csproj
  • ReactiveMarbles.ObservableEvents.SourceGenerator 1.1.4
  • Xam.Plugin.Iconize.FontAwesome 3.5.0.129
  • Xamarin.Forms 5.0.0.2515+946-sha.94acebbb4-azdo.6439792
  • ReactiveUI.XamForms 18.3.1
src/Camelotia.Presentation/Camelotia.Presentation.csproj
  • ReactiveUI.Validation 3.0.1
  • ReactiveUI.Fody 18.3.1
src/Camelotia.Services/Camelotia.Services.csproj
  • VkNet 1.71.0
  • System.Reactive 5.0.0
  • ssh.net 2020.0.2
  • Octokit 3.0.0
  • Google.Apis.Drive.v3 1.57.0.2789
  • FluentFTP 37.0.4
  • akavache 9.0.1
src/Camelotia.Tests/Camelotia.Tests.csproj
  • xunit.runner.visualstudio 2.4.5
  • xunit 2.4.2
  • NSubstitute 4.4.0
  • Microsoft.NET.Test.Sdk 17.3.1
  • FluentAssertions 6.7.0
  • coverlet.msbuild 3.1.2
src/Directory.build.props
  • Roslynator.Analyzers 4.1.1
  • stylecop.analyzers 1.2.0-beta.435

  • Check this box to trigger a request for Renovate to run again on this repository

Local File System

Current output of Local file system that is displayed on the interface is confusing. The initial view of the file system should be of the Drives, then when drilling down through the drives the drive content should then be displayed. If there is only one drive then the root contents of that drive should be shown. This would allow removable devices to be displayed if present as well.

The current implementation starts with:

_refresh = ReactiveCommand.CreateFromTask( () => provider.Get(CurrentPath), outputScheduler: mainThread);
CurrentPath is null at start and when Get is called on the local provider it passes in "\" So the view output consists entirely of the drive that the app is run from. This excludes other drives.

I suggest that if the initial path is null, we convert that to get the drives and display those. Then when drilling down it can be from any drive. We can also look at allowing a CD/DVD drive if it is available and not exclude it entirely like I did to get rid of the exception. When I implemented that there was no way to view the drive anyway so excluding it to avoid the exception seemed like a valid solution.

This suggestion is entirely contained in the local system provider as I am not sure if the other providers would have a concept of multiple drives, and if they did the implementation would be different anyway.

Let me know if you would like this and I will provide and implementation to it that you can review.
Greg

Add Yandex Disk File Provider

Adding Yandex Disk file system provider will make the application useful for people who store their files on Yandex Disk. They should be able to easily upload, download, rename and delete files hosted on Yandex servers.

Implementation Details

File browser could be implemented using Refit library to generate REST API clients for Yandex Disk API. A default .NET HTTPListener could be used to receive access code from Yandex OAuth API.

Task List

  • Use HTTP Listener and OAuth protocol to authenticate users on Yandex
  • Create file browser using Yandex REST API
  • Implement Download functionality
  • Implement Upload functionality

logo contribution

Hi @worldbeater I make contributions to open source projects in my spare time by designing logos. For this project I have a functional and minimalist idea in my mind. I'd like to show it to you if you let me. What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.