mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
notes and started on persistent journal...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f3f6c820db
commit
67e246e14a
@ -1934,8 +1934,8 @@ module.Timers = ImageGridFeatures.Feature({
|
||||
//
|
||||
|
||||
// XXX need a mechanism to store the journal in sync (localStorage/fs)
|
||||
// and be able to execute the journal from last save position if
|
||||
// recovering from close/crash...
|
||||
// and be able to execute the journal from a save position (which one?)
|
||||
// if recovering from close/crash...
|
||||
// XXX should this be a separate feature???
|
||||
//
|
||||
// XXX would be great to add a mechanism define how to reverse actions...
|
||||
@ -2192,6 +2192,36 @@ module.Journal = ImageGridFeatures.Feature({
|
||||
})
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
// XXX persistent journal...
|
||||
// - save journal to localStorage
|
||||
// - save journal to file (auto-save)
|
||||
// ...fs???
|
||||
// - on load -> load journal after last save
|
||||
// XXX need to revise journaling actions before shipping this...
|
||||
// XXX EXPERIMENTAL...
|
||||
var PersistentJournalActions = actions.Actions({
|
||||
// XXX
|
||||
})
|
||||
|
||||
var PersistentJournal =
|
||||
module.PersistentJournal = ImageGridFeatures.Feature({
|
||||
title: 'Action persistent Journal',
|
||||
|
||||
tag: 'persistent-journal',
|
||||
depends: [
|
||||
'journal',
|
||||
],
|
||||
|
||||
actions: PersistentJournalActions,
|
||||
|
||||
handlers: [
|
||||
// XXX
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Changes...
|
||||
|
||||
@ -871,6 +871,7 @@ var SharpActions = actions.Actions({
|
||||
})
|
||||
|
||||
// read the metadata...
|
||||
// XXX this can err on some images, need to handle this...
|
||||
var exif = metadata.exif
|
||||
&& exifReader(metadata.exif)
|
||||
exif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user