Skip to content

Commit 67078d7

Browse files
committed
chore: cleanup
1 parent 346c314 commit 67078d7

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/App.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,12 @@ const refreshPreview = () => {
6666
replRef.value?.reload()
6767
}
6868
69-
const resetFiles = () => {
70-
store.resetFiles()
71-
}
72-
7369
watch(autoSave, setAutoSaveState)
7470
</script>
7571

7672
<template>
7773
<div v-if="!loading" antialiased>
78-
<Header :store="store" @refresh="refreshPreview" @reset="resetFiles" />
74+
<Header :store="store" @refresh="refreshPreview" />
7975
<Repl
8076
ref="replRef"
8177
v-model="autoSave"

src/auto-imports.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// @ts-nocheck
44
// noinspection JSUnusedGlobalSymbols
55
// Generated by unplugin-auto-import
6+
// biome-ignore lint: disable
67
export {}
78
declare global {
89
const EffectScope: typeof import('vue')['EffectScope']
@@ -25,6 +26,7 @@ declare global {
2526
const createGlobalState: typeof import('@vueuse/core')['createGlobalState']
2627
const createInjectionState: typeof import('@vueuse/core')['createInjectionState']
2728
const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']
29+
const createRef: typeof import('@vueuse/core')['createRef']
2830
const createReusableTemplate: typeof import('@vueuse/core')['createReusableTemplate']
2931
const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']
3032
const createTemplatePromise: typeof import('@vueuse/core')['createTemplatePromise']
@@ -296,6 +298,9 @@ declare global {
296298
// for type re-export
297299
declare global {
298300
// @ts-ignore
299-
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
301+
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
300302
import('vue')
303+
// @ts-ignore
304+
export type { Initial, VersionKey, Versions, UserOptions, SerializeState, Store } from './composables/store'
305+
import('./composables/store')
301306
}

src/components.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// @ts-nocheck
33
// Generated by unplugin-vue-components
44
// Read more: https://github.com/vuejs/core/pull/3399
5+
// biome-ignore lint: disable
56
export {}
67

78
/* prettier-ignore */
@@ -20,7 +21,7 @@ declare module 'vue' {
2021
Header: typeof import('./components/Header.vue')['default']
2122
Settings: typeof import('./components/Settings.vue')['default']
2223
}
23-
export interface ComponentCustomProperties {
24+
export interface GlobalDirectives {
2425
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
2526
}
2627
}

src/components/Header.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function refreshView() {
6969
}
7070
function resetFiles() {
7171
showReset.value = false
72-
emit('reset')
72+
store.resetFiles()
7373
}
7474
</script>
7575

@@ -166,7 +166,7 @@ function resetFiles() {
166166
flex
167167
self-end
168168
size="small"
169-
type="primary"
169+
plain
170170
@click="resetFiles"
171171
>
172172
Yes

0 commit comments

Comments
 (0)