Commit Graph

4706 Commits

Author SHA1 Message Date
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
Hannah Wolfe
18638d378e Merge pull request #5191 from jaswilli/issue-5155
Allow admin app to run when active theme missing
2015-04-26 08:47:17 +01:00
Jason Williams
5cfb2e701e Allow admin app to run when active theme missing
Closes #5155
- If the theme that has been set to active is missing, set
  a default express-hbs instance on the express app and allow
  middleware processing to continue so that the admin client can
  be accessed.
- Log a warning when this happens.
- Fix issue where frontend error page was not being rendered
  correctly.
2015-04-25 20:00:04 +00:00
Hannah Wolfe
1e6f6237e1 Merge pull request #5184 from lmoe/master
Added res.locals into the prePostsRender filter call
2015-04-24 17:05:40 +01:00
Hannah Wolfe
0623dd49b3 Merge pull request #5189 from Wilhansen/rss-ssl-protocolfix
Provide secure post and image links if RSS accessed over SSL
2015-04-24 16:39:34 +01:00
Wilhansen Li
d02bcbacc2 Provide secure post links if RSS accessed over SSL 2015-04-24 18:20:38 +08:00
Hannah Wolfe
62c60c8834 Merge pull request #5182 from sebgie/update-test-all
Remove lint task from test-all
2015-04-23 11:14:32 +01:00
lmoe
03dcb71b08 Added res.locals into the prePostsRender filter call
closes #2559

 - Added res.locals as a second parameter to the prePostsRender filter
call.
 - This allows accessing the relative url and makes it possible to
react to certain urls.
2015-04-22 23:22:31 +02:00
Hannah Wolfe
d10ae70982 Version bump to 0.6.2 2015-04-22 22:14:03 +01:00
Hannah Wolfe
498a0aaad1 Upgrading Casper to 1.2.2 2015-04-22 22:12:25 +01:00
Hannah Wolfe
3d5fe130c2 Merge pull request #5181 from sebgie/issue#5178
Rename error.type to error.errorType
2015-04-22 22:00:08 +01:00
Sebastian Gierlinger
a0330b2418 Remove task from test-all
no issue
- listing takes like forever and stalls running the tests during
development
- grunt test-all only runs tests, make sure to run grunt validate
before submitting a PR
2015-04-22 22:39:35 +02:00
Sebastian Gierlinger
599af34ba8 Merge pull request #5180 from ErisDS/issue-5177
Fix previous and next helpers
2015-04-22 22:33:47 +02:00
Sebastian Gierlinger
fdcb67d3cc Rename error.type to error.errorType
closes #5178
- renamed error.type to error.errorType
2015-04-22 22:29:45 +02:00
Hannah Wolfe
eb5eca6eda Don't pass helper options to API for next/prev
fixes #5177

- this combined with a change passing options through to toJSON results in a really flukey bug with next/prev
  where the name option from the helper clashes with a name option inside of toJSON
2015-04-22 20:24:22 +01:00
Hannah Wolfe
32125c2f46 Filter options passed to toJSON
fixes #5177

- we now pass API/model options directly to toJSON, which is unsafe as these options haven't always been filtered before they are passed.
- this fix adds a filter so that toJSON only uses the options it needs
- additionally, rename the 'name' option to something more specific to prevent clashes
2015-04-22 20:20:27 +01:00
Sebastian Gierlinger
f94a6be9dd Merge pull request #5176 from ErisDS/travis-test
Switch to using grunt raw on travis
2015-04-22 21:12:45 +02:00
Sebastian Gierlinger
2cc139bb43 Merge pull request #5175 from ErisDS/release-fix
Fix issue with npm-shrinkwrap in release
2015-04-22 20:50:24 +02:00
Hannah Wolfe
509163998b Switch to using grunt raw on travis
- hoping this will fix an issue with builds failing
2015-04-22 19:40:12 +01:00
Hannah Wolfe
7c1159616b Fix issue with npm-shrinkwrap in release
- wrong order of commands prevented shrinkwrap file from being correctly included in zip file
2015-04-22 17:46:26 +01:00
Hannah Wolfe
d480ee4912 Version bump to 0.6.1 2015-04-22 14:31:08 +01:00
Hannah Wolfe
651e88718c Upgrading Casper to 1.2.1 2015-04-22 14:09:52 +01:00
Matt Enlow
fc142b3dff Merge pull request #5161 from ErisDS/test-coverage
Switch test coverage to use Istanbul
2015-04-21 19:14:35 +02:00
Sebastian Gierlinger
2ed6daee10 Merge pull request #5159 from ErisDS/author-email
Refactor to remove author.email from API
2015-04-21 12:12:31 +02:00
Matt Enlow
0ed5d51f11 Merge pull request #5143 from ErisDS/issue-5136
Avoid infinite transition loop
2015-04-21 07:48:00 +02:00
Hannah Wolfe
6d04ead9f2 Switch test coverage to use Istanbul
closes #4644

- Switch from using blanket to istanbul
- Rename some test files for consistency (and so that they will run)
2015-04-19 15:54:05 +01:00
Hannah Wolfe
e26e83d40a Refactor to remove author.email from API
refs #2330

- Pass through `options` to all toJSON calls on posts, tags, and users
- Use options.context.user to determine whether it's OK to return user.email
- Remove author.email handling code from frontend.js
2015-04-17 22:27:04 +01:00
Hannah Wolfe
ede50f38a3 Merge pull request #5149 from cobbspur/headfix
Fix ghost_head helper on error pages
2015-04-16 20:22:50 +01:00
Hannah Wolfe
b4b5e2a3f5 Avoid infinite transition loop
fixes #5136

- wrap notification fetch with a user role check to remove console error
- move author transition down to local route for users/user so that there's no infinite loop
- replace all store calls to fetch the current user with the session user instead
2015-04-16 20:05:30 +01:00
cobbspur
a48458b73d Fix ghost_head helper on error pages
closes #5146

 - Checks for context key before assigning it to variable
2015-04-16 18:40:17 +01:00
Sebastian Gierlinger
a11822c80d Merge pull request #5144 from ErisDS/cache-update
Cache invalidation can no longer be so clever
2015-04-16 17:38:29 +02:00
Hannah Wolfe
b1712fb435 Merge pull request #5140 from PaulAdamDavis/post-page-publish-button
Show correct type in publish button
2015-04-15 22:40:55 +01:00
John O'Nolan
3e67014c23 Added new Slack team details
BECAUSE INTERNET
2015-04-15 14:59:25 +03:00
Paul Adam Davis
9ea2f5535e Show correct type in publish button
Closes #5138

Shows the correct type (post or page)  in the publish button
2015-04-15 11:13:38 +01:00
Hannah Wolfe
1b585f213c Cache invalidation can no longer be so clever
no issue

With the introduction of the prev/next helpers (and soon, get helper) we can no longer make any assumptions
about exactly which pages need to be cleared from the cache when a post is published/unpublished.
2015-04-14 16:34:34 +01:00
Hannah Wolfe
c2650a05c7 Version bump to 0.6.0 2015-04-13 15:57:33 +01:00
Sebastian Gierlinger
030481671a Merge pull request #5128 from ErisDS/rss-refactor
RSS Refactor with cache
2015-04-13 03:54:50 -05:00
Hannah Wolfe
ec761501df Upgrading Casper to 1.2.0 2015-04-12 13:26:57 +01:00
Matt Enlow
ac403efd29 Merge pull request #5131 from ErisDS/issue-5130
Don't do autosave on new post
2015-04-11 10:44:05 -06:00
Hannah Wolfe
5f0d98a110 Don't do autosave on new post
closes #5130

- rather than checking for a model change, noop autosave on new controller
2015-04-11 17:42:44 +01:00
Hannah Wolfe
8d1e729f30 RSS Refactor with cache
refs #5091, refs #2263

- Move rss handling out of the frontend controller and into its own module
- Separate the code into logical blocks
- Wrap the generation code in a in-memory cache to prevent it being regenerated on every request
2015-04-10 21:32:14 +01:00
Sebastian Gierlinger
8f5960e1c5 Merge pull request #5108 from ErisDS/rss-2
Add media:content support to RSS
2015-04-10 12:49:51 -05:00
Sebastian Gierlinger
fae709b79b Merge pull request #5125 from ErisDS/ci-remove-flag
No more feature flag for Code Injection
2015-04-10 12:48:31 -05:00
Jason Williams
f6aeb9bea7 Merge pull request #5127 from ErisDS/semver-update
Update semver due to sec advisory
2015-04-10 07:43:01 -05:00
Hannah Wolfe
570299c173 Update semver due to sec advisory
no issue

- explanation here: https://nodesecurity.io/advisories/semver_redos
2015-04-10 09:39:10 +01:00
Hannah Wolfe
0b1497a75b No more feature flag for Code Injection
closes #1993

- remove the feature/config flag that means code injection has to be enabled
2015-04-09 17:52:41 +01:00
Hannah Wolfe
e19573f5d5 Merge pull request #5122 from JohnONolan/settings-cleanup
Cleaned up some derpy settings padding and widths
2015-04-09 16:17:43 +01:00
John O'Nolan
8205e59810 Merge pull request #5075 from PaulAdamDavis/top-notifications
Re-implement top notification position styles
2015-04-09 17:52:12 +03:00
Hannah Wolfe
d1de0800ad Merge pull request #5121 from novaugust/pagination_controller_mixin_fix_#5120
Fix typofail in pagination-controller mixin
2015-04-09 15:36:42 +01:00
Matt Enlow
920856c479 Merge pull request #5109 from ErisDS/issue-5064
Remove duplicate subdirectory in RSS urls
2015-04-09 08:35:25 -06:00