Commit graph

26 commits

Author SHA1 Message Date
Sacha Greif
b64945418d set data context for post page inside post property, not on root 2015-07-22 15:06:45 +09:00
Sacha Greif
53fad7f3db renamed "postsListTop" zone to "top"; removed footer template; added Telescope.debug.refresh() function; improved debugging 2015-07-15 12:33:06 +09:00
Sacha Greif
f9842277cd implement fastRender for post lists + daily views 2015-07-08 16:00:27 +09:00
Sacha Greif
9eef5fdf07 use Subs Manager for some template-level subscriptions to fix post page content flash issue 2015-07-07 12:54:23 +09:00
Sacha Greif
ffe1cf3316 only add trailing slash to siteUrl, not other url fields 2015-06-25 12:03:10 +09:00
Sacha Greif
18d8a962ac do not use onBeforeAction for loading on post page (fix screen refresh bug) 2015-06-25 11:26:56 +09:00
Sacha Greif
c206230ee5 completely refactor notifications code 2015-06-24 15:38:14 +09:00
Sacha Greif
0c492e3012 added canonical link 2015-06-19 16:39:13 +09:00
Sacha Greif
b15d9095c0 add email testing routes for post approved, new comment, and new reply; clean up notifications; clean up posts, comments, user, utils helpers; change post URL format to /id/slug 2015-06-19 11:52:57 +09:00
Sacha Greif
d3058cf908 use replaceState instead of Router.go to avoid messing with history 2015-06-19 11:50:59 +09:00
Sacha Greif
7e48d49366 working on post URL slugs 2015-06-18 13:04:38 +09:00
Sacha Greif
f1469a04ae make sure default view controller exists 2015-05-19 18:29:54 +09:00
Sacha Greif
29babb9a38 postListTop -> postsListTop; Telescope.utils.colorTable -> Telescope.colorElements.colorTable; reogranize menus code 2015-05-18 11:39:12 +09:00
Sacha Greif
60024af0d1 Telescope.menus -> Telescope.menuItems 2015-05-18 11:11:14 +09:00
Alex Corre
cc9a098c92 remove some trailing commas from telescope-posts 2015-05-12 14:30:10 -07:00
Sacha Greif
bd441a689d fix pending posts; let users access their own pending posts 2015-05-09 13:26:31 +09:00
Sacha Greif
b60074ea53 using terms and params for commentsList subscription 2015-05-08 09:33:27 +09:00
Sacha Greif
9f7e87f722 harmonise post lists controllers 2015-05-07 15:44:12 +09:00
Sacha Greif
0658f172ea Telescope.viewParameters -> Posts.views; add Posts.views.register function; file clean up; give categories and search route controller their own data function 2015-05-06 17:38:19 +09:00
Sacha Greif
1af39159e8 make posts list controller autorun depend on both router and template terms 2015-05-02 13:44:41 +09:00
Sacha Greif
7b46b5ffb7 Merge branch 'namespace2' of https://github.com/TelescopeJS/Telescope into namespace2
# Conflicts:
#	packages/telescope-posts/lib/routes.js
2015-05-02 09:53:40 +09:00
Sacha Greif
40fe20aac1 working on posts lists templates and subscriptions 2015-05-02 09:52:39 +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
44d3768d62 working on template level controllers 2015-04-29 14:38:14 +09:00
Sacha Greif
964f91aa88 refactoring menus API 2015-04-24 10:49:24 +09:00
Sacha Greif
a2e9379577 Namespacing router controllers; starting to packageify publications 2015-04-22 08:13:43 +09:00
Renamed from lib/router/posts.js (Browse further)