feat: 添加钉钉登录

This commit is contained in:
Gavan
2025-07-01 21:09:53 +08:00
parent e32a9efe49
commit 0da806d4f1
16 changed files with 470 additions and 131 deletions

View File

@@ -1,11 +1,10 @@
'use client';
import { styled, FormLabel } from '@mui/material';
export const StyledFormLabel = styled(FormLabel)(({ theme }) => ({
display: 'block',
color: theme.vars.palette.text.primary,
fontSize: 16,
fontWeight: 500,
fontSize: 14,
fontWeight: 400,
marginBottom: theme.spacing(1),
[theme.breakpoints.down('sm')]: {
fontSize: 14,

View File

@@ -97,6 +97,10 @@ const MarkDown = ({
const answer = processContent(content);
console.log(answer);
console.log(content);
if (content.length === 0) return null;
return (
@@ -446,12 +450,13 @@ const MarkDown = ({
...rest
}: React.HTMLAttributes<HTMLElement>) {
const match = /language-(\w+)/.exec(className || '');
console.log(children, rest);
return match ? (
<SyntaxHighlighter
showLineNumbers
{...rest}
language={match[1] || 'bash'}
style={github}
style={anOldHope}
onClick={() => {
if (navigator.clipboard) {
navigator.clipboard.writeText(