This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 17040ef Add license. (#135)
17040ef is described below
commit 17040efd79a973b6a3c84a70b1a401cd92ff9ba4
Author: 吴晟 Wu Sheng <[email protected]>
AuthorDate: Sat Aug 17 08:39:11 2019 +0800
Add license. (#135)
---
.../trace/trace-chart-table/trace-container.vue | 20 ++++++++++++--
.../trace/trace-chart-table/trace-item.vue | 31 +++++++++++++++++-----
.../components/trace/trace-chart-table/trace.scss | 19 ++++++++++++-
.../components/trace/trace-detail-chart-table.vue | 19 ++++++++++++-
4 files changed, 78 insertions(+), 11 deletions(-)
diff --git a/src/views/components/trace/trace-chart-table/trace-container.vue
b/src/views/components/trace/trace-chart-table/trace-container.vue
index 2f2c8c8..b42e117 100644
--- a/src/views/components/trace/trace-chart-table/trace-container.vue
+++ b/src/views/components/trace/trace-chart-table/trace-container.vue
@@ -1,3 +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.
+ */
+
<template>
<div class="trace">
<div class="trace-header">
@@ -57,7 +74,6 @@
line-height: 30px;
overflow:hidden;
text-overflow:ellipsis;
- white-space:nowrap
+ white-space:nowrap
}
</style>
-
diff --git a/src/views/components/trace/trace-chart-table/trace-item.vue
b/src/views/components/trace/trace-chart-table/trace-item.vue
index 1cfc27c..3db5bd0 100644
--- a/src/views/components/trace/trace-chart-table/trace-item.vue
+++ b/src/views/components/trace/trace-chart-table/trace-item.vue
@@ -1,10 +1,27 @@
+/**
+ * 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.
+ */
+
<template>
<div>
<div @click="showSelectSpan" :class="['trace-item', 'level'+( data.level
- 1)]">
<div :class="['method', 'level'+( data.level - 1)]"
:style="{'text-indent': (data.level - 1) * 10 + 'px' }">
- <span
- v-if="data.children && data.children.length > 0"
- @click.stop="toggle"
+ <span
+ v-if="data.children && data.children.length > 0"
+ @click.stop="toggle"
:class="['trace-table-toggle', displayChildren? 'collapse':
'expand']">
</span>
@@ -19,7 +36,7 @@
0
</div>
<div class="exec-ms">
- {{(data.endTime - data.startTime)?(data.endTime - data.startTime) :
'0'}}
+ {{(data.endTime - data.startTime)?(data.endTime - data.startTime) :
'0'}}
</div>
<div class="exec-percent">
<div class="outer-progress_bar" :style="{width: outterPercent}">
@@ -35,7 +52,7 @@
<div class="application">
<span
v-tooltip:bottom="data.serviceCode||'-'">{{data.serviceCode}}</span>
</div>
- </div>
+ </div>
<div v-show="data.children && data.children.length > 0 && displayChildren"
class="children-trace">
<item v-for="(item, index) in data.children" :key="index"
:data="item"> </item>
</div>
@@ -58,7 +75,7 @@
height: 100%;
background: #448dfe;
left: 0;
- }
+ }
}
.trace-table-toggle {
@@ -75,7 +92,7 @@
background: url('./expand.gif') no-repeat;
background-size: 12px 12px;
}
- }
+ }
.trace-item {
display: flex;
diff --git a/src/views/components/trace/trace-chart-table/trace.scss
b/src/views/components/trace/trace-chart-table/trace.scss
index 10d191b..dab32c1 100644
--- a/src/views/components/trace/trace-chart-table/trace.scss
+++ b/src/views/components/trace/trace-chart-table/trace.scss
@@ -1,3 +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.
+ */
+
.method {
width: 45%;
}
@@ -28,4 +45,4 @@
}
.application {
width: 15%;
-}
\ No newline at end of file
+}
diff --git a/src/views/components/trace/trace-detail-chart-table.vue
b/src/views/components/trace/trace-detail-chart-table.vue
index d5f588b..cae9eab 100644
--- a/src/views/components/trace/trace-detail-chart-table.vue
+++ b/src/views/components/trace/trace-detail-chart-table.vue
@@ -1,8 +1,25 @@
+/**
+ * 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.
+ */
+
<template>
<div class="trace-detail-chart-table">
<TraceContainer>
- <Item v-for="(item, index) in tableData" :data="item" :key="'key'+
index" />
+ <Item v-for="(item, index) in tableData" :data="item" :key="'key'+
index" />
</TraceContainer>
<rk-sidebox :show.sync="showDetail" :title="$t('spanInfo')">
<div class="rk-trace-detail">