mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 12:09:52 -05:00
NoteUtils: Add methods to parse note metadata
These methods are intended to parse metadata details from YAML tags, but not implemented for now. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
f5e043b8b1
commit
f937042439
1 changed files with 18 additions and 0 deletions
18
src/notes/note.utils.ts
Normal file
18
src/notes/note.utils.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { Note } from './note.entity';
|
||||
|
||||
export class NoteUtils {
|
||||
public static parseTitle(note: Note): string {
|
||||
// TODO: Implement method
|
||||
return 'Hardcoded note title';
|
||||
}
|
||||
|
||||
public static parseDescription(note: Note): string {
|
||||
// TODO: Implement method
|
||||
return 'Hardcoded note description';
|
||||
}
|
||||
|
||||
public static parseTags(note: Note): string[] {
|
||||
// TODO: Implement method
|
||||
return ['Hardcoded note tag'];
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue