applait / finderjs Goto Github PK
View Code? Open in Web Editor NEWFinder and file picker library for Firefox OS
Home Page: http://finder.js.org
License: MIT License
Finder and file picker library for Firefox OS
Home Page: http://finder.js.org
License: MIT License
console.log
should only print if this.debugmode
is true
console.log
.We print versions in different places:
package.json
src/applait.finder.js
applait.finder.min.js
There should be a test to ensure all of them have the same version string.
Write specs to ensure that the reset
method cleans up data properly.
As of now, passing hidden: false
in constructor options hide only hidden files, i.e. files whose names begin with a dot. But this includes files from trash directories and other hidden directories that are intended for caching, e.g. /sdcard1/.TRASH-1000/
.
So, the checkhidden
method should also include folder names and check if any portion of the path begins with a dot.
Add unit tests or I will start screaming soon.
Hello,
I working on an App for KaiOs.
How to restrict the search to a folder?
Cheers John
Write a separate spec for checkhidden
method.
It should test if checkhidden
:
false
if this.hidden = false
false
if filename begins with a dot.false
if file is inside a hidden directory (whose name begins with a dot)true
if this.hidden = true
Put these tests in a new specfile at tests/methodSpec.js
.
Write a spec for splitname
method.
Is it possible to add a functionality that will allow to preset a specific path into FinderJS view? I mean, suppose we have the following "directory tree" (i.e. object):
+ root
|
+ -- dir1
+ -- dir2
|
+ -- file.txt
Then, we can do something like:
var finder = createFinderJS();
finder.navigate('/dir2/file.txt');
And FinderJS will navigate to this path like if one do it manually using mouse or keyboard. Or, if it is not planned, could you please give a tip how to introduce this functionality manually?
I want use FinderJs for pick/choose image in app in FirefoxOS. But i dont understand how i can find all files of images type(jpg) If I understand(I find here:http://stackoverflow.com/questions/23527190/file-picker-on-firefox-os and on this github) its depend on argument searchterm: finder.search(searchterm);. I try "." but result in debug was empty or searchComplete Array [ ".", 0 ] If I try search exist image (in firefox profile fake-card) How i show/write all images in device?
Tahnks
true
if searchkey
matches and this.checkhidden()
is true
.false
if searchkey
matches and this.checkhidden()
is false
.this.casesensitive
is true
.this.casesensitive
is false
.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.