mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-06 15:21:21 +08:00

Fixes #78 This is probably the largest commit that I have ever made. From now on - every File always has an mtime and ctime which is fetched from git. Notes can optionally override that time by providing yaml metadata. Additionally the 'filePath' and 'folderPath' is now relative to the repoPath instead of being the full path. This will slow down GitJournal like crazy as all the mtimes and ctime still need to be cached. For my test repo it takes about 23 seconds for GitJournal to become responsive.
26 lines
552 B
Dart
26 lines
552 B
Dart
/*
|
|
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import '../note.dart';
|
|
import 'notes_folder_config.dart';
|
|
import 'notes_folder_notifier.dart';
|
|
|
|
export 'notes_folder_config.dart';
|
|
|
|
abstract class NotesFolder implements NotesFolderNotifier {
|
|
bool get isEmpty;
|
|
bool get hasNotes;
|
|
String get name;
|
|
String get publicName;
|
|
|
|
List<Note> get notes;
|
|
List<NotesFolder> get subFolders;
|
|
NotesFolder? get parent;
|
|
NotesFolder? get fsFolder;
|
|
|
|
NotesFolderConfig get config;
|
|
}
|