Skip to content

Commit 2336a35

Browse files
committed
AquaMai 社区功能提示
1 parent 7a89179 commit 2336a35

File tree

8 files changed

+42
-4
lines changed

8 files changed

+42
-4
lines changed

AquaMai

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
</Project>

MaiChartManager.CLI/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// See https://aka.ms/new-console-template for more information
2+
3+
Console.WriteLine("Hello, World!");

MaiChartManager/Front/src/components/ModManager/AquaMaiConfigurator.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const ConfigSection = defineComponent({
1616
section: { type: Object as PropType<Section>, required: true },
1717
entryStates: { type: Object as PropType<Record<string, IEntryState>>, required: true },
1818
sectionState: { type: Object as PropType<ISectionState>, required: true },
19+
isCommunity: Boolean,
1920
},
2021
setup(props, { emit }) {
2122
const { t, te } = useI18n();
@@ -41,6 +42,13 @@ const ConfigSection = defineComponent({
4142
<NFlex class="h-34px" align="center">
4243
<NSwitch v-model:value={props.sectionState.enabled}/>
4344
{comments.shouldEnableOptions[props.section.path!] && !props.sectionState.enabled && <ProblemsDisplay problems={[t('mod.needEnableOption')]}/>}
45+
{props.isCommunity && <NPopover trigger="hover">{{
46+
trigger: () => <div class="i-ic-baseline-info text-lg c-neutral-5"/>,
47+
default: () => <div>
48+
<div class="text-lg mb-2">{t('mod.community.title')}</div>
49+
<div class="text-sm whitespace-pre-line lh-1.7em">{t('mod.community.description')}</div>
50+
</div>
51+
}}</NPopover>}
4452
</NFlex>
4553
{comment.value}
4654
</NFlex>
@@ -66,6 +74,7 @@ export default defineComponent({
6674
const search = ref('');
6775
const searchRef = ref();
6876
const configSort = computed(() => props.config?.configSort || configSortStub)
77+
const communityList = computed(() => configSort.value['社区功能'] || []);
6978
const { t } = useI18n();
7079

7180
const { ctrl_f } = useMagicKeys({
@@ -93,7 +102,7 @@ export default defineComponent({
93102

94103
const bigSections = computed(() => {
95104
if (props.useNewSort) {
96-
return Object.keys(configSort.value).filter(it => filteredSections.value!.some(s => configSort.value[it].includes(s.path!)));
105+
return Object.keys(configSort.value).filter(it => it !== '社区功能').filter(it => filteredSections.value!.some(s => configSort.value[it].includes(s.path!)));
97106
}
98107
return _.uniq(filteredSections.value!.filter(it => !it.attribute?.exampleHidden).map(s => s.path?.split('.')[0]));
99108
});
@@ -141,15 +150,17 @@ export default defineComponent({
141150
}).map((section) => {
142151
return <ConfigSection key={section.path!} section={section}
143152
entryStates={props.config.entryStates!}
153+
isCommunity={communityList.value.includes(section.path!)}
144154
sectionState={props.config.sectionStates![section.path!]}/>;
145155
})}
146156
</div>)}
147157
{otherSection.value.length > 0 &&
148158
<div id={t('mod.other')}>
149159
<NDivider titlePlacement="left" class="mt-2!">{t('mod.other')}</NDivider>
150160
{otherSection.value.map((section) =>
151-
<ConfigSection key={t('mod.other')} section={section}
161+
<ConfigSection key={section.path!} section={section}
152162
entryStates={props.config.entryStates!}
163+
isCommunity={communityList.value.includes(section.path!)}
153164
sectionState={props.config.sectionStates![section.path!]}/>)}
154165
</div>}
155166
</NScrollbar>

MaiChartManager/Front/src/locales/zh.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ mod:
360360
buildDate: 构建日期
361361
installFailed: 手动安装 AquaMai 失败
362362
installSuccess: 安装成功
363+
community:
364+
title: 社区贡献功能
365+
description: |-
366+
此功能由社区成员贡献,可能无法获得与核心功能相同级别的技术支持
367+
如遇技术问题,我们会尽力协助,但可能无法提供即时支持
363368
tools:
364369
title: 工具
365370
audioConvert: 音频转换(ACB + AWB)

MaiChartManager/Utils/AquaMaiSignatureV2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public enum PubKeyId : byte
5858
{
5959
PubKeyId.Local,
6060
Convert.FromBase64String(
61-
"MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQA3ekmuUGESGdUfOuGfWxZ2tIGsWJaAGsciSP2nyouGquEJf2k+6fm21ESJQAXg9XOUaf3jcsZU+YZdzczDIorMNMBcxQXet1B/B3Mqz7CLdRthDhLelVkrqeRE8TNcPUCQjT/pxKLWBAQWDkwdzsUQS0LLpaZ0NbG4880RzNY5ia7zqg=")
61+
"MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQBVoScU915wnWeDOvLsQd3uWh9NwclPhup8TT+cqiV3SB683JgQTpLYv2XRCGfH/3zIwTU2KDIXwNPsDPlOpH0QIkB0aVIDo9g6mus7cTMphq/7yjQQEPnsBQO5KbtcNxcy7mSnhykSea2Gv+iOKu1C4FOaO39zNe0HULVoqMrcCNLRkg=")
6262
},
6363
{
6464
PubKeyId.CI,

Packaging/make.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pushd ..\AquaMai
66
taskkill /f /im dotnet.exe
77
dotnet cake
88
copy /y Output\AquaMai.dll ..\MaiChartManager\Resources
9+
D:\Projects\mai\ReleaseSigner\AquaMaiLocalBuild\bin\Release\net9.0\AquaMaiLocalBuild.exe ..\MaiChartManager\Resources\AquaMai.dll
910
popd
1011

1112
pushd ..\MaiChartManager\Front

Sitreamai.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AquaMai.Config.Interfaces",
1818
EndProject
1919
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AquaMai.Config.HeadlessLoader", "AquaMai\AquaMai.Config.HeadlessLoader\AquaMai.Config.HeadlessLoader.csproj", "{6B5E1F3E-D012-4CFB-A2FA-26A6CE06BE66}"
2020
EndProject
21+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaiChartManager.CLI", "MaiChartManager.CLI\MaiChartManager.CLI.csproj", "{B53B0257-7EA2-432B-B43E-C6A463D18788}"
22+
EndProject
2123
Global
2224
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2325
Debug|x64 = Debug|x64
@@ -66,6 +68,12 @@ Global
6668
{6B5E1F3E-D012-4CFB-A2FA-26A6CE06BE66}.Release|x64.ActiveCfg = Release|Any CPU
6769
{6B5E1F3E-D012-4CFB-A2FA-26A6CE06BE66}.Release|x64.Build.0 = Release|Any CPU
6870
{6B5E1F3E-D012-4CFB-A2FA-26A6CE06BE66}.Crack|x64.ActiveCfg = Release|Any CPU
71+
{B53B0257-7EA2-432B-B43E-C6A463D18788}.Debug|x64.ActiveCfg = Debug|Any CPU
72+
{B53B0257-7EA2-432B-B43E-C6A463D18788}.Debug|x64.Build.0 = Debug|Any CPU
73+
{B53B0257-7EA2-432B-B43E-C6A463D18788}.Release|x64.ActiveCfg = Release|Any CPU
74+
{B53B0257-7EA2-432B-B43E-C6A463D18788}.Release|x64.Build.0 = Release|Any CPU
75+
{B53B0257-7EA2-432B-B43E-C6A463D18788}.Crack|x64.ActiveCfg = Debug|Any CPU
76+
{B53B0257-7EA2-432B-B43E-C6A463D18788}.Crack|x64.Build.0 = Debug|Any CPU
6977
EndGlobalSection
7078
GlobalSection(SolutionProperties) = preSolution
7179
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)