Skip to content

Commit 8bb6192

Browse files
committed
refactor(auto-imports): disable auto imports
1 parent 32badfc commit 8bb6192

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+184
-87
lines changed

app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineAppConfig } from '#imports'
1+
import { defineAppConfig } from 'wxt/utils/define-app-config'
22

33
// Define types for your config
44
declare module 'wxt/utils/define-app-config' {

components/Modal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@
5959
</template>
6060
<script lang="ts">
6161
import { useElementBounding } from '@vueuse/core'
62-
import { reactive } from 'vue'
62+
import { computed, reactive, ref, watch } from 'vue'
6363
64+
import { useInjectContext } from '@/composables/useInjectContext'
6465
import { classNames, ComponentClassAttr } from '@/utils/vue/utils'
6566
6667
const modalStack: { close(): void, canCloseByEsc(): boolean }[] = reactive([])

components/ModelLogo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
</div>
88
</template>
99
<script setup lang="ts">
10+
import { computed } from 'vue'
11+
1012
import LogoCohere from '@/assets/icons/model-logo-cohere.svg?component'
1113
import LogoDeepseek from '@/assets/icons/model-logo-deepseek.svg?component'
1214
import LogoFallback from '@/assets/icons/model-logo-fallback.svg?component'

components/ModelSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</div>
7474
</template>
7575
<script setup lang="ts">
76-
import { toRefs } from 'vue'
76+
import { computed, onMounted, toRefs, watch } from 'vue'
7777
7878
import IconDelete from '@/assets/icons/delete.svg?component'
7979
import ModelLogo from '@/components/ModelLogo.vue'

components/ProgressBar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
</div>
88
</template>
99
<script setup lang="ts">
10+
import { computed } from 'vue'
11+
1012
const props = defineProps<{
1113
progress: number
1214
}>()

components/ScrollContainer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
</template>
4141
<script setup lang="ts">
4242
import { useElementBounding, useScroll } from '@vueuse/core'
43+
import { computed, ref, watch } from 'vue'
4344
4445
import { classNames, ComponentClassAttr } from '@/utils/vue/utils'
4546

components/Selector.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@
9696

9797
<script setup lang="tsx" generic="Id extends string, OptionValue, Option extends { id: Id; value?: OptionValue; label: string | Component, textLabel?: string, disabled?: boolean }">
9898
import { useElementBounding, useEventListener, useVModel } from '@vueuse/core'
99-
import { Component, computed, FunctionalComponent, ref, watch } from 'vue'
99+
import { Component, computed, FunctionalComponent, Ref, ref, watch, watchEffect } from 'vue'
100+
101+
import { useInjectContext } from '@/composables/useInjectContext'
102+
import { useZIndex } from '@/composables/useZIndex'
100103
101104
import ScrollContainer from './ScrollContainer.vue'
102105
import Button from './ui/Button.vue'

components/Switch.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
</template>
6969
<script setup lang="ts" generic="T extends unknown, Key extends string | boolean, Item extends SwitchItem<T, Key>">
7070
import { useElementBounding } from '@vueuse/core'
71-
import type { CSSProperties, UnwrapRef, VNode } from 'vue'
71+
import { computed, type CSSProperties, nextTick, onMounted, reactive, ref, type UnwrapRef, type VNode, watch } from 'vue'
72+
73+
import { debounce } from '@/utils/debounce'
7274
7375
export interface SwitchItem<T = unknown, Key extends string | boolean = string> {
7476
name?: string

components/ToastGroup.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
</div>
2929
</template>
3030
<script setup lang="ts">
31+
import { ref } from 'vue'
32+
3133
import IconClose from '@/assets/icons/close.svg?component'
3234
import IconWarning from '@/assets/icons/warning.svg?component'
3335

components/ui/Button.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
</button>
88
</template>
99
<script setup lang="ts">
10+
import { computed, ref, watch } from 'vue'
11+
1012
import { classNames, ComponentClassAttr } from '@/utils/vue/utils'
1113
1214
const props = withDefaults(defineProps<{

0 commit comments

Comments
 (0)