docs: improve faq page

- add toc for faq page
- fix #79: add note about oem build
- add plat form specific instructions for qqmusic faq
This commit is contained in:
鲁树人
2024-10-14 11:03:01 +09:00
parent afc65fd5d0
commit 759252cec5
10 changed files with 226 additions and 116 deletions

View File

@@ -8,9 +8,14 @@ import { MdFileUpload } from 'react-icons/md';
export interface SegmentKeyImportInstructionsProps {
clientInstructions: React.ReactNode;
tab: string;
keyInstructionText?: React.ReactNode;
}
export function SegmentKeyImportInstructions({ clientInstructions, tab }: SegmentKeyImportInstructionsProps) {
export function SegmentKeyImportInstructions({
clientInstructions,
tab,
keyInstructionText = '选择你的客户端平台来查看密钥提取说明:',
}: SegmentKeyImportInstructionsProps) {
return (
<>
<Text></Text>
@@ -33,7 +38,7 @@ export function SegmentKeyImportInstructions({ clientInstructions, tab }: Segmen
</Flex>
</ListItem>
<ListItem>
<Text></Text>
<Text>{keyInstructionText}</Text>
<Tabs display="flex" flexDir="column" border="1px solid" borderColor="gray.300" borderRadius={5}>
{clientInstructions}
</Tabs>