feat: improve models
This commit is contained in:

committed by
Gitea

parent
61427987c2
commit
1a11b43ca8
@ -1,5 +1,6 @@
|
||||
import AttachmentModel, { type IAttachment } from '@/models/attachment'
|
||||
import type {IFile} from '@/models/file'
|
||||
import AttachmentModel from '@/models/attachment'
|
||||
import type {IAttachment} from '@/modelTypes/IAttachment'
|
||||
import type {IFile} from '@/modelTypes/IFile'
|
||||
|
||||
import AttachmentService from '@/services/attachment'
|
||||
import { store } from '@/store'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {i18n} from '@/i18n'
|
||||
import type { IList } from '@/models/list'
|
||||
import type {IList} from '@/modelTypes/IList'
|
||||
|
||||
export function getListTitle(l: IList) {
|
||||
if (l.id === -1) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {i18n} from '@/i18n'
|
||||
import type {INamespace} from '@/models/namespace'
|
||||
import type {INamespace} from '@/modelTypes/INamespace'
|
||||
|
||||
export const getNamespaceTitle = (n: INamespace) => {
|
||||
if (n.id === -1) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {createNewIndexer} from '../indexes'
|
||||
|
||||
import type {LabelState} from '@/store/types'
|
||||
import type {ILabel} from '@/models/label'
|
||||
import type {ILabel} from '@/modelTypes/ILabel'
|
||||
|
||||
const {search} = createNewIndexer('labels', ['title', 'description'])
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type {IList} from '@/models/list'
|
||||
import type {IList} from '@/modelTypes/IList'
|
||||
|
||||
const key = 'collapsedBuckets'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type {IList} from '@/models/list'
|
||||
import type {IList} from '@/modelTypes/IList'
|
||||
|
||||
export function getSavedFilterIdFromListId(listId: IList['id']) {
|
||||
let filterId = listId * -1 - 1
|
||||
|
Reference in New Issue
Block a user