Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复容易造成歧义的配置名称 #10

Merged
merged 2 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Close #

## 描述

<!-- 在此添加对修复的问题或添加的功能的简要描述 -->
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ Please refer to the document website for detailed introduction: [Rodel Agent](ht

### Prerequisites

|||
|-|-|
|Development Tools|Visual Studio 2022|
|-|-|
|Basic Dependencies|.NET 8, Windows App SDK 1.5|
|Submodules|[Richasy/semantic-kernel](https://github.com/Richasy/semantic-kernel/tree/dev)|

Expand Down Expand Up @@ -83,6 +82,8 @@ The console will automatically load the local `config.json` but will not upload
## 🔗 Links

- [Rodel Agent Documentation](https://agent.richasy.net)
- [Lobe Chat](https://github.com/lobehub/lobe-chat)
- [Lobe Icons](https://github.com/lobehub/lobe-icons)
- [Spectre.Console](https://spectreconsole.net)
- [Windows App SDK](https://github.com/microsoft/WindowsAppSDK)
- [CommunityToolkit](https://github.com/CommunityToolkit)
Expand Down
5 changes: 3 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@

### 前置需求

|||
|-|-|
|开发工具|Visual Studio 2022|
|-|-|
|基础依赖|.NET 8, Windows App SDK 1.5|
|子仓库|[Richasy/semantic-kernel](https://github.com/Richasy/semantic-kernel/tree/dev)|

Expand Down Expand Up @@ -83,6 +82,8 @@ git submodule update --init --recursive
## 🔗 链接

- [小幻助理文档](https://agent.richasy.net)
- [Lobe Chat](https://github.com/lobehub/lobe-chat)
- [Lobe Icons](https://github.com/lobehub/lobe-icons)
- [Spectre.Console](https://spectreconsole.net)
- [Windows App SDK](https://github.com/microsoft/WindowsAppSDK)
- [CommunityToolkit](https://github.com/CommunityToolkit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
<community:SettingsCard Description="{ext:Locale Name=AliSecretDescription}" Header="{ext:Locale Name=Secret}">
<community:SettingsCard Description="{ext:Locale Name=AliSecretDescription}" Header="{ext:Locale Name=AccessKeySecret}">
<PasswordBox
x:Name="SecretBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=Secret}"
AutomationProperties.Name="{ext:Locale Name=AccessKeySecret}"
PasswordChanged="OnSecretBoxPasswordChanged" />
</community:SettingsCard>
</community:SettingsExpander.Items>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
<controls:ProviderLogo x:Name="Logo" Height="22" />
</community:SettingsExpander.Header>
<community:SettingsExpander.Items>
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=AccessKey}">
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=SecretKey}">
<PasswordBox
x:Name="KeyBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=AccessKey}"
AutomationProperties.Name="{ext:Locale Name=SecretKey}"
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
<community:SettingsCard
x:Name="SecretCard"
Description="{ext:Locale Name=HunYuanSecretDescription}"
Header="{ext:Locale Name=Secret}">
Header="{ext:Locale Name=SecretId}">
<PasswordBox
x:Name="SecretBox"
Width="200"
HorizontalAlignment="Stretch"
AutomationProperties.Name="{ext:Locale Name=Secret}"
AutomationProperties.Name="{ext:Locale Name=SecretId}"
PasswordChanged="OnSecretBoxTextChanged" />
</community:SettingsCard>
<community:SettingsCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
<controls:ProviderLogo x:Name="Logo" Height="22" />
</community:SettingsExpander.Header>
<community:SettingsExpander.Items>
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=AccessKey}">
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=SecretKey}">
<PasswordBox
x:Name="KeyBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=AccessKey}"
AutomationProperties.Name="{ext:Locale Name=SecretKey}"
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
<community:SettingsCard
x:Name="SecretCard"
Description="{ext:Locale Name=HunYuanSecretDescription}"
Header="{ext:Locale Name=Secret}">
Header="{ext:Locale Name=SecretId}">
<PasswordBox
x:Name="SecretBox"
Width="200"
HorizontalAlignment="Stretch"
AutomationProperties.Name="{ext:Locale Name=Secret}"
AutomationProperties.Name="{ext:Locale Name=SecretId}"
PasswordChanged="OnSecretBoxTextChanged" />
</community:SettingsCard>
<community:SettingsCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
<controls:ProviderLogo x:Name="Logo" Height="22" />
</community:SettingsExpander.Header>
<community:SettingsExpander.Items>
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=AccessKey}">
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=ApiKey}">
<PasswordBox
x:Name="KeyBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=AccessKey}"
AutomationProperties.Name="{ext:Locale Name=ApiKey}"
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
<community:SettingsCard
x:Name="SecretCard"
Description="{ext:Locale Name=QianFanSecretDescription}"
Header="{ext:Locale Name=Secret}">
Header="{ext:Locale Name=SecretKey}">
<PasswordBox
x:Name="SecretBox"
Width="200"
HorizontalAlignment="Stretch"
AutomationProperties.Name="{ext:Locale Name=Secret}"
AutomationProperties.Name="{ext:Locale Name=SecretKey}"
PasswordChanged="OnSecretBoxTextChanged" />
</community:SettingsCard>
<community:SettingsCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
<controls:ProviderLogo x:Name="Logo" Height="22" />
</community:SettingsExpander.Header>
<community:SettingsExpander.Items>
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=AccessKey}">
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=ApiKey}">
<PasswordBox
x:Name="KeyBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=AccessKey}"
AutomationProperties.Name="{ext:Locale Name=ApiKey}"
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
<community:SettingsCard
x:Name="SecretCard"
Description="{ext:Locale Name=QianFanSecretDescription}"
Header="{ext:Locale Name=Secret}">
Header="{ext:Locale Name=SecretKey}">
<PasswordBox
x:Name="SecretBox"
Width="200"
HorizontalAlignment="Stretch"
AutomationProperties.Name="{ext:Locale Name=Secret}"
AutomationProperties.Name="{ext:Locale Name=SecretKey}"
PasswordChanged="OnSecretBoxTextChanged" />
</community:SettingsCard>
<community:SettingsCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<controls:ProviderLogo x:Name="Logo" Height="22" />
</community:SettingsExpander.Header>
<community:SettingsExpander.Items>
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=AccessKey}">
<community:SettingsCard x:Name="KeyCard" Header="{ext:Locale Name=ApiKey}">
<PasswordBox
x:Name="KeyBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=AccessKey}"
AutomationProperties.Name="{ext:Locale Name=ApiKey}"
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
<community:SettingsCard
x:Name="KeyCard"
Description="{ext:Locale Name=TencentAccessKeyDescription}"
Header="{ext:Locale Name=AccessKey}">
Header="{ext:Locale Name=SecretKey}">
<PasswordBox
x:Name="KeyBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=AccessKey}"
AutomationProperties.Name="{ext:Locale Name=SecretKey}"
Loaded="OnKeyBoxLoaded"
PasswordChanged="OnKeyBoxPasswordChanged" />
</community:SettingsCard>
<community:SettingsCard Description="{ext:Locale Name=HunYuanSecretDescription}" Header="{ext:Locale Name=Secret}">
<community:SettingsCard Description="{ext:Locale Name=HunYuanSecretDescription}" Header="{ext:Locale Name=SecretId}">
<PasswordBox
x:Name="SecretBox"
Width="200"
AutomationProperties.Name="{ext:Locale Name=Secret}"
AutomationProperties.Name="{ext:Locale Name=SecretId}"
PasswordChanged="OnSecretBoxPasswordChanged" />
</community:SettingsCard>
</community:SettingsExpander.Items>
Expand Down
9 changes: 9 additions & 0 deletions src/Desktop/RodelAgent.UI/Resources/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
<data name="AccessKeyPlaceholder" xml:space="preserve">
<value>{0} API key</value>
</data>
<data name="AccessKeySecret" xml:space="preserve">
<value>AccessKey Secret</value>
</data>
<data name="AddAgent" xml:space="preserve">
<value>Add agent</value>
</data>
Expand Down Expand Up @@ -159,6 +162,9 @@
<data name="AliTranslate" xml:space="preserve">
<value>Alibaba Cloud Translate</value>
</data>
<data name="ApiKey" xml:space="preserve">
<value>API Key</value>
</data>
<data name="ApiVersion" xml:space="preserve">
<value>API version</value>
</data>
Expand Down Expand Up @@ -856,6 +862,9 @@ You can manually adjust the limit, and the application will capture the specifie
<data name="SecretId" xml:space="preserve">
<value>Secret ID</value>
</data>
<data name="SecretKey" xml:space="preserve">
<value>Secret Key</value>
</data>
<data name="SeeAllModels" xml:space="preserve">
<value>See all models</value>
</data>
Expand Down
9 changes: 9 additions & 0 deletions src/Desktop/RodelAgent.UI/Resources/zh-Hans-CN/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
<data name="AccessKeyPlaceholder" xml:space="preserve">
<value>{0} API 密钥</value>
</data>
<data name="AccessKeySecret" xml:space="preserve">
<value>访问密文(AccessKey Secret)</value>
</data>
<data name="AddAgent" xml:space="preserve">
<value>添加助理</value>
</data>
Expand Down Expand Up @@ -159,6 +162,9 @@
<data name="AliTranslate" xml:space="preserve">
<value>阿里云翻译</value>
</data>
<data name="ApiKey" xml:space="preserve">
<value>API 密钥(API Key)</value>
</data>
<data name="ApiVersion" xml:space="preserve">
<value>API 版本</value>
</data>
Expand Down Expand Up @@ -856,6 +862,9 @@
<data name="SecretId" xml:space="preserve">
<value>密文 ID(Secret ID)</value>
</data>
<data name="SecretKey" xml:space="preserve">
<value>密文密钥(Secret Key)</value>
</data>
<data name="SeeAllModels" xml:space="preserve">
<value>查看全部模型</value>
</data>
Expand Down
Loading