mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 03:58:02 -05:00
Move src/lib/utils.ts to src/lib/utils/functions.ts
We probably don't want a utils directory and a utils file. Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
20fbb39b3e
commit
e05191eeed
6 changed files with 9 additions and 9 deletions
|
@ -25,7 +25,7 @@ import { errors } from './errors'
|
|||
import { logger } from './logger'
|
||||
import { Revision, sequelize } from './models'
|
||||
import { realtime } from './realtime'
|
||||
import { handleTermSignals } from './utils'
|
||||
import { handleTermSignals } from './utils/functions'
|
||||
import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
|
||||
import { tooBusy, checkURI, redirectWithoutTrailingSlashes, codiMDVersion } from './web/middleware'
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import S from 'string'
|
|||
import { config } from '../config'
|
||||
import { logger } from '../logger'
|
||||
import ot from '../ot'
|
||||
import { processData, stripNullByte } from '../utils'
|
||||
import { processData, stripNullByte } from '../utils/functions'
|
||||
import { Author, Revision, User } from './index'
|
||||
|
||||
const md = markdownIt()
|
||||
|
|
|
@ -4,7 +4,7 @@ import Sequelize from 'sequelize'
|
|||
import { BelongsTo, Column, DataType, Default, ForeignKey, Model, PrimaryKey, Table } from 'sequelize-typescript'
|
||||
// core
|
||||
import { logger } from '../logger'
|
||||
import { processData, stripNullByte } from '../utils'
|
||||
import { processData, stripNullByte } from '../utils/functions'
|
||||
import { Note } from './note'
|
||||
import async = require('async')
|
||||
import childProcess = require('child_process')
|
||||
|
|
|
@ -13,7 +13,7 @@ import { Author, Note, Revision, User } from './models'
|
|||
import { NoteAuthorship } from './models/note'
|
||||
import { PhotoProfile } from './utils/PhotoProfile'
|
||||
import { EditorSocketIOServer } from './ot/editor-socketio-server'
|
||||
import { mapToObject } from './utils'
|
||||
import { mapToObject } from './utils/functions'
|
||||
|
||||
export type SocketWithNoteId = Socket & { noteId: string }
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import fs from 'fs'
|
||||
import { config } from './config'
|
||||
import { logger } from './logger'
|
||||
import { Revision } from './models'
|
||||
import { realtime } from './realtime'
|
||||
import { config } from '../config'
|
||||
import { logger } from '../logger'
|
||||
import { Revision } from '../models'
|
||||
import { realtime } from '../realtime'
|
||||
|
||||
/*
|
||||
Converts a map from string to something into a plain JS object for transmitting via a websocket
|
|
@ -3,7 +3,7 @@ import fs from 'fs'
|
|||
import { Client } from 'minio'
|
||||
|
||||
import { config } from '../../config'
|
||||
import { getImageMimeType } from '../../utils'
|
||||
import { getImageMimeType } from '../../utils/functions'
|
||||
import { logger } from '../../logger'
|
||||
import { UploadProvider } from './index'
|
||||
|
||||
|
|
Loading…
Reference in a new issue