Browse Source

refactor: remove unused imports

Signed-off-by: Pranav C <pranavxc@gmail.com>
refactor/rename-meta-tables
Pranav C 2 years ago
parent
commit
72b629d527
  1. 9
      packages/nocodb/src/lib/Noco.ts

9
packages/nocodb/src/lib/Noco.ts

@ -16,7 +16,7 @@ import { v4 as uuidv4 } from 'uuid';
import { NcConfig } from '../interface/config'; import { NcConfig } from '../interface/config';
import Migrator from './db/sql-migrator/lib/KnexMigrator'; import Migrator from './db/sql-migrator/lib/KnexMigrator';
import { MetaTable } from './utils/globals' import { MetaTable } from './utils/globals';
import NcConfigFactory from './utils/NcConfigFactory'; import NcConfigFactory from './utils/NcConfigFactory';
import { Tele } from 'nc-help'; import { Tele } from 'nc-help';
@ -29,8 +29,6 @@ import NcMetaImplEE from './meta/NcMetaIOImplEE';
import NcMetaMgrCE from './meta/NcMetaMgr'; import NcMetaMgrCE from './meta/NcMetaMgr';
import NcMetaMgrEE from './meta/NcMetaMgrEE'; import NcMetaMgrEE from './meta/NcMetaMgrEE';
import { RestApiBuilder } from './v1-legacy/rest/RestApiBuilder'; import { RestApiBuilder } from './v1-legacy/rest/RestApiBuilder';
import RestAuthCtrlCE from './v1-legacy/rest/RestAuthCtrl';
import RestAuthCtrlEE from './v1-legacy/rest/RestAuthCtrlEE';
import mkdirp from 'mkdirp'; import mkdirp from 'mkdirp';
import MetaAPILogger from './meta/MetaAPILogger'; import MetaAPILogger from './meta/MetaAPILogger';
import NcUpgrader from './version-upgrader/NcUpgrader'; import NcUpgrader from './version-upgrader/NcUpgrader';
@ -47,10 +45,6 @@ import initAdminFromEnv from './meta/api/userApi/initAdminFromEnv';
const log = debug('nc:app'); const log = debug('nc:app');
require('dotenv').config(); require('dotenv').config();
const NcProjectBuilder = process.env.EE
? NcProjectBuilderEE
: NcProjectBuilderCE;
export default class Noco { export default class Noco {
private static _this: Noco; private static _this: Noco;
@ -238,7 +232,6 @@ export default class Noco {
await NcPluginMgrv2.init(Noco.ncMeta); await NcPluginMgrv2.init(Noco.ncMeta);
registerMetaApis(this.router, server); registerMetaApis(this.router, server);
this.router.use(NcToolGui.expressMiddleware(this.config.dashboardPath)); this.router.use(NcToolGui.expressMiddleware(this.config.dashboardPath));
this.router.get('/', (_req, res) => this.router.get('/', (_req, res) =>
res.redirect(this.config.dashboardPath) res.redirect(this.config.dashboardPath)

Loading…
Cancel
Save