1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Commit graph

74 commits

Author SHA1 Message Date
Austin Burdine 6ffe763404 fixed extraneous div tag 2015-05-22 19:02:06 +01:00
John O'Nolan b33745783d Content view 2015-05-22 19:02:06 +01:00
John O'Nolan 82a5b07c6b New settings headers 2015-05-22 19:02:06 +01:00
John O'Nolan dec115a1cc Integrate new admin frame 2015-05-22 19:02:05 +01:00
John O'Nolan 297510e303 New onboarding markup and styles 2015-05-22 17:50:13 +01:00
Hannah Wolfe 310ca19806 Improve config-parser JSON handling
closes #5294

This improves a hack for parsing JSON to be more robust.
Now attempt to parse JSON, and if it's not possible it will fallback to treating the value is a string,
reverting the behaviour to what it would have been if we didn't have JSON parsing here.
2015-05-21 09:28:05 +01:00
Hannah Wolfe 75e7161e61 Use absolute frontend URL in admin
closes #5288

- use the config.blogURL as the frontend URL from the admin
- we know this is given to us without a trailing slash, so it's 100% safe to hard code this
- TODO: make all of the url generation a lot nicer i.e. #1833
2015-05-20 21:45:19 +01:00
cobbspur 69bf0da18c 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
Jason Williams 52fd252b92 Merge pull request #5265 from ErisDS/private-blog-theming
Theming updates for password protection
2015-05-13 15:39:22 -05:00
Hannah Wolfe d8a9d78c21 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 c8f5104eed 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 8c9957a8a5 Fixing lint error causing build to fail 2015-05-13 18:07:38 +01:00
Hannah Wolfe da172a8c40 Merge pull request #5256 from acburdine/passprotect2
Take password protection out of labs
2015-05-13 17:52:50 +01:00
Hannah Wolfe 2a4e9a8aab 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 a56c1a8988 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 8bcf481dc4 Fixing 'undefined' issue with ghostPaths.url.join
closes #5258
2015-05-13 15:08:04 +01:00
Harry Hope 412ebbb698 move notifications inside main div 2015-05-12 16:35:21 -07:00
Alex Kleissner 800292c94e 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 f52c325a8c 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
David Balderston 85712b44a5 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
John O'Nolan 52d2411ffd First styles for private blog login 2015-05-11 13:11:59 +01:00
Jason Williams f8266a2981 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
Robert Jackson a0a1763137 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
Robert Jackson 9250273d8d 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
Hannah Wolfe dc45974366 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 5c8581ec8c 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 320f1a6218 Merge pull request #5103 from acburdine/passprotect
Password Protection
2015-05-02 15:14:00 +01:00
John O'Nolan a662a31364 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 5df49134ba Update preview post link styling, add view post link 2015-05-01 12:19:25 +02:00
Austin Burdine 8913d36864 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
Jason Williams 5e5879a2f0 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 c892a812c2 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 f78c5ccc7f 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 3db5eef8c0 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 f770faab99 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
Paul Adam Davis 94755b392d 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 8b15dae439 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 b7ba284dd3 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 a480508af5 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 53c6f000f0 Merge pull request #5075 from PaulAdamDavis/top-notifications
Re-implement top notification position styles
2015-04-09 17:52:12 +03:00
Hannah Wolfe 175ca91869 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
John O'Nolan bde0e4e4fd Add labs description 2015-04-09 16:14:50 +02:00
John O'Nolan 688c6a4004 Cleaned up some derpy settings padding and widths 2015-04-09 15:59:17 +02:00
Matt Enlow 8d2aae6759 Fix typofail in pagination-controller mixin
Closes #5120
2015-04-09 07:56:08 -06:00
Hannah Wolfe 226bb12f8e Merge pull request #5119 from novaugust/preview_link_subdir
Use absolute url for post preview link
2015-04-09 10:21:30 +01:00
Matt Enlow 4e389c9429 Use absolute url for post preview link
Closes #5116
- adds new CP `absoluteUrl` to PostModel
- use `absoluteUrl` in the two places we link previews
- swap out some code for es6 loveliness
2015-04-08 18:58:52 -06:00
Matt Enlow e20fdfebe8 Normalize settings payloads in client serializer
Closes #5117
2015-04-08 13:03:56 -06:00
Paul Adam Davis d782b90114 Re-implement top notification position styles
References #5071

- Re-implements the previously broken top notification styles
- Moves the top notification outlet outside the `<main>` to ease styling (we have several nested position fixed/absolute boxes that make this tough - moving the outlet makes it easier)
2015-04-07 18:36:03 +01:00
Hannah Wolfe 83ccdaa11b Merge pull request #5094 from novaugust/ember-1.11
Update to Ember 1.11(.1!)
2015-04-07 11:12:34 +01:00
Hannah Wolfe 338989472e Merge pull request #5106 from acburdine/ghost-cm-editor
Added code editor to injection interface: the sequel (this time, with CodeMirror!)
2015-04-06 19:33:18 +01:00