build: split chunks, compress files, and auto import components on demand (#60)

This commit is contained in:
Fine0830
2022-04-11 22:36:16 +08:00
committed by GitHub
parent 1d83e14f22
commit 3b4c3cc4ea
16 changed files with 1014 additions and 48 deletions

View File

@@ -29,6 +29,7 @@ limitations under the License. -->
<div class="mr-10 ml-10">
<span class="grey">{{ t("searchKeyword") }}: </span>
<el-input
size="small"
v-model="keyword"
class="alarm-tool-input"
@change="refreshAlarms({ pageNum: 1 })"

View File

@@ -26,6 +26,7 @@ limitations under the License. -->
</span>
</span>
<el-input
size="small"
v-model="tags"
class="trace-new-tag"
@change="addLabels"

View File

@@ -28,7 +28,7 @@ limitations under the License. -->
</el-button>
</template>
</el-input>
<el-button class="ml-10" size="small" @click="reloadTemplates">
<el-button class="ml-10 reload-btn" size="small" @click="reloadTemplates">
<Icon size="sm" iconName="retry" class="reload" />
{{ t("reloadDashboards") }}
</el-button>
@@ -47,6 +47,7 @@ limitations under the License. -->
:default-sort="{ prop: 'name' }"
@selection-change="handleSelectionChange"
height="637px"
size="small"
>
<el-table-column type="selection" width="55" />
<el-table-column prop="name" label="Name">
@@ -457,4 +458,9 @@ function changePage(pageIndex: number) {
.reload {
margin-right: 3px;
}
.reload-btn {
display: inline-block;
margin-left: 10px;
}
</style>

View File

@@ -57,7 +57,7 @@ limitations under the License. -->
<div class="flex-h row">
<div class="mr-5 traceId" v-show="!isBrowser">
<span class="grey mr-5">{{ t("traceID") }}:</span>
<el-input v-model="traceId" class="inputs-max" />
<el-input v-model="traceId" class="inputs-max" size="small" />
</div>
<ConditionTags :type="'LOG'" @update="updateTags" />
</div>
@@ -75,6 +75,7 @@ limitations under the License. -->
</span>
</span>
<el-input
size="small"
class="inputs-max"
:placeholder="t('addKeywordsOfContent')"
v-model="contentStr"
@@ -97,6 +98,7 @@ limitations under the License. -->
</span>
<el-input
class="inputs-max"
size="small"
:placeholder="t('addExcludingKeywordsOfContent')"
v-model="excludingContentStr"
@change="addLabels('excludingKeywordsOfContent')"

View File

@@ -26,7 +26,7 @@ limitations under the License. -->
</div> -->
<div class="mr-10">
<span class="grey mr-5">{{ t("endpointName") }}:</span>
<el-input v-model="endpointName" class="name" />
<el-input v-model="endpointName" class="name" size="small" />
</div>
<el-button
class="search-btn"

View File

@@ -17,7 +17,7 @@ limitations under the License. -->
<div class="profile-task">
<div>
<div class="label">{{ t("endpointName") }}</div>
<el-input v-model="endpointName" class="profile-input" />
<el-input v-model="endpointName" class="profile-input" size="small" />
</div>
<div>
<div class="label">{{ t("monitorTime") }}</div>
@@ -49,7 +49,12 @@ limitations under the License. -->
</div>
<div>
<div class="label">{{ t("minThreshold") }} (ms)</div>
<el-input-number class="profile-input" :min="0" v-model="minThreshold" />
<el-input-number
size="small"
class="profile-input"
:min="0"
v-model="minThreshold"
/>
</div>
<div>
<div class="label">{{ t("dumpPeriod") }}</div>

View File

@@ -58,7 +58,7 @@ limitations under the License. -->
</div>
<div class="mr-5">
<span class="grey mr-5">{{ t("traceID") }}:</span>
<el-input v-model="traceId" class="traceId" />
<el-input size="small" v-model="traceId" class="traceId" />
</div>
</div>
<div class="flex-h">
@@ -73,9 +73,9 @@ limitations under the License. -->
</div> -->
<div class="mr-5">
<span class="sm b grey mr-5">{{ t("duration") }}:</span>
<el-input class="inputs mr-5" v-model="minTraceDuration" />
<el-input size="small" class="inputs mr-5" v-model="minTraceDuration" />
<span class="grey mr-5">-</span>
<el-input class="inputs" v-model="maxTraceDuration" />
<el-input size="small" class="inputs" v-model="maxTraceDuration" />
</div>
<ConditionTags :type="'TRACE'" @update="updateTags" />
<el-button