Skip to content

Commit

Permalink
fix(ui): wwebpack dashboard performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 13, 2018
1 parent f486d7e commit 9f5dda4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions packages/@vue/cli-ui-addon-webpack/src/components/AssetListItem.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<template>
<template functional>
<div
:class="{
big: asset.big,
secondary: asset.secondary
big: props.asset.big,
secondary: props.asset.secondary
}"
class="asset-list-item"
>
<div class="content">
<div class="info name">{{ asset.name }}</div>
<div class="info size">{{ asset.size | size('B') }}</div>
<div class="info speed global">{{ asset.speeds.global.totalDownloadTime | round(100) }}s</div>
<div class="info speed 3gs">{{ asset.speeds['3gs'].totalDownloadTime | round(100) }}s</div>
<div class="info speed 3gf">{{ asset.speeds['3gf'].totalDownloadTime | round(100) }}s</div>
<div class="info name">{{ props.asset.name }}</div>
<div class="info size">{{ props.asset.size | size('B') }}</div>
<div class="info speed global">{{ props.asset.speeds.global.totalDownloadTime | round(100) }}s</div>
<div class="info speed 3gs">{{ props.asset.speeds['3gs'].totalDownloadTime | round(100) }}s</div>
<div class="info speed 3gf">{{ props.asset.speeds['3gf'].totalDownloadTime | round(100) }}s</div>
<div class="info warning">
<VueIcon
v-if="!asset.secondary && asset.big"
v-if="!props.asset.secondary && props.asset.big"
icon="warning"
class="icon"
v-tooltip="$t('vue-webpack.dashboard.asset-list.size-warning')"
v-tooltip="parent.$t('vue-webpack.dashboard.asset-list.size-warning')"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<template functional>
<div class="module-list-item">
<div class="content">
<div class="info name">{{ module.name }}</div>
<div class="info size">{{ module.size | size('B') }}</div>
<div class="info name">{{ props.module.name }}</div>
<div class="info size">{{ props.module.size | size('B') }}</div>
<div class="info">
<VueLoadingBar :value="module.ratio" class="primary"/>
<VueLoadingBar :value="props.module.ratio" class="primary"/>
</div>
</div>
</div>
Expand Down

0 comments on commit 9f5dda4

Please sign in to comment.