refactor: clean imports
This commit is contained in:
		
							parent
							
								
									d066319b45
								
							
						
					
					
						commit
						724e142222
					
				| @ -1,14 +1,9 @@ | ||||
| <script setup lang="ts"> | ||||
| import { RouterView } from 'vue-router' | ||||
| import { layouts } from './layouts'; | ||||
| import { computed } from 'vue'; | ||||
| import { useRoute } from 'vue-router' | ||||
| import { useRoute, RouterView } from 'vue-router' | ||||
| import { darkThemeOverrides, lightThemeOverrides } from './themes' | ||||
| import { | ||||
|   darkTheme, | ||||
|   NConfigProvider, | ||||
|   NGlobalStyle, | ||||
| } from 'naive-ui' | ||||
| import { darkTheme, NGlobalStyle, NMessageProvider } from 'naive-ui' | ||||
| import { useStyleStore } from './stores/style.store'; | ||||
| 
 | ||||
| const route = useRoute(); | ||||
|  | ||||
| @ -18,10 +18,8 @@ | ||||
| </template> | ||||
| 
 | ||||
| <script setup lang="ts"> | ||||
| import { useVModel } from '@vueuse/core' | ||||
| import { useVModel, useClipboard } from '@vueuse/core' | ||||
| import { ContentCopyFilled } from '@vicons/material' | ||||
| 
 | ||||
| import { useClipboard } from '@vueuse/core'; | ||||
| import { ref } from 'vue'; | ||||
| 
 | ||||
| const props = defineProps<{ value: string, }>() | ||||
|  | ||||
| @ -27,8 +27,7 @@ | ||||
| 
 | ||||
| <script setup lang="ts"> | ||||
| import { useStyleStore } from '@/stores/style.store'; | ||||
| import { toRefs } from 'vue'; | ||||
| import { computed } from 'vue'; | ||||
| import { toRefs, computed } from 'vue'; | ||||
| 
 | ||||
| const styleStore = useStyleStore() | ||||
| const { isMenuCollapsed, isSmallScreen } = toRefs(styleStore) | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| <script lang="ts" setup> | ||||
| import { NIcon } from 'naive-ui'; | ||||
| import { NIcon, useThemeVars } from 'naive-ui'; | ||||
| import { h, ref, type Component } from 'vue'; | ||||
| import { RouterLink, useRoute } from 'vue-router'; | ||||
| import { Heart, Menu2, Home2 } from '@vicons/tabler' | ||||
| @ -7,7 +7,6 @@ import { toolsByCategory } from '@/tools'; | ||||
| import SearchBar from '../components/SearchBar.vue'; | ||||
| import { useStyleStore } from '@/stores/style.store'; | ||||
| import HeroGradient from '../assets/hero-gradient.svg?component' | ||||
| import { useThemeVars } from 'naive-ui' | ||||
| import MenuLayout from '../components/MenuLayout.vue' | ||||
| import NavbarButtons from '../components/NavbarButtons.vue' | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user