2019-03-14 12:48:43 +00:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<tr class="container">
|
2019-05-16 11:43:46 +01:00
|
|
|
<td class="container__item">{{ bucket.bucketName }}</td>
|
|
|
|
<td class="container__item">{{ storage }}</td>
|
|
|
|
<td class="container__item">{{ egress }}</td>
|
|
|
|
<td class="container__item">{{ objectCount }}</td>
|
2019-03-14 12:48:43 +00:00
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
2019-05-16 11:43:46 +01:00
|
|
|
@Component({
|
|
|
|
props: {
|
|
|
|
bucket: Object
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
storage: function (): string {
|
|
|
|
return (this as any).bucket.storage.toFixed(4);
|
|
|
|
},
|
|
|
|
egress: function (): string {
|
|
|
|
return (this as any).bucket.egress.toFixed(4);
|
|
|
|
},
|
|
|
|
objectCount: function (): string {
|
2019-06-03 13:54:06 +01:00
|
|
|
return (this as any).bucket.objectCount.toString();
|
2019-05-16 11:43:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2019-03-14 12:48:43 +00:00
|
|
|
|
|
|
|
export default class BucketItem extends Vue {}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.container {
|
|
|
|
transition: box-shadow .2s ease-out;
|
|
|
|
padding: 35px 0px 35px 70px;
|
|
|
|
transition: all .2s ease;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
border-radius: 6px;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: #fff;
|
|
|
|
box-shadow: 0px 4px 4px rgba(231, 232, 238, 0.6);
|
|
|
|
}
|
|
|
|
&__item {
|
|
|
|
width: 20%;
|
|
|
|
height: 80px;
|
|
|
|
padding-left: 30px;
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: 'font_medium';
|
2019-03-14 12:48:43 +00:00
|
|
|
font-size: 16px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 1600px) {
|
|
|
|
.container {
|
|
|
|
grid-template-columns: 2% 20% 30% 20% 15% 13%;
|
|
|
|
padding: 20px 0px 20px 70px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|