Commit Graph

3580 Commits

Author SHA1 Message Date
Hannah Wolfe
050b03d2bd Cache control middleware refactor
refs #5286

- split cache control middleware into its own file
- split out cache control tests
- add new mochacli command for running just middleware tests
2015-05-18 22:20:26 +01:00
Hannah Wolfe
4de1c29538 Password protect redirect optimisation
no issue

- Don't include r=%2F in the URL - we'll assume this is the default
- This is just a bit prettier
2015-05-16 20:48:54 +01:00
cobbspur
8298d2fa04 Update help link to point to slack
No Issue

- changes link from forum to slack on about page
2015-05-15 17:11:24 +01:00
Matt Enlow
b0b56e7a8e Merge pull request #5270 from ErisDS/helper-updates
Misc helper updates & fixes
2015-05-14 16:00:22 +02:00
Hannah Wolfe
03e5fcac66 Merge pull request #5223 from edsadr/api-featured-posts
API: Adding `featured` filter option to posts.browse
2015-05-14 11:57:44 +01:00
Hannah Wolfe
d11a91e75c Misc helper updates & fixes
refs #5205

- Ensure that pages are treated the same as posts in meta_title, add test
- Added a private-template body class for the private context, add test
- Added a missing test to is_spec.js
2015-05-14 11:42:29 +01:00
Adrian Estrada
107c9602c1 API: Adding featured filter option to posts.browse
Closes #5152
- Adds `featured` filter option to posts.browse method modifying the model to take it too
2015-05-13 16:18:50 -05:00
Jason Williams
b71294e45d Merge pull request #5265 from ErisDS/private-blog-theming
Theming updates for password protection
2015-05-13 15:39:22 -05:00
Hannah Wolfe
209bd52935 Merge pull request #5262 from hex337/fix-5248-set-post-date
Allow setting a post date using a single digit day.
2015-05-13 20:06:16 +01:00
Hannah Wolfe
c3dda5e5c4 Theming updates for password protection
refs #4993, #5073

- Removed nonexistent helpers siteDescription and bodyClass from admin templates
- Changed password.hbs to private.hbs to match the route name
- added a new input_password helper for rendering the password input with the correct properties
- removed the forward input as this can be handled via urls only
- moved 'private' to routeKeywords
- added 'private' context
- minor update to text next to the password in settings
2015-05-13 19:48:24 +01:00
Hannah Wolfe
1f0fb3c5f3 Fixing lint error causing build to fail 2015-05-13 18:07:38 +01:00
Hannah Wolfe
3801b7a8ca Merge pull request #5256 from acburdine/passprotect2
Take password protection out of labs
2015-05-13 17:52:50 +01:00
Hannah Wolfe
96a3568c3d Merge pull request #5197 from PaulAdamDavis/new-upgrade-notifications
Move upgrade notification to /settings/about/
2015-05-13 16:47:46 +01:00
Jason Williams
4e3c469ff8 Merge pull request #5268 from ErisDS/issue-5258
Fixing 'undefined' issue with ghostPaths.url.join
2015-05-13 10:16:39 -05:00
Hannah Wolfe
8db1001d47 Fixing 'undefined' issue with ghostPaths.url.join
closes #5258
2015-05-13 15:08:04 +01:00
Harry Hope
1fc9ace8e1 move notifications inside main div 2015-05-12 16:35:21 -07:00
Alex Kleissner
25460b5387 Allow setting a post date using a single digit day.
closes #5248
- added new valid formats for the date formatter
- only the date formats where a single digit day makes sense were
changed
2015-05-12 15:42:02 -07:00
Austin Burdine
bd2b206e4b finish up password protection
closes #5073
- takes password protection out of labs and moves it to general settings
- adds random-words generator to randomly generate passwords
2015-05-12 12:02:18 -06:00
John O'Nolan
443eafeeca First styles for private blog login 2015-05-11 13:11:59 +01:00
Hannah Wolfe
37f92674b8 Merge pull request #5253 from jaswilli/roles-browse-filter
Fix up filtering implementation
2015-05-11 09:55:33 +01:00
Hannah Wolfe
79ff297490 Merge pull request #5243 from jaswilli/mail-errors
Check error object before dereference
2015-05-11 09:55:25 +01:00
Jason Williams
263bbd5092 Fix up filtering implementation 2015-05-10 20:48:32 -05:00
Jason Williams
3d74d408ec Do not allow auto-save to publish a post
Refs #5235
- Do not allow background saving (i.e. post auto-save) to affect the
  published status of a post.
2015-05-10 15:22:53 +00:00
Jason Williams
251218de1d Check error object before dereference
Refs #5095
2015-05-10 15:02:09 +00:00
Hannah Wolfe
bdf5c9275f Change session length to 7 days
refs #5202

- this is just a stopgap to deliver minor improvement short term,
- longer term we will do the work to refresh refresh tokens & switch this to a month
2015-05-08 15:54:12 +01:00
John O'Nolan
e99afc65b6 Merge pull request #5257 from dbalders/labs-input-style
Fix up Labs Styling
2015-05-12 19:07:43 +01:00
John O'Nolan
d7a9e09049 Merge pull request #5230 from iloabn/master
Update text showing the "Quote" feature in the tutorial post
2015-05-12 19:04:28 +01:00
David Balderston
c4e2eadc33 Fix up Labs Styling
No Issue

- Fixes import button not same height as upload button
- Fixes no space between import and upload on mobile
2015-05-11 23:12:31 -07:00
Jason Williams
1e5440664e Change payload storage in session cookie 2015-05-07 13:58:09 +00:00
Fabian Miiro
575d2489a6 Changed the text showing the "Quote" feature to not feature spellcheck errors. closes #5194 2015-05-06 22:20:48 +01:00
Jason Williams
5cfc1f8ddd Merge pull request #5222 from rwjblue/guard-against-missing-element
Only attempt to `scrollTop` if element is available.
2015-05-05 20:23:57 -05:00
Robert Jackson
27e52c8979 Only attempt to scrollTop if element is available.
In later versions of Ember, the views and components can be stable
and are not guaranteed to be torn down before a new controller is
set on them.

In this case, the controller is initially set before the element has been
rendered to the DOM causing errors when invoking `closest` on undefined.
2015-05-05 19:05:36 -04:00
Jason Williams
cc7c5be75b Merge pull request #5220 from ErisDS/api-route-tweak
Remove unneeded code from API route
2015-05-05 15:07:21 -05:00
Jason Williams
d3498483ab Merge pull request #5221 from rwjblue/undefined-this-in-helpers
Replace gh-blog-url helper with a component.
2015-05-05 14:28:52 -05:00
Robert Jackson
b16284f1ed Replace gh-blog-url helper with a component.
Accessing `this` inside an `Ember.HTMLBars.makeBoundHelper` will not
always return the containing `view` object. Instead, use a component.
2015-05-05 14:40:18 -04:00
Austin Burdine
8ac168794e refactors the frontend controller
closes #5192
- combines homepage, author, tag routes into one function (with different hash params)
- provides some abstraction for channels
2015-05-05 07:35:08 -05:00
Hannah Wolfe
95a546171a Remove unneeded code from API route 2015-05-05 12:50:23 +01:00
Hannah Wolfe
3b286e4d00 Removing unused dependency 2015-05-04 23:26:24 +01:00
Hannah Wolfe
6244165841 Merge pull request #5208 from Artie18/master
Fixed issue with word count for non ASCII letters.
2015-05-03 18:23:33 +01:00
Artyom Fedenko
075c4fbf46 Added support for all letters in word-count (not only ASCII) and added xregexp bower module to a project 2015-05-02 22:56:33 +03:00
Hannah Wolfe
7fe63b260f Merge pull request #5103 from acburdine/passprotect
Password Protection
2015-05-02 15:14:00 +01:00
Matt Enlow
81e12a209a Merge pull request #5198 from ErisDS/bower-update
Updating bower dependencies
2015-05-01 22:00:57 +01:00
John O'Nolan
ed3d94e644 Merge pull request #5196 from PaulAdamDavis/minor-code-injection-fixes
Code injection syntax colour change
2015-05-01 15:50:14 +02:00
John O'Nolan
8e46b06c67 Update preview post link styling, add view post link 2015-05-01 12:19:25 +02:00
Austin Burdine
2865662ee5 added password protection
closes #4993
- brings password protection to the frontend of blogs
- adds testing for password protection
- upgrades bcrypt-js to 2.1.0
2015-04-30 23:44:43 -05:00
Hannah Wolfe
f089e1d544 Updating bower dependencies
- tying as many things to proper versions rather than repos as possible
- upgrading various packages, with the exception of anything to do with jQuery
- leaving normalize as-is due to previous issues
2015-04-30 22:43:31 +01:00
Jason Williams
dae66d00be Upgrade grunt-jscs to fix whitespace linting.
No issue.
- grunt-jscs@1.8.0
- Fix formatting
2015-04-30 16:14:19 -05:00
Matt Enlow
433956c102 Add post preview via uuid (/p/:uuid)
Refs #5097

- All drafts will show a preview link (this needs real css)
- Published posts will redirect
- prev/next post helpers only activate on published posts
- Powered by ~10 pints between the two of us (@ErisDS, @novaugust)
2015-04-30 11:57:37 +01:00
Paul Adam Davis
272f1eddaf Move upgrade notification to /settings/about/
Refs #5071

- Move the Upgrade notification from the top of the screen to the About page
2015-04-29 22:34:04 +01:00
Paul Adam Davis
9377694bba Code injection syntax colour change
Closes #5179

- Overwrites the yellow code injection syntax highlighting (such as vendor prefixes in CSS) to be black, to match the rest of the property
- Adds rounded corners to the code injection CodeMorror wrapper to match its parents rounded corners (inherits the same value)
2015-04-28 16:35:14 +01:00