Skip to content
Open
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
1 change: 1 addition & 0 deletions .eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"ComponentPublicInstance": true,
"ComputedRef": true,
"DEFAULT_USER": true,
"DashboardState": true,
"DirectiveBinding": true,
"DownloadsState": true,
"EffectScope": true,
Expand Down
12 changes: 12 additions & 0 deletions src/stores/migrations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { VOneSuit } from './settings'
import type { DataTableSortItem } from 'vuetify'

export type OldRootState = {
v: 2 | 3 | 4 | 5
Expand Down Expand Up @@ -100,10 +101,15 @@ export interface RootState {
ecosystem: {
bin: {
wordWrap: boolean
dashboard?: DashboardState
}
play: {
showErrors: boolean
wordWrap: boolean
dashboard?: DashboardState
}
studio?: {
dashboard?: DashboardState
}
docs: {
api: 'link-only' | 'inline'
Expand Down Expand Up @@ -153,6 +159,12 @@ export interface RootState {
}
}

export interface DashboardState {
[key: string]: any
sortBy: DataTableSortItem[]
itemsPerPage: number
}

const migrations = [
(d: any) => {
if (!d.v) {
Expand Down
1 change: 1 addition & 0 deletions src/stores/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const DEFAULT_USER: RootState = {
showErrors: true,
wordWrap: false,
},
studio: {},
docs: {
api: 'link-only',
composition: 'composition',
Expand Down