Skip to content

Commit 4511216

Browse files
authored
[Release 0.1.3] Update
[Release 0.1.3] Update
2 parents c38219f + 5202956 commit 4511216

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+543
-339
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 AuroraZiling
3+
Copyright (c) 2023-2024 AuroraZiling
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Pip Manager 是一个为 Python 新手设计的包管理工具,基于原生的
5353
* **多环境切换**
5454
Pip Manager 支持多环境切换,在不同项目之间灵活管理包的依赖关系。
5555

56+
*Pip Manager 不会在安装目录之外写入任何文件,用户可以通过删除整个安装目录来完全卸载。*
57+
5658
### 技术栈
5759

5860
[![.NET Core][.NET Core]][.NET-url][![WPF][WPF]][WPF-url]
@@ -68,7 +70,7 @@ Pip Manager 是一个为 Python 新手设计的包管理工具,基于原生的
6870

6971
### 命令行参数
7072

71-
- `/console`: 在程序运行时弹出控制台窗口显示日志
73+
- `/debug`: 在程序运行时弹出控制台窗口显示日志
7274

7375
## 共同改进
7476

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param(
22
[string] $Architecture = "x64",
3-
[string] $Version = "0.1.1.0"
3+
[string] $Version = "0.1.2.0"
44
)
55

66
$ErrorActionPreference = "Stop";

src/App.xaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
<valueConverters:IntegerToBoolConverter />
6565
<valueConverters:BoolToVisibilityConverter FalseValue="Collapsed" />
6666
</valueConverters:ValueConverterGroup>
67+
<valueConverters:ValueConverterGroup x:Key="InverseIntegerToVisibility">
68+
<valueConverters:IntegerToBoolConverter />
69+
<valueConverters:InverseBoolConverter />
70+
<valueConverters:BoolToVisibilityConverter FalseValue="Collapsed" />
71+
</valueConverters:ValueConverterGroup>
6772
</ResourceDictionary>
6873
</Application.Resources>
6974
</Application>

src/Controls/ContentDialogCreateOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static class ContentDialogCreateOptions
2525
{
2626
Title = Lang.ContentDialog_Title_Notice,
2727
Content = message,
28-
PrimaryButtonText = Lang.ContentDialog_PrimaryButton_Action,
28+
PrimaryButtonText = Lang.ContentDialog_PrimaryButton_Proceed,
2929
CloseButtonText = Lang.ContentDialog_CloseButton_Cancel
3030
};
3131
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Globalization;
2+
using System.Windows.Data;
3+
using Wpf.Ui.Controls;
4+
5+
namespace PipManager.Windows.Converters;
6+
7+
public class PackageUrlIconTypeToIconConverter : IValueConverter
8+
{
9+
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
10+
{
11+
if (value == null)
12+
{
13+
return SymbolRegular.Link24;
14+
}
15+
16+
return (string)value switch
17+
{
18+
"homepage" or "home" => SymbolRegular.Home24,
19+
"download" => SymbolRegular.ArrowDownload24,
20+
"changelog" or "changes" or "release notes" => SymbolRegular.ClipboardTextEdit24,
21+
"bug tracker" or "issue tracker" or "bug reports" or "issues" or "tracker" => SymbolRegular.Bug24,
22+
"source code" or "source" or "repository" or "code" => SymbolRegular.Code24,
23+
"funding" or "donate" or "donations" => SymbolRegular.Money24,
24+
"documentation" => SymbolRegular.Document24,
25+
"commercial" => SymbolRegular.PeopleMoney24,
26+
"support" => SymbolRegular.PersonSupport24,
27+
"chat" or "q & a" => SymbolRegular.ChatHelp24,
28+
_ => SymbolRegular.Link24
29+
};
30+
}
31+
32+
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
33+
{
34+
throw new NotImplementedException();
35+
}
36+
}

src/Languages/Lang.Designer.cs

Lines changed: 44 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Languages/Lang.resx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@
192192
<data name="ContentDialog_Title_AreYouSure" xml:space="preserve">
193193
<value>Operation Warning</value>
194194
</data>
195-
<data name="ContentDialog_PrimaryButton_Action" xml:space="preserve">
196-
<value>Action</value>
195+
<data name="ContentDialog_PrimaryButton_Proceed" xml:space="preserve">
196+
<value>Proceed</value>
197197
</data>
198198
<data name="ContentDialog_CloseButton_Cancel" xml:space="preserve">
199199
<value>Cancel</value>
@@ -301,13 +301,13 @@
301301
<value>Success</value>
302302
</data>
303303
<data name="ContentDialog_Message_EnvironmentCheckPassed" xml:space="preserve">
304-
<value>Environment available</value>
304+
<value>Environment is available</value>
305305
</data>
306306
<data name="ContentDialog_Message_EnvironmentCheckFailed" xml:space="preserve">
307307
<value>Environment not available</value>
308308
</data>
309309
<data name="ContentDialog_PrimaryButton_EnvironmentDeletion" xml:space="preserve">
310-
<value>Remove Environment</value>
310+
<value>Remove</value>
311311
</data>
312312
<data name="Library_Operation_Install" xml:space="preserve">
313313
<value>Install</value>
@@ -352,7 +352,7 @@
352352
<value>No Environment</value>
353353
</data>
354354
<data name="Library_Error_AddEnvironment" xml:space="preserve">
355-
<value>Add environment</value>
355+
<value>Add</value>
356356
</data>
357357
<data name="Library_Data_SelectedItemsCount" xml:space="preserve">
358358
<value>{0} item(s) selected</value>
@@ -768,4 +768,16 @@
768768
<data name="Library_Data_RefreshTimeUsage" xml:space="preserve">
769769
<value>{0}s used</value>
770770
</data>
771+
<data name="Library_Operation_Uncheck" xml:space="preserve">
772+
<value>Uncheck</value>
773+
</data>
774+
<data name="Environment_Operation_RevealFolder" xml:space="preserve">
775+
<value>Reveal Folder</value>
776+
</data>
777+
<data name="Environment_Operation_PopupConsole" xml:space="preserve">
778+
<value>Pop up console</value>
779+
</data>
780+
<data name="Library_Error_SelectEnvironment" xml:space="preserve">
781+
<value>Select</value>
782+
</data>
771783
</root>

src/Languages/Lang.zh-cn.resx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
<data name="ContentDialog_Title_AreYouSure" xml:space="preserve">
193193
<value>操作警告</value>
194194
</data>
195-
<data name="ContentDialog_PrimaryButton_Action" xml:space="preserve">
195+
<data name="ContentDialog_PrimaryButton_Proceed" xml:space="preserve">
196196
<value>执行</value>
197197
</data>
198198
<data name="ContentDialog_CloseButton_Cancel" xml:space="preserve">
@@ -768,4 +768,16 @@
768768
<data name="Library_Data_RefreshTimeUsage" xml:space="preserve">
769769
<value>用时 {0} 秒</value>
770770
</data>
771+
<data name="Library_Operation_Uncheck" xml:space="preserve">
772+
<value>取消勾选</value>
773+
</data>
774+
<data name="Environment_Operation_RevealFolder" xml:space="preserve">
775+
<value>打开文件夹</value>
776+
</data>
777+
<data name="Environment_Operation_PopupConsole" xml:space="preserve">
778+
<value>弹出控制台</value>
779+
</data>
780+
<data name="Library_Error_SelectEnvironment" xml:space="preserve">
781+
<value>选择环境</value>
782+
</data>
771783
</root>

src/Models/Package/PackageItem.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)