mirror of
https://github.com/docmost/docmost.git
synced 2026-07-15 10:46:50 +10:00
4e5bff6d55
Table and kanban UI, formula engine package, and the base-embed editor extension
19 lines
388 B
TypeScript
19 lines
388 B
TypeScript
import * as path from 'path';
|
|
|
|
export const APP_DATA_PATH = 'data';
|
|
const LOCAL_STORAGE_DIR = `${APP_DATA_PATH}/storage`;
|
|
|
|
export const LOCAL_STORAGE_PATH = path.resolve(
|
|
process.cwd(),
|
|
'..',
|
|
'..',
|
|
LOCAL_STORAGE_DIR,
|
|
);
|
|
|
|
export function getPageTitle(
|
|
title: string | null | undefined,
|
|
isBase?: boolean,
|
|
): string {
|
|
return title || (isBase ? 'Untitled base' : 'untitled');
|
|
}
|