Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
77bbcce9
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
77bbcce9
编写于
8月 31, 2022
作者:
雨
雨爱无痕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add clear log
上级
ee075eb9
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
0 deletion
+17
-0
ui/src/components/icons.ts
ui/src/components/icons.ts
+2
-0
ui/src/config/settings.ts
ui/src/config/settings.ts
+2
-0
ui/src/locales/en-US.ts
ui/src/locales/en-US.ts
+1
-0
ui/src/locales/zh-CN.ts
ui/src/locales/zh-CN.ts
+1
-0
ui/src/views/exec/LogList.vue
ui/src/views/exec/LogList.vue
+6
-0
ui/src/views/exec/LogPanel.vue
ui/src/views/exec/LogPanel.vue
+5
-0
未找到文件。
ui/src/components/icons.ts
浏览文件 @
77bbcce9
...
...
@@ -79,6 +79,7 @@ import person from '@iconify-icons/fluent/person-24-regular';
import
person_filled
from
'
@iconify-icons/fluent/person-24-filled
'
;
import
edit
from
'
@iconify-icons/fluent/edit-24-regular
'
;
import
edit_filled
from
'
@iconify-icons/fluent/edit-24-filled
'
;
import
clear
from
'
@iconify-icons/fluent/paint-brush-arrow-down-20-regular
'
;
import
deleteIcon
from
'
@iconify-icons/fluent/delete-24-regular
'
;
import
delete_filled
from
'
@iconify-icons/fluent/delete-24-filled
'
;
import
clock
from
'
@iconify-icons/fluent/clock-24-regular
'
;
...
...
@@ -178,6 +179,7 @@ export const icons = {
'
person-filled
'
:
person_filled
,
'
edit
'
:
edit
,
'
edit-filled
'
:
edit_filled
,
'
clear
'
:
clear
,
'
delete
'
:
deleteIcon
,
'
delete-filled
'
:
delete_filled
,
'
clock
'
:
clock
,
...
...
ui/src/config/settings.ts
浏览文件 @
77bbcce9
...
...
@@ -31,6 +31,7 @@ export interface SettingsType {
eventNotify
:
string
;
eventWebSocketConnStatus
:
string
,
eventWebSocketMsg
:
string
,
eventClearWebSocketMsg
:
string
,
webSocketRoom
:
string
,
electronMsg
:
string
,
electronMsgReplay
:
string
,
...
...
@@ -75,6 +76,7 @@ const settings: SettingsType = {
eventNotify
:
'
eventNotify
'
,
eventWebSocketConnStatus
:
'
eventWebSocketStatus
'
,
eventWebSocketMsg
:
'
eventWebSocketMsg
'
,
eventClearWebSocketMsg
:
'
eventClearWebSocketMsg
'
,
webSocketRoom
:
'
webSocketRoom
'
,
electronMsg
:
'
electronMsg
'
,
electronMsgReplay
:
'
electronMsgReplay
'
,
...
...
ui/src/locales/en-US.ts
浏览文件 @
77bbcce9
...
...
@@ -61,6 +61,7 @@ export default {
'
select_ui_lang
'
:
'
Please select Language
'
,
'
sync
'
:
'
Synchronization
'
,
'
close
'
:
'
Close
'
,
'
clear
'
:
'
Clear
'
,
'
download
'
:
'
Download
'
,
'
src
'
:
'
Source Code
'
,
'
zentao_url
'
:
'
ZenTao URL
'
,
...
...
ui/src/locales/zh-CN.ts
浏览文件 @
77bbcce9
...
...
@@ -67,6 +67,7 @@ export default {
'
minimize
'
:
'
最小化
'
,
'
restore
'
:
'
还原
'
,
'
close
'
:
'
关闭
'
,
'
clear
'
:
'
清空
'
,
'
sync
'
:
'
同步
'
,
'
download
'
:
'
下载
'
,
'
src
'
:
'
源码
'
,
...
...
ui/src/views/exec/LogList.vue
浏览文件 @
77bbcce9
...
...
@@ -151,15 +151,21 @@ const updateStatisticInfo = (logDir) => {
})
}
const
clearWebsocketMsgEvent
=
()
=>
{
wsMsg
.
out
=
[];
}
onMounted
(()
=>
{
console
.
log
(
'
onMounted
'
)
bus
.
on
(
settings
.
eventExec
,
exec
);
bus
.
on
(
settings
.
eventWebSocketMsg
,
onWebsocketMsgEvent
);
bus
.
on
(
settings
.
eventClearWebSocketMsg
,
clearWebsocketMsgEvent
);
})
onBeforeUnmount
(
()
=>
{
console
.
log
(
'
onBeforeUnmount
'
)
bus
.
off
(
settings
.
eventExec
,
exec
);
bus
.
off
(
settings
.
eventWebSocketMsg
,
onWebsocketMsgEvent
);
bus
.
off
(
settings
.
eventClearWebSocketMsg
,
clearWebsocketMsgEvent
);
})
const
exec
=
(
data
:
any
)
=>
{
...
...
ui/src/views/exec/LogPanel.vue
浏览文件 @
77bbcce9
<
template
>
<Panel
:title=
"t('exec_log')"
class=
"log-panel"
>
<template
#toolbar-buttons
>
<Button
class=
"rounded pure"
:hint=
"t('clear')"
icon=
"clear"
iconSize=
"1.4em"
@
click=
"bus.emit(settings.eventClearWebSocketMsg);"
/>
<Button
class=
"rounded pure"
:hint=
"t('collapse_all')"
:icon=
"logContentExpand ? 'subtract-square-multiple' : 'add-square-multiple'"
iconSize=
"1.4em"
@
click=
"store.commit('global/setLogContentExpand')"
/>
...
...
@@ -22,6 +25,8 @@ import {useI18n} from "vue-i18n";
import
{
useStore
}
from
'
vuex
'
;
import
{
StateType
}
from
'
@/store/global
'
import
{
computed
}
from
'
vue
'
;
import
bus
from
"
@/utils/eventBus
"
;
import
settings
from
"
@/config/settings
"
;
const
{
t
}
=
useI18n
();
const
store
=
useStore
<
{
global
:
StateType
}
>
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录