feat: theme chrome by palette, selectable text, wap fallback, and library pages
This commit is contained in:
parent
c104c2026b
commit
56f3d959fa
12 changed files with 534 additions and 51 deletions
|
|
@ -91,6 +91,27 @@ class MewsDatabase extends _$MewsDatabase {
|
|||
return row?.url;
|
||||
}
|
||||
|
||||
/// The most recent external visits, newest first.
|
||||
Future<List<HistoryItem>> recentVisits({int limit = 50}) async {
|
||||
final query = (select(historyItems)
|
||||
..orderBy([
|
||||
(r) => OrderingTerm.desc(r.visitedAt),
|
||||
(r) => OrderingTerm.desc(r.id),
|
||||
])
|
||||
..limit(limit));
|
||||
return query.get();
|
||||
}
|
||||
|
||||
/// Bookmarks in the order they were added, newest first.
|
||||
Future<List<Bookmark>> bookmarksByDate() async {
|
||||
final query = (select(bookmarks)
|
||||
..orderBy([
|
||||
(r) => OrderingTerm.desc(r.createdAt),
|
||||
(r) => OrderingTerm.desc(r.id),
|
||||
]));
|
||||
return query.get();
|
||||
}
|
||||
|
||||
// Bookmarks -----------------------------------------------------------
|
||||
|
||||
Future<List<Bookmark>> allBookmarks() => select(bookmarks).get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue