• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 11342251885

15 Oct 2024 08:30AM CUT coverage: 84.693%. First build
11342251885

Pull #986

github

web-flow
Merge d647eb238 into 7794225a9
Pull Request #986: feat: support excel form view

5712 of 6020 branches covered (94.88%)

54 of 55 new or added lines in 5 files covered. (98.18%)

37879 of 44725 relevant lines covered (84.69%)

1623.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/nestjs-backend/src/share-db/utils.ts
1
import { ActionPrefix, IdPrefix } from '@teable/core';
×
2
import type { CreateOp, DeleteOp, EditOp } from 'sharedb';
×
3

×
4
export const getPrefixAction = (docType: IdPrefix) => {
×
5
  switch (docType) {
×
6
    case IdPrefix.View:
×
7
      return ActionPrefix.View;
×
8
    case IdPrefix.Table:
×
9
      return ActionPrefix.Table;
×
10
    case IdPrefix.Record:
×
11
      return ActionPrefix.Record;
×
12
    case IdPrefix.Field:
×
13
      return ActionPrefix.Field;
×
14
    default:
×
15
      return null;
×
16
  }
×
17
};
×
18

×
19
export const getAction = (op: CreateOp | DeleteOp | EditOp) => {
×
20
  if (op.create) {
×
21
    return 'create';
×
22
  }
×
23
  if (op.del) {
×
24
    return 'delete';
×
25
  }
×
26
  if (op.op) {
×
27
    return 'update';
×
28
  }
×
29
  return null;
×
30
};
×
31

×
32
export const getAxiosBaseUrl = () => `http://localhost:${process.env.PORT}/api`;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc