mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added preliminary support for commenting saves + some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6a31b48a96
commit
f94a3025fe
@ -168,6 +168,8 @@ win64: $(APP_ZIP) $(WIN_BUILD_DIR)
|
||||
chmod +x $(WIN_BUILD_DIR)/*.{exe,dll}
|
||||
cp -vR \
|
||||
$(NODE_DIR) $(WIN_BUILD_DIR)
|
||||
# XXX is this correct???
|
||||
cp -vR "`which exiftool`" $(WIN_BUILD_DIR)
|
||||
# cleanup nwjs-sdk...
|
||||
rm -f $(WIN_BUILD_DIR)/nwsnapshot.exe \
|
||||
$(WIN_BUILD_DIR)/payload.exe \
|
||||
|
||||
@ -217,7 +217,7 @@
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
.browse-widget .list>div.highlighted .text:after {
|
||||
.browse-widget .list>div.highlighted .text:last-child:after {
|
||||
content: ' *';
|
||||
}
|
||||
.browse-widget:not(.flat) .list div:not(.not-traversable) .text:after {
|
||||
|
||||
@ -475,6 +475,15 @@ var FileSystemLoaderUIActions = actions.Actions({
|
||||
},
|
||||
},
|
||||
|
||||
// Save comments...
|
||||
//
|
||||
// Format:
|
||||
// {
|
||||
// <timestamp>: <comment>
|
||||
// }
|
||||
savecomments: null,
|
||||
|
||||
|
||||
// XXX should the loader list be nested or open in overlay (as-is now)???
|
||||
browsePath: ['File/Browse file system...',
|
||||
widgets.makeUIDialog(function(base, callback){
|
||||
@ -607,8 +616,7 @@ var FileSystemLoaderUIActions = actions.Actions({
|
||||
// NOTE: this will set changes to all when loading a different state
|
||||
// that the latest and to non otherwise....
|
||||
//
|
||||
// XXX handle named saves...
|
||||
// XXX add ability to name a save...
|
||||
// XXX add comment editing...
|
||||
// XXX need to handle saves (saveIndex(..) and friends) when loaded
|
||||
// a specific history position...
|
||||
// ...in theory saving and old index will create an incremental
|
||||
@ -675,8 +683,17 @@ var FileSystemLoaderUIActions = actions.Actions({
|
||||
.forEach(function(d){
|
||||
var txt = Date.fromTimeStamp(d).toShortDate()
|
||||
|
||||
// XXX get the save name...
|
||||
make(txt)
|
||||
// get the save name...
|
||||
var title = [txt]
|
||||
var comment = that.savecomments && that.savecomments[d]
|
||||
//title.push(comment || '')
|
||||
comment && title.push(comment)
|
||||
|
||||
// XXX is this the best format???
|
||||
title = title.join(' - ')
|
||||
|
||||
make(title)
|
||||
.attr('timestamp', d)
|
||||
.on('open', function(){
|
||||
that.loadIndex(that.location.path, d)
|
||||
.then(function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user