mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 05:16:54 +00:00
43 lines
759 B
TypeScript
43 lines
759 B
TypeScript
import {
|
|
ncIsArray,
|
|
ncIsArrayIncludes,
|
|
ncIsBoolean,
|
|
ncIsEmptyArray,
|
|
ncIsEmptyObject,
|
|
ncIsFunction,
|
|
ncIsNull,
|
|
ncIsNullOrUndefined,
|
|
ncIsNumber,
|
|
ncIsObject,
|
|
ncIsPromise,
|
|
ncIsString,
|
|
ncIsUndefined,
|
|
} from 'nocodb-sdk'
|
|
|
|
const ncIsPlaywright = () => {
|
|
return !!(window as any)?.isPlaywright
|
|
}
|
|
|
|
const ncIsSharedViewOrBase = () => {
|
|
// Use sessionStorage instead of localStorage to make it tab-specific
|
|
return sessionStorage.getItem('ncIsSharedViewOrBase') === 'true'
|
|
}
|
|
|
|
export {
|
|
ncIsObject,
|
|
ncIsEmptyObject,
|
|
ncIsArray,
|
|
ncIsEmptyArray,
|
|
ncIsString,
|
|
ncIsNumber,
|
|
ncIsBoolean,
|
|
ncIsUndefined,
|
|
ncIsNull,
|
|
ncIsFunction,
|
|
ncIsPromise,
|
|
ncIsArrayIncludes,
|
|
ncIsPlaywright,
|
|
ncIsSharedViewOrBase,
|
|
ncIsNullOrUndefined,
|
|
}
|