From 6e8cea040c6b3e8d13277885c17df3880d2e21f6 Mon Sep 17 00:00:00 2001 From: Nick Logozzo Date: Sun, 19 Jul 2026 23:47:12 -0400 Subject: [PATCH 001/205] feat: Start rust rewrite --- .gitignore | 411 +-- CONTRIBUTING.md | 179 - Cargo.lock | 2870 +++++++++++++++++ Cargo.toml | 4 + .../Blueprints/MainWindow.blp | 82 - .../Blueprints/PreferencesDialog.blp | 34 - .../Blueprints/ShortcutsDialog.blp | 42 - .../Helpers/IServiceCollectionExtensions.cs | 16 - .../Nickvision.Application.GNOME.csproj | 64 - Nickvision.Application.GNOME/Program.cs | 24 - .../Resources/dark-mode-symbolic.svg | 2 - .../org.nickvision.application.gresource.xml | 14 - .../Resources/translate-symbolic.svg | 2 - .../Views/MainWindow.cs | 269 -- .../Views/PreferencesDialog.cs | 57 - .../Controllers/MainWindowController.cs | 127 - .../Controllers/PreferencesViewController.cs | 92 - .../Events/FolderChangedEventArgs.cs | 18 - .../Helpers/ApplicationJsonContext.cs | 11 - .../HostApplicationBuilderExtensions.cs | 39 - .../IConfigurationServiceExtensions.cs | 38 - Nickvision.Application.Shared/Models/Theme.cs | 8 - .../Nickvision.Application.Shared.csproj | 19 - .../Services/ConfigurationMigrationService.cs | 40 - .../Services/EventsService.cs | 41 - .../Services/FolderService.cs | 68 - .../Services/IEventsService.cs | 13 - .../Services/IFolderService.cs | 17 - Nickvision.Application.WinUI/App.xaml | 13 - Nickvision.Application.WinUI/App.xaml.cs | 32 - .../Assets/org.nickvision.application.ico | Bin 7451 -> 0 bytes .../Controls/AboutDialog.xaml | 83 - .../Controls/AboutDialog.xaml.cs | 78 - .../Helpers/IServiceCollectionExtensions.cs | 19 - .../Nickvision.Application.WinUI.csproj | 71 - Nickvision.Application.WinUI/Program.cs | 26 - .../Views/MainWindow.xaml | 236 -- .../Views/MainWindow.xaml.cs | 256 -- .../Views/SettingsPage.xaml | 79 - .../Views/SettingsPage.xaml.cs | 69 - Nickvision.Application.WinUI/app.manifest | 16 - Nickvision.Application.slnx | 21 - Nickvision.Common.targets | 41 - app/Cargo.toml | 16 + app/src/main.rs | 19 + flatpak/nuget-sources.json | 597 ---- linux/Cargo.toml | 6 + linux/src/lib.rs | 3 + macos/Cargo.toml | 6 + macos/src/lib.rs | 3 + shared/Cargo.toml | 12 + shared/src/config.rs | 239 ++ shared/src/info.rs | 109 + shared/src/lib.rs | 7 + windows/Cargo.toml | 6 + windows/src/lib.rs | 3 + 56 files changed, 3310 insertions(+), 3357 deletions(-) delete mode 100644 CONTRIBUTING.md create mode 100644 Cargo.lock create mode 100644 Cargo.toml delete mode 100644 Nickvision.Application.GNOME/Blueprints/MainWindow.blp delete mode 100644 Nickvision.Application.GNOME/Blueprints/PreferencesDialog.blp delete mode 100644 Nickvision.Application.GNOME/Blueprints/ShortcutsDialog.blp delete mode 100644 Nickvision.Application.GNOME/Helpers/IServiceCollectionExtensions.cs delete mode 100644 Nickvision.Application.GNOME/Nickvision.Application.GNOME.csproj delete mode 100644 Nickvision.Application.GNOME/Program.cs delete mode 100644 Nickvision.Application.GNOME/Resources/dark-mode-symbolic.svg delete mode 100644 Nickvision.Application.GNOME/Resources/org.nickvision.application.gresource.xml delete mode 100644 Nickvision.Application.GNOME/Resources/translate-symbolic.svg delete mode 100644 Nickvision.Application.GNOME/Views/MainWindow.cs delete mode 100644 Nickvision.Application.GNOME/Views/PreferencesDialog.cs delete mode 100644 Nickvision.Application.Shared/Controllers/MainWindowController.cs delete mode 100644 Nickvision.Application.Shared/Controllers/PreferencesViewController.cs delete mode 100644 Nickvision.Application.Shared/Events/FolderChangedEventArgs.cs delete mode 100644 Nickvision.Application.Shared/Helpers/ApplicationJsonContext.cs delete mode 100644 Nickvision.Application.Shared/Helpers/HostApplicationBuilderExtensions.cs delete mode 100644 Nickvision.Application.Shared/Helpers/IConfigurationServiceExtensions.cs delete mode 100644 Nickvision.Application.Shared/Models/Theme.cs delete mode 100644 Nickvision.Application.Shared/Nickvision.Application.Shared.csproj delete mode 100644 Nickvision.Application.Shared/Services/ConfigurationMigrationService.cs delete mode 100644 Nickvision.Application.Shared/Services/EventsService.cs delete mode 100644 Nickvision.Application.Shared/Services/FolderService.cs delete mode 100644 Nickvision.Application.Shared/Services/IEventsService.cs delete mode 100644 Nickvision.Application.Shared/Services/IFolderService.cs delete mode 100644 Nickvision.Application.WinUI/App.xaml delete mode 100644 Nickvision.Application.WinUI/App.xaml.cs delete mode 100644 Nickvision.Application.WinUI/Assets/org.nickvision.application.ico delete mode 100644 Nickvision.Application.WinUI/Controls/AboutDialog.xaml delete mode 100644 Nickvision.Application.WinUI/Controls/AboutDialog.xaml.cs delete mode 100644 Nickvision.Application.WinUI/Helpers/IServiceCollectionExtensions.cs delete mode 100644 Nickvision.Application.WinUI/Nickvision.Application.WinUI.csproj delete mode 100644 Nickvision.Application.WinUI/Program.cs delete mode 100644 Nickvision.Application.WinUI/Views/MainWindow.xaml delete mode 100644 Nickvision.Application.WinUI/Views/MainWindow.xaml.cs delete mode 100644 Nickvision.Application.WinUI/Views/SettingsPage.xaml delete mode 100644 Nickvision.Application.WinUI/Views/SettingsPage.xaml.cs delete mode 100644 Nickvision.Application.WinUI/app.manifest delete mode 100644 Nickvision.Application.slnx delete mode 100644 Nickvision.Common.targets create mode 100644 app/Cargo.toml create mode 100644 app/src/main.rs delete mode 100644 flatpak/nuget-sources.json create mode 100644 linux/Cargo.toml create mode 100644 linux/src/lib.rs create mode 100644 macos/Cargo.toml create mode 100644 macos/src/lib.rs create mode 100644 shared/Cargo.toml create mode 100644 shared/src/config.rs create mode 100644 shared/src/info.rs create mode 100644 shared/src/lib.rs create mode 100644 windows/Cargo.toml create mode 100644 windows/src/lib.rs diff --git a/.gitignore b/.gitignore index f754cbaa..6da7988f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,408 +1,11 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore +# Rust +/target -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ +# macOS +.DS_Store -# Visual Studio 2015/2017 cache/options directory -.vs/ +# IDEs .idea/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -# but not Directory.Build.rsp, as it configures directory-level build defaults -!Directory.Build.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.tlog -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio 6 auto-generated project file (contains which files were open etc.) -*.vbp - -# Visual Studio 6 workspace and project file (working project files containing files to include in project) -*.dsw -*.dsp - -# Visual Studio 6 technical files -*.ncb -*.aps - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# Visual Studio History (VSHistory) files -.vshistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd - -# VS Code files for those working on multiple tools .vscode/ -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -# Local History for Visual Studio Code -.history/ - -# Windows Installer files from build outputs -*.cab -*.msi -*.msix -*.msm -*.msp - -# JetBrains Rider -*.sln.iml - -# Translations -*.mo - -# macOS -.DS_Store \ No newline at end of file +.vs/ +.claude/ \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index feb64de7..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,179 +0,0 @@ -# Contributing to Nickvision Application - -First off, thanks for taking the time to contribute! ❤️ - -All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉 - -> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about: -> - Star the project -> - Post about it -> - Reference this project in your project's readme -> - [Sponsor](https://github.com/sponsors/nlogozzo) the lead developer - -## Table of Contents - -- [I Have a Question](#i-have-a-question) -- [I Want To Contribute](#i-want-to-contribute) - - [Reporting Bugs](#reporting-bugs) - - [Suggesting Enhancements/New Features](#suggesting-enhancements) - - [Providing translations](#providing-translations) - - [Via Weblate](#via-weblate) - - [Manually](#manually) - - [Your First Code Contribution](#your-first-code-contribution) -- [Styleguides](#styleguides) -- [Join The Project Team](#join-the-project-team) - -## I Have a Question - -Before you ask a question, it is best to search for existing [Discussions](https://github.com/NickvisionApps/Application/discussions) and [Issues](https://github.com/NickvisionApps/Application/issues) that might help you. - -In case you have found a suitable existing issue/discussion and still need clarification, you can write your question in said post. It is also advisable to search the internet for answers first to common error messages. - -If you then still feel the need to ask a question and need clarification, we recommend the following: - -- Open a [Discussion](https://github.com/NickvisionApps/Application/discussions). -- Provide as much context as you can about what you're running into. -- Provide project and platform versions (windows, gnome, etc...), depending on what seems relevant. - -We will then take care of the question as soon as possible and convert it to a proper issue, if needed. - -## I Want To Contribute - -### Legal Notice -When contributing to this project, you must agree that you have authored 100% of the content and/or that you have the necessary rights to the content and that the content you contribute may be provided under the project [license](LICENSE). - -### Reporting Bugs - -#### Before Submitting a Bug Report - -A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask that you investigate carefully, collect necessary information and describe the issue in detail in your report. Please complete the following steps in advanced to help us fix any potential bug as fast as possible: - -- Make sure that you are using the latest released stable version. -- Determine if your bug is really a bug and not an error on your side. If you are looking for support, you might want to check [this section](#i-have-a-question). -- See if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in both the [Discussions](https://github.com/NickvisionApps/Application/discussions) and [Issues](https://github.com/NickvisionApps/Application/issues) sections. -- Collect information about the bug: - - Debug information provided by the application - - GNOME: From the main hamburger menu, open About Application → Troubleshooting → Debugging Information and copy the information to the clipboard to paste in your issue. - - WinUI: From the main Help menu, open About Application --> Debugging and copy the information to the clipboard to paste in your issue. - - Stack trace (Traceback) - - Including any error messages thrown by the application - - You may need to start the application via the terminal/console to receive an error message for a crash. - - OS, Platform and Version (Distro, Kernel Version, x64/ARM64, etc...) - - Your input and the output to the application - - i.e. Steps you took to produce the crash and/or attach any files you may have opened within the app that caused a crash - - Can you reliably reproduce the issue? And can you also reproduce it with older versions? - -#### How Do I Submit a Good Bug Report? - -You must never report security related issues, vulnerabilities and bugs (including sensitive information) to the issue tracker nor elsewhere in public. Instead, sensitive issues must be reported and handled via email to . - -We use GitHub issues to track bugs and errors. If you run into an issue with the project: - -- Open a [new Issue](https://github.com/NickvisionApps/Application/issues/new) and explain the behavior you are experiencing and what you expect to happen. -- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own system. For good bug reports you should isolate the problem and create a reduced test case. -- Provide the information you collected in the previous section. - -Once it has been opened: - -- The project team will label the issue accordingly. -- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps. - - Bugs that are not able to be reproduced will not be addressed until they are reproduced. Therefore, it is important to include steps to speed up the fixing process. - -### Suggesting Enhancements - -This section guides you through submitting an enhancement suggestion for Nickvision Application, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community in understanding your suggestion and finding related suggestions. - -#### Before Submitting an Enhancement - -- Make sure that you are using the latest released version. -- Perform a search through [Discussions](https://github.com/NickvisionApps/Application/discussions) and [Issues](https://github.com/NickvisionApps/Application/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. -- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. - -#### How Do I Submit a Good Enhancement Suggestion? - -Enhancement suggestions are tracked as [GitHub issues](https://github.com/NickvisionApps/Application/issues). - -- Use a **clear and descriptive title** for the issue to identify the suggestion. -- Provide a **step-by-step description of the suggested enhancement** in as many details as possible. - - For enhancements to existing functionality, **describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you. - - For completely new features, **describe what you would like to see from this new feature** in terms of **both functionality and design**. Providing mockups, even if in sketch format, greatly help the team envision what you would like to see. -- **Explain why this enhancement would be useful** to most Application users. You may also want to point out similar projects of other platforms and their solutions to serve as inspiration. - -### Providing Translations - -Everyone is welcome to translate this app into their native or known languages, so that the application is accessible to everyone. - -##### Via Weblate - -Application is available to translate on [Weblate](https://hosted.weblate.org/engage/nickvision-application/)! - -##### Manually - -To start translating the app, fork the repository and clone it locally. - -Application uses [gettext](https://www.gnu.org/software/gettext/manual/gettext.html#PO-Files) for translations. In the `resources/po` folder you will find files that can be edited in your favourite `*.po` files editor (or with any plain text editor). - -If you want to create a new translation, copy the `application.pot` file and rename said copy as `.po`, where `` is the language code for your translation. Usually the code is two letters, but it can also be a specific locale code to differentiate between versions of the same language (for example, `pt` and `pt_BR`). - -**Also, add the language code to `LINGUAS` file** (keeping this file in alphabetical order). - -Edit your new translation file with correct translations for the English messages. - -To check your translation file, make sure your system is in the locale of the language you are translating and [locally build and run the app](README#building-manually). If all steps were carried out successfully, you should see your translation in action! - -Once all changes to your translated file are made, commit these changes and create a pull request to the project. - -### Your First Code Contribution - -#### Structure - -Application is built using .NET 10 and platform-native user interface libraries. With these technologies, Application is built for the Windows and Linux operating systems. - -The project is split up into the following sub-projects: - - [Nickvision.Application.Shared](#Nickvision.Application.Shared) - - [Nickvision.Application.GNOME](#Nickvision.Application.GNOME) - - [Nickvision.Application.WinUI](#Nickvision.Application.WinUI) - -The whole project utilizes the [MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) pattern for separating data models, business logic, and UI views. - -##### Nickvision.Application.Shared - -This project contains all of the code used by all platforms of the app: -- `Controllers` => The objects used by UI views to receive and manipulate data in the application. -- `Events` => Arguments that are used by events throughout the application. -- `Models` => The data driven objects of the application (i.e. Configuration, Database, etc...). -- `Services` => The business logic for modifying models and data throughout the application. - -##### Nickvision.Application.GNOME - -This project contains all of the code used for the GNOME platform version of the app: -- `Blueprint` => UI design files written in [Blueprint markup language](https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/). -- `Controls` => Generic controls for the app. - - These UI objects are separate from views in that they should not be backed by a controller and should be easily ported to any other app. -- `Resources` => Extra icons and other files specific for the GNOME platform version of the app. -- `Views` => The views (pages, windows, dialogs, etc...) of the app. - -##### Nickvision.Application.WinUI - -This project contains all of the code used for the WinUI platform version of the app: -- `Assets` => Extra icons and other files specific for the WinUI platform version of the app. -- `Controls` => Generic controls for the app. - - These UI objects are separate from views in that they should not be backed by a controller and should be easily ported to any other app. -- `Views` => The views (pages, windows, dialogs, etc...) of the app. - -## Styleguides - -Application uses the following naming conventions: -- `CamelCase` for namespaces, classes, file names, functions, properties -- `pascalCase` for local variables -- `_` prefix appended to class member variables -- `s_` prefix appended to global static variables - -Application uses the standard Microsoft C# style code conventions. - -## Join The Project Team - -Join our room - -## Attribution -This guide was based on a template by [contributing-gen](https://github.com/bttger/contributing-gen). diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 00000000..34239a67 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,2870 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "app" +version = "2026.7.0" +dependencies = [ + "linux", + "macos", + "shared", + "windows", +] + +[[package]] +name = "arc-swap" +version = "1.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c049c0be4daef0b145cb3555416b3b8ef5b7888a38aea1a3a155801fe7b0810b" +dependencies = [ + "rustversion", +] + +[[package]] +name = "async-trait" +version = "0.1.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.1", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "aws-lc-rs" +version = "1.17.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00bdb5da18dac48ca2cc7cd4a98e533e8635a58e2361d13a1a4ee3888e0d72f1" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43103168cc76fe62678a375e722fc9cb3a0146159ac5828bc4f0dfd755c2224c" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", + "pkg-config", +] + +[[package]] +name = "base16ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "bitflags" +version = "2.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "camino" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f2d30e4173c4026932d51d31d6b0613b1fd3014bf3f9f8943d4ba139c437ba0" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0061da739915fae12ea00e16397555ed4371a6bb285431aab930f61b0aa4ba" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "cargo_metadata" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef987d17b0a113becdd19d3d0022d04d7ef41f9efe4f3fb63ac44ba61df3ade9" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror", +] + +[[package]] +name = "cc" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c89588d05638b5b4594a3348a2d6c20277e43a7f5c5202b05cc56888475a47b8" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "chacha20" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "rand_core 0.10.1", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + +[[package]] +name = "crypto-bigint" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "crypto-common" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid 0.9.6", + "pem-rfc7468", + "zeroize", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "const-oid 0.9.6", + "crypto-common 0.1.6", + "subtle", +] + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer 0.12.1", + "const-oid 0.10.2", + "crypto-common 0.2.2", +] + +[[package]] +name = "directories" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16f5094c54661b38d03bd7e50df373292118db60b585c08a411c6d840017fe7d" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "displaydoc" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "ecdsa" +version = "0.16.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" +dependencies = [ + "der", + "digest 0.10.7", + "elliptic-curve", + "rfc6979", + "signature", + "spki", +] + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" +dependencies = [ + "curve25519-dalek", + "ed25519", + "serde", + "sha2 0.10.9", + "subtle", + "zeroize", +] + +[[package]] +name = "elliptic-curve" +version = "0.13.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +dependencies = [ + "base16ct", + "crypto-bigint", + "digest 0.10.7", + "ff", + "generic-array", + "group", + "hkdf", + "pem-rfc7468", + "pkcs8", + "rand_core 0.6.4", + "sec1", + "subtle", + "zeroize", +] + +[[package]] +name = "encoding" +version = "0.2.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" +dependencies = [ + "encoding-index-japanese", + "encoding-index-korean", + "encoding-index-simpchinese", + "encoding-index-singlebyte", + "encoding-index-tradchinese", +] + +[[package]] +name = "encoding-index-japanese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-korean" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-simpchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-singlebyte" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-tradchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding_index_tests" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "ff" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "futures" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a88cf1f829d945f548cf8fec32c61b1f202b6d93b45848602fc02af4b12ad218" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7" + +[[package]] +name = "futures-executor" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a" + +[[package]] +name = "futures-macro" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "futures-sink" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307" + +[[package]] +name = "futures-task" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109" + +[[package]] +name = "futures-util" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2" +dependencies = [ + "typenum", + "version_check", + "zeroize", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "rand_core 0.10.1", + "wasm-bindgen", +] + +[[package]] +name = "gettext" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ebb594e753d5997e4be036e5a8cf048ab9414352870fb45c779557bbc9ba971" +dependencies = [ + "byteorder", + "encoding", +] + +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "h2" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "http" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "http-serde" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f056c8559e3757392c8d091e796416e4649d8e49e88b8d76df6c002f05027fd" +dependencies = [ + "http", + "serde", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hybrid-array" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "818356c5132c1fede50f837ca96afbe78ff42413047f4abb886217845e1b6c8c" +dependencies = [ + "typenum", +] + +[[package]] +name = "hyper" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +dependencies = [ + "http", + "hyper", + "hyper-util", + "log", + "rustls", + "rustls-native-certs", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys", + "log", + "simd_cesu8", + "thiserror", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "jsonwebtoken" +version = "10.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eba32bfb4ffdeaca3e34431072faf01745c9b26d25504aa7a6cf5684334fc4fc" +dependencies = [ + "base64", + "ed25519-dalek", + "getrandom 0.2.17", + "hmac", + "js-sys", + "p256", + "p384", + "pem", + "rand 0.8.7", + "rsa", + "serde", + "serde_json", + "sha2 0.10.9", + "signature", + "simple_asn1", + "zeroize", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +dependencies = [ + "spin", +] + +[[package]] +name = "libc" +version = "0.2.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c943259e342f1e06ff2da7a83eabdfe7f92ce10262688dbf1895ff0b3e6e4652" +dependencies = [ + "libc", +] + +[[package]] +name = "linux" +version = "2026.7.0" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "log" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "macos" +version = "2026.7.0" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mio" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "num-bigint" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-bigint-dig" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e661dda6640fad38e827a6d4a310ff4763082116fe217f279885c97f511bb0b7" +dependencies = [ + "lazy_static", + "libm", + "num-integer", + "num-iter", + "num-traits", + "rand 0.8.7", + "smallvec", + "zeroize", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "octocrab" +version = "0.54.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27be39870c558e1fbc5a5f8d4a29aa916268c1dbcb9d467f2a9bbab35598060e" +dependencies = [ + "arc-swap", + "async-trait", + "base64", + "bytes", + "cargo_metadata", + "cfg-if", + "chrono", + "futures", + "futures-util", + "getrandom 0.2.17", + "http", + "http-body", + "http-body-util", + "http-serde", + "hyper", + "hyper-rustls", + "hyper-timeout", + "hyper-util", + "jsonwebtoken", + "percent-encoding", + "pin-project", + "secrecy", + "serde", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "snafu", + "tokio", + "tower", + "tower-http", + "tracing", + "url", + "web-time", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "p256" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" +dependencies = [ + "ecdsa", + "elliptic-curve", + "primeorder", + "sha2 0.10.9", +] + +[[package]] +name = "p384" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe42f1670a52a47d448f14b6a5c61dd78fce51856e68edaa38f7ae3a46b8d6b6" +dependencies = [ + "ecdsa", + "elliptic-curve", + "primeorder", + "sha2 0.10.9", +] + +[[package]] +name = "pem" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" +dependencies = [ + "base64", + "serde_core", +] + +[[package]] +name = "pem-rfc7468" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" +dependencies = [ + "base64ct", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkcs1" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" +dependencies = [ + "der", + "pkcs8", + "spki", +] + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "primeorder" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" +dependencies = [ + "elliptic-curve", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quinn" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560" +dependencies = [ + "aws-lc-rs", + "bytes", + "getrandom 0.4.3", + "lru-slab", + "rand 0.10.2", + "rand_pcg", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.61.2", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a" +dependencies = [ + "libc", + "rand_chacha", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_pcg" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +dependencies = [ + "rand_core 0.10.1", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror", +] + +[[package]] +name = "reqwest" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3" +dependencies = [ + "base64", + "bytes", + "encoding_rs", + "futures-core", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "mime", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "reup" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04006c322d055ce55521065218c8d1b10bcb1267bd8a91d68f3c351d5f8eb3bb" +dependencies = [ + "directories", + "hex", + "octocrab", + "reqwest", + "semver", + "serde_json", + "sha2 0.11.0", +] + +[[package]] +name = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac", + "subtle", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rsa" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d" +dependencies = [ + "const-oid 0.9.6", + "digest 0.10.7", + "num-bigint-dig", + "num-integer", + "num-traits", + "pkcs1", + "pkcs8", + "rand_core 0.6.4", + "signature", + "spki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustls" +version = "0.23.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138" +dependencies = [ + "aws-lc-rs", + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "764899a24af3980067ee14bc143654f297b22eaebfe3c7b6b211920a5a59b046" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-webpki" +version = "0.103.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct", + "der", + "generic-array", + "pkcs8", + "subtle", + "zeroize", +] + +[[package]] +name = "secrecy" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a" +dependencies = [ + "zeroize", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.1", +] + +[[package]] +name = "serde_json" +version = "1.0.150" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "digest 0.11.3", +] + +[[package]] +name = "shared" +version = "2026.7.0" +dependencies = [ + "directories", + "gettext", + "reup", + "semver", + "serde", + "serde_json", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest 0.10.7", + "rand_core 0.6.4", +] + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "simple_asn1" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d585997b0ac10be3c5ee635f1bab02d512760d14b7c468801ac8a01d9ae5f1d" +dependencies = [ + "num-bigint", + "num-traits", + "thiserror", + "time", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" + +[[package]] +name = "snafu" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2" +dependencies = [ + "snafu-derive", +] + +[[package]] +name = "snafu-derive" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "spin" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e" + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5edbec4ed188954a10c12c038215f8ce7606b2d5c973cd8dc43e8795065c5f2f" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "thiserror" +version = "2.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.1", +] + +[[package]] +name = "time" +version = "0.3.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18dfaaeddcb932337b5e7866ee7d0ce9b76d2fd092997146f187ec09b4558a50" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c431b87111666e491a90baa837f914fb45cd5dc3c268591b0220ff5057f2085f" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d988bcd52dbe076d3d46903332f58c912b87a2c49b1428419a5845154762ffee" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "tracing", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasm-bindgen" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.119", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "web-sys" +version = "0.3.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "serde", + "wasm-bindgen", +] + +[[package]] +name = "webpki-root-certs" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows" +version = "2026.7.0" + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7cbbc0a705a0fd05cc3676525980d2bf5a9bc4adac6d6475209a7887cf59d19" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e817b7b52d0c7358d3246da9d69935ebb18116b2b102b4230dac079b4862f5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..66d1dd14 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,4 @@ +[workspace] +resolver = "3" +members = ["app", "linux", "macos", "shared", "windows"] +default-members = ["app"] diff --git a/Nickvision.Application.GNOME/Blueprints/MainWindow.blp b/Nickvision.Application.GNOME/Blueprints/MainWindow.blp deleted file mode 100644 index 6b385fa9..00000000 --- a/Nickvision.Application.GNOME/Blueprints/MainWindow.blp +++ /dev/null @@ -1,82 +0,0 @@ -using Gtk 4.0; -using Adw 1; - -menu mainMenu { - item(_("Preferences"), "win.preferences") - item(_("Keyboard Shortcuts"), "win.keyboardShortcuts") - item(_("About Application"), "win.about") -} - -Adw.ApplicationWindow root { - width-request: 360; - height-request: 200; - default-width: 800; - default-height: 600; - - Adw.ToolbarView toolbarView { - [top] - Adw.HeaderBar headerBar { - title-widget: Adw.WindowTitle windowTitle {}; - - [start] - Gtk.Button btnOpenFolder { - tooltip-text: _("Open Folder (Ctrl+O)"); - visible: false; - action-name: "win.openFolder"; - - Adw.ButtonContent { - label: _("Open"); - icon-name: "folder-open-symbolic"; - } - } - - [start] - Gtk.Button btnCloseFolder { - icon-name: "window-close-symbolic"; - tooltip-text: _("Close Folder (Ctrl+W)"); - action-name: "win.closeFolder"; - visible: false; - } - - [end] - Gtk.MenuButton { - direction: none; - menu-model: mainMenu; - tooltip-text: _("Main Menu"); - primary: true; - } - } - - content: Adw.ToastOverlay toastOverlay { - hexpand: true; - vexpand: true; - - Adw.ViewStack viewStack { - Adw.ViewStackPage { - name: "NoFolder"; - child: Adw.StatusPage pageGreeting { - icon-name: "org.nickvision.application"; - description: _("Open a folder (or drag one into the app) to get started"); - child: Gtk.Button { - label: _("Open"); - halign: center; - action-name: "win.openFolder"; - styles ["pill", "suggested-action"] - }; - - styles ["icon-dropshadow"] - }; - } - - Adw.ViewStackPage { - name: "Folder"; - child: Adw.StatusPage pageFiles { - icon-name: "folder-documents-symbolic"; - - styles ["compact"] - }; - } - } - }; - } -} \ No newline at end of file diff --git a/Nickvision.Application.GNOME/Blueprints/PreferencesDialog.blp b/Nickvision.Application.GNOME/Blueprints/PreferencesDialog.blp deleted file mode 100644 index 1bf3730c..00000000 --- a/Nickvision.Application.GNOME/Blueprints/PreferencesDialog.blp +++ /dev/null @@ -1,34 +0,0 @@ -using Gtk 4.0; -using Adw 1; - -Adw.PreferencesDialog root { - content-width: 600; - content-height: 600; - search-enabled: true; - title: _("Preferences"); - - Adw.PreferencesPage { - Adw.PreferencesGroup { - title: _("User Interface"); - - Adw.ComboRow themeRow { - title: _("Theme"); - - [prefix] - Gtk.Image { - icon-name: "dark-mode-symbolic"; - } - } - - Adw.ComboRow languageRow { - title: _("Translation Language"); - subtitle: _("An application restart is required for a change to take effect"); - - [prefix] - Gtk.Image { - icon-name: "translate-symbolic"; - } - } - } - } -} \ No newline at end of file diff --git a/Nickvision.Application.GNOME/Blueprints/ShortcutsDialog.blp b/Nickvision.Application.GNOME/Blueprints/ShortcutsDialog.blp deleted file mode 100644 index e454176c..00000000 --- a/Nickvision.Application.GNOME/Blueprints/ShortcutsDialog.blp +++ /dev/null @@ -1,42 +0,0 @@ -using Gtk 4.0; -using Adw 1; - -Adw.ShortcutsDialog root { - Adw.ShortcutsSection { - title: C_("Shortcut", "Application"); - - Adw.ShortcutsItem { - title: _("Preferences"); - accelerator: "comma"; - } - - Adw.ShortcutsItem { - title: _("Keyboard Shortcuts"); - accelerator: "question"; - } - - Adw.ShortcutsItem { - title: _("About Application"); - accelerator: "F1"; - } - - Adw.ShortcutsItem { - title: _("Quit"); - accelerator: "Q"; - } - } - - Adw.ShortcutsSection { - title: _("Folder"); - - Adw.ShortcutsItem { - title: _("Open Folder"); - accelerator: "O"; - } - - Adw.ShortcutsItem { - title: _("Close Folder"); - accelerator: "W"; - } - } -} diff --git a/Nickvision.Application.GNOME/Helpers/IServiceCollectionExtensions.cs b/Nickvision.Application.GNOME/Helpers/IServiceCollectionExtensions.cs deleted file mode 100644 index 78907b32..00000000 --- a/Nickvision.Application.GNOME/Helpers/IServiceCollectionExtensions.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Nickvision.Application.GNOME.Views; - -namespace Nickvision.Application.GNOME.Helpers; - -public static class IServiceCollectionExtensions -{ - extension(IServiceCollection collection) - { - public IServiceCollection AddControls() - { - collection.AddTransient(); - return collection; - } - } -} \ No newline at end of file diff --git a/Nickvision.Application.GNOME/Nickvision.Application.GNOME.csproj b/Nickvision.Application.GNOME/Nickvision.Application.GNOME.csproj deleted file mode 100644 index 3a3f86f8..00000000 --- a/Nickvision.Application.GNOME/Nickvision.Application.GNOME.csproj +++ /dev/null @@ -1,64 +0,0 @@ - - - - net10.0-windows10.0.19041.0 - net10.0 - latest - disable - enable - Exe - AnyCPU;ARM64;x64 - 2026.4.0 - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @(AllBlueprintFiles->'"%(FullPath)"', ' ') - - - - - - - - - - - - - @(AllBlueprintFiles->'"%(FullPath)"', ' ') - - - - - - - - \ No newline at end of file diff --git a/Nickvision.Application.GNOME/Program.cs b/Nickvision.Application.GNOME/Program.cs deleted file mode 100644 index ec135166..00000000 --- a/Nickvision.Application.GNOME/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.Extensions.Hosting; -using Nickvision.Application.GNOME.Helpers; -using Nickvision.Application.GNOME.Views; -using Nickvision.Application.Shared.Helpers; -using Nickvision.Desktop.GNOME.Helpers; -using System.Threading.Tasks; - -namespace Nickvision.Application.GNOME; - -public class Program -{ - public static async Task Main(string[] args) - { - var newArgs = new string[args.Length + 1]; - newArgs[0] = "org.nickvision.application"; - args.CopyTo(newArgs, 1); - var builder = Host.CreateApplicationBuilder(args); - builder.ConfigureApplication(newArgs); - builder.ConfigureAdw(); - builder.Services.AddControls(); - var app = builder.Build(); - await app.RunAsync(); - } -} \ No newline at end of file diff --git a/Nickvision.Application.GNOME/Resources/dark-mode-symbolic.svg b/Nickvision.Application.GNOME/Resources/dark-mode-symbolic.svg deleted file mode 100644 index 94eee23e..00000000 --- a/Nickvision.Application.GNOME/Resources/dark-mode-symbolic.svg +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/Nickvision.Application.GNOME/Resources/org.nickvision.application.gresource.xml b/Nickvision.Application.GNOME/Resources/org.nickvision.application.gresource.xml deleted file mode 100644 index efa03419..00000000 --- a/Nickvision.Application.GNOME/Resources/org.nickvision.application.gresource.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - ../../resources/org.nickvision.application.svg - ../../resources/org.nickvision.application-devel.svg - - - ../../resources/org.nickvision.application-symbolic.svg - - - dark-mode-symbolic.svg - translate-symbolic.svg - - diff --git a/Nickvision.Application.GNOME/Resources/translate-symbolic.svg b/Nickvision.Application.GNOME/Resources/translate-symbolic.svg deleted file mode 100644 index 33554eda..00000000 --- a/Nickvision.Application.GNOME/Resources/translate-symbolic.svg +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/Nickvision.Application.GNOME/Views/MainWindow.cs b/Nickvision.Application.GNOME/Views/MainWindow.cs deleted file mode 100644 index b22810b3..00000000 --- a/Nickvision.Application.GNOME/Views/MainWindow.cs +++ /dev/null @@ -1,269 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Nickvision.Application.Shared.Controllers; -using Nickvision.Application.Shared.Events; -using Nickvision.Application.Shared.Models; -using Nickvision.Application.Shared.Services; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Globalization; -using Nickvision.Desktop.GNOME.Controls; -using Nickvision.Desktop.GNOME.Helpers; -using Nickvision.Desktop.Notifications; -using System; -using System.Diagnostics.CodeAnalysis; -using System.IO; -using System.Linq; - -namespace Nickvision.Application.GNOME.Views; - -public class MainWindow : Adw.ApplicationWindow -{ - private readonly IServiceProvider _serviceProvider; - private readonly Adw.Application _application; - private readonly MainWindowController _controller; - private readonly AppInfo _appInfo; - private readonly ITranslationService _translationService; - private readonly Gtk.Builder _builder; - private bool _shown; - - [Gtk.Connect("windowTitle")] - private Adw.WindowTitle? _windowTitle; - [Gtk.Connect("btnOpenFolder")] - private Gtk.Button? _btnOpenFolder; - [Gtk.Connect("btnCloseFolder")] - private Gtk.Button? _btnCloseFolder; - [Gtk.Connect("toastOverlay")] - private Adw.ToastOverlay? _toastOverlay; - [Gtk.Connect("viewStack")] - private Adw.ViewStack? _viewStack; - [Gtk.Connect("pageGreeting")] - private Adw.StatusPage? _pageGreeting; - [Gtk.Connect("pageFiles")] - private Adw.StatusPage? _pageFiles; - - public MainWindow(IServiceProvider serviceProvider, Adw.Application application, MainWindowController controller, AppInfo appInfo, IEventsService eventsService, ITranslationService translationService, IGtkBuilderFactory builderFactory) : this(serviceProvider, application, controller, appInfo, eventsService, translationService, builderFactory.Create("MainWindow")) - { - - } - - [DynamicDependency(DynamicallyAccessedMemberTypes.NonPublicFields, typeof(MainWindow))] - private MainWindow(IServiceProvider serviceProvider, Adw.Application application, MainWindowController controller, AppInfo appInfo, IEventsService eventsService, ITranslationService translationService, Gtk.Builder builder) : base(new Adw.Internal.ApplicationWindowHandle(builder.GetPointer("root"), false)) - { - _serviceProvider = serviceProvider; - _application = application; - _controller = controller; - _appInfo = appInfo; - _translationService = translationService; - _builder = builder; - _shown = false; - _builder.Connect(this); - // Window - Adw.StyleManager.GetDefault().ColorScheme = _controller.Theme switch - { - Theme.Light => Adw.ColorScheme.ForceLight, - Theme.Dark => Adw.ColorScheme.ForceDark, - _ => Adw.ColorScheme.Default - }; - Title = _appInfo.ShortName; - IconName = _appInfo.Id; - if (_appInfo.Version!.IsPreview) - { - AddCssClass("devel"); - } - _windowTitle!.Title = _appInfo.ShortName; - _pageGreeting!.Title = _controller.Greeting; - // Events - OnShow += Window_OnShow; - OnCloseRequest += Window_OnCloseRequest; - eventsService.AppNotificationSent += (sender, e) => GLib.Functions.IdleAdd(0, () => - { - App_AppNotificationSent(sender, e); - return false; - }); - eventsService.FolderChanged += App_FolderChanged; - // Drop target - var dropTarget = Gtk.DropTarget.New(Gio.FileHelper.GetGType(), Gdk.DragAction.Copy); - dropTarget.OnDrop += Window_OnDrop; - AddController(dropTarget); - // Quit action - var actQuit = Gio.SimpleAction.New("quit", null); - actQuit.OnActivate += Quit; - AddAction(actQuit); - _application.SetAccelsForAction("win.quit", ["q"]); - // Open in files action - var actOpenInFiles = Gio.SimpleAction.New("openInFiles", null); - actOpenInFiles.OnActivate += OpenInFiles; - AddAction(actOpenInFiles); - // Open folder action - var actOpenFolder = Gio.SimpleAction.New("openFolder", null); - actOpenFolder.OnActivate += OpenFolder; - AddAction(actOpenFolder); - _application.SetAccelsForAction("win.openFolder", ["o"]); - // Close folder action - var actCloseFolder = Gio.SimpleAction.New("closeFolder", null); - actCloseFolder.OnActivate += CloseFolder; - AddAction(actCloseFolder); - _application.SetAccelsForAction("win.closeFolder", ["w"]); - // Preferences action - var actPreferences = Gio.SimpleAction.New("preferences", null); - actPreferences.OnActivate += Preferences; - AddAction(actPreferences); - _application.SetAccelsForAction("win.preferences", ["period"]); - // Keyboard shortcuts action - var actKeyboardShortcuts = Gio.SimpleAction.New("keyboardShortcuts", null); - actKeyboardShortcuts.OnActivate += KeyboardShortcuts; - AddAction(actKeyboardShortcuts); - _application.SetAccelsForAction("win.keyboardShortcuts", ["question"]); - // About action - var actAbout = Gio.SimpleAction.New("about", null); - actAbout.OnActivate += About; - AddAction(actAbout); - _application.SetAccelsForAction("win.about", ["F1"]); - } - - public new void Present() - { - base.Present(); - this.WindowGeometry = _controller.WindowGeometry; - } - - public async void Window_OnShow(Gtk.Widget sender, EventArgs e) - { - if (_shown) - { - return; - } - await _controller.CheckForUpdatesAsync(false); - _shown = true; - } - - private bool Window_OnCloseRequest(Gtk.Window sender, EventArgs e) - { - if (!_controller.CanShutdown) - { - return true; - } - GetDefaultSize(out int width, out int height); - _controller.WindowGeometry = this.WindowGeometry; - Destroy(); - _serviceProvider.GetRequiredService().StopApplication(); - return false; - } - - private bool Window_OnDrop(Gtk.DropTarget sender, Gtk.DropTarget.DropSignalArgs e) - { - var file = new Gio.FileHelper(e.Value.GetObject()!.Handle); - var path = file.GetPath(); - if (string.IsNullOrEmpty(path)) - { - return false; - } - _controller.OpenFolder(path); - return true; - } - - private void App_AppNotificationSent(object? sender, AppNotificationSentEventArgs e) - { - if (e.Notification is ShellNotification shellNotification) - { - var notification = Gio.Notification.New(shellNotification.Title); - notification.SetBody(shellNotification.Message); - if (shellNotification.Action == "open" && !Directory.Exists(shellNotification.ActionParam)) - { - notification.AddButton(_translationService._("Open in Files"), "win.openInFiles"); - } - _application.SendNotification(null, notification); - } - var toast = Adw.Toast.New(e.Notification.Message); - if (e.Notification.Action == "close") - { - toast.ButtonLabel = _translationService._("Close"); - toast.OnButtonClicked += (_, _) => _controller.CloseFolder(); - } - else if (e.Notification.Action == "update") - { - toast.ButtonLabel = _translationService._("View"); - toast.OnButtonClicked += async (_, _) => - { - var launcher = Gtk.UriLauncher.New($"{_appInfo.SourceRepository}/releases/latest"); - await launcher.LaunchAsync(this); - }; - } - _toastOverlay!.AddToast(toast); - } - - private void App_FolderChanged(object? sender, FolderChangedEventArgs e) - { - _windowTitle!.Subtitle = e.IsOpen ? e.Path : string.Empty; - _btnOpenFolder!.Visible = e.IsOpen; - _btnCloseFolder!.Visible = e.IsOpen; - _viewStack!.VisibleChildName = e.IsOpen ? "Folder" : "NoFolder"; - _pageFiles!.Description = _translationService._n("There is {0} file in the folder.", "There are {0} files in the folder", e.Files.Count, e.Files.Count); - } - - private void Quit(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) => Window_OnCloseRequest(this, new EventArgs()); - - private async void OpenInFiles(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) - { - if (!Directory.Exists(_controller.CurrentFolder)) - { - return; - } - var launcher = Gtk.FileLauncher.New(Gio.FileHelper.NewForPath(_controller.CurrentFolder)); - await launcher.LaunchAsync(this); - } - - private async void OpenFolder(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) - { - var folderDialog = Gtk.FileDialog.New(); - folderDialog.Title = _translationService._("Open Folder"); - try - { - var file = await folderDialog.SelectFolderAsync(this); - if (file is not null) - { - _controller.OpenFolder(file.GetPath()!); - } - } - catch { } - } - - private void CloseFolder(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) => _controller.CloseFolder(); - - private void Preferences(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) => _serviceProvider.GetRequiredService().Present(this); - - private void KeyboardShortcuts(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) => _serviceProvider.GetRequiredService().Present(this); - - private void About(Gio.SimpleAction sender, Gio.SimpleAction.ActivateSignalArgs e) - { - var extraInfo = string.Empty; - extraInfo += $"GTK {Gtk.Functions.GetMajorVersion()}.{Gtk.Functions.GetMinorVersion()}.{Gtk.Functions.GetMicroVersion()}\n"; - extraInfo += $"libadwaita {Adw.Functions.GetMajorVersion()}.{Adw.Functions.GetMinorVersion()}.{Adw.Functions.GetMicroVersion()}"; - var dialog = Adw.AboutDialog.New(); - dialog.ApplicationName = _appInfo.ShortName; - dialog.ApplicationIcon = _appInfo.Version!.IsPreview ? $"{_appInfo.Id}-devel" : _appInfo.Id; - dialog.DeveloperName = "Nickvision"; - dialog.Version = _appInfo.Version.ToString(); - dialog.ReleaseNotes = _appInfo.HtmlChangelog; - dialog.DebugInfo = _controller.GetDebugInformation(extraInfo); - dialog.Comments = _appInfo.Description; - dialog.LicenseType = Gtk.License.MitX11; - dialog.Copyright = "© Nickvision 2021-2026"; - dialog.Website = "https://nickvision.org"; - dialog.IssueUrl = _appInfo.IssueTracker!.ToString(); - dialog.SupportUrl = _appInfo.DiscussionsForum!.ToString(); - dialog.AddLink(_translationService._("GitHub Repo"), _appInfo.SourceRepository!.ToString()); - foreach (var pair in _appInfo.ExtraLinks) - { - dialog.AddLink(pair.Key, pair.Value.ToString()); - } - dialog.Developers = _appInfo.Developers.Select(x => $"{x.Key} {x.Value}").ToArray(); - dialog.Designers = _appInfo.Designers.Select(x => $"{x.Key} {x.Value}").ToArray(); - dialog.Artists = _appInfo.Artists.Select(x => $"{x.Key} {x.Value}").ToArray(); - if (!string.IsNullOrEmpty(_appInfo.TranslationCredits) && _appInfo.TranslationCredits != "translation-credits") - { - dialog.TranslatorCredits = _appInfo.TranslationCredits; - } - dialog.Present(this); - } -} diff --git a/Nickvision.Application.GNOME/Views/PreferencesDialog.cs b/Nickvision.Application.GNOME/Views/PreferencesDialog.cs deleted file mode 100644 index 24d912b6..00000000 --- a/Nickvision.Application.GNOME/Views/PreferencesDialog.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Nickvision.Application.Shared.Controllers; -using Nickvision.Application.Shared.Models; -using Nickvision.Desktop.GNOME.Helpers; -using System; -using System.Diagnostics.CodeAnalysis; - -namespace Nickvision.Application.GNOME.Views; - -public class PreferencesDialog : Adw.PreferencesDialog -{ - private readonly PreferencesViewController _controller; - private readonly Gtk.Builder _builder; - - [Gtk.Connect("themeRow")] - private Adw.ComboRow? _themeRow; - [Gtk.Connect("languageRow")] - private Adw.ComboRow? _languageRow; - - public PreferencesDialog(PreferencesViewController controller, IGtkBuilderFactory builderFactory) : this(controller, builderFactory.Create("PreferencesDialog")) - { - - } - - [DynamicDependency(DynamicallyAccessedMemberTypes.NonPublicFields, typeof(PreferencesDialog))] - private PreferencesDialog(PreferencesViewController controller, Gtk.Builder builder) : base(new Adw.Internal.PreferencesDialogHandle(builder.GetPointer("root"), false)) - { - _controller = controller; - _builder = builder; - _builder.Connect(this); - // Load - _themeRow!.SetModel(_controller.Themes); - _languageRow!.SetModel(_controller.AvailableTranslationLanguages); - // Events - OnClosed += Dialog_OnClosed; - _themeRow!.OnNotify += ThemeRow_OnNotify; - } - - private async void Dialog_OnClosed(Adw.Dialog sender, EventArgs args) - { - _controller.TranslationLanguage = _controller.AvailableTranslationLanguages[(int)_languageRow!.Selected]; - await _controller.SaveConfigurationAsync(); - } - - private void ThemeRow_OnNotify(GObject.Object sender, NotifySignalArgs args) - { - if (args.Pspec.GetName() == "selected-item") - { - _controller.Theme = _controller.Themes[(int)_themeRow!.Selected]; - Adw.StyleManager.GetDefault().ColorScheme = _controller.Themes[(int)_themeRow!.Selected].Value switch - { - Theme.Light => Adw.ColorScheme.ForceLight, - Theme.Dark => Adw.ColorScheme.ForceDark, - _ => Adw.ColorScheme.Default - }; - } - } -} diff --git a/Nickvision.Application.Shared/Controllers/MainWindowController.cs b/Nickvision.Application.Shared/Controllers/MainWindowController.cs deleted file mode 100644 index a73e2393..00000000 --- a/Nickvision.Application.Shared/Controllers/MainWindowController.cs +++ /dev/null @@ -1,127 +0,0 @@ -using Microsoft.Extensions.Logging; -using Nickvision.Application.Shared.Helpers; -using Nickvision.Application.Shared.Models; -using Nickvision.Application.Shared.Services; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Globalization; -using Nickvision.Desktop.Network; -using Nickvision.Desktop.Notifications; -using System; -using System.Threading.Tasks; - -namespace Nickvision.Application.Shared.Controllers; - -public class MainWindowController -{ - ILogger _logger; - private readonly AppInfo _appInfo; - private readonly IConfigurationService _configurationService; - private readonly IFolderService _folderService; - private readonly INotificationService _notificationService; - private readonly ITranslationService _translationService; - private readonly IUpdaterService _updaterService; - private AppVersion _latestVersion; - - public MainWindowController(ILogger logger, AppInfo appInfo, IArgumentsService argumentsService, IConfigurationService configurationService, IFolderService folderService, INotificationService notificationService, ITranslationService translationService, IUpdaterService updaterService) - { - _logger = logger; - _appInfo = appInfo; - _configurationService = configurationService; - _folderService = folderService; - _notificationService = notificationService; - _translationService = translationService; - _updaterService = updaterService; - _latestVersion = appInfo.Version!; - _translationService.Language = _configurationService.TranslationLanguage; - _logger.LogInformation($"Received command-line arguments: [{string.Join(", ", argumentsService.Data)}]"); - // Translate strings - _appInfo.ShortName = _translationService._("Application"); - _appInfo.Description = _translationService._("Create new Nickvision applications."); - _appInfo.ExtraLinks.Add(_translationService._("Matrix Chat"), new Uri("https://matrix.to/#/#nickvision:matrix.org")); - _appInfo.Developers.Add(_translationService._("Nicholas Logozzo"), "https://github.com/nlogozzo"); - _appInfo.Developers.Add(_translationService._("Contributors on GitHub ❤️"), "https://github.com/NickvisionApps/Application/graphs/contributors"); - _appInfo.Designers.Add(_translationService._("Nicholas Logozzo"), "https://github.com/nlogozzo"); - _appInfo.Designers.Add(_translationService._("Fyodor Sobolev"), "https://github.com/fsobolev"); - _appInfo.Designers.Add(_translationService._("DaPigGuy"), "https://github.com/DaPigGuy"); - _appInfo.Artists.Add(_translationService._("David Lapshin"), "https://github.com/daudix"); - _appInfo.TranslationCredits = _translationService._("translation-credits"); - } - - public bool CanShutdown => true; - - public string? CurrentFolder => _folderService.Path; - - public string Greeting => DateTime.Now.Hour switch - { - >= 0 and < 6 => _translationService._p("Night", "Good Morning!"), - < 12 => _translationService._p("Morning", "Good Morning!"), - < 18 => _translationService._("Good Afternoon!"), - < 24 => _translationService._("Good Evening!"), - var _ => _translationService._("Good Day!") - }; - - public Theme Theme => _configurationService.Theme; - - public WindowGeometry WindowGeometry - { - get => _configurationService.WindowGeometry; - - set => _configurationService.WindowGeometry = value; - } - - public async Task CheckForUpdatesAsync(bool showNotificationForNoUpdates) - { - _logger.LogInformation("Checking for updates..."); - var stableVersion = await _updaterService.GetLatestStableVersionAsync(); - if (stableVersion is not null) - { - _latestVersion = stableVersion; - } - if (_configurationService.AllowPreviewUpdates) - { - var previewVersion = await _updaterService.GetLatestPreviewVersionAsync(); - if (previewVersion is not null && previewVersion > stableVersion) - { - _latestVersion = previewVersion; - } - } - if (_latestVersion > _appInfo.Version!) - { - if (!OperatingSystem.IsLinux()) - { - _logger.LogInformation($"New application update available: {_latestVersion}"); - _notificationService.Send(new AppNotification(_translationService._("New {0} update available: {1}", _appInfo.ShortName!, _latestVersion.ToString()), NotificationSeverity.Success) - { - Action = "update" - }); - } - } - else - { - _logger.LogInformation("No application update available."); - if (showNotificationForNoUpdates) - { - _notificationService.Send(new AppNotification(_translationService._("No update available"), NotificationSeverity.Warning)); - } - } - } - - public string GetDebugInformation(string extraInformation = "") => Desktop.System.Environment.GetDebugInformation(_appInfo, extraInformation); - - public void OpenFolder(string path) => _folderService.Open(path); - - public void CloseFolder() => _folderService.Close(); - - public async Task WindowsUpdateAsync(IProgress progress) - { - var res = await _updaterService.WindowsApplicationUpdateAsync(_latestVersion, progress); - if (res) - { - _notificationService.Send(new AppNotification(_translationService._("Starting {0} installer...", _appInfo.ShortName!), NotificationSeverity.Success)); - } - else - { - _notificationService.Send(new AppNotification(_translationService._("Unable to download and install the update"), NotificationSeverity.Error)); - } - } -} diff --git a/Nickvision.Application.Shared/Controllers/PreferencesViewController.cs b/Nickvision.Application.Shared/Controllers/PreferencesViewController.cs deleted file mode 100644 index 0ce0b842..00000000 --- a/Nickvision.Application.Shared/Controllers/PreferencesViewController.cs +++ /dev/null @@ -1,92 +0,0 @@ -using Microsoft.Data.Sqlite; -using Nickvision.Application.Shared.Helpers; -using Nickvision.Application.Shared.Models; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Globalization; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Nickvision.Application.Shared.Controllers; - -public class PreferencesViewController : IDisposable -{ - private readonly IConfigurationService _configurationService; - private readonly ITranslationService _translationService; - private SqliteTransaction? _transaction; - - public IReadOnlyList> AvailableTranslationLanguages { get; } - public IReadOnlyList> Themes { get; } - - public PreferencesViewController(IConfigurationService configurationService, ITranslationService translationService) - { - _configurationService = configurationService; - _translationService = translationService; - _transaction = _configurationService.CreateTransaction(); - AvailableTranslationLanguages = new List>() - { - new SelectionItem(string.Empty, _translationService._("System"), string.IsNullOrEmpty(_configurationService.TranslationLanguage)), - new SelectionItem("C", "en_US", _configurationService.TranslationLanguage == "C") - }; - var languages = _translationService.AvailableLanguages.ToList(); - languages.Sort(); - foreach (var language in languages) - { - (AvailableTranslationLanguages as IList)!.Add(new SelectionItem(language, language, _configurationService.TranslationLanguage == language)); - } - Themes = new List>() - { - new SelectionItem(Models.Theme.Light, _translationService._p("Theme", "Light"), _configurationService.Theme == Models.Theme.Light), - new SelectionItem(Models.Theme.Dark, _translationService._p("Theme", "Dark"), _configurationService.Theme == Models.Theme.Dark), - new SelectionItem(Models.Theme.System, _translationService._p("Theme", "System"), _configurationService.Theme == Models.Theme.System), - }; - } - - ~PreferencesViewController() - { - Dispose(false); - } - - public SelectionItem Theme - { - set => _configurationService.Theme = value.Value; - } - - public SelectionItem TranslationLanguage - { - set => _configurationService.TranslationLanguage = value.Value; - } - - public bool AllowPreviewUpdates - { - get => _configurationService.AllowPreviewUpdates; - - set => _configurationService.AllowPreviewUpdates = value; - } - - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - public async Task SaveConfigurationAsync() - { - if (_transaction is not null) - { - await _transaction.CommitAsync(); - await _transaction.DisposeAsync(); - _transaction = null; - } - } - private void Dispose(bool disposing) - { - if (!disposing) - { - return; - } - _transaction?.Dispose(); - } -} diff --git a/Nickvision.Application.Shared/Events/FolderChangedEventArgs.cs b/Nickvision.Application.Shared/Events/FolderChangedEventArgs.cs deleted file mode 100644 index 4a8f5299..00000000 --- a/Nickvision.Application.Shared/Events/FolderChangedEventArgs.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Nickvision.Application.Shared.Events; - -public class FolderChangedEventArgs : EventArgs -{ - public string? Path { get; init; } - public List Files { get; init; } - - public bool IsOpen => !string.IsNullOrEmpty(Path); - - public FolderChangedEventArgs(string? path, List? files = default) - { - Path = path; - Files = files ?? []; - } -} diff --git a/Nickvision.Application.Shared/Helpers/ApplicationJsonContext.cs b/Nickvision.Application.Shared/Helpers/ApplicationJsonContext.cs deleted file mode 100644 index a191f3c4..00000000 --- a/Nickvision.Application.Shared/Helpers/ApplicationJsonContext.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Nickvision.Desktop.Application; -using System.Text.Json.Serialization; - -namespace Nickvision.Application.Shared.Helpers; - -[JsonSourceGenerationOptions(DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, WriteIndented = true)] -[JsonSerializable(typeof(WindowGeometry))] -public partial class ApplicationJsonContext : JsonSerializerContext -{ - -} diff --git a/Nickvision.Application.Shared/Helpers/HostApplicationBuilderExtensions.cs b/Nickvision.Application.Shared/Helpers/HostApplicationBuilderExtensions.cs deleted file mode 100644 index 975b4fa8..00000000 --- a/Nickvision.Application.Shared/Helpers/HostApplicationBuilderExtensions.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Nickvision.Application.Shared.Controllers; -using Nickvision.Application.Shared.Services; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Filesystem; -using Nickvision.Desktop.Helpers; -using System; -using System.IO; - -namespace Nickvision.Application.Shared.Helpers; - -public static class HostApplicationBuilderExtensions -{ - extension(IHostApplicationBuilder builder) - { - public IHostApplicationBuilder ConfigureApplication(string[] args) - { - var appInfo = new AppInfo("org.nickvision.application", "Nickvision Application", "Application") - { - Version = new AppVersion("2026.4.0-next"), - Changelog = "- Initial release", - SourceRepository = new Uri("https://github.com/NickvisionApps/Application"), - IssueTracker = new Uri("https://github.com/NickvisionApps/Application/issues/new"), - DiscussionsForum = new Uri("https://github.com/NickvisionApps/Application/discussions"), - IsPortable = OperatingSystem.IsWindows() && args.Contains("--portable") - }; - builder.Properties.Add("AppInfo", appInfo); - builder.Services.AddSingleton(appInfo); - builder.ConfigureNickvision(args, appInfo.IsPortable ? "app.log" : Path.Combine(UserDirectories.LocalData, appInfo.Name, "app.log")); - builder.Services.AddSingleton(); - builder.Services.AddSingleton(); - builder.Services.AddSingleton(); - builder.Services.AddTransient(); - builder.Services.AddHostedService(); - return builder; - } - } -} diff --git a/Nickvision.Application.Shared/Helpers/IConfigurationServiceExtensions.cs b/Nickvision.Application.Shared/Helpers/IConfigurationServiceExtensions.cs deleted file mode 100644 index 408c1f67..00000000 --- a/Nickvision.Application.Shared/Helpers/IConfigurationServiceExtensions.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Nickvision.Application.Shared.Models; -using Nickvision.Desktop.Application; - -namespace Nickvision.Application.Shared.Helpers; - -public static class IConfigurationServiceExtensions -{ - extension(IConfigurationService configurationService) - { - public bool AllowPreviewUpdates - { - get => configurationService.Get("AllowPreviewUpdates", false); - - set => configurationService.Set("AllowPreviewUpdates", value); - } - - public Theme Theme - { - get => configurationService.Get("Theme", Theme.System); - - set => configurationService.Set("Theme", value); - } - - public string TranslationLanguage - { - get => configurationService.Get("TranslationLanguage", string.Empty); - - set => configurationService.Set("TranslationLanguage", value); - } - - public WindowGeometry WindowGeometry - { - get => configurationService.Get("WindowGeometry", new WindowGeometry(), ApplicationJsonContext.Default.WindowGeometry); - - set => configurationService.Set("WindowGeometry", value, ApplicationJsonContext.Default.WindowGeometry); - } - } -} diff --git a/Nickvision.Application.Shared/Models/Theme.cs b/Nickvision.Application.Shared/Models/Theme.cs deleted file mode 100644 index a61b33d6..00000000 --- a/Nickvision.Application.Shared/Models/Theme.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Nickvision.Application.Shared.Models; - -public enum Theme -{ - Light, - Dark, - System -} diff --git a/Nickvision.Application.Shared/Nickvision.Application.Shared.csproj b/Nickvision.Application.Shared/Nickvision.Application.Shared.csproj deleted file mode 100644 index f51156f0..00000000 --- a/Nickvision.Application.Shared/Nickvision.Application.Shared.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - net10.0-windows10.0.19041.0 - net10.0 - latest - disable - enable - AnyCPU;ARM64;x64 - 2026.4.0 - true - - - - - - - - \ No newline at end of file diff --git a/Nickvision.Application.Shared/Services/ConfigurationMigrationService.cs b/Nickvision.Application.Shared/Services/ConfigurationMigrationService.cs deleted file mode 100644 index 198e2258..00000000 --- a/Nickvision.Application.Shared/Services/ConfigurationMigrationService.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Filesystem; -using Nickvision.Desktop.System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; - -namespace Nickvision.Application.Shared.Services; - -public class ConfigurationMigrationService : IHostedService -{ - private readonly ILogger _logger; - private readonly IConfigurationService _configurationService; - private readonly string _directory; - - public ConfigurationMigrationService(ILogger logger, AppInfo appInfo, IConfigurationService configurationService) - { - _logger = logger; - _configurationService = configurationService; - _directory = appInfo.IsPortable ? Environment.ExecutingDirectory : Path.Combine(UserDirectories.Config, appInfo.Name); - } - - public async Task StartAsync(CancellationToken cancellationToken) - { - _logger.LogInformation("Starting configuration migration..."); - var configPath = Path.Combine(_directory, "config.json"); - if (File.Exists(configPath)) - { - _logger.LogInformation($"Migrating configuration file ({configPath})..."); - var res = await _configurationService.ImportFromJsonFileAsync(configPath); - _logger.LogInformation($"Migrated {res} properties from configuration file ({configPath})."); - File.Delete(configPath); - } - _logger.LogInformation("Finished configuration migration."); - } - - public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask; -} diff --git a/Nickvision.Application.Shared/Services/EventsService.cs b/Nickvision.Application.Shared/Services/EventsService.cs deleted file mode 100644 index 7bc2ad60..00000000 --- a/Nickvision.Application.Shared/Services/EventsService.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Nickvision.Application.Shared.Events; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Notifications; -using System; - -namespace Nickvision.Application.Shared.Services; - -public class EventsService : IEventsService -{ - private readonly IConfigurationService _configurationService; - private readonly IFolderService _folderService; - private readonly INotificationService _notificationService; - - public EventsService(IConfigurationService configurationService, IFolderService folderService, INotificationService notificationService) - { - _configurationService = configurationService; - _folderService = folderService; - _notificationService = notificationService; - } - - public event EventHandler? AppNotificationSent - { - add => _notificationService.AppNotificationSent += value; - - remove => _notificationService.AppNotificationSent -= value; - } - - public event EventHandler? ConfigurationSaved - { - add => _configurationService.Saved += value; - - remove => _configurationService.Saved -= value; - } - - public event EventHandler FolderChanged - { - add => _folderService.Changed += value; - - remove => _folderService.Changed -= value; - } -} diff --git a/Nickvision.Application.Shared/Services/FolderService.cs b/Nickvision.Application.Shared/Services/FolderService.cs deleted file mode 100644 index d294bb3f..00000000 --- a/Nickvision.Application.Shared/Services/FolderService.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Microsoft.Extensions.Logging; -using Nickvision.Application.Shared.Events; -using Nickvision.Desktop.Globalization; -using Nickvision.Desktop.Notifications; -using System; -using System.Collections.Generic; -using System.IO; - -namespace Nickvision.Application.Shared.Services; - -public class FolderService : IFolderService -{ - private readonly ILogger _logger; - private readonly INotificationService _notificationService; - private readonly ITranslationService _translationService; - - public List Files { get; init; } - public string? Path { get; private set; } - - public event EventHandler? Changed; - - public FolderService(ILogger logger, INotificationService notificationService, ITranslationService translationService) - { - _logger = logger; - _notificationService = notificationService; - _translationService = translationService; - Files = new List(); - Path = null; - } - - public void Open(string path) - { - _logger.LogDebug($"Opening folder: {path}"); - if (!Directory.Exists(path)) - { - _logger.LogError("Folder does not exist."); - Path = null; - return; - } - Path = path; - Files.Clear(); - foreach (var file in Directory.EnumerateFiles(Path)) - { - Files.Add(file); - } - _logger.LogInformation($"Folder opened with {Files.Count} file(s)."); - _notificationService.Send(new AppNotification(_translationService._("Folder opened: {0}", Path), NotificationSeverity.Success) - { - Action = "close" - }); - _notificationService.Send(new ShellNotification(_translationService._("Folder"), _translationService._("Loaded {0} file(s)", Files.Count), NotificationSeverity.Information) - { - Action = "open", - ActionParam = Path - }); - Changed?.Invoke(this, new FolderChangedEventArgs(Path, Files)); - } - - public void Close() - { - _logger.LogDebug($"Closing folder: {Path}"); - Path = null; - Files.Clear(); - _logger.LogInformation("Folder closed."); - _notificationService.Send(new AppNotification(_translationService._("Folder closed"), NotificationSeverity.Warning)); - Changed?.Invoke(this, new FolderChangedEventArgs(null)); - } -} diff --git a/Nickvision.Application.Shared/Services/IEventsService.cs b/Nickvision.Application.Shared/Services/IEventsService.cs deleted file mode 100644 index 21edb29c..00000000 --- a/Nickvision.Application.Shared/Services/IEventsService.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Nickvision.Application.Shared.Events; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Notifications; -using System; - -namespace Nickvision.Application.Shared.Services; - -public interface IEventsService -{ - event EventHandler? AppNotificationSent; - event EventHandler? ConfigurationSaved; - event EventHandler FolderChanged; -} diff --git a/Nickvision.Application.Shared/Services/IFolderService.cs b/Nickvision.Application.Shared/Services/IFolderService.cs deleted file mode 100644 index c9792d42..00000000 --- a/Nickvision.Application.Shared/Services/IFolderService.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Nickvision.Application.Shared.Events; -using System; -using System.Collections.Generic; - -namespace Nickvision.Application.Shared.Services; - -public interface IFolderService -{ - public List Files { get; } - public string? Path { get; } - - public event EventHandler? Changed; - - public void Open(string path); - - public void Close(); -} diff --git a/Nickvision.Application.WinUI/App.xaml b/Nickvision.Application.WinUI/App.xaml deleted file mode 100644 index 68d378f1..00000000 --- a/Nickvision.Application.WinUI/App.xaml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - diff --git a/Nickvision.Application.WinUI/App.xaml.cs b/Nickvision.Application.WinUI/App.xaml.cs deleted file mode 100644 index ed3dbeec..00000000 --- a/Nickvision.Application.WinUI/App.xaml.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.UI.Xaml; -using Nickvision.Application.WinUI.Views; -using System; - -namespace Nickvision.Application.WinUI; - -public partial class App : Microsoft.UI.Xaml.Application -{ - private readonly IServiceProvider _serviceProvider; - private Window? _window; - - public App(IServiceProvider serviceProvider) - { - InitializeComponent(); - _serviceProvider = serviceProvider; - UnhandledException += (_, e) => - { - _serviceProvider.GetRequiredService>().LogError(e.Exception, $"An unhandled exception occurred: {e.Message}"); - }; - } - - protected override void OnLaunched(LaunchActivatedEventArgs args) - { - if (_window is null) - { - _window = _serviceProvider.GetRequiredService(); - } - _window.Activate(); - } -} diff --git a/Nickvision.Application.WinUI/Assets/org.nickvision.application.ico b/Nickvision.Application.WinUI/Assets/org.nickvision.application.ico deleted file mode 100644 index 79fd698a52fe898e863ee70028ab2374f498bc59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7451 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 diff --git a/Nickvision.Application.WinUI/Controls/AboutDialog.xaml b/Nickvision.Application.WinUI/Controls/AboutDialog.xaml deleted file mode 100644 index be320d72..00000000 --- a/Nickvision.Application.WinUI/Controls/AboutDialog.xaml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Nickvision.Application.WinUI/Controls/AboutDialog.xaml.cs b/Nickvision.Application.WinUI/Controls/AboutDialog.xaml.cs deleted file mode 100644 index 25925813..00000000 --- a/Nickvision.Application.WinUI/Controls/AboutDialog.xaml.cs +++ /dev/null @@ -1,78 +0,0 @@ -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Nickvision.Desktop.Application; -using Nickvision.Desktop.Globalization; -using System.Linq; -using System.Threading.Tasks; -using Windows.ApplicationModel.DataTransfer; - -namespace Nickvision.Application.WinUI.Controls; - -public sealed partial class AboutDialog : ContentDialog -{ - private readonly AppInfo _appInfo; - private readonly ITranslationService _translator; - - public AboutDialog(AppInfo appInfo, ITranslationService translator) - { - InitializeComponent(); - _appInfo = appInfo; - _translator = translator; - DebugInformation = string.Empty; - Title = _translator._("About {0}", appInfo.ShortName!); - CloseButtonText = _translator._("Close"); - DefaultButton = ContentDialogButton.Close; - SelectorGeneral.Text = _translator._("General"); - SelectorChangelog.Text = _translator._("Changelog"); - SelectorDebugging.Text = _translator._("Debugging"); - SelectorCredits.Text = _translator._("Credits"); - LblAppName.Text = appInfo.ShortName; - LblAppDescription.Text = appInfo.Description; - LblAppVersion.Text = appInfo.Version!.ToString(); - LblAppCopyright.Text = "© Nickvision 2021-2026"; - LblChangelog.Text = appInfo.Changelog!; - LblCopyDebugInformation.Text = _translator._("Copy Debug Information"); - if (string.IsNullOrEmpty(_appInfo.TranslationCredits) || _appInfo.TranslationCredits == "translation-credits") - { - LblCredits.Text = _translator._("Developers:\n{0}\n\nDesigners:\n{1}\n\nArtists:\n{2}", _appInfo.Developers.Keys.Aggregate((current, next) => $"{current}\n{next}"), _appInfo.Designers.Keys.Aggregate((current, next) => $"{current}\n{next}"), _appInfo.Artists.Keys.Aggregate((current, next) => $"{current}\n{next}")); - } - else - { - LblCredits.Text = _translator._("Developers:\n{0}\n\nDesigners:\n{1}\n\nArtists:\n{2}\n\nTranslators:\n{3}", _appInfo.Developers.Keys.Aggregate((current, next) => $"{current}\n{next}"), _appInfo.Designers.Keys.Aggregate((current, next) => $"{current}\n{next}"), _appInfo.Artists.Keys.Aggregate((current, next) => $"{current}\n{next}"), _appInfo.TranslationCredits!); - } - } - - public string DebugInformation - { - get => field; - - set - { - field = value; - LblDebugInformation.Text = value; - } - } - - private void Dialog_Loaded(object sender, RoutedEventArgs e) => SelectorGeneral.IsSelected = true; - - private void SelectorBar_SelectionChanged(SelectorBar sender, SelectorBarSelectionChangedEventArgs args) - { - var index = sender.Items.IndexOf(sender.SelectedItem); - ViewStack.SelectedIndex = index == -1 ? 0 : index; - } - - private async void CopyDebugInformation(object sender, RoutedEventArgs args) - { - var package = new DataPackage(); - package.SetText(LblDebugInformation.Text); - Clipboard.SetContent(package); - IconCopyDebugInformation.Glyph = "\uE73E"; - await Task.Delay(2000).ContinueWith(_ => - { - DispatcherQueue.TryEnqueue(() => - { - IconCopyDebugInformation.Glyph = "\uE8C8"; - }); - }); - } -} diff --git a/Nickvision.Application.WinUI/Helpers/IServiceCollectionExtensions.cs b/Nickvision.Application.WinUI/Helpers/IServiceCollectionExtensions.cs deleted file mode 100644 index 3268ae2c..00000000 --- a/Nickvision.Application.WinUI/Helpers/IServiceCollectionExtensions.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Nickvision.Application.WinUI.Controls; -using Nickvision.Application.WinUI.Views; - -namespace Nickvision.Application.WinUI.Helpers; - -public static class IServiceCollectionExtensions -{ - extension(IServiceCollection collection) - { - public IServiceCollection AddControls() - { - collection.AddSingleton(); - collection.AddTransient(); - collection.AddSingleton(); - return collection; - } - } -} \ No newline at end of file diff --git a/Nickvision.Application.WinUI/Nickvision.Application.WinUI.csproj b/Nickvision.Application.WinUI/Nickvision.Application.WinUI.csproj deleted file mode 100644 index 7baf5523..00000000 --- a/Nickvision.Application.WinUI/Nickvision.Application.WinUI.csproj +++ /dev/null @@ -1,71 +0,0 @@ - - - - net10.0-windows10.0.19041.0 - 10.0.17763.0 - latest - disable - enable - true - WinExe - Nickvision.Application.WinUI - app.manifest - x86;x64;ARM64 - win-x86;win-x64;win-arm64 - win-$(Platform).pubxml - true - false - true - None - true - DISABLE_XAML_GENERATED_MAIN - Nickvision.Application.WinUI.Program - 2026.4.0 - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - False - True - False - True - - - Assets\org.nickvision.application.ico - - - - - \ No newline at end of file diff --git a/Nickvision.Application.WinUI/Program.cs b/Nickvision.Application.WinUI/Program.cs deleted file mode 100644 index 341e48a9..00000000 --- a/Nickvision.Application.WinUI/Program.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Microsoft.Extensions.Hosting; -using Nickvision.Application.Shared.Helpers; -using Nickvision.Application.WinUI.Helpers; -using Nickvision.Desktop.WinUI.Helpers; -using System; -using System.Runtime.InteropServices; - -namespace Nickvision.Application.WinUI; - -public static partial class Program -{ - [LibraryImport("Microsoft.ui.xaml.dll", EntryPoint = "XamlCheckProcessRequirements")] - private static partial void XamlCheckProcessRequirements(); - - [STAThread] - private static void Main(string[] args) - { - XamlCheckProcessRequirements(); - var builder = Host.CreateApplicationBuilder(args); - builder.ConfigureApplication(args); - builder.ConfigureWinUI(); - builder.Services.AddControls(); - var app = builder.Build(); - app.Run(); - } -} diff --git a/Nickvision.Application.WinUI/Views/MainWindow.xaml b/Nickvision.Application.WinUI/Views/MainWindow.xaml deleted file mode 100644 index d4c3c86b..00000000 --- a/Nickvision.Application.WinUI/Views/MainWindow.xaml +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }/> + {_g("Open Folder")} + + + + + { + await closeFolder(); + setPage("home"); + }}> + + {_g("Close")} + }/> + {_g("Close Folder")} + + + + + + +
+ {files.length > 0 ? ( + files.map((file) => ( + + )) + ) : ( +

{_g("This folder is empty.")}

+ )} +
+
+
+ + +
+ {selectedFile === null ? ( + + + {_g("No File Selected")} + {_g("Select a file to preview it here.")} + + + ) : canPreviewImage ? ( + {selectedFile.path} setImageLoadFailed(true)} + className="max-h-full max-w-full rounded-lg object-contain" + /> + ) : ( + + + + + + {_g("No Preview Available")} + {selectedFile.name} + + + )} +
+
+
+ + ) +} \ No newline at end of file diff --git a/src/components/pages/home-page.tsx b/src/components/pages/home-page.tsx new file mode 100644 index 00000000..b0859fd3 --- /dev/null +++ b/src/components/pages/home-page.tsx @@ -0,0 +1,71 @@ +import {Button} from "@/components/ui/button.tsx"; +import {Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle} from "@/components/ui/empty.tsx"; +import {useDialog} from "@/lib/dialog-provider.tsx"; +import {useFolderView} from "@/lib/folder-view-provider.tsx"; +import {useNavigation} from "@/lib/navigation-provider.tsx"; +import {useTranslation} from "@/lib/translation-provider.tsx"; +import {ArrowUpRightIcon, LucideIcon, Moon, MoonStar, Sun} from "lucide-react"; +import {useEffect, useState} from "react"; + +interface Greeting { + label: string, + icon: LucideIcon +} + +export function HomePage() { + const {_g, _p} = useTranslation(); + const {openDialog} = useDialog(); + const {setPage} = useNavigation(); + const {openFolder} = useFolderView(); + const [greeting, setGreeting] = useState({ + label: _g("Good Day!"), + icon: Sun + }); + + useEffect(() => { + const hours = new Date().getHours(); + let label = ""; + let icon = Sun; + if (hours < 6) { + label = _p("Night", "Good Morning!"); + icon = MoonStar; + } else if (hours < 12) { + label = _p("Morning", "Good Morning!"); + } else if (hours < 18) { + label = _g("Good Afternoon!"); + } else { + label = _g("Good Evening!"); + icon = Moon + } + setGreeting({ + label, + icon + }) + }, []) + + return ( +
+ + + + + + {greeting.label} + Open a folder (or drag one in) to get started! + + + + + + +
+ ) +} \ No newline at end of file diff --git a/src/components/titlebar-control-escape.tsx b/src/components/titlebar-control-escape.tsx new file mode 100644 index 00000000..bee3febe --- /dev/null +++ b/src/components/titlebar-control-escape.tsx @@ -0,0 +1,59 @@ +import {ReactNode, useEffect, useRef, useState} from "react"; +import {createPortal} from "react-dom"; + +interface TitlebarControlEscapeProps { + children: ReactNode; + renderAbsolute?: boolean; +} + +export function TitlebarControlEscape({children, renderAbsolute = false}: TitlebarControlEscapeProps) { + const anchorRef = useRef(null); + const [rect, setRect] = useState(null); + const [target, setTarget] = useState(null); + + useEffect(() => { + const targetRef = {current: null as HTMLElement | null}; + + let frame: number; + const update = () => { + if (!targetRef.current) { + const found = document.querySelector("[data-tauri-decorum-tb]"); + if (found) { + targetRef.current = found; + setTarget(found); + } + } + + const el = anchorRef.current; + if (el) { + const next = el.getBoundingClientRect(); + setRect((prev) => (prev + && prev.top === next.top + && prev.left === next.left + && prev.width === next.width + && prev.height === next.height) ? prev : next); + } + frame = requestAnimationFrame(update); + }; + frame = requestAnimationFrame(update); + + return () => cancelAnimationFrame(frame); + }, []); + + return ( + <> +
+ {children} +
+ {target && rect && createPortal( +
+ {children} +
, + target + )} + + ); +} diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx new file mode 100644 index 00000000..89033a29 --- /dev/null +++ b/src/components/ui/accordion.tsx @@ -0,0 +1,71 @@ +import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion" +import { cn } from "cn" +import { ChevronDownIcon, ChevronUpIcon } from "lucide-react" + +function Accordion({ className, ...props }: AccordionPrimitive.Root.Props) { + return ( + + ) +} + +function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props) { + return ( + + ) +} + +function AccordionTrigger({ + className, + children, + ...props +}: AccordionPrimitive.Trigger.Props) { + return ( + + + {children} + + + + + ) +} + +function AccordionContent({ + className, + children, + ...props +}: AccordionPrimitive.Panel.Props) { + return ( + +
+ {children} +
+
+ ) +} + +export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx new file mode 100644 index 00000000..30fd5cc0 --- /dev/null +++ b/src/components/ui/alert-dialog.tsx @@ -0,0 +1,185 @@ +import * as React from "react" +import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog" +import { cn } from "cn" + +import { Button } from "@/components/ui/button" + +function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) { + return +} + +function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) { + return ( + + ) +} + +function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) { + return ( + + ) +} + +function AlertDialogOverlay({ + className, + ...props +}: AlertDialogPrimitive.Backdrop.Props) { + return ( + + ) +} + +function AlertDialogContent({ + className, + size = "default", + ...props +}: AlertDialogPrimitive.Popup.Props & { + size?: "default" | "sm" +}) { + return ( + + + + + ) +} + +function AlertDialogHeader({ + className, + ...props +}: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function AlertDialogFooter({ + className, + ...props +}: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function AlertDialogMedia({ + className, + ...props +}: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function AlertDialogTitle({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function AlertDialogDescription({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function AlertDialogAction({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function CarouselNext({ + className, + variant = "outline", + size = "icon-sm", + ...props +}: React.ComponentProps) { + const { orientation, scrollNext, canScrollNext } = useCarousel() + + return ( + + ) +} + +export { + type CarouselApi, + Carousel, + CarouselContent, + CarouselItem, + CarouselPrevious, + CarouselNext, + useCarousel, +} diff --git a/src/components/ui/chart.tsx b/src/components/ui/chart.tsx new file mode 100644 index 00000000..c5f6eb3c --- /dev/null +++ b/src/components/ui/chart.tsx @@ -0,0 +1,370 @@ +import * as React from "react" +import { cn } from "cn" +import * as RechartsPrimitive from "recharts" +import type { TooltipValueType } from "recharts" + +// Format: { THEME_NAME: CSS_SELECTOR } +const THEMES = { light: "", dark: ".dark" } as const + +const INITIAL_DIMENSION = { width: 320, height: 200 } as const +type TooltipNameType = number | string + +export type ChartConfig = Record< + string, + { + label?: React.ReactNode + icon?: React.ComponentType + } & ( + | { color?: string; theme?: never } + | { color?: never; theme: Record } + ) +> + +type ChartContextProps = { + config: ChartConfig +} + +const ChartContext = React.createContext(null) + +function useChart() { + const context = React.useContext(ChartContext) + + if (!context) { + throw new Error("useChart must be used within a ") + } + + return context +} + +function ChartContainer({ + id, + className, + children, + config, + initialDimension = INITIAL_DIMENSION, + ...props +}: React.ComponentProps<"div"> & { + config: ChartConfig + children: React.ComponentProps< + typeof RechartsPrimitive.ResponsiveContainer + >["children"] + initialDimension?: { + width: number + height: number + } +}) { + const uniqueId = React.useId() + const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}` + + return ( + +
+ + + {children} + +
+
+ ) +} + +const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => { + const colorConfig = Object.entries(config).filter( + ([, config]) => config.theme ?? config.color + ) + + if (!colorConfig.length) { + return null + } + + return ( +