From 183b777c2b049003841e3dc87682366b580f6102 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 26 Dec 2022 23:16:14 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96tour=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=BC=95=E5=AF=BC=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=AE=AD=E5=A4=B4=E4=BB=A5=E5=A2=9E=E5=BC=BA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/web/plugins/com.msgbyte.intro/src/steps.ts | 14 +++++++++----- client/web/plugins/com.msgbyte.intro/src/tour.ts | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/client/web/plugins/com.msgbyte.intro/src/steps.ts b/client/web/plugins/com.msgbyte.intro/src/steps.ts index 8577cc54..2c6de9e7 100644 --- a/client/web/plugins/com.msgbyte.intro/src/steps.ts +++ b/client/web/plugins/com.msgbyte.intro/src/steps.ts @@ -40,18 +40,18 @@ function buildStepOption(options: { export const steps: Shepherd.Step.StepOptions[] = [ { id: 'start', - text: '欢迎使用 Tailchat, 一个插件化的开源IM应用', + text: '欢迎使用 Tailchat, 一个插件化的开源IM应用!', beforeShowPromise: buildWatchDom('[data-tc-role=navbar]'), // 仅当主界面出现后才显示欢迎 }, buildStepOption({ id: 'navbar', - text: '这是导航栏, 在这里可以切换tailchat的各个主要页面', + text: '这是导航栏, 在这里可以切换tailchat的各个主要页面。', selector: '[data-tc-role=navbar]', position: 'right', }), buildStepOption({ id: 'personal', - text: '这是个人信息,在这里可以管理您的好友、插件、以及私信', + text: '这是个人信息,在这里可以访问您的好友、插件、以及私信等功能。', selector: '[data-tc-role=navbar-personal]', position: 'right', }), @@ -69,14 +69,18 @@ export const steps: Shepherd.Step.StepOptions[] = [ }), buildStepOption({ id: 'sidebar', - text: '这是侧边栏,用于切换内容', + text: '这是侧边栏,用于切换内容。在未来会经常使用它来切换不同的面板。', selector: '[data-tc-role^=sidebar-]', position: 'right', }), buildStepOption({ id: 'content', - text: '这是内容区,用于显示主要内容', + text: '这是内容区,用于显示主要内容,也是Tailchat展示内容的地方。', selector: '[data-tc-role^=content-]', position: 'right', }), + { + id: 'end', + text: '如果有更多疑问, 欢迎访问官方文档了解更多:
点击此处打开官方文档', + }, ]; diff --git a/client/web/plugins/com.msgbyte.intro/src/tour.ts b/client/web/plugins/com.msgbyte.intro/src/tour.ts index 794d2312..0fd64ff0 100644 --- a/client/web/plugins/com.msgbyte.intro/src/tour.ts +++ b/client/web/plugins/com.msgbyte.intro/src/tour.ts @@ -10,7 +10,7 @@ if (!window.localStorage.getItem(KEY)) { defaultStepOptions: { classes: 'shadow-md', scrollTo: true, - arrow: false, + arrow: true, modalOverlayOpeningRadius: 4, modalOverlayOpeningPadding: 4, buttons: [