Rewrite history page
This commit is contained in:
1 parent
f19a6f64c3
commit
532640058e
11 files changed
+201
-230
No files matched your search
+15
-2
@@ -62,12 +62,25 @@ impl WordData {
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HistoryItem {
|
||||
pub struct HistoryNote {
|
||||
pub id: Id,
|
||||
pub timestamp: DateTime<Utc>,
|
||||
pub set_id: Id,
|
||||
pub word_id: Id,
|
||||
pub mode: WordOpenMode,
|
||||
pub answer: WordOpenMode,
|
||||
pub before: u8,
|
||||
pub after: u8,
|
||||
pub fsrs: bool
|
||||
}
|
||||
|
||||
impl EntityData for HistoryNote {
|
||||
fn id(&self) -> Id {
|
||||
self.id
|
||||
}
|
||||
|
||||
fn set_id(&mut self, id: Id) {
|
||||
self.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
||||
Reference in new issue
Block a user