feat.PLONDS在线安装器继续优化

This commit is contained in:
lincube
2026-06-09 22:18:27 +08:00
parent 2768b76e1e
commit 13895e0f43
16 changed files with 287 additions and 120 deletions

View File

@@ -1,5 +1,4 @@
using CommunityToolkit.Mvvm.ComponentModel;
using FluentIcons.Common;
using LanDesktopPLONDS.Installer.Models;
namespace LanDesktopPLONDS.Installer.ViewModels;
@@ -7,7 +6,7 @@ namespace LanDesktopPLONDS.Installer.ViewModels;
public sealed partial class InstallerStepViewModel(
InstallerStepId stepId,
string title,
Icon icon) : ObservableObject
string iconGlyph) : ObservableObject
{
[ObservableProperty]
private bool _isUnlocked;
@@ -19,5 +18,5 @@ public sealed partial class InstallerStepViewModel(
public string Title { get; } = title;
public Icon Icon { get; } = icon;
public string IconGlyph { get; } = iconGlyph;
}

View File

@@ -2,7 +2,6 @@ using System.Collections.ObjectModel;
using System.Diagnostics;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using FluentIcons.Common;
using LanDesktopPLONDS.Installer.Models;
using LanDesktopPLONDS.Installer.Services;
using LanMountainDesktop.Shared.Contracts.Privacy;
@@ -81,11 +80,11 @@ public sealed partial class MainWindowViewModel : ObservableObject
_privacyConsentStore = privacyConsentStore ?? new InstallerPrivacyConsentStore();
Steps =
[
new InstallerStepViewModel(InstallerStepId.Welcome, "开始安装", Icon.Play),
new InstallerStepViewModel(InstallerStepId.InstallLocation, "安装位置", Icon.Folder),
new InstallerStepViewModel(InstallerStepId.PrivacyConfirm, "数据确认", Icon.Info),
new InstallerStepViewModel(InstallerStepId.Deploy, "开始部署", Icon.ArrowDownload),
new InstallerStepViewModel(InstallerStepId.Complete, "完成安装", Icon.Circle)
new InstallerStepViewModel(InstallerStepId.Welcome, "开始安装", "\uE768"),
new InstallerStepViewModel(InstallerStepId.InstallLocation, "安装位置", "\uE838"),
new InstallerStepViewModel(InstallerStepId.PrivacyConfirm, "数据确认", "\uE946"),
new InstallerStepViewModel(InstallerStepId.Deploy, "开始部署", "\uE896"),
new InstallerStepViewModel(InstallerStepId.Complete, "完成安装", "\uE73E")
];
SyncSteps();
DeviceIdPreview = _privacyIdentity.GetOrCreateDeviceId();