mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
(nextjs) added eslint and import sorting
This commit is contained in:
parent
e5f8d5a551
commit
0838bf7ee6
330 changed files with 1576 additions and 896 deletions
|
@ -1,7 +1,8 @@
|
|||
import { IUser } from '~/types/auth';
|
||||
import { EMPTY_USER } from '~/constants/auth';
|
||||
import { makeAutoObservable } from 'mobx';
|
||||
import { isHydrated, makePersistable } from 'mobx-persist-store';
|
||||
|
||||
import { EMPTY_USER } from '~/constants/auth';
|
||||
import { IUser } from '~/types/auth';
|
||||
import { CONFIG } from '~/utils/config';
|
||||
|
||||
export class AuthStore {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { makeAutoObservable } from 'mobx';
|
||||
|
||||
import { IFlowNode } from '~/types';
|
||||
|
||||
export class FlowStore {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
import { makeAutoObservable } from 'mobx';
|
||||
import { FlowStore } from '~/store/flow/FlowStore';
|
||||
import { ModalStore } from '~/store/modal/ModalStore';
|
||||
import { LabStore } from '~/store/lab/LabStore';
|
||||
import { AuthStore } from '~/store/auth/AuthStore';
|
||||
import { enableStaticRendering } from 'mobx-react-lite';
|
||||
|
||||
import { AuthStore } from '~/store/auth/AuthStore';
|
||||
import { FlowStore } from '~/store/flow/FlowStore';
|
||||
import { LabStore } from '~/store/lab/LabStore';
|
||||
import { ModalStore } from '~/store/modal/ModalStore';
|
||||
|
||||
export class Store {
|
||||
flow = new FlowStore();
|
||||
modal = new ModalStore();
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { makeAutoObservable } from 'mobx';
|
||||
|
||||
import { IFlowNode, ITag } from '~/types';
|
||||
import { ILabNode } from '~/types/lab';
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { autorun, makeAutoObservable, runInAction } from 'mobx';
|
||||
import { keys, values, without } from 'ramda';
|
||||
|
||||
import { EmbedMetadata } from '~/types/metadata';
|
||||
|
||||
const MAX_QUEUE_SIZE = 25;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { makeAutoObservable } from 'mobx';
|
||||
|
||||
import { Dialog } from '~/constants/modal';
|
||||
import { DialogContentProps } from '~/hooks/modal/useModal';
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { makeAutoObservable, runInAction } from 'mobx';
|
||||
import { has, omit, values } from 'ramda';
|
||||
|
||||
import { ERROR_LITERAL, ERRORS } from '~/constants/errors';
|
||||
import { UploadType } from '~/constants/uploads';
|
||||
import { IFile, UUID } from '~/types';
|
||||
import { getFileType, uploadGetThumb } from '~/utils/uploader';
|
||||
import { has, omit, values } from 'ramda';
|
||||
import { UploadType } from '~/constants/uploads';
|
||||
import { ERROR_LITERAL, ERRORS } from '~/constants/errors';
|
||||
|
||||
export interface UploadStatus {
|
||||
id: UUID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue