修改样式
This commit is contained in:
@@ -4,5 +4,5 @@ module.exports = {
|
|||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
printWidth: 80,
|
printWidth: 80,
|
||||||
tabWidth: 2,
|
tabWidth: 2,
|
||||||
endOfLine: 'auto',
|
endOfLine: 'auto'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const scopes = [
|
|||||||
'dev',
|
'dev',
|
||||||
'build',
|
'build',
|
||||||
'deploy',
|
'deploy',
|
||||||
'other',
|
'other'
|
||||||
]
|
]
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -42,7 +42,7 @@ module.exports = {
|
|||||||
'type-enum': [
|
'type-enum': [
|
||||||
2,
|
2,
|
||||||
'always',
|
'always',
|
||||||
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'improvement'],
|
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'improvement']
|
||||||
],
|
]
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.cn-panel {
|
.cn-panel {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(30, 1fr);
|
grid-template-columns: repeat(30, 2.90%);
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
grid-auto-rows: var(--chart-height-unit);
|
grid-auto-rows: var(--chart-height-unit);
|
||||||
grid-gap: 10px;
|
grid-gap: 10px;
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
grid-template-columns:(5,200px);
|
||||||
|
|
||||||
.single-value-icon__box{
|
.single-value-icon__box{
|
||||||
height: 70px;
|
height: 70px;
|
||||||
@@ -96,19 +97,13 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.content__title {
|
.content__title {
|
||||||
|
width: 206px;
|
||||||
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
|
||||||
word-break: break-all;
|
|
||||||
width: 80px;
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
.content__title:hover{
|
|
||||||
overflow: visible;
|
|
||||||
white-space: inherit;
|
|
||||||
min-width:100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&>.cn-chart__single-value.cn-chart__single-value--icon-right {
|
&>.cn-chart__single-value.cn-chart__single-value--icon-right {
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import cn from './cn'
|
|||||||
import en from './en'
|
import en from './en'
|
||||||
|
|
||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
locale: localStorage.getItem(storageKey.language) || 'en',
|
locale: localStorage.getItem(storageKey.language) || 'en'
|
||||||
/*messages: {
|
/* messages: {
|
||||||
cn: cn,
|
cn: cn,
|
||||||
en: en
|
en: en
|
||||||
}*/
|
} */
|
||||||
})
|
})
|
||||||
export async function loadI18n () {
|
export async function loadI18n () {
|
||||||
if (!store.state.i18n) {
|
if (!store.state.i18n) {
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ module.exports = {
|
|||||||
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
|
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
|
||||||
'ts-jest': {
|
'ts-jest': {
|
||||||
diagnostics: {
|
diagnostics: {
|
||||||
ignoreCodes: [151001],
|
ignoreCodes: [151001]
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
testEnvironment: 'jsdom',
|
testEnvironment: 'jsdom',
|
||||||
transform: {
|
transform: {
|
||||||
@@ -17,21 +17,21 @@ module.exports = {
|
|||||||
'@babel/preset-env',
|
'@babel/preset-env',
|
||||||
{
|
{
|
||||||
targets: {
|
targets: {
|
||||||
node: true,
|
node: true
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
'@babel/preset-typescript',
|
'@babel/preset-typescript'
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
'@vue/babel-plugin-jsx',
|
'@vue/babel-plugin-jsx',
|
||||||
'@babel/plugin-proposal-class-properties',
|
'@babel/plugin-proposal-class-properties'
|
||||||
],
|
]
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
||||||
// u can change this option to a more specific folder for test single component or util when dev
|
// u can change this option to a more specific folder for test single component or util when dev
|
||||||
// for example, ['<rootDir>/packages/input']
|
// for example, ['<rootDir>/packages/input']
|
||||||
roots: ['<rootDir>'],
|
roots: ['<rootDir>']
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export function debounce (fn, delay) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
export function getNowTime (interval) {
|
export function getNowTime (interval) {
|
||||||
const endTime = window.$dayJs.tz().valueOf();
|
const endTime = window.$dayJs.tz().valueOf()
|
||||||
const startTime = endTime - interval * 60 * 1000
|
const startTime = endTime - interval * 60 * 1000
|
||||||
return {
|
return {
|
||||||
startTime,
|
startTime,
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
v-else-if="isTabs"
|
v-else-if="isTabs"
|
||||||
class="cn-chart cn-chart__tabs"
|
class="cn-chart cn-chart__tabs"
|
||||||
:tabs="chartInfo"
|
:tabs="chartInfo"
|
||||||
|
style="grid-area: 1 / 1 / 2 / 7;"
|
||||||
></chart-tabs>
|
></chart-tabs>
|
||||||
<!-- 地图 -->
|
<!-- 地图 -->
|
||||||
<chart-map
|
<chart-map
|
||||||
@@ -50,7 +51,7 @@
|
|||||||
:type="chartInfo.type"
|
:type="chartInfo.type"
|
||||||
:style="computePosition"
|
:style="computePosition"
|
||||||
>
|
>
|
||||||
<template #title>{{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}</template>
|
<template #title><span title="TCP Connection Establish Time">{{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}</span></template>
|
||||||
<template #data>{{singleValue}}</template>
|
<template #data>{{singleValue}}</template>
|
||||||
</single-value>
|
</single-value>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user