Skip to content

Commit bce7987

Browse files
format; release 0.4.0
1 parent e62a4cc commit bce7987

File tree

8 files changed

+23
-21
lines changed

8 files changed

+23
-21
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"commentTranslate.hover.enabled": false
2+
"commentTranslate.hover.enabled": false
33
}

luogu-api-docs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Mr. Python",
77
"repository": "https://github.com/Mr-Python-in-China/lg-admin-extend.git",
88
"license": "LGPL-2.1-or-later",
9-
"version": "0.3.0",
9+
"version": "0.4.0",
1010
"private": true,
1111
"packageManager": "[email protected]",
1212
"scripts": {

src/app/utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,5 @@ export const ProblemNameWithDifficulty = memo(
197197
}
198198
);
199199

200-
export const formatTime=(time:number|Date)=>dayjs(time).format('YYYY-MM-DD HH:mm:ss')
200+
export const formatTime = (time: number | Date) =>
201+
dayjs(time).format('YYYY-MM-DD HH:mm:ss');

test/articleViewer/testcase/001.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $
1212

1313
![](bilibili:BV1Ka411b7fC)
1414

15-
$$asciimath
15+
$$
16+
asciimath
1617
x < y
1718
$$

test/articleViewer/testcase/gfm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ A note[^1]
1616

1717
## Table
1818

19-
| a | b | c | d |
20-
| - | :- | -: | :-: |
19+
| a | b | c | d |
20+
| --- | :-- | --: | :-: |
2121

2222
## Tasklist
2323

24-
* [ ] to do
25-
* [x] done
24+
- [ ] to do
25+
- [x] done

test/articleViewer/testcase/katex.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ $\LaTeX$ 是一种基于 $\TeX$ 的排版系统,能够很方便的生成数学
1313

1414
### 行内公式与行间公式 {#math}
1515

16-
行内公式(**Inline Math**,即穿插在文本中的公式)两侧分别使用一个美元 `$ $` 符号定界。
16+
行内公式(**Inline Math**,即穿插在文本中的公式)两侧分别使用一个美元 `$ $` 符号定界。
1717

1818
例如:
1919

20-
```md
21-
文本文本$x \cdot \sin(y)$文本文本
22-
```
20+
```md
21+
文本文本$x \cdot \sin(y)$文本文本
22+
```
2323

24-
显示为:
24+
显示为:
2525

2626
文本文本$x \cdot \sin(y)$文本文本
2727

@@ -74,7 +74,7 @@ $$
7474

7575
```latex
7676
$$
77-
\textstyle \int \frac{\mathop{}\!\mathrm{d} x}{x} = \ln(x) + C
77+
\textstyle \int \frac{\mathop{}\!\mathrm{d} x}{x} = \ln(x) + C
7878
$$
7979
```
8080

@@ -282,11 +282,11 @@ $$
282282

283283
对于中文,我们有:
284284

285-
| | | 直立中等 | 意大利中等 | 直立粗体 | 意大利粗体 |
286-
| :---: | :-------: | :---------------------------------------: | :---------------------------------------: | :---------------------------------------: | :---------------------------------------: |
287-
| | | `\textup{\textmd` | `\textit{\textmd` | `\textup{\textbf` | `\textit{\textbf` |
288-
| 默认 || $\textup{\textmd{你好,世界!}}$ | $\textit{\textmd{你好,世界!}}$ | $\textup{\textbf{你好,世界!}}$ | $\textit{\textbf{你好,世界!}}$ |
289-
| 罗马 | `\textrm` | $\textup{\textmd{\textrm{你好,世界!}}}$ | $\textit{\textmd{\textrm{你好,世界!}}}$ | $\textup{\textbf{\textrm{你好,世界!}}}$ | $\textit{\textbf{\textrm{你好,世界!}}}$ |
285+
| | | 直立中等 | 意大利中等 | 直立粗体 | 意大利粗体 |
286+
| :--: | :-------: | :---------------------------------------: | :---------------------------------------: | :---------------------------------------: | :---------------------------------------: |
287+
| | | `\textup{\textmd` | `\textit{\textmd` | `\textup{\textbf` | `\textit{\textbf` |
288+
| 默认 || $\textup{\textmd{你好,世界!}}$ | $\textit{\textmd{你好,世界!}}$ | $\textup{\textbf{你好,世界!}}$ | $\textit{\textbf{你好,世界!}}$ |
289+
| 罗马 | `\textrm` | $\textup{\textmd{\textrm{你好,世界!}}}$ | $\textit{\textmd{\textrm{你好,世界!}}}$ | $\textup{\textbf{\textrm{你好,世界!}}}$ | $\textit{\textbf{\textrm{你好,世界!}}}$ |
290290

291291
对于中文,族设置为无衬线或打字机时,要么不可用,要么与设置为罗马时无区别。
292292
可以看出,族默认时是宋体,族为罗马时是黑体。

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function (env, argv) {
8484
plugins: [
8585
new WebpackBarPlugin(),
8686
...(env.analyze ? [new BundleAnalyzerPlugin()] : []),
87-
new MiniCssExtractPlugin(),
87+
new MiniCssExtractPlugin()
8888
]
8989
});
9090
}

0 commit comments

Comments
 (0)