Browse Source

refactor : dirs

pull/5261/head
Naveen MR 2 years ago
parent
commit
94afeb96ab
  1. 2
      packages/nocodb/src/lib/Noco.ts
  2. 0
      packages/nocodb/src/lib/controllers/apiDocs/index.ts
  3. 0
      packages/nocodb/src/lib/controllers/apiDocs/redocHtml.ts
  4. 0
      packages/nocodb/src/lib/controllers/apiDocs/swaggerHtml.ts
  5. 0
      packages/nocodb/src/lib/controllers/dbData/bulkDataAliasController.ts
  6. 0
      packages/nocodb/src/lib/controllers/dbData/dataAliasController.ts
  7. 2
      packages/nocodb/src/lib/controllers/dbData/dataAliasExportController.ts
  8. 0
      packages/nocodb/src/lib/controllers/dbData/dataAliasNestedController.ts
  9. 0
      packages/nocodb/src/lib/controllers/dbData/dataController.ts
  10. 0
      packages/nocodb/src/lib/controllers/dbData/helpers.ts
  11. 0
      packages/nocodb/src/lib/controllers/dbData/index.ts
  12. 0
      packages/nocodb/src/lib/controllers/dbData/oldDataController.ts
  13. 2
      packages/nocodb/src/lib/controllers/exportController.ts
  14. 2
      packages/nocodb/src/lib/controllers/sync/importApis.ts
  15. 0
      packages/nocodb/src/lib/controllers/sync/index.ts
  16. 0
      packages/nocodb/src/lib/controllers/user/index.ts
  17. 0
      packages/nocodb/src/lib/controllers/user/initStrategies.ts
  18. 0
      packages/nocodb/src/lib/controllers/user/ui/auth/emailVerify.ts
  19. 0
      packages/nocodb/src/lib/controllers/user/ui/auth/resetPassword.ts
  20. 0
      packages/nocodb/src/lib/controllers/user/ui/emailTemplates/forgotPassword.ts
  21. 0
      packages/nocodb/src/lib/controllers/user/ui/emailTemplates/invite.ts
  22. 0
      packages/nocodb/src/lib/controllers/user/ui/emailTemplates/verify.ts
  23. 0
      packages/nocodb/src/lib/controllers/user/userApis.ts
  24. 12
      packages/nocodb/src/lib/meta/api/index.ts
  25. 0
      packages/nocodb/src/lib/services/apiDocs/getPaths.ts
  26. 0
      packages/nocodb/src/lib/services/apiDocs/getSchemas.ts
  27. 0
      packages/nocodb/src/lib/services/apiDocs/getSwaggerColumnMetas.ts
  28. 0
      packages/nocodb/src/lib/services/apiDocs/getSwaggerJSON.ts
  29. 0
      packages/nocodb/src/lib/services/apiDocs/index.ts
  30. 0
      packages/nocodb/src/lib/services/apiDocs/swagger-base.json
  31. 0
      packages/nocodb/src/lib/services/apiDocs/templates/headers.ts
  32. 0
      packages/nocodb/src/lib/services/apiDocs/templates/params.ts
  33. 0
      packages/nocodb/src/lib/services/apiDocs/templates/paths.ts
  34. 0
      packages/nocodb/src/lib/services/apiDocs/templates/schemas.ts
  35. 0
      packages/nocodb/src/lib/services/dbData/bulkData.ts
  36. 0
      packages/nocodb/src/lib/services/dbData/dataAliasNestedService.ts
  37. 0
      packages/nocodb/src/lib/services/dbData/export.ts
  38. 0
      packages/nocodb/src/lib/services/dbData/helpers.ts
  39. 0
      packages/nocodb/src/lib/services/dbData/index.ts
  40. 12
      packages/nocodb/src/lib/services/index.ts
  41. 2
      packages/nocodb/src/lib/services/projectUserService.ts
  42. 2
      packages/nocodb/src/lib/services/public/publicDataService.ts
  43. 0
      packages/nocodb/src/lib/services/sync/helpers/EntityMap.ts
  44. 0
      packages/nocodb/src/lib/services/sync/helpers/NocoSyncDestAdapter.ts
  45. 0
      packages/nocodb/src/lib/services/sync/helpers/NocoSyncSourceAdapter.ts
  46. 0
      packages/nocodb/src/lib/services/sync/helpers/fetchAT.ts
  47. 0
      packages/nocodb/src/lib/services/sync/helpers/job.ts
  48. 0
      packages/nocodb/src/lib/services/sync/helpers/readAndProcessData.ts
  49. 0
      packages/nocodb/src/lib/services/sync/helpers/syncMap.ts
  50. 0
      packages/nocodb/src/lib/services/sync/index.ts
  51. 0
      packages/nocodb/src/lib/services/user/helpers.ts
  52. 0
      packages/nocodb/src/lib/services/user/index.ts
  53. 0
      packages/nocodb/src/lib/services/user/initAdminFromEnv.ts
  54. 0
      packages/nocodb/src/lib/services/user/ui/auth/emailVerify.ts
  55. 0
      packages/nocodb/src/lib/services/user/ui/auth/resetPassword.ts
  56. 0
      packages/nocodb/src/lib/services/user/ui/emailTemplates/forgotPassword.ts
  57. 0
      packages/nocodb/src/lib/services/user/ui/emailTemplates/invite.ts
  58. 0
      packages/nocodb/src/lib/services/user/ui/emailTemplates/verify.ts

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

@ -45,7 +45,7 @@ import User from './models/User';
import * as http from 'http';
import weAreHiring from './utils/weAreHiring';
import getInstance from './utils/getInstance';
import initAdminFromEnv from './services/userService/initAdminFromEnv';
import initAdminFromEnv from './services/user/initAdminFromEnv';
const log = debug('nc:app');
require('dotenv').config();

0
packages/nocodb/src/lib/controllers/swaggerController/index.ts → packages/nocodb/src/lib/controllers/apiDocs/index.ts

0
packages/nocodb/src/lib/controllers/swaggerController/redocHtml.ts → packages/nocodb/src/lib/controllers/apiDocs/redocHtml.ts

0
packages/nocodb/src/lib/controllers/swaggerController/swaggerHtml.ts → packages/nocodb/src/lib/controllers/apiDocs/swaggerHtml.ts

0
packages/nocodb/src/lib/controllers/dataControllers/bulkDataAliasController.ts → packages/nocodb/src/lib/controllers/dbData/bulkDataAliasController.ts

0
packages/nocodb/src/lib/controllers/dataControllers/dataAliasController.ts → packages/nocodb/src/lib/controllers/dbData/dataAliasController.ts

2
packages/nocodb/src/lib/controllers/dataControllers/dataAliasExportController.ts → packages/nocodb/src/lib/controllers/dbData/dataAliasExportController.ts

@ -6,7 +6,7 @@ import { View } from '../../models';
import {
extractCsvData,
extractXlsxData,
} from '../../services/dataService/helpers';
} from '../../services/dbData/helpers';
import { getViewAndModelFromRequestByAliasOrId } from './helpers';
async function excelDataExport(req: Request, res: Response) {

0
packages/nocodb/src/lib/controllers/dataControllers/dataAliasNestedController.ts → packages/nocodb/src/lib/controllers/dbData/dataAliasNestedController.ts

0
packages/nocodb/src/lib/controllers/dataControllers/dataController.ts → packages/nocodb/src/lib/controllers/dbData/dataController.ts

0
packages/nocodb/src/lib/controllers/dataControllers/helpers.ts → packages/nocodb/src/lib/controllers/dbData/helpers.ts

0
packages/nocodb/src/lib/controllers/dataControllers/index.ts → packages/nocodb/src/lib/controllers/dbData/index.ts

0
packages/nocodb/src/lib/controllers/dataControllers/oldDataController.ts → packages/nocodb/src/lib/controllers/dbData/oldDataController.ts

2
packages/nocodb/src/lib/controllers/exportController.ts

@ -1,7 +1,7 @@
import { Request, Response, Router } from 'express';
import View from '../models/View';
import ncMetaAclMw from '../meta/helpers/ncMetaAclMw';
import { extractCsvData } from './dataControllers/helpers';
import { extractCsvData } from './dbData/helpers';
async function exportCsv(req: Request, res: Response) {
const view = await View.get(req.params.viewId);

2
packages/nocodb/src/lib/controllers/syncController/importApis.ts → packages/nocodb/src/lib/controllers/sync/importApis.ts

@ -7,7 +7,7 @@ import NocoJobs from '../../jobs/NocoJobs';
import { SyncSource } from '../../models';
import Noco from '../../Noco';
import { syncService, userService } from '../../services';
import { AirtableSyncConfig } from '../../services/syncService/helpers/job';
import { AirtableSyncConfig } from '../../services/sync/helpers/job';
const AIRTABLE_IMPORT_JOB = 'AIRTABLE_IMPORT_JOB';
const AIRTABLE_PROGRESS_JOB = 'AIRTABLE_PROGRESS_JOB';

0
packages/nocodb/src/lib/controllers/syncController/index.ts → packages/nocodb/src/lib/controllers/sync/index.ts

0
packages/nocodb/src/lib/controllers/userController/index.ts → packages/nocodb/src/lib/controllers/user/index.ts

0
packages/nocodb/src/lib/controllers/userController/initStrategies.ts → packages/nocodb/src/lib/controllers/user/initStrategies.ts

0
packages/nocodb/src/lib/controllers/userController/ui/auth/emailVerify.ts → packages/nocodb/src/lib/controllers/user/ui/auth/emailVerify.ts

0
packages/nocodb/src/lib/controllers/userController/ui/auth/resetPassword.ts → packages/nocodb/src/lib/controllers/user/ui/auth/resetPassword.ts

0
packages/nocodb/src/lib/controllers/userController/ui/emailTemplates/forgotPassword.ts → packages/nocodb/src/lib/controllers/user/ui/emailTemplates/forgotPassword.ts

0
packages/nocodb/src/lib/controllers/userController/ui/emailTemplates/invite.ts → packages/nocodb/src/lib/controllers/user/ui/emailTemplates/invite.ts

0
packages/nocodb/src/lib/controllers/userController/ui/emailTemplates/verify.ts → packages/nocodb/src/lib/controllers/user/ui/emailTemplates/verify.ts

0
packages/nocodb/src/lib/controllers/userController/userApis.ts → packages/nocodb/src/lib/controllers/user/userApis.ts

12
packages/nocodb/src/lib/meta/api/index.ts

@ -22,12 +22,12 @@ import hookController from '../../controllers/hookController';
import pluginController from '../../controllers/pluginController';
import gridViewColumnController from '../../controllers/gridViewColumnController';
import kanbanViewController from '../../controllers/kanbanViewController';
import { userController } from '../../controllers/userController';
import { userController } from '../../controllers/user';
// import extractProjectIdAndAuthenticate from './helpers/extractProjectIdAndAuthenticate';
import utilController from '../../controllers/utilController';
import projectUserController from '../../controllers/projectUserController';
import sharedBaseController from '../../controllers/sharedBaseController';
import { initStrategies } from '../../controllers/userController/initStrategies';
import { initStrategies } from '../../controllers/user/initStrategies';
import modelVisibilityController from '../../controllers/modelVisibilityController';
import metaDiffController from '../../controllers/metaDiffController';
import cacheController from '../../controllers/cacheController';
@ -41,7 +41,7 @@ import {
dataAliasNestedController,
dataController,
oldDataController,
} from '../../controllers/dataControllers';
} from '../../controllers/dbData';
import {
publicDataController,
publicDataExportController,
@ -51,9 +51,9 @@ import { Server, Socket } from 'socket.io';
import passport from 'passport';
import crypto from 'crypto';
import swaggerController from '../../controllers/swaggerController';
import importController from '../../controllers/syncController/importApis';
import syncSourceController from '../../controllers/syncController';
import swaggerController from '../../controllers/apiDocs';
import importController from '../../controllers/sync/importApis';
import syncSourceController from '../../controllers/sync';
import mapViewController from '../../controllers/mapViewController';
const clients: { [id: string]: Socket } = {};

0
packages/nocodb/src/lib/services/swaggerService/getPaths.ts → packages/nocodb/src/lib/services/apiDocs/getPaths.ts

0
packages/nocodb/src/lib/services/swaggerService/getSchemas.ts → packages/nocodb/src/lib/services/apiDocs/getSchemas.ts

0
packages/nocodb/src/lib/services/swaggerService/getSwaggerColumnMetas.ts → packages/nocodb/src/lib/services/apiDocs/getSwaggerColumnMetas.ts

0
packages/nocodb/src/lib/services/swaggerService/getSwaggerJSON.ts → packages/nocodb/src/lib/services/apiDocs/getSwaggerJSON.ts

0
packages/nocodb/src/lib/services/swaggerService/index.ts → packages/nocodb/src/lib/services/apiDocs/index.ts

0
packages/nocodb/src/lib/services/swaggerService/swagger-base.json → packages/nocodb/src/lib/services/apiDocs/swagger-base.json

0
packages/nocodb/src/lib/services/swaggerService/templates/headers.ts → packages/nocodb/src/lib/services/apiDocs/templates/headers.ts

0
packages/nocodb/src/lib/services/swaggerService/templates/params.ts → packages/nocodb/src/lib/services/apiDocs/templates/params.ts

0
packages/nocodb/src/lib/services/swaggerService/templates/paths.ts → packages/nocodb/src/lib/services/apiDocs/templates/paths.ts

0
packages/nocodb/src/lib/services/swaggerService/templates/schemas.ts → packages/nocodb/src/lib/services/apiDocs/templates/schemas.ts

0
packages/nocodb/src/lib/services/dataService/bulkData.ts → packages/nocodb/src/lib/services/dbData/bulkData.ts

0
packages/nocodb/src/lib/services/dataService/dataAliasNestedService.ts → packages/nocodb/src/lib/services/dbData/dataAliasNestedService.ts

0
packages/nocodb/src/lib/services/dataService/export.ts → packages/nocodb/src/lib/services/dbData/export.ts

0
packages/nocodb/src/lib/services/dataService/helpers.ts → packages/nocodb/src/lib/services/dbData/helpers.ts

0
packages/nocodb/src/lib/services/dataService/index.ts → packages/nocodb/src/lib/services/dbData/index.ts

12
packages/nocodb/src/lib/services/index.ts

@ -25,14 +25,14 @@ export * as orgLicenseService from './orgLicenseService';
export * as projectUserService from './projectUserService';
export * as attachmentService from './attachmentService';
export * as hookFilterService from './hookFilterService';
export * as dataService from './dataService';
export * as bulkDataService from './dataService/bulkData';
export * as dataAliasNestedService from './dataService/dataAliasNestedService';
export * as dataService from './dbData';
export * as bulkDataService from './dbData/bulkData';
export * as dataAliasNestedService from './dbData/dataAliasNestedService';
export * as cacheService from './cacheService';
export * as auditService from './auditService';
export * as swaggerService from './swaggerService';
export * as userService from './userService';
export * as syncService from './syncService';
export * as swaggerService from './apiDocs';
export * as userService from './user';
export * as syncService from './sync';
export * from './public';
export * as orgTokenService from './orgTokenService';
export * as orgTokenServiceEE from './ee/orgTokenService';

2
packages/nocodb/src/lib/services/projectUserService.ts

@ -291,7 +291,7 @@ export async function sendInviteEmail(
req: any
): Promise<any> {
try {
const template = (await import('./userService/ui/emailTemplates/invite'))
const template = (await import('./user/ui/emailTemplates/invite'))
.default;
const emailAdapter = await NcPluginMgrv2.emailAdapter();

2
packages/nocodb/src/lib/services/public/publicDataService.ts

@ -17,7 +17,7 @@ import {
import NcConnectionMgrv2 from '../../utils/common/NcConnectionMgrv2';
import { mimeIcons } from '../../utils/mimeTypes';
import { sanitizeUrlPath } from '../attachmentService';
import { getColumnByIdOrName } from '../dataService/helpers';
import { getColumnByIdOrName } from '../dbData/helpers';
export async function dataList(param: {
sharedViewUuid: string;

0
packages/nocodb/src/lib/services/syncService/helpers/EntityMap.ts → packages/nocodb/src/lib/services/sync/helpers/EntityMap.ts

0
packages/nocodb/src/lib/services/syncService/helpers/NocoSyncDestAdapter.ts → packages/nocodb/src/lib/services/sync/helpers/NocoSyncDestAdapter.ts

0
packages/nocodb/src/lib/services/syncService/helpers/NocoSyncSourceAdapter.ts → packages/nocodb/src/lib/services/sync/helpers/NocoSyncSourceAdapter.ts

0
packages/nocodb/src/lib/services/syncService/helpers/fetchAT.ts → packages/nocodb/src/lib/services/sync/helpers/fetchAT.ts

0
packages/nocodb/src/lib/services/syncService/helpers/job.ts → packages/nocodb/src/lib/services/sync/helpers/job.ts

0
packages/nocodb/src/lib/services/syncService/helpers/readAndProcessData.ts → packages/nocodb/src/lib/services/sync/helpers/readAndProcessData.ts

0
packages/nocodb/src/lib/services/syncService/helpers/syncMap.ts → packages/nocodb/src/lib/services/sync/helpers/syncMap.ts

0
packages/nocodb/src/lib/services/syncService/index.ts → packages/nocodb/src/lib/services/sync/index.ts

0
packages/nocodb/src/lib/services/userService/helpers.ts → packages/nocodb/src/lib/services/user/helpers.ts

0
packages/nocodb/src/lib/services/userService/index.ts → packages/nocodb/src/lib/services/user/index.ts

0
packages/nocodb/src/lib/services/userService/initAdminFromEnv.ts → packages/nocodb/src/lib/services/user/initAdminFromEnv.ts

0
packages/nocodb/src/lib/services/userService/ui/auth/emailVerify.ts → packages/nocodb/src/lib/services/user/ui/auth/emailVerify.ts

0
packages/nocodb/src/lib/services/userService/ui/auth/resetPassword.ts → packages/nocodb/src/lib/services/user/ui/auth/resetPassword.ts

0
packages/nocodb/src/lib/services/userService/ui/emailTemplates/forgotPassword.ts → packages/nocodb/src/lib/services/user/ui/emailTemplates/forgotPassword.ts

0
packages/nocodb/src/lib/services/userService/ui/emailTemplates/invite.ts → packages/nocodb/src/lib/services/user/ui/emailTemplates/invite.ts

0
packages/nocodb/src/lib/services/userService/ui/emailTemplates/verify.ts → packages/nocodb/src/lib/services/user/ui/emailTemplates/verify.ts

Loading…
Cancel
Save