diff --git a/Directory.Packages.props b/Directory.Packages.props deleted file mode 100644 index 9736b13..0000000 --- a/Directory.Packages.props +++ /dev/null @@ -1,22 +0,0 @@ - - - - true - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/SessionZeroClient.Android/Icon.png b/SessionZeroClient.Android/Icon.png deleted file mode 100644 index 3c39845..0000000 Binary files a/SessionZeroClient.Android/Icon.png and /dev/null differ diff --git a/SessionZeroClient.Android/MainActivity.cs b/SessionZeroClient.Android/MainActivity.cs deleted file mode 100644 index c94167a..0000000 --- a/SessionZeroClient.Android/MainActivity.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Android.App; -using Android.Content.PM; -using Avalonia; -using Avalonia.Android; - -namespace SessionZeroClient.Android; - -[Activity( - Label = "SessionZeroClient.Android", - Theme = "@style/MyTheme.NoActionBar", - Icon = "@drawable/icon", - MainLauncher = true, - ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)] -public class MainActivity : AvaloniaMainActivity -{ - protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) - { - return base.CustomizeAppBuilder(builder) - .WithInterFont(); - } -} \ No newline at end of file diff --git a/SessionZeroClient.Android/Properties/AndroidManifest.xml b/SessionZeroClient.Android/Properties/AndroidManifest.xml deleted file mode 100644 index 3294c69..0000000 --- a/SessionZeroClient.Android/Properties/AndroidManifest.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/SessionZeroClient.Android/Resources/AboutResources.txt b/SessionZeroClient.Android/Resources/AboutResources.txt deleted file mode 100644 index c2bca97..0000000 --- a/SessionZeroClient.Android/Resources/AboutResources.txt +++ /dev/null @@ -1,44 +0,0 @@ -Images, layout descriptions, binary blobs and string dictionaries can be included -in your application as resource files. Various Android APIs are designed to -operate on the resource IDs instead of dealing with images, strings or binary blobs -directly. - -For example, a sample Android app that contains a user interface layout (main.axml), -an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) -would keep its resources in the "Resources" directory of the application: - -Resources/ - drawable/ - icon.png - - layout/ - main.axml - - values/ - strings.xml - -In order to get the build system to recognize Android resources, set the build action to -"AndroidResource". The native Android APIs do not operate directly with filenames, but -instead operate on resource IDs. When you compile an Android application that uses resources, -the build system will package the resources for distribution and generate a class called "R" -(this is an Android convention) that contains the tokens for each one of the resources -included. For example, for the above Resources layout, this is what the R class would expose: - -public class R { - public class drawable { - public const int icon = 0x123; - } - - public class layout { - public const int main = 0x456; - } - - public class strings { - public const int first_string = 0xabc; - public const int second_string = 0xbcd; - } -} - -You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main -to reference the layout/main.axml file, or R.strings.first_string to reference the first -string in the dictionary file values/strings.xml. \ No newline at end of file diff --git a/SessionZeroClient.Android/Resources/drawable-night-v31/avalonia_anim.xml b/SessionZeroClient.Android/Resources/drawable-night-v31/avalonia_anim.xml deleted file mode 100644 index dde4b5a..0000000 --- a/SessionZeroClient.Android/Resources/drawable-night-v31/avalonia_anim.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SessionZeroClient.Android/Resources/drawable-v31/avalonia_anim.xml b/SessionZeroClient.Android/Resources/drawable-v31/avalonia_anim.xml deleted file mode 100644 index 94f27d9..0000000 --- a/SessionZeroClient.Android/Resources/drawable-v31/avalonia_anim.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SessionZeroClient.Android/Resources/drawable/splash_screen.xml b/SessionZeroClient.Android/Resources/drawable/splash_screen.xml deleted file mode 100644 index 2e920b4..0000000 --- a/SessionZeroClient.Android/Resources/drawable/splash_screen.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - diff --git a/SessionZeroClient.Android/Resources/values-night/colors.xml b/SessionZeroClient.Android/Resources/values-night/colors.xml deleted file mode 100644 index 3d47b6f..0000000 --- a/SessionZeroClient.Android/Resources/values-night/colors.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - #212121 - diff --git a/SessionZeroClient.Android/Resources/values-v31/styles.xml b/SessionZeroClient.Android/Resources/values-v31/styles.xml deleted file mode 100644 index d5ecec4..0000000 --- a/SessionZeroClient.Android/Resources/values-v31/styles.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/SessionZeroClient.Android/Resources/values/colors.xml b/SessionZeroClient.Android/Resources/values/colors.xml deleted file mode 100644 index 59279d5..0000000 --- a/SessionZeroClient.Android/Resources/values/colors.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - #FFFFFF - diff --git a/SessionZeroClient.Android/Resources/values/styles.xml b/SessionZeroClient.Android/Resources/values/styles.xml deleted file mode 100644 index 6e534de..0000000 --- a/SessionZeroClient.Android/Resources/values/styles.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - diff --git a/SessionZeroClient.Android/SessionZeroClient.Android.csproj b/SessionZeroClient.Android/SessionZeroClient.Android.csproj deleted file mode 100644 index acae508..0000000 --- a/SessionZeroClient.Android/SessionZeroClient.Android.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - Exe - net9.0-android - 21 - enable - com.CompanyName.SessionZeroClient - 1 - 1.0 - apk - false - - - - - Resources\drawable\Icon.png - - - - - - - - - - - - diff --git a/SessionZeroClient.Browser/Program.cs b/SessionZeroClient.Browser/Program.cs deleted file mode 100644 index 66676cf..0000000 --- a/SessionZeroClient.Browser/Program.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Runtime.Versioning; -using System.Threading.Tasks; -using Avalonia; -using Avalonia.Browser; -using SessionZeroClient; - -internal sealed partial class Program -{ - private static Task Main(string[] args) => BuildAvaloniaApp() - .WithInterFont() - .StartBrowserAppAsync("out"); - - public static AppBuilder BuildAvaloniaApp() - => AppBuilder.Configure(); -} \ No newline at end of file diff --git a/SessionZeroClient.Browser/Properties/AssemblyInfo.cs b/SessionZeroClient.Browser/Properties/AssemblyInfo.cs deleted file mode 100644 index f31aed8..0000000 --- a/SessionZeroClient.Browser/Properties/AssemblyInfo.cs +++ /dev/null @@ -1 +0,0 @@ -[assembly: System.Runtime.Versioning.SupportedOSPlatform("browser")] \ No newline at end of file diff --git a/SessionZeroClient.Browser/Properties/launchSettings.json b/SessionZeroClient.Browser/Properties/launchSettings.json deleted file mode 100644 index 3a4c5f5..0000000 --- a/SessionZeroClient.Browser/Properties/launchSettings.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "profiles": { - "SessionZeroClient.Browser": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "https://localhost:7169;http://localhost:5235", - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}" - } - } -} diff --git a/SessionZeroClient.Browser/SessionZeroClient.Browser.csproj b/SessionZeroClient.Browser/SessionZeroClient.Browser.csproj deleted file mode 100644 index 3845346..0000000 --- a/SessionZeroClient.Browser/SessionZeroClient.Browser.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - net9.0-browser - Exe - true - enable - - - - - - - - - - diff --git a/SessionZeroClient.Browser/runtimeconfig.template.json b/SessionZeroClient.Browser/runtimeconfig.template.json deleted file mode 100644 index b96a943..0000000 --- a/SessionZeroClient.Browser/runtimeconfig.template.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "wasmHostProperties": { - "perHostConfig": [ - { - "name": "browser", - "host": "browser" - } - ] - } -} \ No newline at end of file diff --git a/SessionZeroClient.Browser/wwwroot/app.css b/SessionZeroClient.Browser/wwwroot/app.css deleted file mode 100644 index 1d6f754..0000000 --- a/SessionZeroClient.Browser/wwwroot/app.css +++ /dev/null @@ -1,58 +0,0 @@ -/* HTML styles for the splash screen */ -.avalonia-splash { - position: absolute; - height: 100%; - width: 100%; - background: white; - font-family: 'Outfit', sans-serif; - justify-content: center; - align-items: center; - display: flex; - pointer-events: none; -} - -/* Light theme styles */ -@media (prefers-color-scheme: light) { - .avalonia-splash { - background: white; - } - - .avalonia-splash h2 { - color: #1b2a4e; - } - - .avalonia-splash a { - color: #0D6EFD; - } -} - -@media (prefers-color-scheme: dark) { - .avalonia-splash { - background: #1b2a4e; - } - - .avalonia-splash h2 { - color: white; - } - - .avalonia-splash a { - color: white; - } -} - -.avalonia-splash h2 { - font-weight: 400; - font-size: 1.5rem; -} - -.avalonia-splash a { - text-decoration: none; - font-size: 2.5rem; - display: block; -} - -.avalonia-splash.splash-close { - transition: opacity 200ms, display 200ms; - display: none; - opacity: 0; -} diff --git a/SessionZeroClient.Browser/wwwroot/favicon.ico b/SessionZeroClient.Browser/wwwroot/favicon.ico deleted file mode 100644 index f7da8bb..0000000 Binary files a/SessionZeroClient.Browser/wwwroot/favicon.ico and /dev/null differ diff --git a/SessionZeroClient.Browser/wwwroot/index.html b/SessionZeroClient.Browser/wwwroot/index.html deleted file mode 100644 index 13e1a8a..0000000 --- a/SessionZeroClient.Browser/wwwroot/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - SessionZeroClient.Browser - - - - - - -
-
-

- Powered by - - - - - - - - - - - - - - -

-
-
- - - - diff --git a/SessionZeroClient.Browser/wwwroot/main.js b/SessionZeroClient.Browser/wwwroot/main.js deleted file mode 100644 index bf1555e..0000000 --- a/SessionZeroClient.Browser/wwwroot/main.js +++ /dev/null @@ -1,13 +0,0 @@ -import { dotnet } from './_framework/dotnet.js' - -const is_browser = typeof window != "undefined"; -if (!is_browser) throw new Error(`Expected to be running in a browser`); - -const dotnetRuntime = await dotnet - .withDiagnosticTracing(false) - .withApplicationArgumentsFromQuery() - .create(); - -const config = dotnetRuntime.getConfig(); - -await dotnetRuntime.runMain(config.mainAssemblyName, [globalThis.location.href]); diff --git a/SessionZeroClient.Desktop/Program.cs b/SessionZeroClient.Desktop/Program.cs deleted file mode 100644 index 5bd8689..0000000 --- a/SessionZeroClient.Desktop/Program.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using Avalonia; - -namespace SessionZeroClient.Desktop; - -sealed class Program -{ - // Initialization code. Don't use any Avalonia, third-party APIs or any - // SynchronizationContext-reliant code before AppMain is called: things aren't initialized - // yet and stuff might break. - [STAThread] - public static void Main(string[] args) => BuildAvaloniaApp() - .StartWithClassicDesktopLifetime(args); - - // Avalonia configuration, don't remove; also used by visual designer. - public static AppBuilder BuildAvaloniaApp() - => AppBuilder.Configure() - .UsePlatformDetect() - .WithInterFont() - .LogToTrace(); -} \ No newline at end of file diff --git a/SessionZeroClient.Desktop/SessionZeroClient.Desktop.csproj b/SessionZeroClient.Desktop/SessionZeroClient.Desktop.csproj deleted file mode 100644 index 534be85..0000000 --- a/SessionZeroClient.Desktop/SessionZeroClient.Desktop.csproj +++ /dev/null @@ -1,27 +0,0 @@ - - - WinExe - - net9.0 - enable - true - - - - app.manifest - - - - - - - None - All - - - - - - - diff --git a/SessionZeroClient.Desktop/app.manifest b/SessionZeroClient.Desktop/app.manifest deleted file mode 100644 index bc0c0ca..0000000 --- a/SessionZeroClient.Desktop/app.manifest +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - diff --git a/SessionZeroClient.iOS/AppDelegate.cs b/SessionZeroClient.iOS/AppDelegate.cs deleted file mode 100644 index 9dae0d2..0000000 --- a/SessionZeroClient.iOS/AppDelegate.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Foundation; -using UIKit; -using Avalonia; -using Avalonia.Controls; -using Avalonia.iOS; -using Avalonia.Media; - -namespace SessionZeroClient.iOS; - -// The UIApplicationDelegate for the application. This class is responsible for launching the -// User Interface of the application, as well as listening (and optionally responding) to -// application events from iOS. -[Register("AppDelegate")] -#pragma warning disable CA1711 // Identifiers should not have incorrect suffix -public partial class AppDelegate : AvaloniaAppDelegate -#pragma warning restore CA1711 // Identifiers should not have incorrect suffix -{ - protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) - { - return base.CustomizeAppBuilder(builder) - .WithInterFont(); - } -} \ No newline at end of file diff --git a/SessionZeroClient.iOS/Entitlements.plist b/SessionZeroClient.iOS/Entitlements.plist deleted file mode 100644 index 0c67376..0000000 --- a/SessionZeroClient.iOS/Entitlements.plist +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/SessionZeroClient.iOS/Info.plist b/SessionZeroClient.iOS/Info.plist deleted file mode 100644 index 3c17833..0000000 --- a/SessionZeroClient.iOS/Info.plist +++ /dev/null @@ -1,43 +0,0 @@ - - - - - CFBundleDisplayName - SessionZeroClient - CFBundleIdentifier - companyName.SessionZeroClient - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - MinimumOSVersion - 13.0 - UIDeviceFamily - - 1 - 2 - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/SessionZeroClient.iOS/Main.cs b/SessionZeroClient.iOS/Main.cs deleted file mode 100644 index 6028491..0000000 --- a/SessionZeroClient.iOS/Main.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UIKit; - -namespace SessionZeroClient.iOS; - -public class Application -{ - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "AppDelegate" - // you can specify it here. - UIApplication.Main(args, null, typeof(AppDelegate)); - } -} \ No newline at end of file diff --git a/SessionZeroClient.iOS/Resources/LaunchScreen.xib b/SessionZeroClient.iOS/Resources/LaunchScreen.xib deleted file mode 100644 index e532d53..0000000 --- a/SessionZeroClient.iOS/Resources/LaunchScreen.xib +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SessionZeroClient.iOS/SessionZeroClient.iOS.csproj b/SessionZeroClient.iOS/SessionZeroClient.iOS.csproj deleted file mode 100644 index 86b1d3a..0000000 --- a/SessionZeroClient.iOS/SessionZeroClient.iOS.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - Exe - net9.0-ios - 13.0 - enable - - - - - - - - - - diff --git a/SessionZeroClient.sln b/SessionZeroClient.sln deleted file mode 100644 index 2c3cafe..0000000 --- a/SessionZeroClient.sln +++ /dev/null @@ -1,54 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.3.32811.315 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SessionZeroClient", "SessionZeroClient\SessionZeroClient.csproj", "{EBFA8512-1EA5-4D8C-B4AC-AB5B48A6D568}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SessionZeroClient.Desktop", "SessionZeroClient.Desktop\SessionZeroClient.Desktop.csproj", "{ABC31E74-02FF-46EB-B3B2-4E6AE43B456C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SessionZeroClient.Browser", "SessionZeroClient.Browser\SessionZeroClient.Browser.csproj", "{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SessionZeroClient.iOS", "SessionZeroClient.iOS\SessionZeroClient.iOS.csproj", "{EBD9022F-BC83-4846-9A11-6F7F3772DC64}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SessionZeroClient.Android", "SessionZeroClient.Android\SessionZeroClient.Android.csproj", "{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3DA99C4E-89E3-4049-9C22-0A7EC60D83D8}" - ProjectSection(SolutionItems) = preProject - Directory.Packages.props = Directory.Packages.props - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EBFA8512-1EA5-4D8C-B4AC-AB5B48A6D568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EBFA8512-1EA5-4D8C-B4AC-AB5B48A6D568}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EBFA8512-1EA5-4D8C-B4AC-AB5B48A6D568}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EBFA8512-1EA5-4D8C-B4AC-AB5B48A6D568}.Release|Any CPU.Build.0 = Release|Any CPU - {ABC31E74-02FF-46EB-B3B2-4E6AE43B456C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ABC31E74-02FF-46EB-B3B2-4E6AE43B456C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ABC31E74-02FF-46EB-B3B2-4E6AE43B456C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ABC31E74-02FF-46EB-B3B2-4E6AE43B456C}.Release|Any CPU.Build.0 = Release|Any CPU - {1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Release|Any CPU.Build.0 = Release|Any CPU - {EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Release|Any CPU.Build.0 = Release|Any CPU - {7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {83CB65B8-011F-4ED7-BCD3-A6CFA935EF7E} - EndGlobalSection -EndGlobal diff --git a/SessionZeroClient/App.axaml b/SessionZeroClient/App.axaml deleted file mode 100644 index e1d3358..0000000 --- a/SessionZeroClient/App.axaml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/SessionZeroClient/App.axaml.cs b/SessionZeroClient/App.axaml.cs deleted file mode 100644 index 78772dc..0000000 --- a/SessionZeroClient/App.axaml.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Avalonia; -using Avalonia.Controls.ApplicationLifetimes; -using Avalonia.Data.Core; -using Avalonia.Data.Core.Plugins; -using System.Linq; -using Avalonia.Markup.Xaml; -using SessionZeroClient.ViewModels; -using SessionZeroClient.Views; - -namespace SessionZeroClient; - -public partial class App : Application -{ - public override void Initialize() - { - AvaloniaXamlLoader.Load(this); - } - - public override void OnFrameworkInitializationCompleted() - { - if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) - { - // Avoid duplicate validations from both Avalonia and the CommunityToolkit. - // More info: https://docs.avaloniaui.net/docs/guides/development-guides/data-validation#manage-validationplugins - DisableAvaloniaDataAnnotationValidation(); - desktop.MainWindow = new MainWindow - { - DataContext = new MainViewModel() - }; - } - else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform) - { - singleViewPlatform.MainView = new MainView - { - DataContext = new MainViewModel() - }; - } - - base.OnFrameworkInitializationCompleted(); - } - - private void DisableAvaloniaDataAnnotationValidation() - { - // Get an array of plugins to remove - var dataValidationPluginsToRemove = - BindingPlugins.DataValidators.OfType().ToArray(); - - // remove each entry found - foreach (var plugin in dataValidationPluginsToRemove) - { - BindingPlugins.DataValidators.Remove(plugin); - } - } -} \ No newline at end of file diff --git a/SessionZeroClient/Assets/avalonia-logo.ico b/SessionZeroClient/Assets/avalonia-logo.ico deleted file mode 100644 index f7da8bb..0000000 Binary files a/SessionZeroClient/Assets/avalonia-logo.ico and /dev/null differ diff --git a/SessionZeroClient/SessionZeroClient.csproj b/SessionZeroClient/SessionZeroClient.csproj deleted file mode 100644 index b0d8c33..0000000 --- a/SessionZeroClient/SessionZeroClient.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - net9.0 - enable - latest - true - - - - - - - - - - - - - None - All - - - - diff --git a/SessionZeroClient/ViewLocator.cs b/SessionZeroClient/ViewLocator.cs deleted file mode 100644 index bcf05df..0000000 --- a/SessionZeroClient/ViewLocator.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using Avalonia.Controls; -using Avalonia.Controls.Templates; -using SessionZeroClient.ViewModels; - -namespace SessionZeroClient; - -public class ViewLocator : IDataTemplate -{ - public Control? Build(object? param) - { - if (param is null) - return null; - - var name = param.GetType().FullName!.Replace("ViewModel", "View", StringComparison.Ordinal); - var type = Type.GetType(name); - - if (type != null) - { - return (Control)Activator.CreateInstance(type)!; - } - - return new TextBlock { Text = "Not Found: " + name }; - } - - public bool Match(object? data) - { - return data is ViewModelBase; - } -} \ No newline at end of file diff --git a/SessionZeroClient/ViewModels/MainViewModel.cs b/SessionZeroClient/ViewModels/MainViewModel.cs deleted file mode 100644 index 0e19c96..0000000 --- a/SessionZeroClient/ViewModels/MainViewModel.cs +++ /dev/null @@ -1,8 +0,0 @@ -using CommunityToolkit.Mvvm.ComponentModel; - -namespace SessionZeroClient.ViewModels; - -public partial class MainViewModel : ViewModelBase -{ - [ObservableProperty] private string _greeting = "Welcome to Avalonia!"; -} \ No newline at end of file diff --git a/SessionZeroClient/ViewModels/ViewModelBase.cs b/SessionZeroClient/ViewModels/ViewModelBase.cs deleted file mode 100644 index a314609..0000000 --- a/SessionZeroClient/ViewModels/ViewModelBase.cs +++ /dev/null @@ -1,7 +0,0 @@ -using CommunityToolkit.Mvvm.ComponentModel; - -namespace SessionZeroClient.ViewModels; - -public abstract class ViewModelBase : ObservableObject -{ -} \ No newline at end of file diff --git a/SessionZeroClient/Views/MainView.axaml b/SessionZeroClient/Views/MainView.axaml deleted file mode 100644 index 739e204..0000000 --- a/SessionZeroClient/Views/MainView.axaml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/SessionZeroClient/Views/MainView.axaml.cs b/SessionZeroClient/Views/MainView.axaml.cs deleted file mode 100644 index e655286..0000000 --- a/SessionZeroClient/Views/MainView.axaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Avalonia.Controls; - -namespace SessionZeroClient.Views; - -public partial class MainView : UserControl -{ - public MainView() - { - InitializeComponent(); - } -} \ No newline at end of file diff --git a/SessionZeroClient/Views/MainWindow.axaml b/SessionZeroClient/Views/MainWindow.axaml deleted file mode 100644 index 96b46c5..0000000 --- a/SessionZeroClient/Views/MainWindow.axaml +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/SessionZeroClient/Views/MainWindow.axaml.cs b/SessionZeroClient/Views/MainWindow.axaml.cs deleted file mode 100644 index 47d473c..0000000 --- a/SessionZeroClient/Views/MainWindow.axaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Avalonia.Controls; - -namespace SessionZeroClient.Views; - -public partial class MainWindow : Window -{ - public MainWindow() - { - InitializeComponent(); - } -} \ No newline at end of file diff --git a/rambling.md b/rambling.md new file mode 100644 index 0000000..e69de29