Skip to content

Commit

Permalink
💾 Feat: 关于活动日志系统 Crequency/KitX#176 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Dec 1, 2022
1 parent caf0096 commit 5f9b2f1
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Data/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public class AppConfig
[JsonInclude]
public Config_IO IO { get; set; } = new();

[JsonInclude]
public Config_Activity Activity { get; set; } = new();

/// <summary>
/// Config
/// </summary>
Expand Down Expand Up @@ -327,6 +330,15 @@ public class Config_IO
[JsonInclude]
public int UpdatingCheckPerThreadFilesCount { get; set; } = 20;
}

/// <summary>
/// ActivityConfig
/// </summary>
public class Config_Activity
{
[JsonInclude]
public int TotalRecorded { get; set; } = 0;
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion Data/GlobalInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ namespace KitX_Dashboard.Data
{
internal static class GlobalInfo
{
internal const string AppName = "KitX";

internal const string AppFullName = "KitX Dashboard";

internal const string ConfigPath = "./Config/";

internal const string DataPath = "./Data/";
Expand All @@ -22,7 +26,7 @@ internal static class GlobalInfo

internal const string ConfigFilePath = $"{ConfigPath}config.json";

internal const string PluginsDataBaseFilePath = $"{DataBasePath}plugins.db";
internal const string ActivitiesDBFilePath = $"{DataPath}Activities.db";

internal const string PluginsListConfigFilePath = $"{ConfigPath}plugins.json";

Expand Down
8 changes: 8 additions & 0 deletions Names/ActivityNames.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace KitX_Dashboard.Names
{
internal class ActivityNames
{

internal object? AppStart { get; } = null;
}
}
10 changes: 10 additions & 0 deletions Names/ActivityTitles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using KitX_Dashboard.Data;

namespace KitX_Dashboard.Names
{
internal class ActivityTitles
{

internal static string? AppStart { get; } = $"{GlobalInfo.AppFullName} Start";
}
}
3 changes: 3 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using KitX_Dashboard.Data;
using KitX_Dashboard.Services;
using KitX_Dashboard.Views.Pages.Controls;
using LiteDB;
using System;
using System.Collections.ObjectModel;
using System.IO;
Expand All @@ -23,6 +24,8 @@ internal class Program

internal static PluginsList PluginsList = new();

internal static LiteDatabase? ActivitiesDataBase;

/// <summary>
/// 主函数, 应用程序入口; 展开 summary 查看警告
/// </summary>
Expand Down

0 comments on commit 5f9b2f1

Please sign in to comment.