Moved wings api client to new location
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace Moonlight.App.Models.Wings;
|
||||
namespace Moonlight.App.ApiClients.Wings;
|
||||
|
||||
public enum PowerSignal
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class CompressFiles
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class CreateBackup
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class CreateDirectory
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class CreateServer
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class DecompressFile
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class DeleteFiles
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class RenameFiles
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class RestoreBackup
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Requests;
|
||||
namespace Moonlight.App.ApiClients.Wings.Requests;
|
||||
|
||||
public class ServerPower
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Resources;
|
||||
namespace Moonlight.App.ApiClients.Wings.Resources;
|
||||
|
||||
public class ListDirectory
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Resources;
|
||||
namespace Moonlight.App.ApiClients.Wings.Resources;
|
||||
|
||||
public class ServerDetails
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Wings.Resources;
|
||||
namespace Moonlight.App.ApiClients.Wings.Resources;
|
||||
|
||||
public class SystemStatus
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using Moonlight.App.Exceptions;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
|
||||
namespace Moonlight.App.Helpers;
|
||||
namespace Moonlight.App.ApiClients.Wings;
|
||||
|
||||
public class WingsApiHelper
|
||||
{
|
||||
@@ -1,7 +1,8 @@
|
||||
using System.Web;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.ApiClients.Wings.Requests;
|
||||
using Moonlight.App.ApiClients.Wings.Resources;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Models.Wings.Requests;
|
||||
using Moonlight.App.Models.Wings.Resources;
|
||||
using Moonlight.App.Services;
|
||||
using RestSharp;
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ using Microsoft.EntityFrameworkCore;
|
||||
using MineStatLib;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Models.Daemon.Resources;
|
||||
using Moonlight.App.Models.Wings;
|
||||
using Moonlight.App.Repositories;
|
||||
using Moonlight.App.Repositories.Servers;
|
||||
using Logging.Net;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.Events;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using Discord.WebSocket;
|
||||
using Logging.Net;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Moonlight.App.Models.Wings;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.Repositories;
|
||||
using Moonlight.App.Repositories.Servers;
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.ApiClients.Wings.Resources;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Models.Daemon.Resources;
|
||||
using Moonlight.App.Models.Wings.Resources;
|
||||
using Moonlight.App.Repositories;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.ApiClients.Wings.Requests;
|
||||
using Moonlight.App.ApiClients.Wings.Resources;
|
||||
using Moonlight.App.Database;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Events;
|
||||
@@ -6,9 +9,6 @@ using Moonlight.App.Exceptions;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Helpers.Files;
|
||||
using Moonlight.App.Models.Misc;
|
||||
using Moonlight.App.Models.Wings;
|
||||
using Moonlight.App.Models.Wings.Requests;
|
||||
using Moonlight.App.Models.Wings.Resources;
|
||||
using Moonlight.App.Repositories;
|
||||
using Moonlight.App.Repositories.Servers;
|
||||
using Moonlight.App.Services.LogServices;
|
||||
|
||||
@@ -3,6 +3,7 @@ using BlazorTable;
|
||||
using CurrieTechnologies.Razor.SweetAlert2;
|
||||
using Logging.Net;
|
||||
using Moonlight.App.ApiClients.CloudPanel;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.Database;
|
||||
using Moonlight.App.Events;
|
||||
using Moonlight.App.Helpers;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
@using Moonlight.App.Helpers
|
||||
@using Moonlight.App.Helpers.Files
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.ApiClients.Wings
|
||||
|
||||
@inject WingsApiHelper WingsApiHelper
|
||||
@inject WingsJwtHelper WingsJwtHelper
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
@page "/admin/nodes"
|
||||
@using Moonlight.App.Repositories
|
||||
@using Moonlight.App.Database.Entities
|
||||
@using Moonlight.App.Models.Wings.Resources
|
||||
@using Moonlight.Shared.Components.Navigations
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Interop
|
||||
@using Logging.Net
|
||||
@using BlazorTable
|
||||
@using Moonlight.App.ApiClients.Wings.Resources
|
||||
|
||||
@inject NodeRepository NodeRepository
|
||||
@inject AlertService AlertService
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
@using Moonlight.App.Database.Entities
|
||||
@using Moonlight.App.Helpers
|
||||
@using Moonlight.App.Models.Daemon.Resources
|
||||
@using Moonlight.App.Models.Wings.Resources
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.ApiClients.Wings.Resources
|
||||
|
||||
@inject NodeRepository NodeRepository
|
||||
@inject NodeService NodeService
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
@using Moonlight.App.Services.Interop
|
||||
@using Moonlight.App.Database.Entities
|
||||
@using Moonlight.App.Models.Daemon.Resources
|
||||
@using Moonlight.App.Models.Wings
|
||||
@using BlazorTable
|
||||
@using Microsoft.EntityFrameworkCore
|
||||
@using Moonlight.App.ApiClients.Wings
|
||||
@using Moonlight.App.Helpers
|
||||
|
||||
@inject NodeRepository NodeRepository
|
||||
|
||||
Reference in New Issue
Block a user