everythingme / ffos-notes Goto Github PK
View Code? Open in Web Editor NEWNotes App for FirefoxOS
Notes App for FirefoxOS
The code looks for a url, but the activity now returns a blob.
In common.js, in actionPhoto:
if (!act.result.url) return;
The act.result object now looks like:
{"type": "image/jpeg", "blob", blob_obj}
Therefore even though the image is picked successfully, the early-exit is hit because there is no url property of the result, and thus nothing happens.
Also, the "reopenApp" function does not appear to be required -- Removing it makes no difference, once the image is picked the notes app is loaded even without the reopenApp code.
Steps To Reproduce (STR):
Expected:
New note created
Actual:
JS error: ReferenceError: enml not defined line 583
Looks like emnl is defined in js-binary/enml-js/enml.js
These three lines are doing the exact same thing, move them into a function.
STR:
Expected: ToS or PP presented
Actual: Nothing
notes.js introduces a ton of variables into the global namespace. Sure it may be the last included script and it may work now, but that doesn't make for very maintainable JS. Please wrap it in a self executing anonymous function.
Line 44 in 87bd2b0
is then called again on the next line. Don't Repeat Yourself
Don't worry about prettifying HTML. Just use JSON.stringify(responseData)
Line 241 in 87bd2b0
For instance, what the hell is this.
Remove code that has been commented out from the code base. If you need to keep previous examples around, refer to diffs between patches. ex.
Line 366 in 87bd2b0
Delete a note
Enter "Trash" folder
Sort by anything
it seems like it shows all the notes, regardless of notebooks or trashed status.
ownCloud also has a Notes app with an API: https://github.com/owncloud/notes/wiki/API-0.2 – we also support WebDAV, and use plaintext files in the »Notes« subfolder.
Would be cool if the Firefox OS Notes app would support that as well since ownCloud gets more and more widespread and is open source software you can host yourself. You can see more info about the app at http://apps.owncloud.com/content/show.php/Notes?content=160567
If you have any questions, @Raydiation is the developer of ownCloud Notes and the API. Would be cool to get that going to forward sync with open platforms next to Evernote.
The required translations for pre-installed applications are English, Spanish, Portuguese, Polish, Croatian, Czech, German, Hungarian, and Romanian.
Most of gaia uses the webL10N library and I've used it as well. I would recommend it.
FINALLY today we have learned why the notes app has been stuck in the marketplace review queue forever... Because the gh-pages branch is not completely up to date! The latest commit to the manifest file, hilariously enough, intentionally adds an error to the manifest file... Which causes it to fail review.
Memory is cheap, maintaining code is not:
Instead of passing an object literal in a nice one liner, the code is more readable if you declare the object on the previous line.
Line 215 in 87bd2b0
Because types in JavaScript are loosely defined and be coerced at runtime this line can be rewritten:
if (oauthtoken && noteStoreUrl && shardUrl) {
if any of the above are undefined or the empty string, those values are falsy and evaluate to false. Please do not ever do variable != 'undefined'
JavaScript is a loosely typed language, and implicit conversions can rear their head at the most unfortunate times. Please always use === or !== in conditionals in notes.js.
$ find . -perm -755 -type f -not -iwholename '*.git*'
should all be chmod 644
'ed
$ find . -perm -755 -type f -not -iwholename '*.git*' | xargs -P 4 chmod 644
would do the trick
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.