Initial import of weiyuan frontend

This commit is contained in:
qiubaishen
2026-10-15 16:33:46 +08:00
commit d8f3aee261
774 changed files with 374914 additions and 0 deletions
+184
View File
@@ -0,0 +1,184 @@
/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
// 微信图标 (已经存在于 WeChatIcon.jsx,但为了统一导入,这里也提供)
export const WechatBrandIcon = ({
size = 24,
color = '#07C160',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1 .123-.51c1.531-1.186 2.498-2.913 2.498-4.879 0-3.583-3.256-6.468-7.11-6.468l.107-.44zm-2.68 2.58c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z' />
</svg>
);
// 支付宝图标
export const AlipayBrandIcon = ({
size = 24,
color = '#1677FF',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M18.423 8.467c-.012-.02-4.54-8.467-4.54-8.467h-13.883l8 14.889-8 9.111h5l2.973-3.378s1.522 1.378 3.527 1.378c3 0 6.5-2.5 6.5-6.5 0-2.653-1.714-4.941-4.119-5.755zm-8.423 9.533l-4-7.432 4-4.568zm8.5 1c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z' />
</svg>
);
// Stripe 图标
export const StripeBrandIcon = ({
size = 24,
color = '#635BFF',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.591-7.305z' />
</svg>
);
// PayPal brand mark
export const PayPalBrandIcon = ({
size = 24,
color = '#0070BA',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M7.08 20.5H3.5a.75.75 0 0 1-.74-.87L5.74 1.1A1.3 1.3 0 0 1 7.02 0h6.53c4.15 0 6.58 2.2 6.11 5.76-.54 4.08-3.37 6.34-7.4 6.34H10.4a1.3 1.3 0 0 0-1.28 1.1L8.3 18.36A1.3 1.3 0 0 1 7.08 20.5Zm3.65-15.93-.55 3.47h1.57c1.72 0 2.8-.78 3.02-2.16.18-1.13-.64-1.31-2.05-1.31h-1.99Z' />
<path
d='M19.63 7.04c-.63 4.75-4.08 7.68-8.94 7.68h-.64l-.7 4.46-.2 1.27A1.3 1.3 0 0 0 10.44 22h3.1a1.3 1.3 0 0 0 1.28-1.1l.5-3.17a1.3 1.3 0 0 1 1.28-1.1h.81c3.57 0 6.02-2.08 6.48-5.52.33-2.48-.8-4.16-2.75-4.89-.45-.17-.94-.3-1.47-.38 0 .4-.01.8-.04 1.2Z'
fill='#003087'
/>
</svg>
);
// Telegram 图标
export const TelegramBrandIcon = ({
size = 24,
color = '#26A5E4',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z' />
</svg>
);
// Discord 图标
export const DiscordBrandIcon = ({
size = 24,
color = '#5865F2',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z' />
</svg>
);
// Linux 图标 (用于 LinuxDO)
export const LinuxBrandIcon = ({
size = 24,
color = '#FCC624',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill={color}
className={className}
{...props}
>
<path d='M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.011.078c0 .072.011.142.033.21.179-.78.46-1.474.846-2.078l.53.07c-.145.49-.194.977-.148 1.449.04.42.15.82.43 1.131.711.77 1.89 1.032 2.902 1.032 1.02 0 1.902-.26 2.61-1.03.28-.31.39-.71.43-1.13.046-.473-.003-.96-.148-1.45l.53-.07c.386.605.668 1.299.847 2.078.022-.068.033-.139.033-.21a.424.424 0 00-.011-.078c.123-.805-.009-1.657-.287-2.489-.59-1.77-1.831-3.47-2.716-4.52-.75-1.068-.974-1.929-1.05-3.021-.066-1.491 1.055-5.965-3.17-6.298-.165-.013-.325-.021-.48-.021zm-.751 4.143c.357 0 .646.287.646.643a.645.645 0 01-.646.644.645.645 0 01-.645-.644c0-.356.288-.643.645-.643zm-5.116.641c.356 0 .645.287.645.644a.645.645 0 01-.645.643.645.645 0 01-.644-.643c0-.357.288-.644.644-.644zM12 8.941c.528 0 .956.428.956.955 0 .527-.428.955-.956.955-.527 0-.955-.428-.955-.955 0-.527.428-.955.955-.955zM4.668 11.19c.42 0 .76.34.76.76 0 .42-.34.76-.76.76a.76.76 0 01-.76-.76c0-.42.34-.76.76-.76zm14.664 0c.42 0 .76.34.76.76 0 .42-.34.76-.76.76a.76.76 0 01-.76-.76c0-.42.34-.76.76-.76z' />
</svg>
);
// Shuffle 图标 (用于替换 FaRandom)
export const ShuffleBrandIcon = ({
size = 16,
color = 'currentColor',
className = '',
...props
}) => (
<svg
viewBox='0 0 24 24'
width={size}
height={size}
fill='none'
stroke={color}
strokeWidth='2'
strokeLinecap='round'
strokeLinejoin='round'
className={className}
{...props}
>
<polyline points='16 3 21 3 21 8'></polyline>
<line x1='4' y1='20' x2='21' y2='3'></line>
<polyline points='21 16 21 21 16 21'></polyline>
<line x1='15' y1='15' x2='21' y2='21'></line>
<line x1='4' y1='4' x2='9' y2='9'></line>
</svg>
);