Browse Source

refactor : code

pull/5261/head
Naveen MR 2 years ago
parent
commit
a461518c32
  1. 14
      packages/nocodb/src/lib/services/index.ts
  2. 4
      packages/nocodb/src/lib/services/views/formView.svs.ts
  3. 4
      packages/nocodb/src/lib/services/views/formViewColumn.svs.ts
  4. 4
      packages/nocodb/src/lib/services/views/galleryView.svs.ts
  5. 6
      packages/nocodb/src/lib/services/views/gridView.svs.ts
  6. 4
      packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts
  7. 4
      packages/nocodb/src/lib/services/views/kanbanView.svs.ts
  8. 4
      packages/nocodb/src/lib/services/views/mapView.svs.ts

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

@ -9,15 +9,15 @@ export * as viewService from './view.svs';
export * as hookService from './hook.svs'; export * as hookService from './hook.svs';
export * as pluginService from './plugin.svs'; export * as pluginService from './plugin.svs';
export * as utilService from './util.svs'; export * as utilService from './util.svs';
export * as formViewService from './formView.svs'; export * as formViewService from './views/formView.svs';
export * as formViewColumnService from './formViewColumn.svs'; export * as formViewColumnService from './views/formViewColumn.svs';
export * as gridViewService from './gridView.svs'; export * as gridViewService from './views/gridView.svs';
export * as galleryViewService from './galleryView.svs'; export * as galleryViewService from './views/galleryView.svs';
export * as kanbanViewService from './kanbanView.svs'; export * as kanbanViewService from './views/kanbanView.svs';
export * as gridViewColumnService from './gridViewColumn.svs'; export * as gridViewColumnService from './views/gridViewColumn.svs';
export * as viewColumnService from './viewColumn.svs'; export * as viewColumnService from './viewColumn.svs';
export * as metaDiffService from './metaDiff.svs'; export * as metaDiffService from './metaDiff.svs';
export * as mapViewService from './mapView.svs'; export * as mapViewService from './views/mapView.svs';
export * as modelVisibilityService from './modelVisibility.svs'; export * as modelVisibilityService from './modelVisibility.svs';
export * as sharedBaseService from './sharedBase.svs'; export * as sharedBaseService from './sharedBase.svs';
export * as orgUserService from './orgUser.svs'; export * as orgUserService from './orgUser.svs';

4
packages/nocodb/src/lib/services/formView.svs.ts → packages/nocodb/src/lib/services/views/formView.svs.ts

@ -1,7 +1,7 @@
import { T } from 'nc-help'; import { T } from 'nc-help';
import { FormReqType, ViewTypes } from 'nocodb-sdk'; import { FormReqType, ViewTypes } from 'nocodb-sdk';
import { validatePayload } from '../meta/api/helpers'; import { validatePayload } from '../../meta/api/helpers';
import { FormView, View } from '../models'; import { FormView, View } from '../../models';
export async function formViewGet(param: { formViewId: string }) { export async function formViewGet(param: { formViewId: string }) {
const formViewData = await FormView.getWithInfo(param.formViewId); const formViewData = await FormView.getWithInfo(param.formViewId);

4
packages/nocodb/src/lib/services/formViewColumn.svs.ts → packages/nocodb/src/lib/services/views/formViewColumn.svs.ts

@ -1,5 +1,5 @@
import { validatePayload } from '../meta/api/helpers'; import { validatePayload } from '../../meta/api/helpers';
import { FormViewColumn } from '../models'; import { FormViewColumn } from '../../models';
import { T } from 'nc-help'; import { T } from 'nc-help';
export async function columnUpdate(param: { export async function columnUpdate(param: {
formViewColumnId: string; formViewColumnId: string;

4
packages/nocodb/src/lib/services/galleryView.svs.ts → packages/nocodb/src/lib/services/views/galleryView.svs.ts

@ -1,7 +1,7 @@
import { GalleryReqType, ViewTypes } from 'nocodb-sdk'; import { GalleryReqType, ViewTypes } from 'nocodb-sdk';
import { T } from 'nc-help'; import { T } from 'nc-help';
import { validatePayload } from '../meta/api/helpers'; import { validatePayload } from '../../meta/api/helpers';
import { GalleryView, View } from '../models'; import { GalleryView, View } from '../../models';
export async function galleryViewGet(param: { galleryViewId: string }) { export async function galleryViewGet(param: { galleryViewId: string }) {
return await GalleryView.get(param.galleryViewId); return await GalleryView.get(param.galleryViewId);

6
packages/nocodb/src/lib/services/gridView.svs.ts → packages/nocodb/src/lib/services/views/gridView.svs.ts

@ -1,8 +1,8 @@
import { T } from 'nc-help'; import { T } from 'nc-help';
import { GridReqType, ViewTypes } from 'nocodb-sdk'; import { GridReqType, ViewTypes } from 'nocodb-sdk';
import { validatePayload } from '../meta/api/helpers'; import { validatePayload } from '../../meta/api/helpers';
import { View } from '../models'; import { View } from '../../models';
import { GridView } from '../models'; import { GridView } from '../../models';
export async function gridViewCreate(param: { export async function gridViewCreate(param: {
tableId: string; tableId: string;

4
packages/nocodb/src/lib/services/gridViewColumn.svs.ts → packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts

@ -1,6 +1,6 @@
import { GridColumnReqType } from 'nocodb-sdk'; import { GridColumnReqType } from 'nocodb-sdk';
import { validatePayload } from '../meta/api/helpers'; import { validatePayload } from '../../meta/api/helpers';
import GridViewColumn from '../models/GridViewColumn'; import GridViewColumn from '../../models/GridViewColumn';
import { T } from 'nc-help'; import { T } from 'nc-help';
export async function columnList(param: { gridViewId: string }) { export async function columnList(param: { gridViewId: string }) {

4
packages/nocodb/src/lib/services/kanbanView.svs.ts → packages/nocodb/src/lib/services/views/kanbanView.svs.ts

@ -1,6 +1,6 @@
import { KanbanReqType, ViewTypes } from 'nocodb-sdk'; import { KanbanReqType, ViewTypes } from 'nocodb-sdk';
import { validatePayload } from '../meta/api/helpers'; import { validatePayload } from '../../meta/api/helpers';
import { KanbanView, View } from '../models'; import { KanbanView, View } from '../../models';
import { T } from 'nc-help'; import { T } from 'nc-help';
export async function kanbanViewGet(param: { kanbanViewId: string }) { export async function kanbanViewGet(param: { kanbanViewId: string }) {

4
packages/nocodb/src/lib/services/mapView.svs.ts → packages/nocodb/src/lib/services/views/mapView.svs.ts

@ -1,7 +1,7 @@
import { MapType, ViewTypes } from 'nocodb-sdk'; import { MapType, ViewTypes } from 'nocodb-sdk';
import View from '../models/View'; import View from '../../models/View';
import { T } from 'nc-help'; import { T } from 'nc-help';
import MapView from '../models/MapView'; import MapView from '../../models/MapView';
export async function mapViewGet(param: { mapViewId: string }) { export async function mapViewGet(param: { mapViewId: string }) {
return await MapView.get(param.mapViewId); return await MapView.get(param.mapViewId);
Loading…
Cancel
Save