Refactor workspace name

This commit is contained in:
BlossomiShymae
2024-08-18 19:03:47 -05:00
parent 88149d1458
commit baf189e6a9
70 changed files with 107 additions and 107 deletions
+3 -3
View File
@@ -20,14 +20,14 @@ jobs:
fetch-depth: 0 fetch-depth: 0
ref: release ref: release
- name: Build - name: Build
run: dotnet build Needlework.Net.Desktop -c Release run: dotnet build Needlework.Net -c Release
- name: Publish - name: Publish
run: dotnet publish Needlework.Net.Desktop -c Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o publish -r win-x64 --self-contained=false run: dotnet publish Needlework.Net -c Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o publish -r win-x64 --self-contained=false
- name: Get Version - name: Get Version
id: version id: version
shell: powershell shell: powershell
run: | run: |
$xml=[xml](Get-Content .\Needlework.Net.Desktop\Needlework.Net.Desktop.csproj) $xml=[xml](Get-Content .\Needlework.Net\Needlework.Net.csproj)
$ver=($xml.Project.PropertyGroup).AssemblyVersion $ver=($xml.Project.PropertyGroup).AssemblyVersion
$ver="VERSION=$ver" $ver="VERSION=$ver"
$ver=$ver -replace '\s','' $ver=$ver -replace '\s',''
+1 -1
View File
@@ -5,7 +5,7 @@ VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Core", "Needlework.Net.Core\Needlework.Net.Core.csproj", "{B14E1B39-3C5A-400F-8148-CC3A4833CBC4}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Core", "Needlework.Net.Core\Needlework.Net.Core.csproj", "{B14E1B39-3C5A-400F-8148-CC3A4833CBC4}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Desktop", "Needlework.Net.Desktop\Needlework.Net.Desktop.csproj", "{7388B579-2DC0-46D6-957A-6683D0FCF5D3}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net", "Needlework.Net\Needlework.Net.csproj", "{7388B579-2DC0-46D6-957A-6683D0FCF5D3}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Core.Tests", "Needlework.Net.Core.Tests\Needlework.Net.Core.Tests.csproj", "{0E08542E-6E3F-4825-9F9C-7D6275D6AEC5}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Core.Tests", "Needlework.Net.Core.Tests\Needlework.Net.Core.Tests.csproj", "{0E08542E-6E3F-4825-9F9C-7D6275D6AEC5}"
EndProject EndProject
@@ -1,8 +1,8 @@
<Application xmlns="https://github.com/avaloniaui" <Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Needlework.Net.Desktop.App" x:Class="Needlework.Net.App"
xmlns:local="using:Needlework.Net.Desktop" xmlns:local="using:Needlework.Net"
xmlns:converters="using:Needlework.Net.Desktop.Converters" xmlns:converters="using:Needlework.Net.Converters"
xmlns:sty="using:FluentAvalonia.Styling" xmlns:sty="using:FluentAvalonia.Styling"
xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
RequestedThemeVariant="Dark"> RequestedThemeVariant="Dark">
@@ -3,12 +3,12 @@ using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
using Needlework.Net.Desktop.Views; using Needlework.Net.Views;
using System; using System;
using System.Text.Json; using System.Text.Json;
namespace Needlework.Net.Desktop; namespace Needlework.Net;
public partial class App(IServiceProvider serviceProvider) : Application public partial class App(IServiceProvider serviceProvider) : Application
{ {

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before

Width:  |  Height:  |  Size: 938 B

After

Width:  |  Height:  |  Size: 938 B

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 221 KiB

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

@@ -2,9 +2,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:Needlework.Net.Desktop.Controls" xmlns:controls="using:Needlework.Net.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Controls.BusyArea"> x:Class="Needlework.Net.Controls.BusyArea">
<UserControl.Styles> <UserControl.Styles>
<Style Selector="controls|BusyArea"> <Style Selector="controls|BusyArea">
<Setter Property="Template"> <Setter Property="Template">
@@ -1,7 +1,7 @@
using Avalonia; using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
namespace Needlework.Net.Desktop.Controls; namespace Needlework.Net.Controls;
public partial class BusyArea : UserControl public partial class BusyArea : UserControl
{ {
@@ -1,6 +1,6 @@
<Styles xmlns="https://github.com/avaloniaui" <Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Needlework.Net.Desktop.Controls"> xmlns:controls="using:Needlework.Net.Controls">
<Design.PreviewWith> <Design.PreviewWith>
<controls:Card /> <controls:Card />
</Design.PreviewWith> </Design.PreviewWith>
@@ -1,6 +1,6 @@
using Avalonia.Controls; using Avalonia.Controls;
namespace Needlework.Net.Desktop.Controls; namespace Needlework.Net.Controls;
public class Card : ContentControl public class Card : ContentControl
{ {
@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.Linq; using System.Linq;
namespace Needlework.Net.Desktop.Converters namespace Needlework.Net.Converters
{ {
public class EnumerableBoolConverter : IValueConverter public class EnumerableBoolConverter : IValueConverter
{ {
@@ -2,7 +2,7 @@
using System; using System;
using System.Globalization; using System.Globalization;
namespace Needlework.Net.Desktop.Converters namespace Needlework.Net.Converters
{ {
public class NullBoolConverter : IValueConverter public class NullBoolConverter : IValueConverter
{ {
@@ -3,7 +3,7 @@ using AvaloniaEdit;
using AvaloniaEdit.Highlighting; using AvaloniaEdit.Highlighting;
using AvaloniaEdit.Indentation.CSharp; using AvaloniaEdit.Indentation.CSharp;
namespace Needlework.Net.Desktop.Extensions namespace Needlework.Net.Extensions
{ {
public static class TextEditorExtensions public static class TextEditorExtensions
{ {
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Needlework.Net.Desktop namespace Needlework.Net
{ {
public class GithubRelease public class GithubRelease
{ {
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class ContentRequestMessage : RequestMessage<string> public class ContentRequestMessage : RequestMessage<string>
{ {
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
using Needlework.Net.Core; using Needlework.Net.Core;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class DataReadyMessage(LcuSchemaHandler handler) : ValueChangedMessage<LcuSchemaHandler>(handler) public class DataReadyMessage(LcuSchemaHandler handler) : ValueChangedMessage<LcuSchemaHandler>(handler)
{ {
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
using Needlework.Net.Core; using Needlework.Net.Core;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class DataRequestMessage : RequestMessage<LcuSchemaHandler> public class DataRequestMessage : RequestMessage<LcuSchemaHandler>
{ {
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class EditorUpdateMessage(EditorUpdate editorUpdate) : ValueChangedMessage<EditorUpdate>(editorUpdate) public class EditorUpdateMessage(EditorUpdate editorUpdate) : ValueChangedMessage<EditorUpdate>(editorUpdate)
{ {
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Models;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class HostDocumentRequestMessage : RequestMessage<OpenApiDocument> public class HostDocumentRequestMessage : RequestMessage<OpenApiDocument>
{ {
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class InfoBarUpdateMessage(InfoBarViewModel vm) : ValueChangedMessage<InfoBarViewModel>(vm) public class InfoBarUpdateMessage(InfoBarViewModel vm) : ValueChangedMessage<InfoBarViewModel>(vm)
{ {
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class OopsiesWindowCanceledMessage(object? data) : ValueChangedMessage<object?>(data) public class OopsiesWindowCanceledMessage(object? data) : ValueChangedMessage<object?>(data)
{ {
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class OopsiesWindowRequestedMessage(string text) : ValueChangedMessage<string>(text) public class OopsiesWindowRequestedMessage(string text) : ValueChangedMessage<string>(text)
{ {
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging.Messages;
namespace Needlework.Net.Desktop.Messages namespace Needlework.Net.Messages
{ {
public class ResponseUpdatedMessage(string data) : ValueChangedMessage<string>(data) public class ResponseUpdatedMessage(string data) : ValueChangedMessage<string>(data)
{ {
@@ -1,13 +1,13 @@
using Avalonia; using Avalonia;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Needlework.Net.Desktop.Services; using Needlework.Net.Services;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
using Projektanker.Icons.Avalonia; using Projektanker.Icons.Avalonia;
using Projektanker.Icons.Avalonia.FontAwesome; using Projektanker.Icons.Avalonia.FontAwesome;
using System; using System;
using System.Linq; using System.Linq;
namespace Needlework.Net.Desktop; namespace Needlework.Net;
class Program class Program
{ {
@@ -1,10 +1,10 @@
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
using Needlework.Net.Desktop.Views; using Needlework.Net.Views;
using System; using System;
namespace Needlework.Net.Desktop.Services namespace Needlework.Net.Services
{ {
public class WindowService : IRecipient<OopsiesWindowCanceledMessage> public class WindowService : IRecipient<OopsiesWindowCanceledMessage>
{ {
@@ -3,7 +3,7 @@ using Avalonia.Controls.Templates;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
namespace Needlework.Net.Desktop namespace Needlework.Net
{ {
public class ViewLocator : IDataTemplate public class ViewLocator : IDataTemplate
{ {
@@ -1,4 +1,4 @@
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public class AboutViewModel : PageBase public class AboutViewModel : PageBase
{ {
@@ -3,14 +3,14 @@ using BlossomiShymae.GrrrLCU;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.Services; using Needlework.Net.Services;
using System; using System;
using System.Net.Http; using System.Net.Http;
using System.Text.Json; using System.Text.Json;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class ConsoleViewModel : PageBase, IRecipient<DataReadyMessage> public partial class ConsoleViewModel : PageBase, IRecipient<DataReadyMessage>
{ {
@@ -1,12 +1,12 @@
using Avalonia.Collections; using Avalonia.Collections;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class EndpointViewModel : ObservableObject public partial class EndpointViewModel : ObservableObject
{ {
@@ -2,7 +2,7 @@
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using System.Net.Http; using System.Net.Http;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class EndpointsContainerViewModel : PageBase public partial class EndpointsContainerViewModel : PageBase
{ {
@@ -2,12 +2,12 @@
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using System; using System;
using System.Linq; using System.Linq;
using System.Net.Http; using System.Net.Http;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class EndpointsViewModel : ObservableObject, IRecipient<DataReadyMessage> public partial class EndpointsViewModel : ObservableObject, IRecipient<DataReadyMessage>
{ {
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using System.Diagnostics; using System.Diagnostics;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class HomeViewModel : PageBase public partial class HomeViewModel : PageBase
{ {
@@ -3,7 +3,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using FluentAvalonia.UI.Controls; using FluentAvalonia.UI.Controls;
using System; using System;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class InfoBarViewModel : ObservableObject public partial class InfoBarViewModel : ObservableObject
{ {
@@ -5,8 +5,8 @@ using CommunityToolkit.Mvvm.Messaging;
using FluentAvalonia.UI.Controls; using FluentAvalonia.UI.Controls;
using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Models;
using Needlework.Net.Core; using Needlework.Net.Core;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.Services; using Needlework.Net.Services;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@@ -18,7 +18,7 @@ using System.Reflection;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class MainWindowViewModel : ObservableObject, IRecipient<DataRequestMessage>, IRecipient<HostDocumentRequestMessage>, IRecipient<OopsiesWindowRequestedMessage>, IRecipient<InfoBarUpdateMessage> public partial class MainWindowViewModel : ObservableObject, IRecipient<DataRequestMessage>, IRecipient<HostDocumentRequestMessage>, IRecipient<OopsiesWindowRequestedMessage>, IRecipient<InfoBarUpdateMessage>
{ {
@@ -1,11 +1,11 @@
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class OopsiesWindowViewModel(string text) : ObservableObject public partial class OopsiesWindowViewModel(string text) : ObservableObject
{ {
@@ -2,12 +2,12 @@
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Models;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text.Json; using System.Text.Json;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class OperationViewModel : ObservableObject public partial class OperationViewModel : ObservableObject
{ {
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public abstract partial class PageBase(string displayName, string icon, int index = 0) : ObservableValidator public abstract partial class PageBase(string displayName, string icon, int index = 0) : ObservableValidator
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class ParameterViewModel : ObservableObject public partial class ParameterViewModel : ObservableObject
{ {
@@ -4,14 +4,14 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Core; using Needlework.Net.Core;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using System; using System;
using System.Net.Http; using System.Net.Http;
using System.Text; using System.Text;
using System.Text.Json; using System.Text.Json;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class PathOperationViewModel : ObservableObject public partial class PathOperationViewModel : ObservableObject
{ {
@@ -5,7 +5,7 @@ using Microsoft.OpenApi.Models;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public class PropertyClassViewModel : ObservableObject public class PropertyClassViewModel : ObservableObject
{ {
@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public class PropertyEnumViewModel public class PropertyEnumViewModel
{ {
@@ -1,4 +1,4 @@
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public class PropertyFieldViewModel public class PropertyFieldViewModel
{ {
@@ -2,8 +2,8 @@
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.Services; using Needlework.Net.Services;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@@ -13,7 +13,7 @@ using System.Text.Json;
using System.Threading; using System.Threading;
using Websocket.Client; using Websocket.Client;
namespace Needlework.Net.Desktop.ViewModels namespace Needlework.Net.ViewModels
{ {
public partial class WebsocketViewModel : PageBase public partial class WebsocketViewModel : PageBase
{ {
@@ -2,10 +2,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
xmlns:controls="using:Needlework.Net.Desktop.Controls" xmlns:controls="using:Needlework.Net.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.AboutView" x:Class="Needlework.Net.Views.AboutView"
x:DataType="vm:AboutViewModel"> x:DataType="vm:AboutViewModel">
<Grid Margin="8" <Grid Margin="8"
VerticalAlignment="Center" VerticalAlignment="Center"
@@ -1,6 +1,6 @@
using Avalonia.Controls; using Avalonia.Controls;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class AboutView : UserControl public partial class AboutView : UserControl
{ {
@@ -3,10 +3,10 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit" xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
xmlns:controls="using:Needlework.Net.Desktop.Controls" xmlns:controls="using:Needlework.Net.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.ConsoleView" x:Class="Needlework.Net.Views.ConsoleView"
x:DataType="vm:ConsoleViewModel"> x:DataType="vm:ConsoleViewModel">
<controls:BusyArea IsBusy="{Binding IsBusy}" <controls:BusyArea IsBusy="{Binding IsBusy}"
BusyText="Loading..."> BusyText="Loading...">
@@ -4,12 +4,12 @@ using Avalonia.Controls.Primitives;
using Avalonia.Styling; using Avalonia.Styling;
using AvaloniaEdit; using AvaloniaEdit;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Extensions; using Needlework.Net.Extensions;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
using TextMateSharp.Grammars; using TextMateSharp.Grammars;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class ConsoleView : UserControl, IRecipient<ResponseUpdatedMessage>, IRecipient<ContentRequestMessage> public partial class ConsoleView : UserControl, IRecipient<ResponseUpdatedMessage>, IRecipient<ContentRequestMessage>
{ {
@@ -3,11 +3,11 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
xmlns:avalonEdit="https://github.com/avaloniaui/avaloniaedit" xmlns:avalonEdit="https://github.com/avaloniaui/avaloniaedit"
xmlns:controls="using:Needlework.Net.Desktop.Controls" xmlns:controls="using:Needlework.Net.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.EndpointView" x:Class="Needlework.Net.Views.EndpointView"
x:DataType="vm:EndpointViewModel"> x:DataType="vm:EndpointViewModel">
<UserControl.Styles> <UserControl.Styles>
<Style Selector="DataGrid"> <Style Selector="DataGrid">
@@ -4,12 +4,12 @@ using Avalonia.Controls.Primitives;
using Avalonia.Styling; using Avalonia.Styling;
using AvaloniaEdit; using AvaloniaEdit;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Extensions; using Needlework.Net.Extensions;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
using TextMateSharp.Grammars; using TextMateSharp.Grammars;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class EndpointView : UserControl, IRecipient<EditorUpdateMessage>, IRecipient<ContentRequestMessage> public partial class EndpointView : UserControl, IRecipient<EditorUpdateMessage>, IRecipient<ContentRequestMessage>
{ {
@@ -2,11 +2,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
xmlns:avalonEdit="https://github.com/avaloniaui/avaloniaedit" xmlns:avalonEdit="https://github.com/avaloniaui/avaloniaedit"
xmlns:i="https://github.com/projektanker/icons.avalonia" xmlns:i="https://github.com/projektanker/icons.avalonia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.EndpointsContainerView" x:Class="Needlework.Net.Views.EndpointsContainerView"
x:DataType="vm:EndpointsContainerViewModel"> x:DataType="vm:EndpointsContainerViewModel">
<Grid RowDefinitions="auto,*" <Grid RowDefinitions="auto,*"
ColumnDefinitions="*" ColumnDefinitions="*"
@@ -1,6 +1,6 @@
using Avalonia.Controls; using Avalonia.Controls;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class EndpointsContainerView : UserControl public partial class EndpointsContainerView : UserControl
{ {
@@ -2,11 +2,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
xmlns:controls="using:Needlework.Net.Desktop.Controls" xmlns:controls="using:Needlework.Net.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
Name="EndpointsControl" Name="EndpointsControl"
x:Class="Needlework.Net.Desktop.Views.EndpointsView" x:Class="Needlework.Net.Views.EndpointsView"
x:DataType="vm:EndpointsViewModel"> x:DataType="vm:EndpointsViewModel">
<controls:BusyArea IsBusy="{Binding IsBusy}" <controls:BusyArea IsBusy="{Binding IsBusy}"
BusyText="Loading..."> BusyText="Loading...">
@@ -1,6 +1,6 @@
using Avalonia.Controls; using Avalonia.Controls;
namespace Needlework.Net.Desktop.Views namespace Needlework.Net.Views
{ {
public partial class EndpointsView : UserControl public partial class EndpointsView : UserControl
{ {
@@ -2,10 +2,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
xmlns:controls="using:Needlework.Net.Desktop.Controls" xmlns:controls="using:Needlework.Net.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.HomeView" x:Class="Needlework.Net.Views.HomeView"
x:DataType="vm:HomeViewModel"> x:DataType="vm:HomeViewModel">
<!-- TOP LEVEL --> <!-- TOP LEVEL -->
<ScrollViewer> <ScrollViewer>
@@ -1,6 +1,6 @@
using Avalonia.Controls; using Avalonia.Controls;
namespace Needlework.Net.Desktop.Views namespace Needlework.Net.Views
{ {
public partial class HomeView : UserControl public partial class HomeView : UserControl
{ {
@@ -7,9 +7,9 @@
xmlns:uip="using:FluentAvalonia.UI.Controls.Primitives" xmlns:uip="using:FluentAvalonia.UI.Controls.Primitives"
xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
xmlns:i="https://github.com/projektanker/icons.avalonia" xmlns:i="https://github.com/projektanker/icons.avalonia"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.MainWindow" x:Class="Needlework.Net.Views.MainWindow"
x:DataType="vm:MainWindowViewModel" x:DataType="vm:MainWindowViewModel"
Title="Needlework.Net" Title="Needlework.Net"
Icon="/Assets/app.ico" Icon="/Assets/app.ico"
@@ -1,6 +1,6 @@
using FluentAvalonia.UI.Windowing; using FluentAvalonia.UI.Windowing;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class MainWindow : AppWindow public partial class MainWindow : AppWindow
{ {
@@ -3,9 +3,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.OopsiesWindow" x:Class="Needlework.Net.Views.OopsiesWindow"
x:DataType="vm:OopsiesWindowViewModel" x:DataType="vm:OopsiesWindowViewModel"
Title="Needlework.Net - Oopsies" Title="Needlework.Net - Oopsies"
WindowStartupLocation="CenterOwner" WindowStartupLocation="CenterOwner"
@@ -1,6 +1,6 @@
using FluentAvalonia.UI.Windowing; using FluentAvalonia.UI.Windowing;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class OopsiesWindow : AppWindow public partial class OopsiesWindow : AppWindow
{ {
@@ -3,9 +3,9 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit" xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit"
xmlns:vm="using:Needlework.Net.Desktop.ViewModels" xmlns:vm="using:Needlework.Net.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Needlework.Net.Desktop.Views.WebsocketView" x:Class="Needlework.Net.Views.WebsocketView"
x:DataType="vm:WebsocketViewModel"> x:DataType="vm:WebsocketViewModel">
<Grid RowDefinitions="*,auto,*" Margin="16"> <Grid RowDefinitions="*,auto,*" Margin="16">
<Border Grid.Row="0" <Border Grid.Row="0"
@@ -4,13 +4,13 @@ using Avalonia.Controls.Primitives;
using Avalonia.Styling; using Avalonia.Styling;
using AvaloniaEdit; using AvaloniaEdit;
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Needlework.Net.Desktop.Extensions; using Needlework.Net.Extensions;
using Needlework.Net.Desktop.Messages; using Needlework.Net.Messages;
using Needlework.Net.Desktop.ViewModels; using Needlework.Net.ViewModels;
using System; using System;
using TextMateSharp.Grammars; using TextMateSharp.Grammars;
namespace Needlework.Net.Desktop.Views; namespace Needlework.Net.Views;
public partial class WebsocketView : UserControl, IRecipient<ResponseUpdatedMessage> public partial class WebsocketView : UserControl, IRecipient<ResponseUpdatedMessage>
{ {

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 221 KiB

@@ -3,7 +3,7 @@
<!-- This manifest is used on Windows only. <!-- This manifest is used on Windows only.
Don't remove it as it might cause problems with window transparency and embedded controls. Don't remove it as it might cause problems with window transparency and embedded controls.
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests --> For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
<assemblyIdentity version="1.0.0.0" name="Needlework.Net.Desktop.Desktop"/> <assemblyIdentity version="1.0.0.0" name="Needlework.Net"/>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application> <application>