|
|
@ -1,13 +1,12 @@ |
|
|
|
import CryptoJS from 'crypto-js'; |
|
|
|
|
|
|
|
import fs from 'fs'; |
|
|
|
import fs from 'fs'; |
|
|
|
import mkdirp from 'mkdirp'; |
|
|
|
|
|
|
|
import path from 'path'; |
|
|
|
import path from 'path'; |
|
|
|
|
|
|
|
import { promisify } from 'util'; |
|
|
|
|
|
|
|
import CryptoJS from 'crypto-js'; |
|
|
|
|
|
|
|
import mkdirp from 'mkdirp'; |
|
|
|
|
|
|
|
|
|
|
|
import archiver from 'archiver'; |
|
|
|
import archiver from 'archiver'; |
|
|
|
import axios from 'axios'; |
|
|
|
import axios from 'axios'; |
|
|
|
import bodyParser from 'body-parser'; |
|
|
|
import bodyParser from 'body-parser'; |
|
|
|
import type { Handler } from 'express'; |
|
|
|
|
|
|
|
import type express from 'express'; |
|
|
|
|
|
|
|
import { Router } from 'express'; |
|
|
|
import { Router } from 'express'; |
|
|
|
import extract from 'extract-zip'; |
|
|
|
import extract from 'extract-zip'; |
|
|
|
import isDocker from 'is-docker'; |
|
|
|
import isDocker from 'is-docker'; |
|
|
@ -16,11 +15,10 @@ import { customAlphabet, nanoid } from 'nanoid'; |
|
|
|
import slash from 'slash'; |
|
|
|
import slash from 'slash'; |
|
|
|
import { v4 as uuidv4 } from 'uuid'; |
|
|
|
import { v4 as uuidv4 } from 'uuid'; |
|
|
|
import { ncp } from 'ncp'; |
|
|
|
import { ncp } from 'ncp'; |
|
|
|
|
|
|
|
import { UITypes } from 'nocodb-sdk'; |
|
|
|
import type IEmailAdapter from '../../interface/IEmailAdapter'; |
|
|
|
import { T } from 'nc-help'; |
|
|
|
import type IStorageAdapter from '../../interface/IStorageAdapter'; |
|
|
|
|
|
|
|
import type { NcConfig } from '../../interface/config'; |
|
|
|
|
|
|
|
import { Result } from '../../interface/config'; |
|
|
|
import { Result } from '../../interface/config'; |
|
|
|
|
|
|
|
|
|
|
|
import SqlClientFactory from '../db/sql-client/lib/SqlClientFactory'; |
|
|
|
import SqlClientFactory from '../db/sql-client/lib/SqlClientFactory'; |
|
|
|
import { NcConfigFactory } from '../index'; |
|
|
|
import { NcConfigFactory } from '../index'; |
|
|
|
import ProjectMgr from '../db/sql-mgr/ProjectMgr'; |
|
|
|
import ProjectMgr from '../db/sql-mgr/ProjectMgr'; |
|
|
@ -31,21 +29,23 @@ import NcHelp from '../utils/NcHelp'; |
|
|
|
import mimetypes, { mimeIcons } from '../utils/mimeTypes'; |
|
|
|
import mimetypes, { mimeIcons } from '../utils/mimeTypes'; |
|
|
|
import { packageVersion } from '../utils/packageVersion'; |
|
|
|
import { packageVersion } from '../utils/packageVersion'; |
|
|
|
import projectAcl from '../utils/projectAcl'; |
|
|
|
import projectAcl from '../utils/projectAcl'; |
|
|
|
import type Noco from '../Noco'; |
|
|
|
|
|
|
|
import type { GqlApiBuilder } from '../v1-legacy/gql/GqlApiBuilder'; |
|
|
|
|
|
|
|
import NcPluginMgr from '../v1-legacy/plugins/NcPluginMgr'; |
|
|
|
import NcPluginMgr from '../v1-legacy/plugins/NcPluginMgr'; |
|
|
|
import XcCache from '../v1-legacy/plugins/adapters/cache/XcCache'; |
|
|
|
import XcCache from '../v1-legacy/plugins/adapters/cache/XcCache'; |
|
|
|
import type { RestApiBuilder } from '../v1-legacy/rest/RestApiBuilder'; |
|
|
|
|
|
|
|
import RestAuthCtrl from '../v1-legacy/rest/RestAuthCtrlEE'; |
|
|
|
import RestAuthCtrl from '../v1-legacy/rest/RestAuthCtrlEE'; |
|
|
|
import type NcMetaIO from './NcMetaIO'; |
|
|
|
|
|
|
|
import { META_TABLES } from './NcMetaIO'; |
|
|
|
|
|
|
|
import { promisify } from 'util'; |
|
|
|
|
|
|
|
import NcTemplateParser from '../v1-legacy/templates/NcTemplateParser'; |
|
|
|
import NcTemplateParser from '../v1-legacy/templates/NcTemplateParser'; |
|
|
|
import { defaultConnectionConfig } from '../utils/NcConfigFactory'; |
|
|
|
import { defaultConnectionConfig } from '../utils/NcConfigFactory'; |
|
|
|
import xcMetaDiff from './handlers/xcMetaDiff'; |
|
|
|
|
|
|
|
import { UITypes } from 'nocodb-sdk'; |
|
|
|
|
|
|
|
import { T } from 'nc-help'; |
|
|
|
|
|
|
|
import { NC_ATTACHMENT_FIELD_SIZE } from '../constants'; |
|
|
|
import { NC_ATTACHMENT_FIELD_SIZE } from '../constants'; |
|
|
|
|
|
|
|
import xcMetaDiff from './handlers/xcMetaDiff'; |
|
|
|
|
|
|
|
import { META_TABLES } from './NcMetaIO'; |
|
|
|
|
|
|
|
import type NcMetaIO from './NcMetaIO'; |
|
|
|
|
|
|
|
import type { RestApiBuilder } from '../v1-legacy/rest/RestApiBuilder'; |
|
|
|
|
|
|
|
import type { GqlApiBuilder } from '../v1-legacy/gql/GqlApiBuilder'; |
|
|
|
|
|
|
|
import type Noco from '../Noco'; |
|
|
|
|
|
|
|
import type { NcConfig } from '../../interface/config'; |
|
|
|
|
|
|
|
import type IStorageAdapter from '../../interface/IStorageAdapter'; |
|
|
|
|
|
|
|
import type IEmailAdapter from '../../interface/IEmailAdapter'; |
|
|
|
|
|
|
|
import type express from 'express'; |
|
|
|
|
|
|
|
import type { Handler } from 'express'; |
|
|
|
const randomID = customAlphabet('1234567890abcdefghijklmnopqrstuvwxyz_', 10); |
|
|
|
const randomID = customAlphabet('1234567890abcdefghijklmnopqrstuvwxyz_', 10); |
|
|
|
const XC_PLUGIN_DET = 'XC_PLUGIN_DET'; |
|
|
|
const XC_PLUGIN_DET = 'XC_PLUGIN_DET'; |
|
|
|
|
|
|
|
|
|
|
|