Add reading list internal page
This commit is contained in:
@@ -2,7 +2,8 @@ use std::collections::BTreeMap;
|
||||
|
||||
use ely_domain::{
|
||||
ArchivedTab, BookmarkEntry, BrowserTab, DomainError, DownloadEntry, DownloadPolicy,
|
||||
HistoryEntry, Profile, ProfileId, ProfileKind, Space, SpaceId, SyncStatus, TabId, UrlText,
|
||||
HistoryEntry, Profile, ProfileId, ProfileKind, ReadingListEntry, Space, SpaceId, SyncStatus,
|
||||
TabId, UrlText,
|
||||
};
|
||||
|
||||
use crate::CoreError;
|
||||
@@ -13,6 +14,7 @@ mod downloads;
|
||||
mod history;
|
||||
mod plugins;
|
||||
mod profiles;
|
||||
mod reading_list;
|
||||
mod sync;
|
||||
mod tabs;
|
||||
|
||||
@@ -44,6 +46,7 @@ pub struct BrowserSnapshot {
|
||||
pub pinned_tabs: Vec<BrowserTab>,
|
||||
pub archived_tabs: Vec<ArchivedTab>,
|
||||
pub bookmarks: Vec<BookmarkEntry>,
|
||||
pub reading_list: Vec<ReadingListEntry>,
|
||||
pub download_entries: Vec<DownloadEntry>,
|
||||
pub history_entries: Vec<HistoryEntry>,
|
||||
pub installed_plugins: Vec<InstalledPlugin>,
|
||||
@@ -67,6 +70,7 @@ pub struct BrowserCore {
|
||||
tabs: Vec<BrowserTab>,
|
||||
archived_tabs: Vec<ArchivedTab>,
|
||||
bookmarks: Vec<BookmarkEntry>,
|
||||
reading_list: Vec<ReadingListEntry>,
|
||||
download_entries: Vec<DownloadEntry>,
|
||||
history_entries: Vec<HistoryEntry>,
|
||||
installed_plugins: Vec<InstalledPlugin>,
|
||||
@@ -112,6 +116,7 @@ impl BrowserCore {
|
||||
tabs: vec![tab],
|
||||
archived_tabs: Vec::new(),
|
||||
bookmarks: Vec::new(),
|
||||
reading_list: Vec::new(),
|
||||
download_entries: Vec::new(),
|
||||
history_entries: Vec::new(),
|
||||
installed_plugins: Vec::new(),
|
||||
@@ -194,6 +199,7 @@ impl BrowserCore {
|
||||
pinned_tabs: self.pinned_tabs(),
|
||||
archived_tabs: self.archived_tabs.clone(),
|
||||
bookmarks: self.visible_bookmarks(),
|
||||
reading_list: self.visible_reading_list(),
|
||||
download_entries: self.visible_downloads(),
|
||||
history_entries: self.visible_history(),
|
||||
installed_plugins: self.installed_plugins.clone(),
|
||||
|
||||
Reference in New Issue
Block a user