Add chat files panel explorer shell with sorting and views

This commit is contained in:
2026-11-07 01:06:23 +00:00
parent f4ba2ab25e
commit 5a1d503f58
10 changed files with 650 additions and 6 deletions
@@ -9,6 +9,8 @@ class DirectoryEntry {
required this.isDir,
required this.isGitRepo,
required this.hidden,
this.size,
this.modified,
});
factory DirectoryEntry.fromJson(JsonMap json) => DirectoryEntry(
@@ -17,6 +19,8 @@ class DirectoryEntry {
isDir: json['is_dir'] == true,
isGitRepo: json['is_git_repo'] == true,
hidden: json['hidden'] == true,
size: json['size'] is num ? (json['size'] as num).toInt() : null,
modified: json['modified'] is String ? json['modified'] as String : null,
);
final String name;
@@ -24,6 +28,8 @@ class DirectoryEntry {
final bool isDir;
final bool isGitRepo;
final bool hidden;
final int? size;
final String? modified;
}
/// The server's home-restricted listing of one folder.