File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
app/src/components/page/editor/vault Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1616<script setup lang="ts">
1717import { useAuthStore } from ' @/store/auth' ;
1818import { useBackend } from ' @/use/backend' ;
19+ import type { AuthItem } from ' better-write-types' ;
1920import { ref } from ' vue' ;
2021import { useI18n } from ' vue-i18n' ;
2122
@@ -25,7 +26,7 @@ const backend = useBackend()
2526const { t } = useI18n ()
2627
2728// TODO: Backend here
28- const projects = ref <any []>([{
29+ const projects = ref <AuthItem []>([{
2930 title: ' A Test' ,
3031 // Maybe background
3132 background: ' base64' ,
Original file line number Diff line number Diff line change @@ -6,4 +6,10 @@ export interface AuthState {
66 account : {
77 project_id_activity : Maybe < number > ,
88 } ,
9+ }
10+
11+ export interface AuthItem {
12+ title : string ,
13+ size : string ,
14+ level : number
915}
You can’t perform that action at this time.
0 commit comments