From 37205bcc348070a55047ee8b1351c958e945ddcd Mon Sep 17 00:00:00 2001 From: Xeu Date: Sat, 14 Dec 2024 02:19:02 +0800 Subject: [PATCH] fix: #223 Signed-off-by: Xeu --- client/src/page/writing.tsx | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/client/src/page/writing.tsx b/client/src/page/writing.tsx index 56f78158..343f8abc 100644 --- a/client/src/page/writing.tsx +++ b/client/src/page/writing.tsx @@ -1,22 +1,22 @@ import Editor from '@monaco-editor/react'; import i18n from 'i18next'; import _ from 'lodash'; -import { editor } from 'monaco-editor'; -import { Calendar } from 'primereact/calendar'; +import {editor} from 'monaco-editor'; +import {Calendar} from 'primereact/calendar'; import 'primereact/resources/primereact.css'; import 'primereact/resources/themes/lara-light-indigo/theme.css'; -import React, { useEffect, useRef, useState, useCallback } from "react"; -import { Helmet } from "react-helmet"; -import { useTranslation } from "react-i18next"; +import React, {useCallback, useEffect, useRef, useState} from "react"; +import {Helmet} from "react-helmet"; +import {useTranslation} from "react-i18next"; import Loading from 'react-loading'; -import { ShowAlertType, useAlert } from '../components/dialog'; -import { Checkbox, Input } from "../components/input"; -import { Markdown } from "../components/markdown"; -import { client } from "../main"; -import { headersWithAuth } from "../utils/auth"; -import { Cache, useCache } from '../utils/cache'; -import { siteName } from "../utils/constants"; -import { useColorMode } from "../utils/darkModeUtils"; +import {ShowAlertType, useAlert} from '../components/dialog'; +import {Checkbox, Input} from "../components/input"; +import {Markdown} from "../components/markdown"; +import {client} from "../main"; +import {headersWithAuth} from "../utils/auth"; +import {Cache, useCache} from '../utils/cache'; +import {siteName} from "../utils/constants"; +import {useColorMode} from "../utils/darkModeUtils"; import mermaid from 'mermaid'; async function publish({ @@ -470,7 +470,6 @@ export function WritingPage({ id }: { id?: number }) { options={{ wordWrap: "on", fontSize: 14, - fontFamily: "Fira Code", lineNumbers: "off", dragAndDrop: true, pasteAs: { enabled: false }