teableio/teable

View on GitHub
plugins/src/app/sheet-form-view/components/sheet/constant.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { FieldType } from '@teable/core';
import type { IWorkbookData } from '@univerjs/core';
import { LocaleType } from '@univerjs/core';

export const DefaultSheetId = 'sheet1';
export const DefaultWorkBookName = 'workbook1';
export const LinkDisplayCount = 1000;

export const UnSupportFieldType = [FieldType.Attachment];

export const DefaultWorkBookData: IWorkbookData = {
  id: DefaultSheetId,
  sheetOrder: [DefaultSheetId],
  name: DefaultWorkBookName,
  appVersion: '3.0.0-alpha',
  locale: LocaleType.ZH_CN,
  styles: {},
  sheets: {
    sheet1: {
      id: DefaultSheetId,
      cellData: {
        '0': {
          '0': {
            v: '',
          },
        },
      },
      name: DefaultSheetId,
      hidden: 0,
      rowCount: 50,
      columnCount: 20,
      zoomRatio: 1,
      scrollTop: 200,
      scrollLeft: 100,
      defaultColumnWidth: 93,
      defaultRowHeight: 27,
      showGridlines: 1,
      rowHeader: {
        width: 46,
        hidden: 0,
      },
      columnHeader: {
        height: 20,
        hidden: 0,
      },
      rightToLeft: 0,
      tabColor: '',
      freeze: {
        xSplit: 0,
        ySplit: 0,
        startRow: -1,
        startColumn: -1,
      },
      mergeData: [],
      rowData: {},
      columnData: {},
    },
  },
  resources: [
    {
      name: 'SHEET_RANGE_PROTECTION_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_WORKSHEET_PROTECTION_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_DEFINED_NAME_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_AuthzIoMockService_PLUGIN',
      data: '{}',
    },
  ],
};