mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05:00
ordered imports
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
ba6055a03d
commit
e015234aaf
1 changed files with 19 additions and 21 deletions
40
lib/app.ts
40
lib/app.ts
|
@ -1,33 +1,31 @@
|
|||
import express from 'express'
|
||||
import ejs from 'ejs'
|
||||
import passport from 'passport'
|
||||
import methodOverride from 'method-override'
|
||||
import cookieParser from 'cookie-parser'
|
||||
import compression from 'compression'
|
||||
import session from 'express-session'
|
||||
import flash from 'connect-flash'
|
||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
||||
import connect_session_sequelize from 'connect-session-sequelize'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import morgan from 'morgan'
|
||||
import passportSocketIo from 'passport.socketio'
|
||||
import cookieParser from 'cookie-parser'
|
||||
import ejs from 'ejs'
|
||||
import express from 'express'
|
||||
import session from 'express-session'
|
||||
import helmet from 'helmet'
|
||||
import i18n from 'i18n'
|
||||
import flash from 'connect-flash'
|
||||
|
||||
import { Revision, sequelize } from './models'
|
||||
import { config } from './config'
|
||||
import { logger } from './logger'
|
||||
import { errors } from './errors'
|
||||
import { addNonceToLocals, computeDirectives } from './csp'
|
||||
import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
|
||||
import http from 'http'
|
||||
import https from 'https'
|
||||
import i18n from 'i18n'
|
||||
import fs from 'fs'
|
||||
import methodOverride from 'method-override'
|
||||
import morgan from 'morgan'
|
||||
import passport from 'passport'
|
||||
import passportSocketIo from 'passport.socketio'
|
||||
import path from 'path'
|
||||
import SocketIO from 'socket.io'
|
||||
import WebSocket from 'ws'
|
||||
// others
|
||||
import { realtime } from './realtime'
|
||||
|
||||
import { config } from './config'
|
||||
import { addNonceToLocals, computeDirectives } from './csp'
|
||||
import { errors } from './errors'
|
||||
import { logger } from './logger'
|
||||
import { Revision, sequelize } from './models'
|
||||
import { realtime } from './realtime'
|
||||
import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
|
||||
import { tooBusy, checkURI, redirectWithoutTrailingSlashes, codiMDVersion } from './web/middleware'
|
||||
|
||||
const SequelizeStore = connect_session_sequelize(session.Store)
|
||||
|
|
Loading…
Reference in a new issue