Files
hedgedoc/frontend/src/redux/note-details/initial-state.ts
T
Philip Molares a4c590230e feat(permissions): publiclyVisible flag for note listing on explore
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>
2026-01-11 20:21:00 +01:00

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
}