Merge remote-tracking branch 'origin/main' into alert
@ -18,7 +18,6 @@ limitations under the License. -->
|
||||
|
||||
<style>
|
||||
#app {
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
height: 100%;
|
||||
}
|
||||
|
18
src/assets/icons/search.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License. -->
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<title>search</title>
|
||||
<path d="M9.516 14.016q1.875 0 3.188-1.313t1.313-3.188-1.313-3.188-3.188-1.313-3.188 1.313-1.313 3.188 1.313 3.188 3.188 1.313zM15.516 14.016l4.969 4.969-1.5 1.5-4.969-4.969v-0.797l-0.281-0.281q-1.781 1.547-4.219 1.547-2.719 0-4.617-1.875t-1.898-4.594 1.898-4.617 4.617-1.898 4.594 1.898 1.875 4.617q0 0.984-0.469 2.227t-1.078 1.992l0.281 0.281h0.797z"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
31
src/assets/img/icons.js
Executable file
@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
const requireComponent = require.context('../../assets', false, /\.png$/);
|
||||
|
||||
const result = {};
|
||||
function capitalizeFirstLetter(str) {
|
||||
return str.toUpperCase();
|
||||
}
|
||||
function validateFileName(str) {
|
||||
return /^\S+\.png$/.test(str) && str.replace(/^\S+\/(\w+)\.png$/, (rs, $1) => capitalizeFirstLetter($1));
|
||||
}
|
||||
requireComponent.keys().forEach((filePath) => {
|
||||
const componentConfig = requireComponent(filePath);
|
||||
const fileName = validateFileName(filePath);
|
||||
result[fileName] = componentConfig;
|
||||
});
|
||||
export default result;
|
BIN
src/assets/img/technologies/ACTIVEMQ.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/img/technologies/AIOHTTP.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
src/assets/img/technologies/APACHEKYLIN.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
src/assets/img/technologies/APISIX.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/img/technologies/ARMERIA.png
Executable file
After Width: | Height: | Size: 3.5 KiB |
BIN
src/assets/img/technologies/AVRO.png
Executable file
After Width: | Height: | Size: 3.5 KiB |
BIN
src/assets/img/technologies/AZUREFUNCTIONS.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
src/assets/img/technologies/CASSANDRA.png
Executable file
After Width: | Height: | Size: 5.8 KiB |
BIN
src/assets/img/technologies/CELERY.jpg
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
src/assets/img/technologies/CLICKHOUSE.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
src/assets/img/technologies/CUBE.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/img/technologies/CUBEERROR.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/img/technologies/DATABASE.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
src/assets/img/technologies/DJANGO.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
src/assets/img/technologies/DOLPHINSCHEDULER.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
src/assets/img/technologies/DUBBO.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/img/technologies/ELASTICSEARCH.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/img/technologies/ENVOYPROXY.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
src/assets/img/technologies/FALCON.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
src/assets/img/technologies/FEIGNDEFAULTHTTP.png
Executable file
After Width: | Height: | Size: 571 B |
BIN
src/assets/img/technologies/FINAGLE.png
Executable file
After Width: | Height: | Size: 3.3 KiB |
BIN
src/assets/img/technologies/FLASK.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
src/assets/img/technologies/GEAR.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
src/assets/img/technologies/GIN.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/img/technologies/GOHTTPCLIENT.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/img/technologies/GOHTTPSERVER.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/img/technologies/GOMICROCLIENT.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/img/technologies/GOMICROSERVER.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/img/technologies/GRPC.png
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/img/technologies/H2.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
src/assets/img/technologies/HBASE.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
src/assets/img/technologies/HPROSE.png
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
src/assets/img/technologies/HTTP.png
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
src/assets/img/technologies/HTTPCLIENT.png
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
src/assets/img/technologies/INFLUXDB.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/img/technologies/JETTY.png
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
src/assets/img/technologies/JETTYSERVER.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/img/technologies/KAFKA.png
Executable file
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/img/technologies/KAFKACONSUMER.png
Executable file
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/img/technologies/KONG.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
src/assets/img/technologies/KRATOS.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
src/assets/img/technologies/LIGHT4J.png
Executable file
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/img/technologies/LOCAL.png
Executable file
After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/img/technologies/MARIADB.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
src/assets/img/technologies/MONGODB.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/img/technologies/MONGOOSE.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
src/assets/img/technologies/MOSN.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
src/assets/img/technologies/MOTAN.png
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/img/technologies/MYSQL.png
Executable file
After Width: | Height: | Size: 600 B |
BIN
src/assets/img/technologies/NGINX.png
Executable file
After Width: | Height: | Size: 4.8 KiB |
BIN
src/assets/img/technologies/OKHTTP.png
Executable file
After Width: | Height: | Size: 695 B |
BIN
src/assets/img/technologies/ORACLE.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
src/assets/img/technologies/PHP.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
src/assets/img/technologies/PLAY.png
Executable file
After Width: | Height: | Size: 2.2 KiB |
BIN
src/assets/img/technologies/POSTGRESQL.png
Executable file
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/img/technologies/PULSAR.png
Executable file
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/img/technologies/PYRAMID.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/img/technologies/PYTHON.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/img/technologies/RABBITMQ.png
Executable file
After Width: | Height: | Size: 427 B |
BIN
src/assets/img/technologies/REDIS.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/img/technologies/REQUESTS.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/img/technologies/RESIN.png
Executable file
After Width: | Height: | Size: 2.3 KiB |
BIN
src/assets/img/technologies/RESTEASY.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/img/technologies/ROCKETMQ.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/img/technologies/SANIC.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/img/technologies/SEATA.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
src/assets/img/technologies/SERVICECOMB.png
Executable file
After Width: | Height: | Size: 6.1 KiB |
BIN
src/assets/img/technologies/SERVICECOMBMESHER.png
Executable file
After Width: | Height: | Size: 6.6 KiB |
BIN
src/assets/img/technologies/SERVICECOMBSERVICECENTER.png
Executable file
After Width: | Height: | Size: 6.8 KiB |
BIN
src/assets/img/technologies/SOFARPC.png
Executable file
After Width: | Height: | Size: 2.3 KiB |
BIN
src/assets/img/technologies/SOLR.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/img/technologies/SPRINGMVC.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/img/technologies/STRUTS2.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/img/technologies/TOMCAT.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
src/assets/img/technologies/TORNADO.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
src/assets/img/technologies/UNDEFINED.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/img/technologies/UNKNOWN.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/img/technologies/UNKNOWN_CLOUD.png
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
src/assets/img/technologies/URLLIB3.png
Normal file
After Width: | Height: | Size: 702 B |
BIN
src/assets/img/technologies/USER.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/img/technologies/VERTX.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/img/technologies/ZOOKEEPER.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
src/assets/img/tool/ALARM.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
src/assets/img/tool/API.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
src/assets/img/tool/ENDPOINT.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
src/assets/img/tool/INSTANCE.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
src/assets/img/tool/TRACE.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
32
src/graph/fragments/selector.ts
Normal file
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export const Services = {
|
||||
variable: ["$layer: String!"],
|
||||
query: `
|
||||
services: listServices(layer: $layer) {
|
||||
value: id
|
||||
label: name
|
||||
group
|
||||
layer
|
||||
}
|
||||
`,
|
||||
};
|
||||
export const Layers = {
|
||||
query: `
|
||||
layers: listLayers
|
||||
`,
|
||||
};
|
@ -16,9 +16,10 @@
|
||||
*/
|
||||
import axios, { AxiosPromise, AxiosResponse } from "axios";
|
||||
import { cancelToken } from "@/utils/cancelToken";
|
||||
import * as global from "./query/global";
|
||||
import * as app from "./query/app";
|
||||
import * as selector from "./query/selector";
|
||||
|
||||
const query: { [key: string]: string } = { ...global };
|
||||
const query: { [key: string]: string } = { ...app, ...selector };
|
||||
class Graph {
|
||||
private queryData = "";
|
||||
public query(queryData: string) {
|
||||
|
@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { OAPTimeInfo, OAPVersion } from "../fragments/global";
|
||||
import { OAPTimeInfo, OAPVersion } from "../fragments/app";
|
||||
|
||||
export const queryOAPTimeInfo = `query queryOAPTimeInfo {${OAPTimeInfo.query}}`;
|
||||
|
20
src/graph/query/selector.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { Services, Layers } from "../fragments/selector";
|
||||
|
||||
export const queryServices = `query queryServices(${Services.variable}) {${Services.query}}`;
|
||||
export const queryLayers = `query ${Layers.query}`;
|
@ -21,14 +21,7 @@ limitations under the License. -->
|
||||
</router-view>
|
||||
</section>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
const key = () => {
|
||||
return route.path;
|
||||
};
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
<style lang="scss" scoped>
|
||||
.app-main {
|
||||
height: calc(100% - 128px);
|
||||
|
@ -57,7 +57,7 @@ const utcHour = isNaN(Number(utcArr[0])) ? 0 : Number(utcArr[0]);
|
||||
const utcMin = isNaN(Number(utcArr[1])) ? 0 : Number(utcArr[1]);
|
||||
|
||||
appStore.setUTC(utcHour, utcMin);
|
||||
console.log(route);
|
||||
|
||||
const setConfig = (value: string) => {
|
||||
pageName.value = value || "";
|
||||
theme.value = route.path.includes("/infrastructure/") ? "dark" : "light";
|
||||
@ -91,6 +91,7 @@ watch(
|
||||
background-color: #fafbfc;
|
||||
border-bottom: 1px solid #dfe4e8;
|
||||
color: #222;
|
||||
font-size: 12px;
|
||||
}
|
||||
.nav-bar.dark {
|
||||
background-color: #333840;
|
||||
|
@ -23,7 +23,7 @@ const msg = {
|
||||
infrastructure: "Infrastructure",
|
||||
virtualMachine: "Virtual Machine",
|
||||
kubernetes: "Kubernetes",
|
||||
dashboardHome: "Dashboard Home",
|
||||
dashboardNew: "New Dashboard",
|
||||
dashboardList: "Dashboard List",
|
||||
logs: "Logs",
|
||||
events: "Events",
|
||||
@ -43,6 +43,8 @@ const msg = {
|
||||
eventList: "Event List",
|
||||
databasePanel: "Database Panel",
|
||||
meshServicePanel: "Service Panel",
|
||||
newDashboard: "New a dashboard",
|
||||
dashboardEdit: "Edit the dashboard",
|
||||
hourTip: "Select Hour",
|
||||
minuteTip: "Select Minute",
|
||||
secondTip: "Select Second",
|
||||
|
@ -46,6 +46,8 @@ const msg = {
|
||||
eventList: "事件列表",
|
||||
databasePanel: "数据库面板",
|
||||
meshServicePanel: "服务面板",
|
||||
newDashboard: "新增仪表盘",
|
||||
dashboardEdit: "编辑仪表盘",
|
||||
hourTip: "选择小时",
|
||||
minuteTip: "选择分钟",
|
||||
secondTip: "选择秒数",
|
||||
|
@ -29,24 +29,54 @@ export const routesDashboard: Array<RouteRecordRaw> = [
|
||||
exact: true,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/dashboard/home",
|
||||
component: () => import("@/views/Service.vue"),
|
||||
name: "Home",
|
||||
meta: {
|
||||
title: "dashboardHome",
|
||||
exact: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/dashboard/list",
|
||||
component: () => import("@/views/Log.vue"),
|
||||
component: () => import("@/views/dashboard/List.vue"),
|
||||
name: "List",
|
||||
meta: {
|
||||
title: "dashboardList",
|
||||
exact: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/dashboard/new",
|
||||
component: () => import("@/views/dashboard/New.vue"),
|
||||
name: "New",
|
||||
meta: {
|
||||
title: "dashboardNew",
|
||||
exact: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/dashboard/edit/service/:serviceId",
|
||||
component: () => import("@/views/dashboard/Edit.vue"),
|
||||
name: "serviceEdit",
|
||||
meta: {
|
||||
title: "dashboardEdit",
|
||||
exact: false,
|
||||
notShow: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/dashboard/edit/endpoint/:serviceId/:endpointId",
|
||||
component: () => import("@/views/dashboard/Edit.vue"),
|
||||
name: "endpointEdit",
|
||||
meta: {
|
||||
title: "dashboardEdit",
|
||||
exact: false,
|
||||
notShow: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/dashboard/edit/instance/:serviceId/:instanceId",
|
||||
component: () => import("@/views/dashboard/Edit.vue"),
|
||||
name: "instanceEdit",
|
||||
meta: {
|
||||
title: "dashboardEdit",
|
||||
exact: false,
|
||||
notShow: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|