Skip to content

Commit

Permalink
文章图片尺寸可修改、关键词
Browse files Browse the repository at this point in the history
  • Loading branch information
eee555 committed Jul 14, 2024
1 parent c00282c commit 4aa0ff3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions back_end/saolei/article/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# 公告:网站公告、规定介绍
# 教程:扫雷教程、其他游戏教程(数织、数独等)
# 技术:开发进展、数学等
# 其他:分不类了的
# 序号必填(默认999),从小到大
# 其他:分不了类的
# 序号必填(1-2100000000,默认999),从小到大
# 支持二级分类,二级由玩家自定义,管理员同意,例如:"[60.公告]明天下雨.md"、"[3.技术.效率]破纪录像喝水.md"
# 默认其他
def update_list(request):
Expand Down
2 changes: 2 additions & 0 deletions front_end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="元扫雷网:一个非盈利的、社区自组织的、开源的扫雷录像排名网站。收录了来自全球的高水平玩家的游戏录像。">
<meta name="keywords" content="扫雷,元扫雷,新扫雷网,元扫雷网,eee555,在线扫雷,无猜,扫雷排行,扫雷下载,扫雷纪录,扫雷教程,扫雷网,Minesweeper,Meta Minesweeper">
<link rel="icon" href="/favicon.ico">
<title>元扫雷网</title>
<script>
Expand Down
1 change: 1 addition & 0 deletions front_end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"vue-router": "^4.0.3"
},
"devDependencies": {
"@mdit/plugin-img-size": "^0.12.0",
"@types/axios": "^0.14.0",
"@types/markdown-it": "^14.1.1",
"@types/uuid": "^9.0.2",
Expand Down
5 changes: 4 additions & 1 deletion front_end/src/views/GuideView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,16 @@ import markdownItHighlight from 'markdown-it-highlightjs';
import mathjax3 from "markdown-it-mathjax3";
// 图片懒加载
import { imgLazyload } from "@mdit/plugin-img-lazyload";
// 允许调整图片尺寸
import { imgSize } from "@mdit/plugin-img-size";
// 局面数字的svg数据,原始尺寸都是160*160
import { cells } from "@/utils/common/cellSVGData";
const markdown = new MarkdownIt({
html: true, // 允许HTML语法
typographer: true, // 启用Typographer插件,可以更好地处理中文字符和标点符号
}).use(abbr).use(align).use(markdownItHighlight).use(mathjax3).use(imgLazyload);
}).use(abbr).use(align).use(markdownItHighlight).use(mathjax3).use(imgLazyload).use(imgSize);
Expand Down

0 comments on commit 4aa0ff3

Please sign in to comment.