-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whitelist usage rationalization (#1234)
* refactoring whitelist usage; fix explore demeter colums * add DataRowSkeleton component * fix price alert price change
- Loading branch information
1 parent
c94ef69
commit 78f09f1
Showing
19 changed files
with
202 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<s-skeleton :loading="loading" animated> | ||
<template #template> | ||
<div class="data-row-skeleton"> | ||
<s-skeleton-item v-if="rect" element="rect" /> | ||
<s-skeleton-item v-if="circle" element="circle" /> | ||
</div> | ||
</template> | ||
<slot /> | ||
</s-skeleton> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { SSkeleton, SSkeletonItem } from '@soramitsu/soramitsu-js-ui/lib/components/Skeleton'; | ||
import { Component, Prop, Vue } from 'vue-property-decorator'; | ||
@Component({ | ||
components: { | ||
SSkeleton, | ||
SSkeletonItem, | ||
}, | ||
}) | ||
export default class DataRowSkeleton extends Vue { | ||
@Prop({ default: true, type: Boolean }) readonly loading!: boolean; | ||
@Prop({ default: false, type: Boolean }) readonly rect!: boolean; | ||
@Prop({ default: false, type: Boolean }) readonly circle!: boolean; | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
$size: 20px; | ||
.data-row-skeleton { | ||
display: flex; | ||
align-items: center; | ||
gap: $inner-spacing-tiny; | ||
& > .el-skeleton__item { | ||
&:not(:last-child) { | ||
margin: 0; | ||
} | ||
&.el-skeleton__rect { | ||
height: $size; | ||
} | ||
&.el-skeleton__circle { | ||
flex-shrink: 0; | ||
height: $size; | ||
width: $size; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.