Skip to content

Commit

Permalink
新增导入和导出功能并优化页面和代码 (#11)
Browse files Browse the repository at this point in the history
新增 导入和导出配置文件
新增 软件图标
优化 欢迎页布局
调整 打开链接的基地址不再包含语言信息
调整 窗口标题
调整 部分文件结构
  • Loading branch information
NXY666 authored Dec 24, 2023
1 parent d7bd548 commit f382480
Show file tree
Hide file tree
Showing 46 changed files with 1,709 additions and 252 deletions.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: BUG提交
description: 软件崩溃等问题在此反馈。
labels:
- BUG
body:
- type: input
id: OSV_dropdown
attributes:
label: 系统版本
description: 系统版本的差异可能导致兼容性问题。
validations:
required: true
- type: textarea
id: Details_textarea
attributes:
label: 问题详情
description: 请详细说明问题,如有必要请附上截图。
validations:
required: true
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 功能建议
description: 新功能需求等在此提交。
labels:
- 建议
body:
- type: textarea
id: Details
attributes:
label: 建议详情
validations:
required: true
2 changes: 1 addition & 1 deletion .github/workflows/publisher.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: EdgePolicyManager Publisher
name: Publisher

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_publisher.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: EdgePolicyManager Publisher
name: Test Publisher

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</Setter.Value>
</Setter>
</Style>

<converters:BooleanVisibilityConverter x:Key="BooleanVisibilityConverter" />
<converters:NegationBooleanConverter x:Key="NegationBooleanConverter" />
</ResourceDictionary>
Expand Down
45 changes: 22 additions & 23 deletions App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,32 @@
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace PolicyManager
namespace PolicyManager;

/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public partial class App
public App()
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
InitializeComponent();
}

/// <summary>
/// Invoked when the application is launched.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
_mWindow = new MainWindow();
_mWindow.ExtendsContentIntoTitleBar = true;
_mWindow.Activate();
}
InitializeComponent();
}

private Window _mWindow;
/// <summary>
/// Invoked when the application is launched.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
MWindow = new MainWindow();
MWindow.ExtendsContentIntoTitleBar = true;
MWindow.Activate();
}

public static Window MWindow { get; private set; }
}
1 change: 1 addition & 0 deletions Assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/icon.ico
Binary file not shown.
Loading

0 comments on commit f382480

Please sign in to comment.