Coder Social home page Coder Social logo

ffos-notes's People

Contributors

evyatron avatar fzzzy avatar maticrivo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffos-notes's Issues

Use loose typing to simplify conditionals

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'

assets should not be marked executable

$ 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

Provide internationalized strings

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.

gh-pages branch is not up to date

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.

Sync with ownCloud Notes

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.

Limit global namespace pollution

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.

URL shown in title bar

STR:
!. Start app in simulator.
2. Click top left button
3. Click Connect with Evernote

Expected: Evernote banner along top

Actual: Unnecessary URL along top

Screen Shot 2013-03-22 at 2 05 15 PM

Cannot pick an image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.