mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-01 09:19:47 +00:00
changing buttons styles to same looks
This commit is contained in:
parent
36a86dff1d
commit
e6f01a5de0
@ -15,35 +15,69 @@ limitations under the License. -->
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex-h log-wrapper">
|
<div class="flex-h log-wrapper">
|
||||||
<div v-if="!currentSearchTerm.length" class="flex-h items-center">
|
<div v-if="!currentSearchTerm.length" class="flex-h items-center">
|
||||||
|
<el-tooltip
|
||||||
|
class="box-item"
|
||||||
|
effect="dark"
|
||||||
|
content="Trace ID"
|
||||||
|
placement="bottom-start"
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
|
:class="[activeTerms.includes('traceId') ? 'active-toggle' : '']"
|
||||||
class="toggle-btn mx-3"
|
class="toggle-btn mx-3"
|
||||||
@click="setSearchTerm('traceId')"
|
@click="setSearchTerm('traceId')"
|
||||||
>
|
>
|
||||||
<!-- {{ t("traceID") }} -->
|
<!-- {{ t("traceID") }} -->
|
||||||
Trace ID
|
<Icon iconSize="sm" iconName="timeline" />
|
||||||
</el-button>
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip
|
||||||
|
class="box-item"
|
||||||
|
effect="dark"
|
||||||
|
content="Tags"
|
||||||
|
placement="bottom-start"
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
|
:class="[activeTerms.includes('tags') ? 'active-toggle' : '']"
|
||||||
class="toggle-btn mx-3"
|
class="toggle-btn mx-3"
|
||||||
@click="setSearchTerm('tags')"
|
@click="setSearchTerm('tags')"
|
||||||
>
|
>
|
||||||
Tags
|
<Icon iconSize="sm" iconName="epic" />
|
||||||
</el-button>
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
|
||||||
|
<el-tooltip
|
||||||
|
class="box-item"
|
||||||
|
effect="dark"
|
||||||
|
content="Keywords"
|
||||||
|
placement="bottom-start"
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
|
:class="[activeTerms.includes('keywords') ? 'active-toggle' : '']"
|
||||||
class="toggle-btn mx-3"
|
class="toggle-btn mx-3"
|
||||||
@click="setSearchTerm('keywords')"
|
@click="setSearchTerm('keywords')"
|
||||||
>
|
>
|
||||||
Keywords
|
<Icon iconSize="sm" iconName="library_books" />
|
||||||
</el-button>
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip
|
||||||
|
class="box-item"
|
||||||
|
effect="dark"
|
||||||
|
content="Exclude keywords"
|
||||||
|
placement="bottom-start"
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
|
:class="[activeTerms.includes('exclude') ? 'active-toggle' : '']"
|
||||||
class="toggle-btn mx-3"
|
class="toggle-btn mx-3"
|
||||||
@click="setSearchTerm('exclude')"
|
@click="setSearchTerm('exclude')"
|
||||||
>
|
>
|
||||||
Exclude keywords
|
<Icon iconSize="sm" iconName="issue-child" />
|
||||||
|
<!-- Exclude keywords -->
|
||||||
</el-button>
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-h row">
|
<div class="flex-h row">
|
||||||
<!-- <div
|
<!-- <div
|
||||||
@ -96,7 +130,6 @@ limitations under the License. -->
|
|||||||
<b>{{ t("conditionNotice") }}</b>
|
<b>{{ t("conditionNotice") }}</b>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="flex-h items-center">
|
<div class="flex-h items-center">
|
||||||
|
|
||||||
<div class="mr-5 flex-h items-center traceId" v-show="!isBrowser">
|
<div class="mr-5 flex-h items-center traceId" v-show="!isBrowser">
|
||||||
<div class="flex-h items-center" v-if="currentSearchTerm === 'traceId'">
|
<div class="flex-h items-center" v-if="currentSearchTerm === 'traceId'">
|
||||||
<span class="grey mr-5">{{ t("traceID") }}:</span>
|
<span class="grey mr-5">{{ t("traceID") }}:</span>
|
||||||
@ -214,6 +247,7 @@ const traceId = ref<string>("");
|
|||||||
const keywordsOfContent = ref<string[]>([]);
|
const keywordsOfContent = ref<string[]>([]);
|
||||||
const excludingKeywordsOfContent = ref<string[]>([]);
|
const excludingKeywordsOfContent = ref<string[]>([]);
|
||||||
const currentSearchTerm = ref<string>("");
|
const currentSearchTerm = ref<string>("");
|
||||||
|
const activeTerms = ref<string[]>([]);
|
||||||
const tagsList = ref<string[]>([]);
|
const tagsList = ref<string[]>([]);
|
||||||
const tagsMap = ref<Option[]>([]);
|
const tagsMap = ref<Option[]>([]);
|
||||||
const contentStr = ref<string>("");
|
const contentStr = ref<string>("");
|
||||||
@ -286,6 +320,8 @@ async function getInstances(id?: string) {
|
|||||||
state.instance = logStore.instances[0];
|
state.instance = logStore.instances[0];
|
||||||
}
|
}
|
||||||
function searchLogs() {
|
function searchLogs() {
|
||||||
|
activeTerms.value.push(currentSearchTerm.value);
|
||||||
|
console.log(activeTerms.value);
|
||||||
let endpoint = "",
|
let endpoint = "",
|
||||||
instance = "";
|
instance = "";
|
||||||
if (dashboardStore.entity === EntityType[2].value) {
|
if (dashboardStore.entity === EntityType[2].value) {
|
||||||
|
@ -15,13 +15,13 @@ limitations under the License. -->
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex-h">
|
<div class="flex-h">
|
||||||
<div class="flex-h filter-container">
|
<div class="flex-h filter-container">
|
||||||
<div v-for="(filter, index) in arrayOfFilters" :key="index" >
|
<div v-for="(filter, index) in arrayOfFilters" :key="index">
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
v-if="!activeFilter.length || activeFilter === filter.name"
|
v-if="!activeFilter.length || activeFilter === filter.name"
|
||||||
class="box-item"
|
class="box-item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
content="Service"
|
:content="filter.description"
|
||||||
placement="top-start"
|
placement="bottom-start"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
@ -233,6 +233,7 @@ import { EntityType } from "../../data";
|
|||||||
interface filtersObject {
|
interface filtersObject {
|
||||||
name: string;
|
name: string;
|
||||||
iconName: string;
|
iconName: string;
|
||||||
|
description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
@ -245,26 +246,32 @@ const arrayOfFilters = ref<filtersObject[]>([
|
|||||||
{
|
{
|
||||||
name: "service",
|
name: "service",
|
||||||
iconName: "cloud_queue",
|
iconName: "cloud_queue",
|
||||||
|
description: "Service",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "instance",
|
name: "instance",
|
||||||
iconName: "storage",
|
iconName: "storage",
|
||||||
|
description: "Instance",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "status",
|
name: "status",
|
||||||
iconName: "device_hub",
|
iconName: "device_hub",
|
||||||
|
description: "Status",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "duration",
|
name: "duration",
|
||||||
iconName: "av_timer",
|
iconName: "av_timer",
|
||||||
|
description: "Duration",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "traceId",
|
name: "traceId",
|
||||||
iconName: "timeline",
|
iconName: "timeline",
|
||||||
|
description: "Trace ID",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "tags",
|
name: "tags",
|
||||||
iconName: "epic",
|
iconName: "epic",
|
||||||
|
description: "Tags",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
const activeFilter = ref<string>("");
|
const activeFilter = ref<string>("");
|
||||||
@ -450,7 +457,7 @@ watch(
|
|||||||
}
|
}
|
||||||
.filter-btn {
|
.filter-btn {
|
||||||
height: 18px;
|
height: 18px;
|
||||||
margin: 0 5px
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
.active-filter.filter-btn {
|
.active-filter.filter-btn {
|
||||||
background: #276c04 !important;
|
background: #276c04 !important;
|
||||||
|
Loading…
Reference in New Issue
Block a user