Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiya10 committed Feb 5, 2024
1 parent 846f584 commit 5f5eaa7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/components/component/CircleMarker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,29 +81,29 @@ svg.circle(v-if="type != 'p'", ref="backgroundTemplate", xmlns="http://www.w3.or
stroke-width: 2px;
}
&.wave-p>.stroke {
&.wave-p > .stroke {
fill: transparent;
stroke: #6bf;
}
&.wave-s:not(.alert) {
>.stroke {
> .stroke {
fill: transparent;
stroke: #ffa500;
}
>.background {
> .background {
fill: url(#warn-gradient);
}
}
&.wave-s.alert {
>.stroke {
> .stroke {
fill: transparent;
stroke: #f22;
}
>.background {
> .background {
fill: url(#alert-gradient);
}
}
Expand Down
7 changes: 0 additions & 7 deletions src/components/component/MapRtsMarker.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { onMounted, onUnmounted, onUpdated } from "vue";
import type { Ref } from "vue";
import maplibregl from "maplibre-gl";
Expand All @@ -11,12 +10,6 @@ defineProps<{
stations: Ref<Record<string, Station>>;
rts: Ref<Rts>;
}>();
onMounted(() => {});
onUpdated(() => {});
onUnmounted(() => {});
</script>

<template lang="pug">
Expand Down
1 change: 0 additions & 1 deletion src/components/component/RtsBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ onUpdated(() => {
});
onUnmounted(() => {
console.log("unmount", { box: props.box, int: props.int });
props.map.removeFeatureState({ source: "box", id: props.box }, "int");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/components/view/MapView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ onMounted(() => {
});
onUnmounted(() => {
map.value?.remove();
if (map.value) map.value.remove();
});
</script>

Expand Down

0 comments on commit 5f5eaa7

Please sign in to comment.