跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

提交记录
修改UI/ViewModels/SettingPageVM.cs+8 −0看文件
@@ -8,6 +8,7 @@ using System.Linq;
88using System.Reflection;
99using System.Text;
1010using System.Threading.Tasks;
11新增:using UI.Controls;
1112using UI.Models;
1213
1314namespace UI.ViewModels
@@ -16,15 +17,22 @@ namespace UI.ViewModels
1617 {
1718 private ConfigModel config;
1819 private readonly IAppConfig appConfig;
20新增: public Command OpenURL { get; set; }
1921 public SettingPageVM(IAppConfig appConfig)
2022 {
2123 this.appConfig = appConfig;
2224
25新增: OpenURL = new Command(new Action<object>(OnOpenURL));
2326
2427 Init();
2528
2629 }
2730
31新增: private void OnOpenURL(object obj)
32新增: {
33新增: Process.Start(new ProcessStartInfo(obj.ToString()));
34新增: }
35新增:
2836 private void Init()
2937 {
3038 config = appConfig.GetConfig();
修改UI/Views/SettingPage.xaml+7 −1看文件
@@ -13,6 +13,7 @@
1313
1414 <Grid Margin="20">
1515 <StackPanel>
16新增:
1617 <TextBlock Text="设置" FontSize="18" Margin="0,5,0,20"/>
1718 <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/>
1819
@@ -48,7 +49,12 @@
4849 <TextBlock Margin="0,20,0,0">
4950 <Run Text="Tai "/><Run Text="{Binding Version}"/>
5051 </TextBlock>
51删除:
52新增: <TextBlock Margin="0,5,0,0">
53新增: <Run Text="开源 "/><Hyperlink Command="{Binding OpenURL}" CommandParameter="https://github.com/Planshit/Tai">https://github.com/Planshit/Tai</Hyperlink>
54新增: </TextBlock>
55新增: <TextBlock Margin="0,5,0,0">
56新增: <Run Text="讨论 "/><Hyperlink Command="{Binding OpenURL}" CommandParameter="https://github.com/Planshit/Tai/discussions">https://github.com/Planshit/Tai/discussions</Hyperlink>
57新增: </TextBlock>
5258 <TextBlock Margin="0,30,0,0">
5359 <Run Text="外部资源声明 "/>
5460 </TextBlock>