From 4dbadfe2b80043281b0565cc4fa5c03ff93bcc22 Mon Sep 17 00:00:00 2001
From: Ethan Shen <42264778+nczitzk@users.noreply.github.com>
Date: Wed, 5 Oct 2022 20:34:23 +0800
Subject: [PATCH] =?UTF-8?q?feat(route):=20=E5=BE=97=E5=88=B0=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E4=B8=BB=E9=A1=B5=20(#10993)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat(route): 得到用户主页
* fix typo
* fix: maintainer
---
docs/new-media.md | 14 ++++-
lib/router.js | 6 +--
lib/routes/dedao/knowledge.js | 78 ---------------------------
lib/{routes => v2}/dedao/index.js | 19 ++++---
lib/v2/dedao/knowledge.js | 64 ++++++++++++++++++++++
lib/{routes => v2}/dedao/list.js | 26 +++++----
lib/v2/dedao/maintainer.js | 8 +++
lib/v2/dedao/radar.js | 50 ++++++++++++++++++
lib/v2/dedao/router.js | 6 +++
lib/v2/dedao/templates/knowledge.art | 29 ++++++++++
lib/v2/dedao/templates/user.art | 38 +++++++++++++
lib/v2/dedao/user.js | 79 ++++++++++++++++++++++++++++
12 files changed, 316 insertions(+), 101 deletions(-)
delete mode 100644 lib/routes/dedao/knowledge.js
rename lib/{routes => v2}/dedao/index.js (52%)
create mode 100644 lib/v2/dedao/knowledge.js
rename lib/{routes => v2}/dedao/list.js (76%)
create mode 100644 lib/v2/dedao/maintainer.js
create mode 100644 lib/v2/dedao/radar.js
create mode 100644 lib/v2/dedao/router.js
create mode 100644 lib/v2/dedao/templates/knowledge.art
create mode 100644 lib/v2/dedao/templates/user.art
create mode 100644 lib/v2/dedao/user.js
diff --git a/docs/new-media.md b/docs/new-media.md
index e7079ae80..7528d376a 100644
--- a/docs/new-media.md
+++ b/docs/new-media.md
@@ -1812,7 +1812,7 @@ Supported sub-sites:
### 首页
-
引用 ${item.s_part.nick_name} (${item.s_part.v_info}):
`; - const s_content = `${item.s_part.note.replace(/\n\n/g, '
')}
[查看原文]`; - let s_images = '${item.f_part.note.replace(/\n\n/g, '
')}
${f_images}{{@ f_part.note + .replace(/\n\n/g, '
') + .replace(/<≧❆>{"name":"(.*?)","uid":"\d+","at":"1"}<\/≦❆>/g, ' @$1') + }}
+{{ /if }} +{{ if f_part.images }} +引用 {{ s_part.nick_name }}{{ if s_part.v_info }} ({{ s_part.v_info }}){{ /if }}:
+{{@ s_part.note + .replace(/\n\n/g, '
') + .replace(/<≧❆>{"name":"(.*?)","uid":"\d+","at":"1"}<\/≦❆>/g, ' @$1') + }}
+[查看原文] +{{ if s_part.images }} +{{@ content + .replace(/\n\n/g, '
') + .replace(/<≧❆>{"name":"(.*?)","uid":"\d+","at":"1"}<\/≦❆>/g, ' @$1') + }}
+引用 {{ name }}{{ if vinfo }} ({{ vinfo }}){{ /if }}:
+{{ /if }} +{{@ note + .replace(/\n\n/g, '
') + .replace(/<≧❆>{"name":"(.*?)","uid":"\d+","at":"1"}<\/≦❆>/g, ' @$1') + }}
+{{ if extra }} +