Browse Source

refactor: rename controller files

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5239/head
Pranav C 2 years ago
parent
commit
60c08e0dba
  1. 0
      packages/nocodb/src/lib/controllers/apiTokenController.ts
  2. 0
      packages/nocodb/src/lib/controllers/attachmentController.ts
  3. 0
      packages/nocodb/src/lib/controllers/auditController.ts
  4. 0
      packages/nocodb/src/lib/controllers/baseController.ts
  5. 0
      packages/nocodb/src/lib/controllers/cacheController.ts
  6. 0
      packages/nocodb/src/lib/controllers/columnController.ts
  7. 0
      packages/nocodb/src/lib/controllers/exportController.ts
  8. 0
      packages/nocodb/src/lib/controllers/filterController.ts
  9. 0
      packages/nocodb/src/lib/controllers/formViewColumnController.ts
  10. 0
      packages/nocodb/src/lib/controllers/formViewController.ts
  11. 0
      packages/nocodb/src/lib/controllers/galleryViewController.ts
  12. 0
      packages/nocodb/src/lib/controllers/gridViewColumnController.ts
  13. 0
      packages/nocodb/src/lib/controllers/gridViewController.ts
  14. 0
      packages/nocodb/src/lib/controllers/hookController.ts
  15. 0
      packages/nocodb/src/lib/controllers/hookFilterController.ts
  16. 0
      packages/nocodb/src/lib/controllers/kanbanViewController.ts
  17. 0
      packages/nocodb/src/lib/controllers/mapViewController.ts
  18. 0
      packages/nocodb/src/lib/controllers/metaDiffController.ts
  19. 0
      packages/nocodb/src/lib/controllers/modelVisibilityController.ts
  20. 0
      packages/nocodb/src/lib/controllers/orgLicenseController.ts
  21. 0
      packages/nocodb/src/lib/controllers/orgTokenController.ts
  22. 2
      packages/nocodb/src/lib/controllers/orgUserController.ts
  23. 0
      packages/nocodb/src/lib/controllers/pluginController.ts
  24. 0
      packages/nocodb/src/lib/controllers/projectController.ts
  25. 0
      packages/nocodb/src/lib/controllers/projectUserController.ts
  26. 2
      packages/nocodb/src/lib/controllers/publicApis/publicDataApis.ts
  27. 0
      packages/nocodb/src/lib/controllers/sharedBaseController.ts
  28. 0
      packages/nocodb/src/lib/controllers/sortController.ts
  29. 2
      packages/nocodb/src/lib/controllers/tableController.ts
  30. 0
      packages/nocodb/src/lib/controllers/testController.ts
  31. 0
      packages/nocodb/src/lib/controllers/utilController.ts
  32. 0
      packages/nocodb/src/lib/controllers/viewColumnController.ts
  33. 2
      packages/nocodb/src/lib/controllers/viewController.ts
  34. 2
      packages/nocodb/src/lib/meta/api/helpers/populateMeta.ts
  35. 64
      packages/nocodb/src/lib/meta/api/index.ts

0
packages/nocodb/src/lib/controllers/apiTokenApis.ts → packages/nocodb/src/lib/controllers/apiTokenController.ts

0
packages/nocodb/src/lib/controllers/attachmentApis.ts → packages/nocodb/src/lib/controllers/attachmentController.ts

0
packages/nocodb/src/lib/controllers/auditApis.ts → packages/nocodb/src/lib/controllers/auditController.ts

0
packages/nocodb/src/lib/controllers/baseApis.ts → packages/nocodb/src/lib/controllers/baseController.ts

0
packages/nocodb/src/lib/controllers/cacheApis.ts → packages/nocodb/src/lib/controllers/cacheController.ts

0
packages/nocodb/src/lib/controllers/columnApis.ts → packages/nocodb/src/lib/controllers/columnController.ts

0
packages/nocodb/src/lib/controllers/exportApis.ts → packages/nocodb/src/lib/controllers/exportController.ts

0
packages/nocodb/src/lib/controllers/filterApis.ts → packages/nocodb/src/lib/controllers/filterController.ts

0
packages/nocodb/src/lib/controllers/formViewColumnApis.ts → packages/nocodb/src/lib/controllers/formViewColumnController.ts

0
packages/nocodb/src/lib/controllers/formViewApis.ts → packages/nocodb/src/lib/controllers/formViewController.ts

0
packages/nocodb/src/lib/controllers/galleryViewApis.ts → packages/nocodb/src/lib/controllers/galleryViewController.ts

0
packages/nocodb/src/lib/controllers/gridViewColumnApis.ts → packages/nocodb/src/lib/controllers/gridViewColumnController.ts

0
packages/nocodb/src/lib/controllers/gridViewApis.ts → packages/nocodb/src/lib/controllers/gridViewController.ts

0
packages/nocodb/src/lib/controllers/hookApis.ts → packages/nocodb/src/lib/controllers/hookController.ts

0
packages/nocodb/src/lib/controllers/hookFilterApis.ts → packages/nocodb/src/lib/controllers/hookFilterController.ts

0
packages/nocodb/src/lib/controllers/kanbanViewApis.ts → packages/nocodb/src/lib/controllers/kanbanViewController.ts

0
packages/nocodb/src/lib/controllers/mapViewApis.ts → packages/nocodb/src/lib/controllers/mapViewController.ts

0
packages/nocodb/src/lib/controllers/metaDiffApis.ts → packages/nocodb/src/lib/controllers/metaDiffController.ts

0
packages/nocodb/src/lib/controllers/modelVisibilityApis.ts → packages/nocodb/src/lib/controllers/modelVisibilityController.ts

0
packages/nocodb/src/lib/controllers/orgLicenseApis.ts → packages/nocodb/src/lib/controllers/orgLicenseController.ts

0
packages/nocodb/src/lib/controllers/orgTokenApis.ts → packages/nocodb/src/lib/controllers/orgTokenController.ts

2
packages/nocodb/src/lib/controllers/orgUserApis.ts → packages/nocodb/src/lib/controllers/orgUserController.ts

@ -23,7 +23,7 @@ import ncMetaAclMw from '../meta/helpers/ncMetaAclMw';
import { PagedResponseImpl } from '../meta/helpers/PagedResponse';
import { randomTokenString } from '../meta/helpers/stringHelpers';
import { getAjvValidatorMw } from '../meta/api/helpers';
import { sendInviteEmail } from './projectUserApis';
import { sendInviteEmail } from './projectUserController';
async function userList(req, res) {
res.json(

0
packages/nocodb/src/lib/controllers/pluginApis.ts → packages/nocodb/src/lib/controllers/pluginController.ts

0
packages/nocodb/src/lib/controllers/projectApis.ts → packages/nocodb/src/lib/controllers/projectController.ts

0
packages/nocodb/src/lib/controllers/projectUserApis.ts → packages/nocodb/src/lib/controllers/projectUserController.ts

2
packages/nocodb/src/lib/controllers/publicApis/publicDataApis.ts

@ -15,7 +15,7 @@ import path from 'path';
import { nanoid } from 'nanoid';
import { mimeIcons } from '../../utils/mimeTypes';
import slash from 'slash';
import { sanitizeUrlPath } from '../attachmentApis';
import { sanitizeUrlPath } from '../attachmentController';
import getAst from '../../db/sql-data-mapper/lib/sql/helpers/getAst';
import { getColumnByIdOrName } from '../dataApis/helpers';
import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants';

0
packages/nocodb/src/lib/controllers/sharedBaseApis.ts → packages/nocodb/src/lib/controllers/sharedBaseController.ts

0
packages/nocodb/src/lib/controllers/sortApis.ts → packages/nocodb/src/lib/controllers/sortController.ts

2
packages/nocodb/src/lib/controllers/tableApis.ts → packages/nocodb/src/lib/controllers/tableController.ts

@ -19,7 +19,7 @@ import Project from '../models/Project';
import Audit from '../models/Audit';
import ncMetaAclMw from '../meta/helpers/ncMetaAclMw';
import { getAjvValidatorMw } from '../meta/api/helpers';
import { xcVisibilityMetaGet } from './modelVisibilityApis';
import { xcVisibilityMetaGet } from './modelVisibilityController';
import View from '../models/View';
import getColumnPropsFromUIDT from '../meta/helpers/getColumnPropsFromUIDT';
import mapDefaultDisplayValue from '../meta/helpers/mapDefaultDisplayValue';

0
packages/nocodb/src/lib/controllers/testApis.ts → packages/nocodb/src/lib/controllers/testController.ts

0
packages/nocodb/src/lib/controllers/utilApis.ts → packages/nocodb/src/lib/controllers/utilController.ts

0
packages/nocodb/src/lib/controllers/viewColumnApis.ts → packages/nocodb/src/lib/controllers/viewColumnController.ts

2
packages/nocodb/src/lib/controllers/viewApis.ts → packages/nocodb/src/lib/controllers/viewController.ts

@ -12,7 +12,7 @@ import ProjectMgrv2 from '../db/sql-mgr/v2/ProjectMgrv2';
import Project from '../models/Project';
import View from '../models/View';
import ncMetaAclMw from '../meta/helpers/ncMetaAclMw';
import { xcVisibilityMetaGet } from './modelVisibilityApis';
import { xcVisibilityMetaGet } from './modelVisibilityController';
import { metaApiMetrics } from '../meta/helpers/apiMetrics';
// @ts-ignore
export async function viewGet(req: Request, res: Response<Table>) {}

2
packages/nocodb/src/lib/meta/api/helpers/populateMeta.ts

@ -11,7 +11,7 @@ import getTableNameAlias, {
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn';
import getColumnUiType from '../../helpers/getColumnUiType';
import mapDefaultDisplayValue from '../../helpers/mapDefaultDisplayValue';
import { extractAndGenerateManyToManyRelations } from '../../../controllers/metaDiffApis';
import { extractAndGenerateManyToManyRelations } from '../../../controllers/metaDiffController';
import { ModelTypes, UITypes, ViewTypes } from 'nocodb-sdk';
import { IGNORE_TABLES } from '../../../utils/common/BaseApiBuilder';

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

@ -1,39 +1,39 @@
import { Tele } from 'nc-help';
import orgLicenseApis from '../../controllers/orgLicenseApis';
import orgTokenApis from '../../controllers/orgTokenApis';
import orgUserApis from '../../controllers/orgUserApis';
import projectApis from '../../controllers/projectApis';
import baseApis from '../../controllers/baseApis';
import tableApis from '../../controllers/tableApis';
import columnApis from '../../controllers/columnApis';
import orgLicenseApis from '../../controllers/orgLicenseController';
import orgTokenApis from '../../controllers/orgTokenController';
import orgUserApis from '../../controllers/orgUserController';
import projectApis from '../../controllers/projectController';
import baseApis from '../../controllers/baseController';
import tableApis from '../../controllers/tableController';
import columnApis from '../../controllers/columnController';
import { Router } from 'express';
import sortApis from '../../controllers/sortApis';
import filterApis from '../../controllers/filterApis';
import viewColumnApis from '../../controllers/viewColumnApis';
import gridViewApis from '../../controllers/gridViewApis';
import viewApis from '../../controllers/viewApis';
import galleryViewApis from '../../controllers/galleryViewApis';
import formViewApis from '../../controllers/formViewApis';
import formViewColumnApis from '../../controllers/formViewColumnApis';
import attachmentApis from '../../controllers/attachmentApis';
import exportApis from '../../controllers/exportApis';
import auditApis from '../../controllers/auditApis';
import hookApis from '../../controllers/hookApis';
import pluginApis from '../../controllers/pluginApis';
import gridViewColumnApis from '../../controllers/gridViewColumnApis';
import kanbanViewApis from '../../controllers/kanbanViewApis';
import sortApis from '../../controllers/sortController';
import filterApis from '../../controllers/filterController';
import viewColumnApis from '../../controllers/viewColumnController';
import gridViewApis from '../../controllers/gridViewController';
import viewApis from '../../controllers/viewController';
import galleryViewApis from '../../controllers/galleryViewController';
import formViewApis from '../../controllers/formViewController';
import formViewColumnApis from '../../controllers/formViewColumnController';
import attachmentApis from '../../controllers/attachmentController';
import exportApis from '../../controllers/exportController';
import auditApis from '../../controllers/auditController';
import hookApis from '../../controllers/hookController';
import pluginApis from '../../controllers/pluginController';
import gridViewColumnApis from '../../controllers/gridViewColumnController';
import kanbanViewApis from '../../controllers/kanbanViewController';
import { userApis } from '../../controllers/userApi';
// import extractProjectIdAndAuthenticate from './helpers/extractProjectIdAndAuthenticate';
import utilApis from '../../controllers/utilApis';
import projectUserApis from '../../controllers/projectUserApis';
import sharedBaseApis from '../../controllers/sharedBaseApis';
import utilApis from '../../controllers/utilController';
import projectUserApis from '../../controllers/projectUserController';
import sharedBaseApis from '../../controllers/sharedBaseController';
import { initStrategies } from '../../controllers/userApi/initStrategies';
import modelVisibilityApis from '../../controllers/modelVisibilityApis';
import metaDiffApis from '../../controllers/metaDiffApis';
import cacheApis from '../../controllers/cacheApis';
import apiTokenApis from '../../controllers/apiTokenApis';
import hookFilterApis from '../../controllers/hookFilterApis';
import testApis from '../../controllers/testApis';
import modelVisibilityApis from '../../controllers/modelVisibilityController';
import metaDiffApis from '../../controllers/metaDiffController';
import cacheApis from '../../controllers/cacheController';
import apiTokenApis from '../../controllers/apiTokenController';
import hookFilterApis from '../../controllers/hookFilterController';
import testApis from '../../controllers/testController';
import {
bulkDataAliasApis,
dataAliasApis,
@ -54,7 +54,7 @@ import crypto from 'crypto';
import swaggerApis from '../../controllers/swagger/swaggerApis';
import importApis from '../../controllers/sync/importApis';
import syncSourceApis from '../../controllers/sync/syncSourceApis';
import mapViewApis from '../../controllers/mapViewApis';
import mapViewApis from '../../controllers/mapViewController';
const clients: { [id: string]: Socket } = {};
const jobs: { [id: string]: { last_message: any } } = {};

Loading…
Cancel
Save