ordered imports

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-18 19:10:17 +02:00 committed by David Mehren
parent ba6055a03d
commit e015234aaf
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -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 compression from 'compression'
import session from 'express-session' import flash from 'connect-flash'
// eslint-disable-next-line @typescript-eslint/camelcase // eslint-disable-next-line @typescript-eslint/camelcase
import connect_session_sequelize from 'connect-session-sequelize' import connect_session_sequelize from 'connect-session-sequelize'
import fs from 'fs' import cookieParser from 'cookie-parser'
import path from 'path' import ejs from 'ejs'
import morgan from 'morgan' import express from 'express'
import passportSocketIo from 'passport.socketio' import session from 'express-session'
import helmet from 'helmet' 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 http from 'http'
import https from 'https' 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 SocketIO from 'socket.io'
import WebSocket from 'ws' 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' import { tooBusy, checkURI, redirectWithoutTrailingSlashes, codiMDVersion } from './web/middleware'
const SequelizeStore = connect_session_sequelize(session.Store) const SequelizeStore = connect_session_sequelize(session.Store)