Move old backend code to old_src folder

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-07-24 21:06:55 +02:00
parent c42d2223e8
commit 7b9f9a487b
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
97 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
src/lib/ot old_src/lib/ot
src/lib/migrations old_src/lib/migrations
public/vendor public/vendor
public/build public/build
node_modules node_modules

View file

@ -27,7 +27,7 @@ import { logger } from './logger'
import { Revision, sequelize, runMigrations } from './models' import { Revision, sequelize, runMigrations } from './models'
import { realtime, State } from './realtime' import { realtime, State } from './realtime'
import { handleTermSignals } from './utils/functions' import { handleTermSignals } from './utils/functions'
import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/' 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 rootPath = path.join(__dirname, '..') const rootPath = path.join(__dirname, '..')

View file

@ -30,7 +30,7 @@ import { generate as shortIdGenerate, isValid as shortIdIsValid } from 'shortid'
import S from 'string' import S from 'string'
import { config } from '../config' import { config } from '../config'
import { logger } from '../logger' import { logger } from '../logger'
import ot from '../ot' import ot from '../ot/index'
import { processData, stripNullByte } from '../utils/functions' import { processData, stripNullByte } from '../utils/functions'
import { Author, Revision, User } from './index' import { Author, Revision, User } from './index'

View file

@ -1,4 +1,4 @@
import imgur from 'imgur' import imgur from 'old_src/lib/web/imageRouter/imgur'
import { config } from '../../config' import { config } from '../../config'
import { logger } from '../../logger' import { logger } from '../../logger'

View file

@ -1,4 +1,4 @@
import lutim from 'lutim' import lutim from 'old_src/lib/web/imageRouter/lutim'
import { config } from '../../config' import { config } from '../../config'
import { logger } from '../../logger' import { logger } from '../../logger'

View file

@ -1,6 +1,6 @@
import path from 'path' import path from 'path'
import fs from 'fs' import fs from 'fs'
import { Client } from 'minio' import { Client } from 'old_src/lib/web/imageRouter/minio'
import { config } from '../../config' import { config } from '../../config'
import { getImageMimeType } from '../../utils/functions' import { getImageMimeType } from '../../utils/functions'