1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15export const TabCpuDetailsIdleHtml = ` 16 <style> 17 .idle-box{ 18 display: flex; 19 margin: 20px; 20 height: calc(100vh - 165px); 21 } 22 .idle-chart-box{ 23 width: 40%; 24 } 25 #idle-tb-cpu-usage{ 26 height: 100%; 27 } 28 :host { 29 width: 100%; 30 height: 100%; 31 background-color: var(--dark-background,#FFFFFF); 32 } 33 #cpu_idle_chart-pie{ 34 height: 360px; 35 } 36 37 .cpu_idle_table-box{ 38 width: 60%; 39 max-height: calc(100vh - 165px); 40 border: solid 1px var(--dark-border1,#e0e0e0); 41 border-radius: 5px; 42 padding: 10px; 43 } 44 </style> 45 <lit-progress-bar id="loading" style="height: 1px;width: 100%"></lit-progress-bar> 46 <div class="idle-box"> 47 <div class="idle-chart-box"> 48 <div style="text-align: center">Statistics By Duration</div> 49 <lit-chart-pie id="cpu_idle_chart-pie"></lit-chart-pie> 50 </div> 51 <div class="cpu_idle_table-box"> 52 <table-no-data id="table-no-data"> 53 <lit-table id="idle-tb-cpu-usage" hideDownload> 54 <lit-table-column width="100px" title="No" data-index="index" key="index" align="flex-start" order></lit-table-column> 55 <lit-table-column width="100px" title="idle" data-index="value" key="value" align="flex-start" order></lit-table-column> 56 <lit-table-column width="100px" title="min" data-index="min" key="min" align="flex-start" order></lit-table-column> 57 <lit-table-column width="100px" title="max" data-index="max" key="max" align="flex-start" order></lit-table-column> 58 <lit-table-column width="100px" title="average" data-index="avg" key="avg" align="flex-start" order></lit-table-column> 59 <lit-table-column width="100px" title="duration" data-index="sumTimeStr" key="sumTimeStr" align="flex-start" order></lit-table-column> 60 <lit-table-column width="100px" title="%" data-index="ratio" key="ratio" align="flex-start" order></lit-table-column> 61 </lit-table> 62 </table-no-data> 63 </div> 64 </div> 65 `; 66