refactor: use path alias
This commit is contained in:
parent
92c3162506
commit
33676eba51
|
@ -2,7 +2,7 @@ import { Entity, Index, JoinColumn, Column, ManyToOne, PrimaryColumn } from 'typ
|
||||||
import { Note } from './note';
|
import { Note } from './note';
|
||||||
import { User } from './user';
|
import { User } from './user';
|
||||||
import { id } from '../id';
|
import { id } from '../id';
|
||||||
import { mutedNoteReasons } from '../../types';
|
import { mutedNoteReasons } from '@/types';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
@Index(['noteId', 'userId'], { unique: true })
|
@Index(['noteId', 'userId'], { unique: true })
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typ
|
||||||
import { User } from './user';
|
import { User } from './user';
|
||||||
import { DriveFile } from './drive-file';
|
import { DriveFile } from './drive-file';
|
||||||
import { id } from '../id';
|
import { id } from '../id';
|
||||||
import { noteVisibilities } from '../../types';
|
import { noteVisibilities } from '@/types';
|
||||||
import { Channel } from './channel';
|
import { Channel } from './channel';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, OneToOne } from 'type
|
||||||
import { id } from '../id';
|
import { id } from '../id';
|
||||||
import { Note } from './note';
|
import { Note } from './note';
|
||||||
import { User } from './user';
|
import { User } from './user';
|
||||||
import { noteVisibilities } from '../../types';
|
import { noteVisibilities } from '@/types';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
export class Poll {
|
export class Poll {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { Users, DriveFiles, Notes, Channels, Blockings } from '@/models/index';
|
||||||
import { DriveFile } from '@/models/entities/drive-file';
|
import { DriveFile } from '@/models/entities/drive-file';
|
||||||
import { Note } from '@/models/entities/note';
|
import { Note } from '@/models/entities/note';
|
||||||
import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits';
|
import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits';
|
||||||
import { noteVisibilities } from '../../../../types';
|
import { noteVisibilities } from '@/types';
|
||||||
import { Channel } from '@/models/entities/channel';
|
import { Channel } from '@/models/entities/channel';
|
||||||
|
|
||||||
let maxNoteTextLength = 500;
|
let maxNoteTextLength = 500;
|
||||||
|
|
Loading…
Reference in New Issue