chore: dead code elimination
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import AppCounter from "@/components/AppCounter.vue";
|
|
||||||
import { extractData } from "@/utils/data";
|
import { extractData } from "@/utils/data";
|
||||||
import { generateIcsCalendar } from "ts-ics";
|
import { generateIcsCalendar } from "ts-ics";
|
||||||
|
|
||||||
@@ -32,10 +31,6 @@ const downloadCalendar = async () => {
|
|||||||
<div class="query-section">
|
<div class="query-section">
|
||||||
<button @click="downloadCalendar">Download calendar</button>
|
<button @click="downloadCalendar">Download calendar</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
<AppCounter />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import { useCounterStore } from "@/stores/counter";
|
|
||||||
|
|
||||||
const counter = useCounterStore();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<button @click="counter.increment">Count: {{ counter.count }}</button>
|
|
||||||
</template>
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
import { ref } from "vue";
|
|
||||||
import { defineStore } from "pinia";
|
|
||||||
|
|
||||||
export const useCounterStore = defineStore("counter", () => {
|
|
||||||
const count = ref(0);
|
|
||||||
|
|
||||||
const increment = () => {
|
|
||||||
count.value += 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
return { count, increment };
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user