Files
nocodb/packages/nc-gui/lib/constants.ts
Ramesh Mane 5041a10533 Fix: Persist the left sidebar width and use pixels instead of percentage to configure the sidebar width (#8931)
* fix(nc-gui): use px to configure left sidebar width instead of percentage

* fix(nc-gui): ai review changes

* fix(nc-gui): use 256px sidebar default width in pw testing

* fix: use constant sidebar width

* fix(test): airtable import test fail issue

* chore(test): remove console

* chore(nc-gui): update comment
2024-07-05 16:43:13 +05:30

23 lines
593 B
TypeScript

export const NOCO = 'noco'
export const SYSTEM_COLUMNS = ['id', 'title', 'created_at', 'updated_at']
export const EMPTY_TITLE_PLACEHOLDER_DOCS = 'Untitled'
export const MAX_WIDTH_FOR_MOBILE_MODE = 480
export const BASE_FALLBACK_URL = process.env.NODE_ENV === 'production' ? '..' : 'http://localhost:8080'
export const GROUP_BY_VARS = {
NULL: '__nc_null__',
TRUE: '__nc_true__',
FALSE: '__nc_false__',
VAR_TITLES: {
__nc_null__: 'Empty',
__nc_true__: 'Checked',
__nc_false__: 'Unchecked',
} as Record<string, string>,
}
export const INITIAL_LEFT_SIDEBAR_WIDTH = 288