Commit graph

13 commits

Author SHA1 Message Date
Sacha Greif
fc7f77a2e9 style subcategories in mobile nav 2015-08-05 19:24:35 +09:00
Sacha Greif
b02b5688b3 removing module template to simplify template structure 2015-07-20 10:11:55 +09:00
Sacha Greif
7fa932874b use flexbox for top header layout 2015-07-15 15:26:25 +09:00
Sacha Greif
dc8a0fb1e2 make template highlighting code more flexible, tweak header layout; revert a couple changes 2015-07-15 10:06:44 +09:00
Sacha Greif
6c10a8e4df renamed nav template to header; more template and CSS tweaks 2015-07-14 21:45:18 +09:00
Sacha Greif
793019297e more work on debug package; started restructuring templates to wrap them all in an outer HTML element and avoid text nodes 2015-07-14 19:39:37 +09:00
Sacha Greif
60024af0d1 Telescope.menus -> Telescope.menuItems 2015-05-18 11:11:14 +09:00
Sacha Greif
767d4b8178 template camelCase -> underscore 2015-05-18 10:00:41 +09:00
Sacha Greif
80750f83ac UI.registerHelper -> Template.registerHelper; fix logo 2015-05-02 11:45:25 +09:00
Maxime Quandalle
94c6121d91 Improve jsHint consistency
This commit touch a lot of lines of code with the goal to be more
rigorous about JavaScript code conventions defined in the `.jshintrc`.

Some modification:

* Add a list of used global symbols in the corresponding section of
  `.jshintrc`
* Use local variables instead of global in a lot of places where the
  keyword `var` was mistakenly forgotten
* Add missing semi-colons after instructions
* Add new lines at the end of files
* Remove trailing whitespaces
* Use newer name of some Meteor APIs, eg `addFiles` instead of
  `add_files`
* Add missing `break` statements in `switch` blocks
* Use `===` instead of `==` and `!==` instead of `!=`
* Remove unused variables

This commit should also fix a few bugs due to this lack of rigor. One
example of that was the test `typeof navElements === "array"` that was
never true because in JavaScript, `typeof [] === "object"`, we
replaced this test by the `_.isArray` method provided by underscore.
It might also fix some potential collision related to global
variables.

There is still plenty of work until Telescope code base passes jsHint
validation, but at least this commit is a step in the right direction.
2015-05-01 18:38:27 +02:00
Sacha Greif
964f91aa88 refactoring menus API 2015-04-24 10:49:24 +09:00
Sacha Greif
7770c21d3a Making module system more flexible to accept wrapping divs 2015-04-24 10:22:17 +09:00
Sacha Greif
362506a199 move core templates 2015-04-22 12:14:59 +09:00