mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-09 10:13:29 +08:00
feat: 添加钉钉登录
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user