client: Windows 客户端(WinUI3 壳 + agent-core;调试用 Electron 壳存档);localserver token 改为常数时间比较

This commit is contained in:
Qiufeng
2026-08-20 20:38:21 +08:00
parent 33b7d57498
commit 9abf7f8213
60 changed files with 10025 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<Page
x:Class="EveryPublish.Client.Pages.PairPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ScrollViewer>
<StackPanel Margin="32" Spacing="16" MaxWidth="480">
<TextBlock Text="设备配对" Style="{StaticResource TitleTextBlockStyle}"/>
<InfoBar IsOpen="True" Severity="Informational" IsClosable="False">
<InfoBar.Message>
<TextBlock Text="1. 登录网页控制台 →「设置 → Agent 设备」生成配对码;2. 在下方输入配对码完成绑定。"/>
</InfoBar.Message>
</InfoBar>
<TextBox x:Name="CodeBox" Header="配对码" PlaceholderText="6 位配对码(5 分钟内有效)"/>
<TextBox x:Name="NameBox" Header="设备名(选填)" PlaceholderText="例如:办公室电脑-01"/>
<Button x:Name="PairButton" Content="配对" Style="{StaticResource AccentButtonStyle}" Click="Pair_Click" HorizontalAlignment="Left"/>
<TextBlock x:Name="PairResult" Text="" TextWrapping="Wrap"/>
</StackPanel>
</ScrollViewer>
</Page>