From c1b972415d472a6ca557decc371a33946f99d8c7 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 22 Aug 2024 18:07:03 +0200 Subject: [PATCH] feat: add fonts --- .gitignore | 2 ++ src/client/components/ModuleList.vue | 20 ++++++++---- src/client/components/NavBar.vue | 2 +- src/client/components/PluginName.vue | 48 ++++++++++++++++++---------- src/client/pages/index/module.vue | 2 +- src/client/vite.config.ts | 6 ++-- uno.config.ts | 24 +++++++------- 7 files changed, 66 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index bf51621..a642117 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,5 @@ dist .idea .vite-inspect + +public/assets/fonts diff --git a/src/client/components/ModuleList.vue b/src/client/components/ModuleList.vue index b009dfe..7338740 100644 --- a/src/client/components/ModuleList.vue +++ b/src/client/components/ModuleList.vue @@ -3,11 +3,13 @@ import type { ModuleInfo } from '../../types' import { listMode, searchText } from '../logic' const props = defineProps<{ - modules: ModuleInfo[] + modules: readonly ModuleInfo[] }>() +const route = useRoute() + const { list, containerProps, wrapperProps } = useVirtualList( - toRef(props, 'modules'), + toRef(props, 'modules') as Ref, { itemHeight: listMode.value === 'detailed' ? 53 : 37, }, @@ -32,8 +34,14 @@ const { list, containerProps, wrapperProps } = useVirtualList(
@@ -44,8 +52,8 @@ const { list, containerProps, wrapperProps } = useVirtualList( :key="i" > | - - + +