Commit graph

75 commits

Author SHA1 Message Date
Sacha Greif
0e84f461a5 smarter menu i18n 2015-10-22 16:52:37 +09:00
Sacha Greif
a8bf2d0f1c get rid of search logging 2015-09-18 11:14:38 +09:00
Sacha Greif
5df17c6305 working on search, API, RSS feeds, etc. 2015-09-18 11:12:53 +09:00
Sacha Greif
50c48745a3 migrating to Flow Router (WIP) 2015-09-17 14:51:14 +09:00
Sacha Greif
48c674c872 work on safari compatibility by enabling autoprefixer 2015-09-12 15:39:28 +09:00
Sacha Greif
01fa2db936 Menus refactoring 2015-08-21 10:20:48 +09:00
Sacha Greif
394b262040 stop using Session for search; do not trigger route redirect if search field is empty (fix #1063) 2015-08-01 12:27:10 +09:00
Sacha Greif
b02b5688b3 removing module template to simplify template structure 2015-07-20 10:11:55 +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
3a5117069a more checks 2015-07-10 11:40:11 +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
41767aa8d8 more name changes 2015-05-18 10:36:39 +09:00
Sacha Greif
c8754f0dd3 register -> add 2015-05-17 15:38:02 +09:00
Sacha Greif
67e7f0e750 fix search 2015-05-07 10:24:41 +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
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
e0b9bf36b7 namespacing user roles 2015-04-27 17:14:07 +09:00
Sacha Greif
78163f1819 namespacing viewParameters 2015-04-27 10:35:06 +09:00
Sacha Greif
7770c21d3a Making module system more flexible to accept wrapping divs 2015-04-24 10:22:17 +09:00
Sacha Greif
8e5446cc75 refactoring custom fields 2015-04-24 09:28:50 +09:00
Sacha Greif
99988b6405 add telescope:core 2015-04-22 08:47:23 +09:00
Sacha Greif
a2e9379577 Namespacing router controllers; starting to packageify publications 2015-04-22 08:13:43 +09:00
Sacha Greif
08c6e373fc bringing packages back into core repo after all 2015-04-22 07:50:11 +09:00
Sacha Greif
3d383e06e1 more packageification; removed meteor hacks:npm; changed telescope-blank to custom 2015-04-21 11:42:47 +09:00
Sacha Greif
50fc3eb11a Merge branch 'namespace' of https://github.com/TelescopeJS/Telescope into namespace
# Conflicts:
#	lib/users.js
#	packages/telescope-base/lib/base.js
#	packages/telescope-base/package.js
#	packages/telescope-lib
2015-04-20 13:57:37 +09:00
Delgermurun
666577f4cb Template[getTemplate('XYZ')] => Template.XYZ 2015-04-13 14:52:03 +09:00
Sacha Greif
5900b3788e css fix 2015-04-11 12:25:34 +09:00
Delgermurun
057580b793 Settings package 2015-03-28 18:38:20 +09:00
Sacha Greif
3339af6cc9 Merge branch 'AdmitHub-search-title-description' into devel
Conflicts:
	packages/telescope-search/lib/client/routes.js
2015-03-26 11:18:37 +09:00
Sacha Greif
418b12b113 Merge branch 'AdmitHub-search-event-specificity' into devel 2015-03-26 11:17:16 +09:00
Sacha Greif
2c9aac2580 add category titles; do not show posts views nav on category pages 2015-03-25 12:30:55 +09:00
Sacha Greif
f43d0dd569 small tweaks 2015-03-25 12:02:29 +09:00
Charlie DeTar
c2d0e306c1 Remove console.log 2015-03-24 16:31:22 -06:00
Charlie DeTar
abab542c77 Increse specificity of keyup search event
It's hard to override the behavior of .search-field in a theme when the
event listener is listening to all ``keyup`` events in the template.
Make it more specific as ``keyup .search-field`` so a theme that doesn't
want the default event listener can override the input class.
2015-03-24 16:29:47 -06:00
Charlie DeTar
3f0954843f Implement getTitle and getDescription for search 2015-03-24 16:14:36 -06:00
Sacha Greif
8fc95a316c fix mobile nav 2015-03-24 17:03:37 +09:00
Sacha Greif
51b52da004 working on admin menu 2015-03-23 10:32:56 +09:00
Sacha Greif
2bcb078877 setting header colors based on settings 2015-03-23 08:57:29 +09:00
Sacha Greif
0eb3d5d641 Merge branch 'devel' into sidenav 2015-03-21 09:43:59 +09:00
Yalin Wang
02bc33e912 fix bug where last character in search keyword couldn't be cleared
with backspace. issue #825
2015-03-19 20:56:55 -05:00
Sacha Greif
6894de3d2f working on new admin menu 2015-03-18 17:22:43 +09:00
Sacha Greif
b9ca31ffa9 give search field a border when header has a white background 2015-02-11 18:02:56 +09:00
Sacha Greif
c2118954b2 prevent logo from getting crushed on mobile + various other small fixes 2015-01-12 12:02:48 +09:00
Anthony Mayer
f9d9891fba Getting rid of redundant permissions functions
Switched everything over to use can.* functions from telescope-lib instead of using can* functions from lib/permissions.js, deleted lib/permissions.js, added some tests for permissions, and some other random cleanup like deleting unused code.

Conflicts:
	client/views/comments/comment_form.js
2015-01-07 08:22:46 +01:00
Sacha Greif
f5354bf69d renaming viewNav to viewsMenu and adminNav to adminMenu 2015-01-05 10:06:30 +09:00
Sacha Greif
a7ad1572c3 make primary and secondary nav sortable (fix #642) 2014-12-30 17:44:33 +09:00
Sacha Greif
f8cb992069 Adding descriptions in post list pages and showing them in menus. 2014-12-15 09:46:51 +09:00
Anthony Mayer
23b72b9cb8 Switching from manually generating urls to using IronRouter functions.
Using {{pathFor}}, path(), and url() where possible. Passing in path
to Meteor.absoluteUrl() where the IronRouter functions didn't make sense.
Also deleting some random unused code.
2014-12-03 00:06:00 -08:00
Anthony Mayer
5674269072 Fixes #572 - Expands search box when focused or not empty.
Also, changed when empty class is removed to avoid text box shrinking and then expanding after it loses focus but has content.
2014-11-30 17:03:30 -08:00