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

teableio / teable / 10345112947

12 Aug 2024 02:48AM CUT coverage: 82.663% (-0.006%) from 82.669%
10345112947

push

github

web-flow
Adding one-click deploy button for RepoCloud.io to README.md (#599)

Adding button enabling community access to one-click deploy template for self-hosting on RepoCloud.io

Signed-off-by: cosark <121065588+cosark@users.noreply.github.com>

4404 of 4625 branches covered (95.22%)

29324 of 35474 relevant lines covered (82.66%)

1241.38 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