mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
refactor: rewrite session store using pinia and fix start button
This commit is contained in:
1 parent
78b9529699
commit
7cdc542c19
13 files changed
+171
-192
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const passwordPolicy = {
|
||||
minLength: 8,
|
||||
minNumbers: 1,
|
||||
@@ -6,6 +8,11 @@ export const passwordPolicy = {
|
||||
minSymbols: 0,
|
||||
}
|
||||
|
||||
export default {
|
||||
passwordPolicy,
|
||||
}
|
||||
export const getSessionsRequestSchema = z.object({
|
||||
questId: z.string().optional(),
|
||||
status: z.enum(['active', 'inactive', 'finished']).optional(),
|
||||
limit: z.coerce.number().optional(),
|
||||
order: z.enum(['asc', 'desc']).optional(),
|
||||
})
|
||||
|
||||
export type GetSessionsRequest = z.infer<typeof getSessionsRequestSchema>
|
||||
@@ -10,5 +10,8 @@
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "^3.23.8"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user