mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 04:32:49 +00:00
no message
This commit is contained in:
parent
dd899a3e13
commit
bca284969d
@ -840,3 +840,7 @@ AI机器人不存在
|
||||
文件不存在或已被删除
|
||||
报告不存在或已被删除
|
||||
文件读取失败:(*)
|
||||
|
||||
请输入删除备注
|
||||
删除备注长度限制(*)个字
|
||||
系统机器人不能删除
|
||||
|
||||
@ -2019,3 +2019,10 @@ API请求的URL路径
|
||||
文件读取失败:(*)
|
||||
独立窗口显示
|
||||
在消息中显示
|
||||
|
||||
添加机器人
|
||||
消息保留
|
||||
您没有创建机器人
|
||||
清理时间
|
||||
请输入备注原因
|
||||
删除机器人:(*)
|
||||
|
||||
1
public/images/application/mybot.svg
Normal file
1
public/images/application/mybot.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" viewBox="0 0 48 48"><defs><clipPath id="master_svg0_3054_25405"><rect x="12" y="12" width="24" height="24" rx="0"/></clipPath></defs><g><rect x="0" y="0" width="48" height="48" rx="12" fill="#0D4196" fill-opacity="1"/><g clip-path="url(#master_svg0_3054_25405)"><g><g><rect x="12" y="26.31494140625" width="1.8119423389434814" height="7.173644542694092" rx="0.9059711694717407" fill="#FFFFFF" fill-opacity="1"/></g><g><rect x="34.18804931640625" y="26.31494140625" width="1.8119423389434814" height="7.173644542694092" rx="0.9059711694717407" fill="#FFFFFF" fill-opacity="1"/></g><g><path d="M29.53465,20.54139L31.35485,17.38422C31.41525,17.38422,31.47695,17.39383,31.53875,17.39383C32.931349999999995,17.39648,33.97485,16.118949999999998,33.69415,14.75489C33.41345,13.390835,31.95045,12.629057,30.67195,13.181321C29.393549999999998,13.733585,28.94525,15.32101,29.74605,16.4604L27.76795,19.89211C25.287950000000002,19.2077,22.669629999999998,19.20201,20.18666,19.87564L18.21274,16.46315C19.0135,15.32376,18.56525,13.73633,17.28679,13.184066C16.00834,12.631803,14.545278,13.393581,14.2646052,14.75764C13.983932,16.1217,15.02738,17.39923,16.42001,17.39657C16.48179,17.39657,16.542180000000002,17.39657,16.60258,17.386960000000002L18.417270000000002,20.529040000000002C16.05625,21.62718,14.483158,23.3979,14.36648,25.4172L14.356871,25.4172L14.356871,33.289500000000004C14.356871,34.7254,15.52087,35.889399999999995,16.95673,35.889399999999995L30.96905,35.889399999999995C32.40495,35.889399999999995,33.56895,34.7254,33.56895,33.289500000000004L33.56895,25.4172L33.559349999999995,25.4172C33.444050000000004,23.4048,31.88195,21.636789999999998,29.53465,20.54139ZM27.063850000000002,29.5105L20.86888,29.5105C19.89243,29.5105,19.10087,28.718899999999998,19.10087,27.7425C19.10087,26.766,19.89243,25.9745,20.86888,25.9745L27.05695,25.9745C28.03335,25.9745,28.82495,26.766,28.82495,27.7425C28.82495,28.718899999999998,28.03335,29.5105,27.05695,29.5105L27.063850000000002,29.5105Z" fill="#FFFFFF" fill-opacity="1"/></g></g></g></g></svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@ -1203,6 +1203,13 @@ export default {
|
||||
return "";
|
||||
},
|
||||
|
||||
insertText(text) {
|
||||
if (this.quill) {
|
||||
const {index} = this.quill.getSelection(true);
|
||||
this.quill.insertText(index, text)
|
||||
}
|
||||
},
|
||||
|
||||
setText(value) {
|
||||
if (this.quill) {
|
||||
this.quill.setText(value)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
{{$L("您好,我是机器人")}}:{{msg.data.nickname}},{{$L("我的机器人ID是")}}:{{msg.data.userid}},{{$L("你可以发送")}} <span class="mark-color">/help</span> {{$L("查看我支持什么命令")}}。
|
||||
{{$L("您好,我是机器人")}}:{{msg.data.nickname}},{{$L("我的机器人ID是")}}:{{msg.data.userid}},{{$L("你可以发送")}} <span class="mark-color mark-set">/help</span> {{$L("查看我支持什么命令")}}。
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@ -4,32 +4,32 @@
|
||||
<p> </p>
|
||||
|
||||
<template v-if="msg.manager">
|
||||
<p><span class="mark-color">/list</span> - {{$L("机器人列表")}}</p>
|
||||
<p><span class="mark-color">/newbot ({{$L('机器人名称')}})</span> - {{$L("创建机器人")}}</p>
|
||||
<p><span class="mark-color mark-set">/list</span> - {{$L("机器人列表")}}</p>
|
||||
<p><span class="mark-color mark-set">/newbot ({{$L('机器人名称')}})</span> - {{$L("创建机器人")}}</p>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p><span class="mark-color">/info</span> - {{$L("查看机器人详情")}}</p>
|
||||
<p><span class="mark-color mark-set">/info</span> - {{$L("查看机器人详情")}}</p>
|
||||
</template>
|
||||
<p> </p>
|
||||
|
||||
<p><b>{{$L("修改机器人")}}</b></p>
|
||||
<p><span class="mark-color">/setname{{IDLabel}} ({{$L('机器人名称')}})</span> - {{$L("修改机器人名称")}}</p>
|
||||
<p><span class="mark-color">/deletebot{{IDLabel}}</span> - {{$L("删除机器人")}}</p>
|
||||
<p><span class="mark-color">/clearday{{IDLabel}} ({{$L('天数')}})</span> - {{$L("设置保留消息时间(默认30天)")}}</p>
|
||||
<p><span class="mark-color">/webhook{{IDLabel}} [url]</span> - {{$L("设置消息Webhook(详情请看 API接口文档)")}}</p>
|
||||
<p><span class="mark-color mark-set">/setname{{IDLabel}} ({{$L('机器人名称')}})</span> - {{$L("修改机器人名称")}}</p>
|
||||
<p><span class="mark-color mark-set">/deletebot{{IDLabel}}</span> - {{$L("删除机器人")}}</p>
|
||||
<p><span class="mark-color mark-set">/clearday{{IDLabel}} ({{$L('天数')}})</span> - {{$L("设置保留消息时间(默认30天)")}}</p>
|
||||
<p><span class="mark-color mark-set">/webhook{{IDLabel}} [url]</span> - {{$L("设置消息Webhook(详情请看 API接口文档)")}}</p>
|
||||
<p> </p>
|
||||
|
||||
<p><b>{{$L("机器人设置")}}</b></p>
|
||||
<p><span class="mark-color">/token{{IDLabel}}</span> - {{$L("生成Token令牌")}}</p>
|
||||
<p><span class="mark-color">/revoke{{IDLabel}}</span> - {{$L("撤销机器人Token令牌")}}</p>
|
||||
<p><span class="mark-color mark-set">/token{{IDLabel}}</span> - {{$L("生成Token令牌")}}</p>
|
||||
<p><span class="mark-color mark-set">/revoke{{IDLabel}}</span> - {{$L("撤销机器人Token令牌")}}</p>
|
||||
<p> </p>
|
||||
|
||||
<p><b>{{$L("会话管理")}}</b></p>
|
||||
<p><span class="mark-color">/dialog{{IDLabel}} [{{$L('搜索关键词')}}]</span> - {{$L("查看会话ID")}}</p>
|
||||
<p><span class="mark-color mark-set">/dialog{{IDLabel}} [{{$L('搜索关键词')}}]</span> - {{$L("查看会话ID")}}</p>
|
||||
<p> </p>
|
||||
|
||||
<p><b>{{$L("API接口文档")}}</b></p>
|
||||
<p><span class="mark-color">/api</span> - {{$L("查看接口列表")}}</p>
|
||||
<p><span class="mark-color mark-set">/api</span> - {{$L("查看接口列表")}}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div v-if="isBot">
|
||||
{{$L("不支持的指令")}} <span class="warning-color">{{msg.type}}</span>,{{$L("你可以发送")}} <span class="mark-color">/help</span> {{$L("查看帮助菜单")}}。
|
||||
{{$L("不支持的指令")}} <span class="warning-color">{{msg.type}}</span>,{{$L("你可以发送")}} <span class="mark-color mark-set">/help</span> {{$L("查看帮助菜单")}}。
|
||||
</div>
|
||||
<div v-else>
|
||||
{{$L("未知的消息")}}
|
||||
|
||||
@ -3541,6 +3541,17 @@ export default {
|
||||
}
|
||||
const {target, clientX} = event
|
||||
|
||||
// 快速输入
|
||||
if (target.classList.contains('mark-set')) {
|
||||
!this.windowTouch && this.$refs.input.focus()
|
||||
this.$refs.input.setText(target.innerText)
|
||||
return
|
||||
}
|
||||
if (target.classList.contains('mark-insert')) {
|
||||
this.$refs.input.insertText(target.innerText)
|
||||
return
|
||||
}
|
||||
|
||||
// 创建任务
|
||||
if (target.classList.contains('apply-create-task-button')) {
|
||||
this.operateItem = this.findMsgByElement(el)
|
||||
|
||||
@ -1212,6 +1212,13 @@
|
||||
.mark-color {
|
||||
color: $primary-color;
|
||||
}
|
||||
|
||||
.mark-set {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content-loading {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user