mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
fixed an issue with running ig from outside of the project dir...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8e139a80e1
commit
04420b7a3b
@ -12,6 +12,10 @@ var requirejs_cfg = {
|
|||||||
document.baseURI
|
document.baseURI
|
||||||
.replace(/^[a-zA-Z]+:\/\/\/?/, '')
|
.replace(/^[a-zA-Z]+:\/\/\/?/, '')
|
||||||
.split(/[#&]/)[0].split(/[\\\/]/g).slice(0, -1).join('/')
|
.split(/[#&]/)[0].split(/[\\\/]/g).slice(0, -1).join('/')
|
||||||
|
// node...
|
||||||
|
: typeof(process) != 'undefined' ?
|
||||||
|
process.argv[1].split(/[\\\/]/g).slice(0, -1).join('/')
|
||||||
|
// everything else...
|
||||||
: './',
|
: './',
|
||||||
|
|
||||||
// XXX this does not work on direct filesystem access...
|
// XXX this does not work on direct filesystem access...
|
||||||
|
|||||||
@ -209,13 +209,18 @@ var CLIActions = actions.Actions({
|
|||||||
function(){
|
function(){
|
||||||
// XXX
|
// XXX
|
||||||
}],
|
}],
|
||||||
|
// XXX
|
||||||
|
startWorker: ['- System/Start as worker',
|
||||||
|
{cli: '-worker'},
|
||||||
|
function(){
|
||||||
|
// XXX
|
||||||
|
}],
|
||||||
|
|
||||||
// XXX metadata caching and preview creation are not in sync, can
|
// XXX metadata caching and preview creation are not in sync, can
|
||||||
// this be a problem???
|
// this be a problem???
|
||||||
// ...if not, add a note...
|
// ...if not, add a note...
|
||||||
// XXX should we support creating multiple indexes at the same time???
|
// XXX should we support creating multiple indexes at the same time???
|
||||||
// XXX this is reletively generic, might be useful globally...
|
// XXX this is reletively generic, might be useful globally...
|
||||||
// XXX add support for cwd and relative paths...
|
|
||||||
// XXX should we use a clean index or do this in-place???
|
// XXX should we use a clean index or do this in-place???
|
||||||
makeIndex: ['- System/Make index',
|
makeIndex: ['- System/Make index',
|
||||||
{cli: {
|
{cli: {
|
||||||
@ -225,7 +230,9 @@ var CLIActions = actions.Actions({
|
|||||||
}},
|
}},
|
||||||
function(path){
|
function(path){
|
||||||
var that = this
|
var that = this
|
||||||
path = util.normalizePath(path)
|
|
||||||
|
path = util.normalizePath(
|
||||||
|
pathlib.resolve(process.cwd(), path))
|
||||||
|
|
||||||
// XXX should we use a clean index or do this in-place???
|
// XXX should we use a clean index or do this in-place???
|
||||||
//var index = this.constructor(..)
|
//var index = this.constructor(..)
|
||||||
|
|||||||
@ -501,7 +501,7 @@ var SharpActions = actions.Actions({
|
|||||||
return [gid, size, name] },
|
return [gid, size, name] },
|
||||||
function(err){
|
function(err){
|
||||||
// XXX error
|
// XXX error
|
||||||
logger && logger.emit('skipped', gid)
|
//logger && logger.emit('skipped', gid)
|
||||||
}) })) })],
|
}) })) })],
|
||||||
|
|
||||||
// XXX add support for offloading the processing to a thread/worker...
|
// XXX add support for offloading the processing to a thread/worker...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user