mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Cleanup some imports
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
5ed2fae44e
commit
9450f500d6
10 changed files with 11 additions and 15 deletions
|
@ -9,12 +9,12 @@ import {
|
|||
Delete,
|
||||
Get,
|
||||
HttpCode,
|
||||
InternalServerErrorException,
|
||||
NotFoundException,
|
||||
Param,
|
||||
Put,
|
||||
UseGuards,
|
||||
Req,
|
||||
InternalServerErrorException,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import {
|
||||
ApiNoContentResponse,
|
||||
|
|
|
@ -12,6 +12,7 @@ import { UsersService } from '../users/users.service';
|
|||
@Injectable()
|
||||
export class MockAuthGuard {
|
||||
private user: User;
|
||||
|
||||
constructor(private usersService: UsersService) {}
|
||||
|
||||
async canActivate(context: ExecutionContext): Promise<boolean> {
|
||||
|
|
|
@ -7,8 +7,7 @@ import { Inject, Injectable } from '@nestjs/common';
|
|||
import { promises as fs } from 'fs';
|
||||
import { join } from 'path';
|
||||
|
||||
import mediaConfiguration from '../../config/media.config';
|
||||
import { MediaConfig } from '../../config/media.config';
|
||||
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
||||
import { MediaBackendError } from '../../errors/errors';
|
||||
import { ConsoleLoggerService } from '../../logger/console-logger.service';
|
||||
import { MediaBackend } from '../media-backend.interface';
|
||||
|
|
|
@ -7,8 +7,7 @@ import { Inject, Injectable } from '@nestjs/common';
|
|||
import fetch, { Response } from 'node-fetch';
|
||||
import { URLSearchParams } from 'url';
|
||||
|
||||
import mediaConfiguration from '../../config/media.config';
|
||||
import { MediaConfig } from '../../config/media.config';
|
||||
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
||||
import { MediaBackendError } from '../../errors/errors';
|
||||
import { ConsoleLoggerService } from '../../logger/console-logger.service';
|
||||
import { MediaBackend } from '../media-backend.interface';
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { Client } from 'minio';
|
||||
|
||||
import mediaConfiguration from '../../config/media.config';
|
||||
import { MediaConfig } from '../../config/media.config';
|
||||
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
||||
import { MediaBackendError } from '../../errors/errors';
|
||||
import { ConsoleLoggerService } from '../../logger/console-logger.service';
|
||||
import { MediaBackend } from '../media-backend.interface';
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import fetch, { Response } from 'node-fetch';
|
||||
|
||||
import mediaConfiguration from '../../config/media.config';
|
||||
import { MediaConfig } from '../../config/media.config';
|
||||
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
||||
import { MediaBackendError } from '../../errors/errors';
|
||||
import { ConsoleLoggerService } from '../../logger/console-logger.service';
|
||||
import { MediaBackend } from '../media-backend.interface';
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
*/
|
||||
import { forwardRef, Inject, Injectable } from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import base32Encode from 'base32-encode';
|
||||
import { randomBytes } from 'crypto';
|
||||
import { Repository } from 'typeorm';
|
||||
|
||||
import appConfiguration, { AppConfig } from '../config/app.config';
|
||||
|
|
|
@ -7,10 +7,11 @@ import {
|
|||
Column,
|
||||
CreateDateColumn,
|
||||
Entity,
|
||||
JoinTable,
|
||||
ManyToMany,
|
||||
ManyToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from 'typeorm';
|
||||
import { JoinTable, ManyToMany } from 'typeorm';
|
||||
|
||||
import { Note } from '../notes/note.entity';
|
||||
import { Edit } from './edit.entity';
|
||||
|
|
|
@ -10,7 +10,6 @@ import { Repository } from 'typeorm';
|
|||
|
||||
import { AuthToken } from '../auth/auth-token.entity';
|
||||
import { Author } from '../authors/author.entity';
|
||||
import { AuthorsModule } from '../authors/authors.module';
|
||||
import appConfigMock from '../config/mock/app.config.mock';
|
||||
import { NotInDBError } from '../errors/errors';
|
||||
import { Group } from '../groups/group.entity';
|
||||
|
|
|
@ -4,13 +4,14 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import {
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
Entity,
|
||||
ManyToMany,
|
||||
OneToMany,
|
||||
PrimaryGeneratedColumn,
|
||||
UpdateDateColumn,
|
||||
} from 'typeorm';
|
||||
import { Column, OneToMany } from 'typeorm';
|
||||
|
||||
import { AuthToken } from '../auth/auth-token.entity';
|
||||
import { Author } from '../authors/author.entity';
|
||||
|
|
Loading…
Reference in a new issue