Gaia

From MozillaWiki
Revision as of 13:32, 24 January 2012 by Benfrancis (talk | contribs) (→‎Apps)
Jump to navigation Jump to search

Hacking Gaia

see Gaia/Hacking

Coding Style

  • make sure HTML files are declared <!DOCTYPE html> (i.e., HTML5). IE9+ will load them in compatibility mode otherwise.
  • add a "use strict"; statement (exactly that!) to the top of your JS files
  • 2 spaces for indentation - do not use tab.
  • Line break are free (I promise) don't hesitate to use them to separate logical block inside your functions.
  • Files are named like_this.js.
  • Use single quote instead of double quotes.
  • Additional rules:

Bad:

if (expression) doSomething();

Correct:

if (expression)
  doSomething();

Before submitting a patch

On each javascript files you are adding or you have modified, run:

gjslint --nojsdoc my_file.js

http://code.google.com/closure/utilities/docs/linter_howto.html

Apps

  • Home screen (webGL cjones/ HTML vingtetun)
    • Keyboard/IME (vingtetun/timdream)
      • Chinese ZhuYing IME (timdream)
  • Lock screen (gal)
  • Dialer (vingtetun)
  • SMS application (vingtetun)
  • Browser (benfrancis)
  • Gallery (benfrancis)
  • Camera (benfrancis)
  • Media Player - benfrancis started on a music app which stores an Ogg file in IndexedDB, but someone else can take this up if they want, along with video playback
  • App Manager (justindarc)
  • Settings (justindarc)
  • UI/widget library (justindarc)
  • Apps store (justindarc)
  • eBook reader