|
1 | 1 | import Editor from '@monaco-editor/react';
|
2 | 2 | import i18n from 'i18next';
|
3 | 3 | import _ from 'lodash';
|
4 |
| -import { editor } from 'monaco-editor'; |
5 |
| -import { Calendar } from 'primereact/calendar'; |
| 4 | +import {editor} from 'monaco-editor'; |
| 5 | +import {Calendar} from 'primereact/calendar'; |
6 | 6 | import 'primereact/resources/primereact.css';
|
7 | 7 | import 'primereact/resources/themes/lara-light-indigo/theme.css';
|
8 |
| -import React, { useEffect, useRef, useState, useCallback } from "react"; |
9 |
| -import { Helmet } from "react-helmet"; |
10 |
| -import { useTranslation } from "react-i18next"; |
| 8 | +import React, {useCallback, useEffect, useRef, useState} from "react"; |
| 9 | +import {Helmet} from "react-helmet"; |
| 10 | +import {useTranslation} from "react-i18next"; |
11 | 11 | import Loading from 'react-loading';
|
12 |
| -import { ShowAlertType, useAlert } from '../components/dialog'; |
13 |
| -import { Checkbox, Input } from "../components/input"; |
14 |
| -import { Markdown } from "../components/markdown"; |
15 |
| -import { client } from "../main"; |
16 |
| -import { headersWithAuth } from "../utils/auth"; |
17 |
| -import { Cache, useCache } from '../utils/cache'; |
18 |
| -import { siteName } from "../utils/constants"; |
19 |
| -import { useColorMode } from "../utils/darkModeUtils"; |
| 12 | +import {ShowAlertType, useAlert} from '../components/dialog'; |
| 13 | +import {Checkbox, Input} from "../components/input"; |
| 14 | +import {Markdown} from "../components/markdown"; |
| 15 | +import {client} from "../main"; |
| 16 | +import {headersWithAuth} from "../utils/auth"; |
| 17 | +import {Cache, useCache} from '../utils/cache'; |
| 18 | +import {siteName} from "../utils/constants"; |
| 19 | +import {useColorMode} from "../utils/darkModeUtils"; |
20 | 20 | import mermaid from 'mermaid';
|
21 | 21 |
|
22 | 22 | async function publish({
|
@@ -470,7 +470,6 @@ export function WritingPage({ id }: { id?: number }) {
|
470 | 470 | options={{
|
471 | 471 | wordWrap: "on",
|
472 | 472 | fontSize: 14,
|
473 |
| - fontFamily: "Fira Code", |
474 | 473 | lineNumbers: "off",
|
475 | 474 | dragAndDrop: true,
|
476 | 475 | pasteAs: { enabled: false }
|
|
0 commit comments