Skip to content

Commit

Permalink
style: fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Sep 27, 2024
1 parent cf7ccee commit 65ee3f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/client/components/collection/KTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function onRequest (props) {
const geoJson = (_.get(items.value, '[0].type') === 'Feature')
currentPage.value = page
if (pagination.value.descending !== descending || pagination.value.sortBy !== sortBy) {
sortBy === null? tableQuery.value.$sort = { _id: 1 } : tableQuery.value.$sort = { [geoJson ? `properties.${sortBy}` : sortBy]: (descending ? -1 : 1) }
sortBy === null ? tableQuery.value.$sort = { _id: 1 } : tableQuery.value.$sort = { [geoJson ? `properties.${sortBy}` : sortBy]: (descending ? -1 : 1) }
options.filterQuery.value = Object.assign({}, props.filterQuery, tableQuery.value)
} else {
refreshCollection()
Expand Down Expand Up @@ -263,4 +263,4 @@ defineExpose({
refreshCollection,
resetCollection
})
</script>
</script>
7 changes: 3 additions & 4 deletions core/client/components/media/KRibbon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
</template>

<script setup>
import _ from 'lodash'
import { computed } from 'vue'
import { getHtmlColor } from '../../utils/utils.colors.js'
const width = 500
Expand Down Expand Up @@ -56,8 +55,8 @@ const computedTextColor = computed(() => {
})
const translation = computed(() => {
if (props.position === 'top-left') return `${props.offset - (width / 2)}px, ${props.offset - (props.size / 2)}px`
if (props.position === 'top-right') return `${(width / 2) - props.offset }px, ${props.offset - (props.size / 2)}px`
if (props.position === 'bottom-right') return `${(width / 2) - props.offset }px, ${(props.size / 2) - props.offset}px`
if (props.position === 'top-right') return `${(width / 2) - props.offset}px, ${props.offset - (props.size / 2)}px`
if (props.position === 'bottom-right') return `${(width / 2) - props.offset}px, ${(props.size / 2) - props.offset}px`
if (props.position === 'bottom-left') return `${props.offset - (width / 2)}px, ${(props.size / 2) - props.offset}px`
})
const rotation = computed(() => {
Expand All @@ -73,7 +72,7 @@ const rotation = computed(() => {
display: flex;
justify-content: center;
align-items: center;
transform: translate(v-bind(translation)) rotate(v-bind(rotation));
transform: translate(v-bind(translation)) rotate(v-bind(rotation));
background-color: v-bind(computedColor);
color: v-bind(computedTextColor);
}
Expand Down

0 comments on commit 65ee3f4

Please sign in to comment.