Skip to content

Commit

Permalink
chore: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Nov 5, 2024
1 parent 5229b7d commit e4d7608
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions core/client/components/collection/KCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
/>
</div>
</div>
<!--
Expand action
<!--
Expand action
-->
<div v-if="isExpandable" class="row justify-center">
<KAction
Expand Down
2 changes: 1 addition & 1 deletion core/client/components/collection/KCardSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const props = defineProps({
const filteredActions = computed(() => {
if (!props.actionsFilter) return props.actions
let filter = props.actionsFilter
if (_.isString(filter)) filter=[filter]
if (_.isString(filter)) filter = [filter]
return _.filter(props.actions, action => {
return _.indexOf(filter, action.id) >= 0
})
Expand Down
2 changes: 1 addition & 1 deletion core/client/components/collection/KGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<div v-else id="grid-initializing">
<slot name="initializing">
<div class="row justify-center">
<q-spinner
<q-spinner
color="primary"
size="2rem"
/>
Expand Down
8 changes: 4 additions & 4 deletions core/client/components/collection/KTable.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<!-- Content -->
<!-- Content -->
<div v-if="items && items.length > 0">
<q-table
:title="title"
Expand Down Expand Up @@ -53,7 +53,7 @@
</template>
</q-table>
</div>
<!-- Empty slot -->
<!-- Empty slot -->
<div v-else-if="items && items.length === 0"
id="table-empty"
>
Expand All @@ -73,7 +73,7 @@
<div v-else id="grid-initializing">
<slot name="initializing">
<div class="row justify-center">
<q-spinner
<q-spinner
color="primary"
size="2rem"
/>
Expand Down Expand Up @@ -289,4 +289,4 @@ defineExpose({
p {
margin: 0;
}
</style>
</style>
4 changes: 2 additions & 2 deletions core/client/components/collection/KTimeLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</q-timeline>
</div>
<!-- Empty slot -->
<div v-else-if="items && items.length === 0"
<div v-else-if="items && items.length === 0"
id="timeline-content"
>
<slot name="empty">
Expand All @@ -115,7 +115,7 @@
<div v-else id="timeline-initializing">
<slot name="initializing">
<div class="row justify-center">
<q-spinner
<q-spinner
color="primary"
size="4rem"
class="absolute-center"
Expand Down
2 changes: 1 addition & 1 deletion core/client/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const Layout = {
if (layout.header) this.setHeader(layout.header)
if (layout.footer) this.setFooter(layout.footer)
if (layout.page) this.setPage(layout.page)
if (layout.stickies) this.setStickies(layout.stickies)
if (layout.stickies) this.setStickies(layout.stickies)
if (layout.fab) this.setFab(layout.fab)
this.placements.forEach(placement => {
if (_.has(layout, `panes.${placement}`)) this.setPane(placement, _.get(layout, `panes.${placement}`))
Expand Down
4 changes: 2 additions & 2 deletions core/client/units.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const Units = {
if (!definition) {
// Check if that's a mathjs unit ? This will actually enforce a unit to be known by either our systelm or mathjs.
// We'd like to be able to mange unknown unit without braking the system just to perform unit display
//if (math.Unit.isValuelessUnit(unit)) definition = { name: unit, symbol: unit, label: unit }
// if (math.Unit.isValuelessUnit(unit)) definition = { name: unit, symbol: unit, label: unit }
// Create a fake unit definition for unknown units so tht it does not break others methods
definition = { name: unit, symbol: unit, label: unit }
}
Expand Down Expand Up @@ -345,7 +345,7 @@ export const Units = {
convert (value, sourceUnit, targetUnit) {
if (_.isNil(value) || !_.isFinite(value)) return value
if (value === Number.MIN_VALUE || value === Number.MAX_VALUE) return value
let sourceUnitDef = (typeof sourceUnit === 'string') ? this.getUnit(sourceUnit) : sourceUnit
const sourceUnitDef = (typeof sourceUnit === 'string') ? this.getUnit(sourceUnit) : sourceUnit
let targetUnitDef = (typeof targetUnit === 'string') ? this.getUnit(targetUnit) : targetUnit
// If target unit is not given use default one
if (!targetUnitDef && sourceUnitDef) targetUnitDef = this.getDefaultUnit(sourceUnitDef)
Expand Down
8 changes: 4 additions & 4 deletions map/client/components/KAttribution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
self="bottom right"
>
<div
id="attributions-banner"
id="attributions-banner"
class="bg-white text-primary text-center q-col-gutter-y-xs"
>
<!-- Header Content -->
<div v-if="header">
<KContent :content="header" :class="headerClass" />
</div>
<!-- Main Content -->
<div
<div
id="attributions-content"
v-html="sanitizedAttributions"
v-html="sanitizedAttributions"
class="text-caption q-py-none q-px-sm"
/>
<!-- Footer Content -->
Expand Down Expand Up @@ -94,7 +94,7 @@ watch(CurrentActivity, (newActivity, oldActivity) => {
// Functions
function onShowLayer (layer) {
if (layer.attribution) {
if (layer.attribution) {
logger.debug(`[KDK] Add ${layer.name} to attribution`)
_.set(attributions.value, _.kebabCase(layer.name), layer.attribution)
}
Expand Down
4 changes: 2 additions & 2 deletions map/client/components/catalog/KProjectSelector.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div
<div
v-ripple:primary
class="k-project-selector"
>
Expand Down Expand Up @@ -47,4 +47,4 @@ export default {
.k-project-selector:hover {
background-color: #efefef
}
</style>
</style>
4 changes: 2 additions & 2 deletions map/client/components/catalog/KViewSelector.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div
<div
v-ripple:primary
class="k-view-selector"
>
Expand Down Expand Up @@ -55,4 +55,4 @@ export default {
.k-view-selector:hover {
background-color: #efefef
}
</style>
</style>
16 changes: 8 additions & 8 deletions map/client/components/location/KLocationTimeLineCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
<div class="full-width ellipsis text-caption k-location-map-caption">
{{ item.location.properties.name }}
</div>
<KPanel
:content="locationActions"
class="k-location-actions"
<KPanel
:content="locationActions"
class="k-location-actions"
/>
</div>
<div v-else class="fit column k-location-map relative-position">
Expand All @@ -58,7 +58,7 @@
text="KLocationCardSection.NO_LOCATION"
/>
</div>
<KPanel
<KPanel
:content="locationActions"
class="k-location-actions"
/>
Expand Down Expand Up @@ -138,10 +138,10 @@ export default {
}
.k-location-actions {
position: absolute;
top: 2px;
right: 2px;
background-color: #ffffffaa;
top: 2px;
right: 2px;
background-color: #ffffffaa;
border-radius: 10px;
z-index: 401;
z-index: 401;
}
</style>

0 comments on commit e4d7608

Please sign in to comment.