mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-08-07 07:14:49 +00:00
a4c590230e
This field should allow the user to allow pages to be found easily on the public explore page without exposing all pages directly. Co-authored-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Philip Molares <philip.molares@udo.edu>
35 lines
789 B
TypeScript
35 lines
789 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import type { NoteDetails } from './types'
|
|
import { defaultNoteFrontmatter } from '@hedgedoc/commons'
|
|
|
|
export const initialState: NoteDetails = {
|
|
lastUpdatedBy: null,
|
|
version: 0,
|
|
markdownContent: {
|
|
plain: '',
|
|
lines: [],
|
|
lineStartIndexes: []
|
|
},
|
|
selection: { from: 0 },
|
|
rawFrontmatter: '',
|
|
startOfContentLineOffset: 0,
|
|
createdAt: '1970-01-01T00:00:00.000Z',
|
|
updatedAt: '1970-01-01T00:00:00.000Z',
|
|
aliases: [],
|
|
primaryAlias: '',
|
|
permissions: {
|
|
owner: null,
|
|
publiclyVisible: false,
|
|
sharedToGroups: [],
|
|
sharedToUsers: []
|
|
},
|
|
editedBy: [],
|
|
title: '',
|
|
firstHeading: '',
|
|
frontmatter: defaultNoteFrontmatter
|
|
}
|