Skip to content

Commit

Permalink
📦 Struct: Adjust name space.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Feb 28, 2024
1 parent 5029651 commit 0e8e8e9
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion KitX Dashboard/Converters/DeviceInfoConverters.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Avalonia.Data.Converters;
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using System;
using System.Globalization;

Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Converters/OperatingSystemUtils.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Avalonia.Data.Converters;
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using Material.Icons;
using System;
using System.Globalization;
Expand Down
4 changes: 2 additions & 2 deletions KitX Dashboard/KitX.Dashboard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\KitX Standard\KitX File Formats\KitX.FileFormats.CSharp\KitX.FileFormats.CSharp.csproj" />
<ProjectReference Include="..\..\..\KitX Standard\KitX Shared\KitX.Shared.CSharp\KitX.Shared.CSharp.csproj" />
<ProjectReference Include="..\KitX Dashboard Assets\KitX.Dashboard.Assets.csproj" />
<ProjectReference Include="..\KitX Dashboard Fonts\KitX.Dashboard.Fonts.csproj" />
<ProjectReference Include="..\..\..\KitX Standard\KitX.Shared\KitX.Shared.csproj" />
<ProjectReference Include="..\..\..\KitX Standard\KitX.FileFormats\KitX.FileFormats.csproj" />
<ProjectReference Include="..\..\..\Reference\Common.Activity\Common.Activity\Common.Activity.csproj" />
<ProjectReference Include="..\..\..\Reference\Common.BasicHelper\Common.BasicHelper\Common.BasicHelper.csproj" />
<ProjectReference Include="..\..\..\Reference\Common.ExternalConsole\Common.ExternalConsole.ExternalConsole\Common.ExternalConsole.ExternalConsole.csproj" Condition="$(Is2Publish) == 'False'" />
Expand Down
7 changes: 4 additions & 3 deletions KitX Dashboard/Managers/PluginsManager.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using Common.BasicHelper.Utils.Extensions;
using KitX.Dashboard.Models;
using KitX.Dashboard.Services;
using KitX.Shared.Loader;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Loader;
using KitX.Shared.CSharp.Plugin;
using Serilog;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.Json;
using Decoder = KitX.FileFormats.CSharp.ExtensionsPackage.Decoder;

namespace KitX.Dashboard.Managers;

Expand All @@ -28,7 +29,7 @@ internal static void ImportPlugin(string[] kxpfiles, bool inGraphic = false)
{
try
{
var decoder = new FileFormats.ExtensionsPackage.Decoder(item);
var decoder = new Decoder(item);

var rst = decoder.GetLoaderAndPluginInfo();

Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Models/DeviceCase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using ReactiveUI;

namespace KitX.Dashboard.Models;
Expand Down
6 changes: 3 additions & 3 deletions KitX Dashboard/Models/PluginInstallation.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using KitX.Shared.Device;
using KitX.Shared.Loader;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Device;
using KitX.Shared.CSharp.Loader;
using KitX.Shared.CSharp.Plugin;
using System.Collections.Generic;
using System.Text.Json.Serialization;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using KitX.Dashboard.Names;
using KitX.Dashboard.Services;
using KitX.Dashboard.Views;
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using Serilog;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Network/DevicesNetwork/DevicesOrganizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using KitX.Dashboard.Models;
using KitX.Dashboard.Services;
using KitX.Dashboard.Views;
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using Serilog;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using KitX.Shared.CSharp.Device;
using Microsoft.AspNetCore.Mvc;

namespace KitX.Dashboard.Network.DevicesNetwork.DevicesServerControllers;

Expand All @@ -8,9 +9,14 @@ namespace KitX.Dashboard.Network.DevicesNetwork.DevicesServerControllers;
public class DeviceController : ControllerBase
{
[ApiExplorerSettings(GroupName = "V1")]
[HttpGet("{name}", Name = nameof(GreetingTest))]
public string GreetingTest(string name)
[HttpGet("", Name = nameof(GetDeviceInfo))]
public DeviceInfo GetDeviceInfo()
{
return $"Hello, {name} !";
return DevicesDiscoveryServer.Instance.DefaultDeviceInfo;
}

public void ExchangeKey()
{

}
}
2 changes: 1 addition & 1 deletion KitX Dashboard/Network/NetworkHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using KitX.Dashboard.Converters;
using KitX.Dashboard.Managers;
using KitX.Dashboard.Views;
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using Serilog;
using System;
using System.IO;
Expand Down
8 changes: 4 additions & 4 deletions KitX Dashboard/Network/PluginsNetwork/PluginConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Fleck;
using KitX.Dashboard.Names;
using KitX.Dashboard.Views;
using KitX.Shared.Plugin;
using KitX.Shared.WebCommand;
using KitX.Shared.WebCommand.Details;
using KitX.Shared.WebCommand.Infos;
using KitX.Shared.CSharp.Plugin;
using KitX.Shared.CSharp.WebCommand;
using KitX.Shared.CSharp.WebCommand.Details;
using KitX.Shared.CSharp.WebCommand.Infos;
using Serilog;
using System;
using System.Text.Json;
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Network/PluginsNetwork/PluginsServer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Fleck;
using KitX.Dashboard.Configuration;
using KitX.Dashboard.Services;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Plugin;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Services/EventService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using System.Reflection;
using System;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using KitX.Dashboard.Converters;
using KitX.Dashboard.Models;
using KitX.Dashboard.Network.DevicesNetwork;
using KitX.Shared.Device;
using KitX.Shared.CSharp.Device;
using MsBox.Avalonia;
using MsBox.Avalonia.Enums;
using ReactiveUI;
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/ViewModels/Pages/LibPageViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Avalonia.Controls;
using KitX.Dashboard.Views;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Plugin;
using ReactiveUI;
using System.Collections.ObjectModel;
using System.Reactive;
Expand Down
4 changes: 2 additions & 2 deletions KitX Dashboard/ViewModels/Pages/RepoPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using KitX.Dashboard.Services;
using KitX.Dashboard.Views.Pages;
using KitX.Dashboard.Views.Pages.Controls;
using KitX.Shared.Loader;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Loader;
using KitX.Shared.CSharp.Plugin;
using ReactiveUI;
using Serilog;
using System;
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/ViewModels/PluginDetailWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Avalonia.Media;
using Avalonia.Styling;
using KitX.Dashboard.Services;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Plugin;
using ReactiveUI;
using System.Collections.ObjectModel;
using System.Reactive;
Expand Down
4 changes: 2 additions & 2 deletions KitX Dashboard/ViewModels/PluginsLaunchWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Common.BasicHelper.Utils.Extensions;
using KitX.Dashboard.Network.PluginsNetwork;
using KitX.Dashboard.Views;
using KitX.Shared.Plugin;
using KitX.Shared.WebCommand;
using KitX.Shared.CSharp.Plugin;
using KitX.Shared.CSharp.WebCommand;
using ReactiveUI;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Views/PluginDetailWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Common.BasicHelper.Graphics.Screen;
using KitX.Dashboard.Services;
using KitX.Dashboard.ViewModels;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Plugin;
using Serilog;
using System;

Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Views/ViewInstances.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using KitX.Dashboard.Models;
using KitX.Dashboard.Services;
using KitX.Shared.Plugin;
using KitX.Shared.CSharp.Plugin;
using System.Collections.Generic;
using System.Collections.ObjectModel;

Expand Down

0 comments on commit 0e8e8e9

Please sign in to comment.