-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Handle IOException separately in ApiProcedures Caught IOException explicitly to provide more granular error handling. This allows to throw the IOException immediately while preserving the behavior for general exceptions. Adjusted throttler release comment to remove redundant text. * Enable output redirection in ApiProcedures This commit updates the process start information in ApiProcedures.cs to redirect standard output and error. It also sets UseShellExecute to false and CreateNoWindow to true for better process control and visibility. * Merge pull request #37 * Add support for bug tracking and enhance profile management * Add ability to change installation directory dynamically --------- Co-authored-by: Akemiko <[email protected]>
- Loading branch information
1 parent
ec929a3
commit b37ad25
Showing
32 changed files
with
600 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace GmlCore.Interfaces.Bootstrap; | ||
|
||
public interface IBootstrapProgram | ||
{ | ||
string Name { get; set; } | ||
string Version { get; set; } | ||
int MajorVersion { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ public enum AuthType | |
EasyCabinet = 4, | ||
UnicoreCMS = 5, | ||
CustomEndpoint = 6, | ||
NamelessMC = 7, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using GmlCore.Interfaces.Sentry; | ||
|
||
namespace GmlCore.Interfaces.Launcher; | ||
|
||
public interface IBugInfo | ||
{ | ||
string Id { get; set; } | ||
public string? PcName { get; set; } | ||
public string? Username { get; set; } | ||
public IMemoryInfo? MemoryInfo { get; set; } | ||
public IEnumerable<IExceptionReport?>? Exceptions { get; set; } | ||
public DateTime SendAt { get; set; } | ||
public string? IpAddress { get; set; } | ||
public string? OsVeriosn { get; set; } | ||
public string? OsIdentifier { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
namespace GmlCore.Interfaces.Mods; | ||
|
||
public interface IMod | ||
{ | ||
string Name { get; set; } | ||
string Url { get; set; } | ||
Stream Icon { get; set; } | ||
IEnumerable<string> Files { get; set; } | ||
IEnumerable<IMod> Dependencies { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Gml.Core.Interfaces/Procedures/IBugTrackerProcedures.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using GmlCore.Interfaces.Launcher; | ||
|
||
namespace GmlCore.Interfaces.Procedures; | ||
|
||
public interface IBugTrackerProcedures | ||
{ | ||
void CaptureException(IBugInfo bugInfo); | ||
Task<IEnumerable<IBugInfo>> GetAllBugs(); | ||
Task<IBugInfo> GetBugId(string id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using GmlCore.Interfaces.Launcher; | ||
using GmlCore.Interfaces.Mods; | ||
|
||
namespace GmlCore.Interfaces.Procedures; | ||
|
||
public interface IModsProcedures | ||
{ | ||
Task<IEnumerable<IMod>> GetModsAsync(IGameProfile profile); | ||
Task<IEnumerable<IMod>> GetModsAsync(IGameProfile profile, string name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace GmlCore.Interfaces.Sentry; | ||
|
||
public interface IExceptionReport | ||
{ | ||
public string Type { get; set; } | ||
public string ValueData { get; set; } | ||
public string Module { get; set; } | ||
public int ThreadId { get; set; } | ||
public int Id { get; set; } | ||
public bool Crashed { get; set; } | ||
public bool Current { get; set; } | ||
public IEnumerable<IStackTrace> StackTrace { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace GmlCore.Interfaces.Sentry; | ||
|
||
public interface IMemoryInfo | ||
{ | ||
public long AllocatedBytes { get; set; } | ||
public long HighMemoryLoadThresholdBytes { get; set; } | ||
public long TotalAvailableMemoryBytes { get; set; } | ||
public int FinalizationPendingCount { get; set; } | ||
public bool Compacted { get; set; } | ||
public bool Concurrent { get; set; } | ||
public List<double> PauseDurations { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace GmlCore.Interfaces.Sentry; | ||
|
||
public interface IStackTrace | ||
{ | ||
public string Filename { get; set; } | ||
public string Function { get; set; } | ||
public int Lineno { get; set; } | ||
public int Colno { get; set; } | ||
public string AbsPath { get; set; } | ||
public bool InApp { get; set; } | ||
public string Package { get; set; } | ||
public string InstructionAddr { get; set; } | ||
public string AddrMode { get; set; } | ||
public string FunctionId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace GmlCore.Interfaces.System; | ||
|
||
public interface IFolderInfo | ||
{ | ||
public string Path { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using GmlCore.Interfaces.Launcher; | ||
|
||
namespace Gml.Web.Api.Domains.Sentry; | ||
|
||
public class SentryBugs | ||
{ | ||
public string Exception { get; set; } | ||
public long Users { get; set; } | ||
public long Errors { get; set; } | ||
public IEnumerable<IBugInfo> Bugs { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using GmlCore.Interfaces.System; | ||
|
||
namespace Gml.Web.Api.Dto.Files; | ||
|
||
public class FolderWhiteListDto | ||
{ | ||
public string ProfileName { get; set; } | ||
public string Path { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Gml.Web.Api.Dto.Files; | ||
|
||
public class ProfileFolderReadDto | ||
{ | ||
public string Path { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
using Gml.Web.Api.Domains.Sentry; | ||
|
||
namespace Gml.Web.Api.Dto.Sentry; | ||
|
||
public class BaseSentryError | ||
{ | ||
public IEnumerable<SentryBugs> Bugs { get; set; } | ||
public long CountUsers { get; set; } | ||
public long Count { get; set; } | ||
} |
Oops, something went wrong.