Commit graph

1072 commits

Author SHA1 Message Date
Sacha Greif
d3283e9b9c Merge branch 'master' of https://github.com/TelescopeJS/Telescope 2014-11-25 15:47:49 +09:00
Ben Gott
f68ecba862 Upgrade to bengott:avatar 0.6.0
- Create new config file in lib/config/avatar.js (accessible to both
  client and server)
- Comment out some outdated SCSS/CSS
2014-11-24 01:48:04 -06:00
Sacha Greif
71e0376595 make moment i18n reactive; add global setLanguage function 2014-11-21 12:50:26 +09:00
Sacha Greif
e572274249 i18ning missing strings 2014-11-20 14:55:34 +09:00
Daniel Chcouri
2605dcb27c Convert translation keys format to tap:i18n standard
all_lower_cased_underscored_sperated names
2014-11-19 00:00:09 +08:00
Sacha Greif
e11b6db40f show error message on post edit page 2014-11-18 10:31:29 +09:00
Sacha Greif
bf90eedf37 URL can now be removed when editing a post 2014-11-18 10:27:58 +09:00
Charlie DeTar
50dd3ccece Add accumulator for userEditClientCallbacks 2014-11-17 17:11:13 -07:00
Charlie DeTar
2cf432b521 Clean up remaining throwError invocations 2014-11-17 17:00:21 -07:00
Sacha Greif
cddb3633fc Merge branch 'steffenstraetz-views-clicks-refactor' into meteor1.0
Conflicts:
	lib/router.js
	packages/telescope-notifications/versions.json
2014-11-17 11:31:58 +09:00
Sacha Greif
8d498923b2 Merge branch 'views-clicks-refactor' of github.com:steffenstraetz/Telescope into steffenstraetz-views-clicks-refactor 2014-11-17 11:25:02 +09:00
Sacha Greif
b40e490db1 updating form labels 2014-11-17 11:15:05 +09:00
Sacha Greif
73cb59a088 Working on IR 1.0 update 2014-11-17 11:01:37 +09:00
Charlie DeTar
ea7efc3550 Replace "throwError" with "flashMessage" and type
Currently, ``throwError`` is used for all manner of messages, including
errors, "success" messages, and "info" messages.  This makes appropriate
styling of the error message difficult.  In addition, the name
``throwError`` seems to create confusion, implying that an error will
actually be thrown (e.g. stopping execution when a user isn't logged in
[0][1]), when in fact it just displays a message.

Replace ``throwError`` with ``flashMessage``, and reliably include a
message "type" (e.g. "error", "success", "info") every time.  rename
``lib/errors.js`` to ``lib/messages.js`` to more accurately reflect its
function.

This commit doesn't rename the message collection (``Errors``), nor the
template responsible for rendering the messages (``error_item.html``) --
that should probably still be done, but has higher likelihood of
trouble for existing alternate themes and installations.

[0] 6ccf7d7d47/client/views/users/user_edit.js (L43)
[1] 083a4c4dc4/client/views/users/user_email.js (L13)
2014-11-05 13:12:09 -07:00
Charlie DeTar
83bb43ab46 Add hooks so packages can modify profiles
Add the following hooks:
 - ``addToUserSchema``: fields to add to the (currently unused) user
   Schema
 - ``postAuthor``: templates to use when rendering the post author in the
   byline
 - ``userProfileDisplay``: additional templates to add to the user
   profile display.
 - ``userProfileEdit``: additional templates to add to the user profile
   editing form.
 - ``userProfileFinishSignup``: additional templates to show in the view
   for completing user signup (adding email, username, etc).
 - ``userEditRenderedCallbacks``: Callbacks executed on "rendered" for
   user_edit view.
 - ``userEditClientCallbacks``: Callbacks used to further process user
   properties before saving changes in user_edit view.
 - ``userProfileCompleteChecks``: Functions called to determine whether
   a user profile is "complete" (e.g. has email, username, and whatever
   else).

These hooks facilitate package authors changing which profile fields are
displayed, which profile fields are required, and how to display
usernames next to posts.
2014-10-27 17:59:12 -06:00
Steffen Strätz
6e863598d1 Merged 2014-10-16 00:32:08 +02:00
Steffen Strätz
2fd22e9d41 Renamed "postCount" to "postsCount" to follow naming pattern of other counters 2014-10-16 00:12:13 +02:00
Steffen Strätz
226645b770 Refactored "data.commentsCount" to "commentsCount" 2014-10-15 23:59:02 +02:00
Ben Gott
c84279cdfe Fix email_hash bug (Issue #393) 2014-10-15 16:48:04 -05:00
Steffen Strätz
2fbd2f0fb2 Fixed bug that users comment count would not show correctly in list 2014-10-15 21:39:22 +02:00
Steffen Strätz
e7e1accc79 - Added view counting for posts
- Refactored click counting to match view counting
- Renamed User "commentCount" to match Post "commentsCount"
- Removed security issue in client side click counting (now calling server method instead)
2014-10-15 21:23:43 +02:00
Ben Gott
4bb13c9243 Update to use bengott:avatar 0.1.2 2014-10-13 16:14:48 -05:00
Sacha Greif
4eb53c693c updated autoform and testing date time field 2014-10-08 18:38:01 +09:00
Sacha Greif
50c3ee7a79 Cleanup 2014-10-07 10:20:41 +09:00
Sacha Greif
b879475160 filter out fields with $ in their name 2014-10-06 11:29:47 +09:00
Sacha Greif
f121b4791e remove fieldsToOmit 2014-10-06 11:10:50 +09:00
Sacha Greif
8a72a9b77c Using omit: true 2014-10-06 10:40:45 +09:00
Sacha Greif
ccf0ea7820 working on quick form for post submit 2014-10-05 17:20:15 +09:00
Sacha Greif
73d1098646 Make it possible to hide fields from quickform; cleanup 2014-10-05 10:12:10 +09:00
Sacha Greif
29495788e8 Merge pull request #454 from bengott/avatar-tweaks
Update to use bengott:avatar package for user avatars
2014-10-04 10:14:49 +09:00
Charlie DeTar
ed09d0ea7c Fully abstract isAdmin
We're using a fork with a different definition of "isAdmin" (using
``meteor-roles`` rather than the boolean user.isAdmin).  ``lib/user.js``
provides abstracted methods for reading admin state, which makes it very
easy to change our definition -- except that the abstractions weren't
used universally.

This commit finishes the job of using the abstractions, and adds a few
new parts to also allow abstracting setting and updating admin-ness:

 - setAdmin: sets admin status directly on a user object.
 - updateAdmin: executes a mongo update to set admin status.
 - adminMongoQuery: the query parameter for admin-ness, for composing
   user queries with other fields.
 - notAdminMongoQuery: the query parameter for not-admin-ness.
2014-10-03 16:21:06 -06:00
Ben Gott
bab24860d6 Update to use bengott:avatar package for all user avatars 2014-09-30 12:34:42 -05:00
Sacha Greif
0a118cb5c3 Minor form tweaks 2014-09-29 15:40:09 +09:00
Sacha Greif
f886142c4f Renaming "test" autoform to "settings" 2014-09-29 11:09:36 +09:00
Sacha Greif
f00ffd8498 Adding instructions to settings form 2014-09-29 10:15:21 +09:00
Sacha Greif
51de4d79db splitting settings form into field sets 2014-09-28 16:31:12 +09:00
Ben Gott
8e709a8372 Rename common template/view 'gravatar' to 'avatar' 2014-09-27 12:05:15 -05:00
shaialon
8eaab14ede Refactor code with reuse. 2014-09-26 23:20:00 +03:00
shaialon
6592f5761a Change to user / userId 2014-09-26 23:06:12 +03:00
shaialon
94e114cc6f Lint clean the code. 2014-09-26 22:50:37 +03:00
shaialon
f91e02b29a Reusable gravatar component 2014-09-26 22:48:09 +03:00
Sacha Greif
d95733bda5 Merge branch 'splendido-at-integration' 2014-09-26 11:28:39 +09:00
Sacha Greif
7d66ae23eb Fix #430 2014-09-26 09:40:55 +09:00
Luca Mussi
acf9ddf33b Merge remote-tracking branch 'telescope/master' into at-integration
Conflicts:
	.meteor/packages
2014-09-20 16:30:11 +02:00
Luca Mussi
e0bb8f7fd7 removed no more unuseful aTmpls template 2014-09-20 14:21:32 +02:00
Sacha Greif
2a911217e9 Making notifications into their own package 2014-09-20 09:57:09 +09:00
Jamie Wilson
37f363df37 Corrected path to /forgot-password
needed to be hyphenated rather than underscored
2014-09-19 09:56:56 -05:00
Jeremy Shimko
d1c85559c5 swap order of subtract() args due to deprecation 2014-09-18 16:30:52 -04:00
Luca Mussi
98fc658545 custom template for atForm 2014-09-18 20:37:49 +02:00
Luca Mussi
043df6613c first tests 2014-09-18 11:00:12 +02:00