mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-28 14:01:58 +00:00
Compare commits
No commits in common. "e1e4324f908b36b78606df3e8f7b47032c5c1a88" and "9425b3ccc13dd4fa5795ca46db1043b5c660dce6" have entirely different histories.
e1e4324f90
...
9425b3ccc1
@ -239,8 +239,7 @@ var FileSystemLoaderActions = actions.Actions({
|
||||
// NOTE: this will not match "dot filenames", this is done
|
||||
// intentionally to avoid the previews MAC computers
|
||||
// generate all over the place...
|
||||
// XXX make the pattern case-agnostic (see .imageFilePattern)
|
||||
'image-file-pattern': '*.@(jpg|jpeg|png|svg|gif)',
|
||||
'image-file-pattern': '*.@(jpg|jpeg|png|svg|JPG|JPEG|PNG|SVG)',
|
||||
|
||||
'image-file-read-stat': true,
|
||||
'image-file-skip-previews': false,
|
||||
@ -248,16 +247,6 @@ var FileSystemLoaderActions = actions.Actions({
|
||||
'default-load-method': 'loadIndex',
|
||||
},
|
||||
|
||||
// NOTE: this is not called too often thus there is not need to cache...
|
||||
get imageFilePattern(){
|
||||
return this.config['image-file-pattern']
|
||||
.replace(/([a-z]+)/g,
|
||||
function(e){
|
||||
return e +'|'+ e.toUpperCase() }) },
|
||||
set imageFilePattern(value){
|
||||
this.config['image-file-pattern'] = value },
|
||||
|
||||
|
||||
// XXX is this a hack???
|
||||
// XXX need a more generic form...
|
||||
checkPath: ['- File/',
|
||||
@ -512,7 +501,7 @@ var FileSystemLoaderActions = actions.Actions({
|
||||
// get the image list...
|
||||
return new Promise(function(resolve, reject){
|
||||
var files = {}
|
||||
glob.globStream(path +'/'+ that.imageFilePattern, {
|
||||
glob.globStream(path + '/'+ that.config['image-file-pattern'], {
|
||||
stat: !!read_stat,
|
||||
withFileTypes: true,
|
||||
strict: false,
|
||||
@ -1164,7 +1153,7 @@ var FileSystemLoaderUIActions = actions.Actions({
|
||||
|
||||
var o = browseWalk.makeWalk(null,
|
||||
base,
|
||||
this.imageFilePattern,
|
||||
this.config['image-file-pattern'],
|
||||
cfg)
|
||||
// path selected...
|
||||
.open(function(evt, path){
|
||||
|
||||
4
Viewer/package-lock.json
generated
4
Viewer/package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ImageGrid.Viewer.g4",
|
||||
"version": "4.0.11a",
|
||||
"version": "4.0.10a",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ImageGrid.Viewer.g4",
|
||||
"version": "4.0.11a",
|
||||
"version": "4.0.10a",
|
||||
"dependencies": {
|
||||
"app-module-path": "*",
|
||||
"async-json": "0.0.2",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user