Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-clocks-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"enspire": patch
---

Navbar bugfix
10 changes: 9 additions & 1 deletion app/components/custom/sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ const sidebarData = ref({
? [
{
title: '社团文件',
url: '/forms/files',
url: '#',
icon: 'lucide:file-text',
isActive: true,
items: [
{
title: '社团文件',
url: '/forms/files',
},
],
},
{
title: '活动记录',
Expand Down
7 changes: 0 additions & 7 deletions app/pages/forms/files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ import { v4 as uuidv4 } from 'uuid'
import { useForm } from 'vee-validate'
import * as z from 'zod'

// ZOD!
const formSchema = toTypedSchema(z.object({
file: z
.instanceof(FileList)
.refine(file => file?.length === 1, 'File is required.'),
}))

definePageMeta({
middleware: ['auth'],
})
Expand Down
Loading