mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4b632bc3bf
commit
c30b12d6b8
@ -591,6 +591,7 @@ function(json, changes){
|
|||||||
|
|
||||||
// clean out some stuff from data...
|
// clean out some stuff from data...
|
||||||
delete res.data.tags.bookmark
|
delete res.data.tags.bookmark
|
||||||
|
delete res.data.tags.bookmark_data
|
||||||
delete res.data.tags.selected
|
delete res.data.tags.selected
|
||||||
delete res.data.tags
|
delete res.data.tags
|
||||||
|
|
||||||
|
|||||||
@ -114,14 +114,16 @@ module.setupActions = function(viewer){
|
|||||||
if(typeof(glob) != 'undefined'){
|
if(typeof(glob) != 'undefined'){
|
||||||
|
|
||||||
window.load2014 = function(){
|
window.load2014 = function(){
|
||||||
return glob('l:/media/img/my/2014/*jpg')
|
return a.loadImages('l:/media/img/my/2014/')
|
||||||
.on('end', function(l){ window.a.loadURLs(l) })
|
//return glob('l:/media/img/my/2014/*jpg')
|
||||||
|
// .on('end', function(l){ window.a.loadURLs(l) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
window.loadInsta = function(){
|
window.loadInsta = function(){
|
||||||
return glob('l:/mnt/Dropbox/Instagram/fav/ALL/*+(jpg|png)')
|
return a.loadImages('l:/mnt/Dropbox/Instagram/fav/ALL/')
|
||||||
.on('end', function(l){ window.a.loadURLs(l) })
|
//return glob('l:/mnt/Dropbox/Instagram/fav/ALL/*+(jpg|png)')
|
||||||
|
// .on('end', function(l){ window.a.loadURLs(l) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -264,6 +264,8 @@ actions.Actions({
|
|||||||
// XXX should this be here???
|
// XXX should this be here???
|
||||||
loadURLs: ['File/Load a URL list',
|
loadURLs: ['File/Load a URL list',
|
||||||
function(lst){
|
function(lst){
|
||||||
|
this.clear()
|
||||||
|
|
||||||
this.images = images.Images.fromArray(lst)
|
this.images = images.Images.fromArray(lst)
|
||||||
this.data = data.Data.fromArray(this.images.keys())
|
this.data = data.Data.fromArray(this.images.keys())
|
||||||
}],
|
}],
|
||||||
@ -3331,6 +3333,9 @@ if(window.nodejs != null){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// XXX revise base path mechanics...
|
||||||
|
// .base_path
|
||||||
|
// .loaded_paths
|
||||||
var FileSystemLoaderActions = actions.Actions({
|
var FileSystemLoaderActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
//'index-dir': '.ImageGrid',
|
//'index-dir': '.ImageGrid',
|
||||||
@ -3464,6 +3469,9 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
return glob(path + '/*+(jpg|png)')
|
return glob(path + '/*+(jpg|png)')
|
||||||
.on('end', function(lst){
|
.on('end', function(lst){
|
||||||
that.loadURLs(lst)
|
that.loadURLs(lst)
|
||||||
|
|
||||||
|
// XXX not sure if this is the way to go...
|
||||||
|
that.base_path = path
|
||||||
})
|
})
|
||||||
}],
|
}],
|
||||||
|
|
||||||
@ -3677,7 +3685,7 @@ var FileSystemWriterActions = actions.Actions({
|
|||||||
logger = logger || this.logger
|
logger = logger || this.logger
|
||||||
|
|
||||||
// XXX get real base path...
|
// XXX get real base path...
|
||||||
path = path || this.base_path +'/'+ this.config['index-dir']
|
//path = path || this.base_path +'/'+ this.config['index-dir']
|
||||||
|
|
||||||
file.writeIndex(
|
file.writeIndex(
|
||||||
this.prepareIndexForWrite().prepared,
|
this.prepareIndexForWrite().prepared,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user