Git Product home page Git Product logo

camelotia's Issues

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

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?

[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.1
  • 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 v50
  • 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 v11
  • 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 ๐Ÿ”

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps): update dependency akavache to v10

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

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

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

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

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.