Commit Graph

2450 Commits

Author SHA1 Message Date
Łukasz Kliś
393c71b003 Removed lighten left over from SASS to Myth conversion
Refs #5314
- replaced SASS's `lighten` with Myth's `color(x lightness())`
2015-07-03 07:46:38 +02:00
Łukasz Kliś
9fa666cba7 Added multiline "placeholder" to 3rd step of setup
Closes #5459
- added a PNG background with 2 emails addresses as a "placeholder"
- added a `required` attribute for textarea in 3rd step of the setup
- taking an advantage of `:valid` pseudo-class to hide the background
  picture with email addresses
2015-07-01 23:14:27 +02:00
Hannah Wolfe
6cfc1808a4 Merge pull request #5477 from acburdine/title-fix
Fix blog title in nav menu not updating
2015-06-26 20:13:27 +01:00
Hannah Wolfe
0dac251ffe Merge pull request #5484 from JohnONolan/O
Fix mobile display bugs on user list
2015-06-26 13:11:40 +01:00
John O'Nolan
0ddded8178 Fix mobile display bugs on user list
See #5483
2015-06-24 19:53:01 +01:00
Jason Williams
42166c8d9f Update Ember to 1.13.2
- Refactor to handle deprecations including removal of
  all Views, ArrayControllers, and ItemControllers.
2015-06-24 11:47:28 -05:00
John O'Nolan
c33c3012d1 Main colour audit
Clean up grey colours by mixing in slightly more blue, standardise appearance across different parts of the app and move closer to brand  colours.
2015-06-24 13:37:37 +01:00
John O'Nolan
648f006fc5 Firefucks
Firefox can't do flexbox, because why would a modern browser be able to do flexbox? Cray.
Closes #5438, Closes #5401 - same fix but vh unit because % unit is hella unreliable.
2015-06-24 12:17:49 +01:00
John O'Nolan
0928ed118e Fight fire with overflow.
Prevents firefox from allowing blog title to overflow. This is an incredibly stupid fix for an incredibly stupid browser bug. Firefox is the worst modern browser in the world at basic layout rendering. Could someone let them know please? Closes #5430 as replacement.
2015-06-24 12:16:58 +01:00
John O'Nolan
b9793c0364 First pass colour audit
This gets rid of old and un-used, or lesser-used colour variables.
2015-06-24 12:15:48 +01:00
Austin Burdine
942ca621bc fix blog title not updating in nav menu
closes #5474
- sets the blogTitle property of config when the title setting is changed
2015-06-23 14:15:36 -04:00
cobbspur
8a8e90e9a2 Take Trashcan off of url screen for image uploader
closes #5433
- add gh-input class to inputs
- stop the incorrect addition of trash can on url page
- fix trigger of upload success to show loading in editor
- fix duplicate url field for images outside of editor when there is no file storage
2015-06-23 13:14:04 +01:00
Jason Williams
78361c25af Fix up editor/preview scroll and post list loading
Refs #5381
- Invoke this._super() so mixed in lifecycle hooks run.
2015-06-22 11:35:17 -05:00
Hannah Wolfe
cb2aedf52e Merge pull request #5455 from jomahoney/grunt-failure
Removes whitespace issue that was preventing grunt init from working
2015-06-20 23:54:46 +01:00
Austin Burdine
adff47704f update simple-auth to 0.8.0 2015-06-19 23:51:30 -04:00
John O'Mahoney
4ac3d1718a Removes whitespace issue that was preventing grunt init from working
closes #5454
- removed the second email therefore removing whitespace issue
2015-06-19 19:43:53 +01:00
Hannah Wolfe
6ea411c3b4 Merge pull request #5452 from jaswilli/issue-5450
Always get latest post from API when editing
2015-06-19 15:04:22 +01:00
Jason Williams
1cd703f775 Merge pull request #5451 from cobbspur/userRoutes
Move users routes out of settings & change to team
2015-06-18 14:20:06 -05:00
cobbspur
f67147a685 Move users routes out of settings & change to team
issue #5434

- move users routes/views/controllers out of settings
- rename users team
- update nav-menu.hbs
- remove legacy routes
- fix up tests
2015-06-18 19:46:46 +01:00
Jason Williams
7e3cf6efd9 Always get latest post from API when editing
Closes #5450
- No longer provide the edit route a model when transitioning from the
  posts list/content screen and no longer check to see if a copy of the
  post already exists in the store from the model hook.
2015-06-18 11:53:40 -05:00
Kevin Ansfield
db558e38ea Provide a more intuitive error message on sign-in for missing email
issue 4651#issuecomment-112141801
- display "Please enter an email" validation message rather than "Invalid Email" when no email is entered
2015-06-17 22:56:38 +01:00
Hannah Wolfe
4b90c3c308 Merge pull request #5442 from JohnONolan/noposts-fix
Fixes alignment bug on content management empty state
2015-06-17 22:40:06 +01:00
Kevin Ansfield
6d8bce86b8 Display correct minimum character count in setup's password field
issue #5314
- replace 7 (incorrect) with 8 (correct) in setup's password field placeholder text
2015-06-17 21:50:47 +01:00
Jason Williams
e7398b0694 Merge pull request #5445 from cobbspur/canHelper
Hide Nav Settings based on permissions
2015-06-17 14:47:15 -05:00
cobbspur
453833cd11 Hide Nav Settings based on permissions
closes #5403

- adds gh-user-can helper to group user by minimum permissions
- hide Nav settings menu for users below admin level
2015-06-17 19:20:57 +01:00
John O'Nolan
3f6b648394 Fixes alignment bug on content management empty state
When buttons changed to flexbox they lost some alignment properties. This change makes the container for the empty content state use a flexbox container and align its containing items correctly. Also removes some old media queries which are no longer needed.
2015-06-17 14:41:29 +01:00
Kevin Ansfield
42b25a00e3 Ensure settings routes redirect to /signin when not authenticated
closes #5412
- call this._super() in beforeModel hooks so that simple-auth can handle the transition before we hit any protected API endpoints
2015-06-17 00:24:01 +01:00
John O'Nolan
cc571da90d Fix signin form width bug
No issue. Fixes bug where signin form was not expanding to its full width as a result of some earlier global changes. This sets an explicit fluid width with a max-width fallback so that it's always the correct size.
2015-06-16 09:58:56 +01:00
Austin Burdine
86e47ee4a9 removes usage of prototype extensions
No issue
- removes more usage of function prototype extensions in favor of Ember functions
- replaces some event calls with the direct function name
- adds comments to functions replaced with the event name
2015-06-15 14:07:25 -04:00
Jason Williams
8ae1447e78 Merge pull request #5408 from novaugust/cleanup-mobile-views
Remove legacy mobile view code
2015-06-14 17:59:44 -05:00
Jason Williams
e5a1fa7ad6 Merge pull request #5414 from novaugust/zelda-menu-continued
Zelda menu z-index and viewport transition finishes
2015-06-14 17:57:35 -05:00
Matt Enlow
df1c04b8d8 Remove legacy mobile view logic
No issue
- Move editor-base-view mixin into editor/edit view
- Also deletes mobile views and modifies files that were using it
- Helps pave the way for Ember 2.0, where views do not exist
2015-06-14 14:42:21 -07:00
Matt Enlow
6681ad4a7d Zelda menu z-index and viewport transition finishes
- [x] Mobilemenu button is missing from `content` and `editor` views
- [x] Mobilemenu pane slides entire content over, should expand over-top-of-content
- [x] Mobilemenu can't be closed
- [x] gh-view-title no longer generates an extra div; it is the h2.
- [x] gh-autonav-toggle closes the mobile menu on mobile. renamed `gh-menu-toggle`
- [ ] There is weird behaviour with mobile menu when changing from big=>small=>big viewport sizes
- ~~[ ] (Future issue) Ghost should remember (localstorage?) whether desktop menu is expanded or collapsed~~
2015-06-14 13:57:09 -07:00
Jason Williams
e00823626a Update ember-simple-auth to 0.8.0-beta.3 2015-06-12 16:35:40 -05:00
John O'Nolan
596faf0009 Fix a wholelotta setup-screen bullshit
Merging setup screen into the new app wrapper had some knock-on effects due to new flexbox parent elements. As a result things were vertically collapsing in unexpected ways on narrow viewports. This is cleaned up here, with some other minor visual bugfixes.
2015-06-10 19:49:50 +01:00
Joe Wegner
75faf0109d invite users after signing up during setup
closes #5338
- moves skip link to below the submit button
- makes the submit button better represent form status
- posts notifications based on success/failure of notifications
- goes to the invite page after user creation
- actually sends invites!

functional tests passing for onboarding invitations

cleanup for linitng

remove unreachable return

access the notifications service better

use link-to instead of an anchor with an action

failed user creations get caught, and bubble as errors

a slew of other cleanup stuff via jason
2015-06-09 11:50:24 -07:00
John O'Nolan
2780e783dd Refactor Zelda dropdown styles
- New styles for dropdowns
- Fix minor tag-delete button bug
- Fix minor alignment bug on invite-user modal
- Update "about ghost" icon
2015-06-09 11:06:35 +01:00
Jason Williams
d5ffffb034 Merge pull request #5368 from novaugust/zelda-mobile-nav
Zelda mobile nav
2015-06-08 23:47:56 -05:00
Jason Williams
813b294c48 Swap in new action 2015-06-08 23:11:48 -05:00
Matt Enlow
c19d2eb466 Remove dead toggle preview actions
Ref #5384
- Removes "togglePreview" actions from template (the action itself was removed in 5384)
2015-06-08 13:29:16 -07:00
Matt Enlow
c7a9e726e2 Add mobile menu open button and close on click outside nav
- Adds gh-view-title component to implement mobile menu button for titles on any page
- Refactors the `content-cover` out into the application template
- Fix various z-index issues with content-cover and gh-alert
- Move `.settings-menu-expanded` application view state from body to `.gh-viewport`
- Unify nav menu / mobile menu actions and code
2015-06-08 22:13:34 +02:00
John O'Nolan
540a3215c9 New mobilemenu prototype 2015-06-08 22:13:34 +02:00
Jason Williams
2e9932b8eb Merge pull request #5382 from acburdine/embercli-update
Update Ember-CLI to 0.2.7
2015-06-08 14:04:17 -05:00
Hannah Wolfe
541de8bc68 Merge pull request #5384 from JohnONolan/zelditor
Content management & editor refactor
2015-06-08 16:22:29 +01:00
Hannah Wolfe
dfb7993fde Merge pull request #5405 from JohnONolan/myth-0.1.0
Update Ember-Myth to 0.1.0
2015-06-08 14:58:14 +01:00
Hannah Wolfe
d023333d31 Merge pull request #5404 from JohnONolan/zerrors
Fixup broken error page styles
2015-06-08 14:57:56 +01:00
Austin Burdine
5e7ff40318 updates Ember-CLI to 0.2.7
No issue
- moves the authentication initializer to be an instance initializer
- updates dependencies
- fixes error with asset-delivery not copying
- fixes problem with testing by re-building ember before casper tests
2015-06-08 09:18:50 -04:00
Hannah Wolfe
189814cd32 Merge pull request #5374 from JohnONolan/betterflex
Better flexbox grids
2015-06-08 12:33:06 +01:00
John O'Nolan
93b0505d68 Fixup broken error page styles 2015-06-08 12:14:58 +01:00
John O'Nolan
1d63428563 Update Ember-Myth to 0.1.0
- Fixes grunt dev warnings
- Better support for @import
2015-06-08 11:35:20 +01:00
Jason Williams
3a6a6a90ae Clean up and update ember dependencies
No Issue
- Remove unneeded imports from Brocfile.js.
- Move devDependencies up to dependencies.
- Update ember-mocha dependencies.
- moment@2.10.3 to match version used on backend.
2015-06-06 12:58:07 -05:00
John O'Nolan
5b25dd2929 Content management & editor refactor 2015-06-05 13:58:00 +01:00
Hannah Wolfe
c8a49033a5 Merge pull request #5386 from acburdine/focus-fix
Fix autofocus on post edit
2015-06-05 13:47:01 +01:00
Jason Williams
164fa2768f Fix call to this.notification
Refs #5351
- Injected services need to be accessed via .get().
2015-06-04 00:02:03 -05:00
Austin Burdine
b83ca04e72 fixes autofocus on post edit
closes #5383
- sets the default focus of the editor component to false
- removes the check for model.isNew in editor controller
2015-06-03 12:01:32 -06:00
Jason Williams
5ec1979447 Merge pull request #5380 from acburdine/ghost-ember112
Update Ember to 1.12.1 and Ember-Data to 1.0.0-beta.18
2015-06-03 00:07:17 -05:00
Austin Burdine
28d265c9c1 update Ember to 1.12.1/ember-data to 1.0.0-beta.18
No issue
- fixed "{{#each}}" helper in templates to use block syntax
- fixed deprecated ember.controller getter/setter function to use new syntax
- removed unnecessary pass-protect route view
2015-06-02 22:26:16 -06:00
Austin Burdine
27d7718b3c re-implements fastclick into ember
closes #5375
- adds an addon for fast click to the npm dependencies
2015-06-02 13:28:16 -06:00
John O'Nolan
9c7a1e2e50 Merge pull request #5318 from acburdine/private-form
Rewrite default private.hbs for new zelda styles
2015-06-02 10:54:59 +01:00
John O'Nolan
f395aedaa0 Better flexbox grids 2015-06-02 10:19:35 +01:00
Hannah Wolfe
eb9d924e1b Merge pull request #5306 from acburdine/remove-email
Removes "email" from settings
2015-06-02 09:44:21 +01:00
John O'Nolan
83b7993ff3 Add theme selector, update package mgmt styles 2015-05-30 23:12:40 +01:00
Austin Burdine
bf0e40eda1 rewrites default private.hbs for new zelda styles
closes #5073
- changes format to match new zelda layout
- modifies the input_password helper to allow customization of class & placeholder
2015-05-29 06:25:32 -06:00
John O'Nolan
d979ffb55f First pass theme management page 2015-05-29 13:01:28 +01:00
Jason Williams
482740e682 Fix up new setup code
No issue
- Prevent download count ajax request from running forever, even after setup is complete.
- Remove unneeded setup routes and controllers.
- Refactor to use ES6-imported ajax.
- Refactor to use injected services.
2015-05-27 15:10:47 -05:00
Sebastian Gierlinger
a7555d7497 Merge pull request #5316 from ErisDS/onboarding-zelda
First pass at user onboarding screens
2015-05-27 17:23:40 +02:00
Jason Williams
c3ad1ae9e2 Use Ember.inject instead of needs and initializers
No Issue
- Switches to the newer style of dependency injection.
- Instead of injection Controllers via "needs," use
  Ember.inject.controller().
- Get rid of initializers that were only injecting objects
  into various factories. Converts these objects into Ember.Service
  objects and declaratively inject them where needed via
  Ember.inject.service().  The added benefit to this is that it's no
  longer a mystery where these properties/methods come from and it's
  straightforward to inject them where needed.
2015-05-27 07:41:42 -05:00
Matt Enlow
3ece83f68d Merge pull request #5348 from jaswilli/es6-ajax
ES6 module version of ic-ajax instead of global
2015-05-27 09:34:00 +02:00
Jason Williams
d864fcb1d6 ES6 module version of ic-ajax instead of global 2015-05-26 22:13:25 -05:00
Jason Williams
5018f2fb9e Clean up Ember router map
No Issue
- Switch resources to routes.
- No longer nest "settings" routes so the router reflects
  the way the templates are rendered.
- Remove renderTemplate override from settings routes.
- Remove unneeded routes, controllers, and views.
- Adjust users page so that infinite scroll loading of users works
  and markup remains the same for Zelda styling.
2015-05-26 16:12:12 -05:00
cobbspur
d249591290 Nuke nprogress
closes #5328

- removes all references to nprogress and loading indicator
2015-05-26 19:24:32 +01:00
Hannah Wolfe
4456f17c65 Merge pull request #5332 from cobbspur/route
Fix route for About page
2015-05-25 18:37:45 +01:00
Hannah Wolfe
653fa325e2 Merge pull request #5319 from jaswilli/nav
Refactor main nav menu into components
2015-05-25 18:37:37 +01:00
John O'Nolan
3caa291fe5 First pass on app management UI 2015-05-25 17:48:14 +01:00
Hannah Wolfe
064a22e7d2 First pass at user onboarding screens
refs #5315

- split setup into 3 screens
- add gravatar fetching
- add download counter
- add button handling for invite users
2015-05-25 17:43:12 +01:00
cobbspur
c3bb7cb396 Fix route for About page
No Issue

- Routes,  views and controllers updated for about page
- fix up tests and add redirect check
2015-05-25 17:06:17 +01:00
John O'Nolan
ef81feebdb Refactor blog-navigation settings screen
- Better markup
- Cleaner CSS
- Fixed icon implementation
- New grab handle icon
- Better mobile styles
2015-05-25 14:23:49 +01:00
Hannah Wolfe
1aa998a777 Merge pull request #5326 from JohnONolan/close-icon-colour
Fix modal close icon colours
2015-05-24 22:28:31 +01:00
John O'Nolan
a86639d829 Fix modal close icon colours 2015-05-24 21:03:55 +01:00
John O'Nolan
b63753e742 Fix up gh flow icons
- check
- back button
- various minor fixes
2015-05-24 20:44:09 +01:00
Jason Williams
3e6a2fb89c Fix export db link and access token parameter
Refs #5310
- Access token is now stored at session.secure.access_token.
2015-05-24 10:05:45 -05:00
Jason Williams
c0254eabab Refactor main nav menu into components 2015-05-24 01:42:59 -05:00
Austin Burdine
e69c8c89ac remove settings email
closes #5299
- removes settings/general email field from both client and server side
- fixes tests to reflect removal of email
2015-05-22 15:23:31 -06:00
Jason Williams
e9326f6f6e Update to simple-auth 0.8
No issue
- ember-simple-auth@0.8.0-beta.2.
- Switch from SimpleAuth global to ember-cli-simple-auth and
  ES6 imports.
- Refactor controllers to handle changes in 0.8.
- Introduces a new initializer to override some configuration
  items that are set in environment.js but need to be set with
  information that's only (easily) available at runtime.
2015-05-22 15:21:46 -05:00
cobbspur
2e5caeb9c1 Fix-up remaining functional tests
No Issue

- signup, signin and setup tests
- fixup other files for code styles
2015-05-22 20:13:54 +01:00
Jason Williams
ce6420818a Handle password reset from signin page 2015-05-22 19:05:18 +01:00
John O'Nolan
50b5c9c03b Fix z-index bug on notifications 2015-05-22 19:05:18 +01:00
Austin Burdine
77d08c3207 fixed notification components 2015-05-22 19:05:17 +01:00
Jason Williams
cf239774eb Rework signin form so correct actions are fired 2015-05-22 19:05:17 +01:00
cobbspur
dd20790bd9 Fix image uploader and update tests
No Issue

- fixes removal of url link on image uploader
- fixes functional tests for editor and content
2015-05-22 19:05:17 +01:00
John O'Nolan
5012657163 Minor visual fixes 2015-05-22 19:05:16 +01:00
John O'Nolan
a60d46978f Implement autonav 2015-05-22 19:05:16 +01:00
Joe Wegner
0eef6b6284 setup the basic css structure for the slider nav menu
- toggles the persistent sidenav under the open-nav class
- adds a toggle/hover bar to the side of the sidenav that shows the nav
  on hover
2015-05-22 19:05:16 +01:00
cobbspur
2c2f9693d2 Add UI link classes
No Issue

- Adds contextual classnames to Nav Bar links
- Various test updates

TODO
- Increase test coverage for new admin UI
- Fix up Caspertests for new Admin UI
2015-05-22 19:05:15 +01:00
John O'Nolan
3ecb2c03b1 Update icons, remove old navbar file 2015-05-22 19:05:15 +01:00
John O'Nolan
13ec196f2e Refactor about page 2015-05-22 19:05:15 +01:00
John O'Nolan
7417b29fd4 Remove extra ember container 2015-05-22 19:05:14 +01:00
cobbspur
b26c4d91d8 Initial fixes for tests on Zelda branch
No issue

- Adds embers declaration
- Removes duplicate class in code injection
2015-05-22 19:05:14 +01:00
John O'Nolan
f6850e03f7 Fix uploader styles 2015-05-22 19:05:14 +01:00
John O'Nolan
e871f208e1 Fix splitbuttons, add more icons 2015-05-22 19:05:13 +01:00
John O'Nolan
4b39f88e99 Introduce new notification and alerts components 2015-05-22 19:05:13 +01:00
John O'Nolan
cf517c71d6 Properly scope editor title, fix bug overriding content mgmt 2015-05-22 19:05:13 +01:00
John O'Nolan
3eb9429216 Strip old MQs 2015-05-22 19:05:12 +01:00
John O'Nolan
4c6bc6d275 Remove double border 2015-05-22 19:05:12 +01:00
John O'Nolan
2036552c76 First pass new notification component 2015-05-22 19:05:12 +01:00
John O'Nolan
7114f0a936 Fix lock icon class 2015-05-22 19:05:11 +01:00
John O'Nolan
bee39f4389 Get rid of forgotten PW route 2015-05-22 19:05:11 +01:00
John O'Nolan
2f5a8f8e12 Integrate new auth styles into core 2015-05-22 19:05:11 +01:00
John O'Nolan
208999a77f Introduce CSScomb 2015-05-22 19:05:10 +01:00
John O'Nolan
ca9f837b89 Cleanup CSS code style 2015-05-22 19:05:10 +01:00
John O'Nolan
0ffd857f48 New button component 2015-05-22 19:05:10 +01:00
John O'Nolan
464d29717b Disable user selection by default 2015-05-22 19:05:09 +01:00
John O'Nolan
390c0179e5 Convert Sass to Myth 2015-05-22 19:05:09 +01:00
John O'Nolan
b93d9a590e Cleanup. 2015-05-22 19:02:10 +01:00
John O'Nolan
6d8989315a Remove extends 2015-05-22 19:02:09 +01:00
John O'Nolan
3bf189ec67 First pass - strip mixins 2015-05-22 19:02:09 +01:00
John O'Nolan
71255a3827 Move in new icons 2015-05-22 19:02:09 +01:00
John O'Nolan
fb3d307c5b Dem colours 2015-05-22 19:02:08 +01:00
John O'Nolan
2fffb4f0d2 Much fix 2015-05-22 19:02:08 +01:00
John O'Nolan
8d0d53b982 Clean up borders 2015-05-22 19:02:08 +01:00
John O'Nolan
804425aca3 Lighten up publish bar 2015-05-22 19:02:07 +01:00
John O'Nolan
51ea7e0eca Cleanup 2015-05-22 19:02:07 +01:00
Austin Burdine
f6a116b3c1 fix users template rendering 2015-05-22 19:02:07 +01:00
Austin Burdine
f2f10ac7a6 fixed extraneous div tag 2015-05-22 19:02:06 +01:00
John O'Nolan
c17c40a28c Content view 2015-05-22 19:02:06 +01:00
John O'Nolan
b6ab6c149e New settings headers 2015-05-22 19:02:06 +01:00
John O'Nolan
eadbf7c582 Integrate new admin frame 2015-05-22 19:02:05 +01:00
John O'Nolan
1daee7cff1 New onboarding markup and styles 2015-05-22 17:50:13 +01:00
Hannah Wolfe
cbbf1e42ec 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
e088859a38 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
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
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
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
John O'Nolan
443eafeeca First styles for private blog login 2015-05-11 13:11:59 +01: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
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
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
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
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
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
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
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
John O'Nolan
c6fb8a873a Add labs description 2015-04-09 16:14:50 +02:00
John O'Nolan
6eed16a115 Cleaned up some derpy settings padding and widths 2015-04-09 15:59:17 +02:00
Matt Enlow
91d57c2f30 Fix typofail in pagination-controller mixin
Closes #5120
2015-04-09 07:56:08 -06:00
Hannah Wolfe
b10ec55f65 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
b429baa02b 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
3523aa90a1 Normalize settings payloads in client serializer
Closes #5117
2015-04-08 13:03:56 -06:00
Paul Adam Davis
1cbb58d80d 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
2165153d97 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
777c3f6c7a 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
Matt Enlow
ee0c32dfc9 Ember 1.11.1
- remove `bind-attr` all over the place
2015-04-05 21:13:30 -06:00
Hannah Wolfe
880c911d22 Merge pull request #5046 from novaugust/autosave-cleanup
Autosave by observing model.scratch in editor
2015-04-05 23:12:38 +01:00
Austin Burdine
5dc44b0c37 add code editor component
closes #4995
- adds code mirror editor component
- converted code-injection editor fields to gh-cm-editor component
2015-04-05 11:57:18 -05:00
Hannah Wolfe
6db9826b23 Merge pull request #5098 from novaugust/view-post-link
Add link to published posts preview on content page
2015-04-05 14:41:07 +01:00
Jason Williams
bf3693a7fa Merge pull request #5085 from ErisDS/improved-forgotten
Improve the forgotten password flow
2015-04-03 13:40:16 -05:00
Hannah Wolfe
68f32772d2 Improve the forgotten password flow
- if the user has filled out their email already when they hit 'forgotten password' then automatically  fill out and submit the form
- this will look better when we have spinners on the buttons
2015-04-03 17:32:18 +01:00
Matt Enlow
91124646ed Add link to published posts preview on content page
Ref #1756
- the word "Published" in "Published by {{author}}" now links to the post's front page
2015-04-03 09:51:53 -06:00
Matt Enlow
ead9f8f36f Autosave by observing model.scratch in editor
No issue
- removes keypress handling in the editor component
- automated value changes via shortcuts still autosave
2015-04-02 17:06:00 -06:00
Paul Adam Davis
44dc0dd075 Re-add X icon
No issue

The `icon-x` class got messed up when I attempted to dry up our icon code in both https://github.com/TryGhost/Ghost/pull/4948 and 69fb78150d. All that was left was an `x` in the file.

This adds that class back, so the `icon-x` icon works again.
2015-04-02 10:42:32 +01:00
Paul Adam Davis
8d0e7cb615 Add version to font-face src url
Closes #5034

- Added `?v=0.1' to the font file URL to force a refresh of any old files with the same name
2015-03-31 10:32:31 +01:00
Hannah Wolfe
e1258f4002 Fixing ember build
- removing --silent so we can see errors
- pinning dependencies
- the error with normalize is resolved by pinning ember-cli-sass to 3.1.0, and breaks if upgrading to 3.1.1 as a result of issues with libsass
2015-03-31 10:50:13 +02:00
John O'Nolan
cd63215372 Font feature settings are incompatible with Open Sans 2015-03-27 12:26:16 +02:00
John O'Nolan
490f83a4ff Update monospace font stack
Closes #4936
2015-03-22 09:45:50 +02:00
Matt Enlow
711e1947a6 Merge pull request #5048 from ErisDS/showdown-extensions
Move showdown extensions to ghost-showdown
2015-03-18 07:39:41 -06:00
Hannah Wolfe
1db59e12ee Move showdown extensions to ghost-showdown
no issue

- We already maintain our own fork of showdown, this moves our custom extensions to our fork
- Code duplication is removed
- Tests are also moved to the other repo
2015-03-17 20:18:08 +00:00
Matt Enlow
6bb073cf0e Merge pull request #5026 from felixrieseberg/iss4978
Fix broken keyboard navigation in PSM
2015-03-17 12:54:39 -06:00
Felix Rieseberg
e8bbb78834 Fix broken keyboard navigation in PSM
Closes #4978

- If we’re not in the subview (meta data) of the PSM, we don't display the html for said subview.
2015-03-17 11:52:48 -07:00
Pascal Borreli
13838fff9d Fixed typos 2015-03-17 17:43:53 +00:00
Paul Adam Davis
a7b82f4c4c Textarea Editor CSS Improvements
References https://github.com/TryGhost/Ghost/pull/4373

* Consistent line-height & padding cross-browser
* Remove drag handle from textarea
* Partially clean up the CSS to more closely match the new standard
2015-03-17 14:32:55 +00:00
Hannah Wolfe
5db6fc4f18 No more CodeMirror
closes #4368, fixes #1240 (spellcheck), fixes #4974 & fixes #4983 (caret positioning bugs)

- Drop CodeMirror in favour of a plain text area
- Use rangyinputs to handle selections cross-browser
- Create an API for interacting with the textarea
- Replace marker manager with a much simpler image manager
- Reimplement shortcuts, including some bug fixes
2015-03-17 14:32:55 +00:00
Matt Enlow
58635b3e0a Serve files to core/built/assets/
- see core/client/lib/assets-delivery/index.js for how this is done
- Turn off ember-cli fingerprinting
- ember-cli 0.2.0; Update .npmignore
- Fallback to old version of ember-cli-sass due to lib-sass errors
- Keep ember-data at beta-14.1 until we find the dep that's breaking on snapshot.attr
- Fix release task to ignore blank lines in .npmignore
2015-03-12 15:59:02 -06:00
Matt Enlow
c7535c42cf Remove client/docs 2015-03-11 12:37:42 -06:00
Jason Williams
5b72a0eb18 fix routes test. ember-mocha@0.4.2 2015-03-11 12:37:42 -06:00
Jason Williams
e492c43067 Fix up ember-cli generated files and misc jscs/jshint errors 2015-03-11 12:37:42 -06:00
Jason Williams
184da01702 Change grunt jshint and jscs tasks 2015-03-11 12:37:42 -06:00
Jason Williams
8b3f713782 Fix up ember test files 2015-03-11 12:37:42 -06:00
Jason Williams
0b96765321 Set up tests for ember-cli 2015-03-11 12:37:41 -06:00
Matt Enlow
9e7658f98d grunt init, dev
- added grunt-bg-shell
- reorganized asset tasks into one location
- turn off ember-cli analytics
- remove app/config-dev and config-prod
- remove qunit from bower.json
- remove express from package.json
2015-03-11 12:37:41 -06:00
Matt Enlow
388a8dd3f0 Build assets with ember, and serve with ghost 2015-03-11 12:37:41 -06:00
Matt Enlow
d61b2e1a00 Ember init, bower deps, es6 modules 2015-03-11 12:37:41 -06:00
Matt Enlow
6e4bdbaefb The great migration (EAK -> ember-cli) 2015-03-11 12:37:41 -06:00
Hannah Wolfe
7e0143bc63 Merge pull request #5021 from PaulAdamDavis/accessability-text
Clean up hidden accessibility text class
2015-03-11 10:07:45 +00:00
Hannah Wolfe
feebc9ee0d Merge pull request #5014 from PaulAdamDavis/icon-font-reference-fix
Update icon font unicode references
2015-03-09 16:59:26 +00:00
Paul Adam Davis
69fb78150d Remove Maps for icons
Manually reverts #4948

- Sass Maps suck. They're gone now.

For historical context: They cause issues with various environments when used with Libsass
2015-03-09 16:43:34 +00:00
Matt Enlow
18015809a4 Merge pull request #5002 from ErisDS/issue-4989
Fixing overzealous trailing-slashes
2015-03-09 10:34:18 -06:00
Paul Adam Davis
eccf96c836 Update icon font unicode references
Closes #3515 (again)

- Changes the prefix for icons from `\e` to `\f` which is borrowed from Font Awesome
2015-03-09 13:09:44 +00:00
Hannah Wolfe
b216677161 Accept mailto: links
refs #4989

- this allows users to enter mailto and output links via the navigation UI
- the navigation validation/cleanup needs a bit of a refactor to handle other kinds or URI, so leaving #4989 open for now
2015-03-09 13:06:26 +00:00
John O'Nolan
461834f96d Introduce new help menu 2015-03-09 11:53:40 +02:00
Paul Adam Davis
56a6f4ddec Clean up hidden accessibility text class
Closes #4662

- Removed accessibility classes from `_shame.scss` in favour of those in `global.css`, which are from Bootstrap and better tested.
- Change many instances if `class="hidden"` to `class="sr-only"`, so text intended to help with accessibility is not hidden from screen readers, only visually hidden.
2015-03-08 15:58:51 +00:00
Hannah Wolfe
4e5cba8c4c Fixing overzealous trailing-slashes
refs #4989

- Don't add a trailing a slash if the url is a file or anchor
2015-03-07 21:09:50 +00:00
John O'Nolan
7383820e35 Merge pull request #4948 from PaulAdamDavis/simpler-icon-code
Improve icon handling code
2015-03-07 20:16:06 +02:00
John O'Nolan
ccbd3f99ad Merge pull request #4976 from PaulAdamDavis/fix-blog-logo-svg
Remove button wrapping blog logo image
2015-03-07 20:15:53 +02:00
Hannah Wolfe
884d766afe More serverside notificaiton HTML fixes
refs #4964, #4969
2015-03-03 19:57:27 +00:00
Paul Adam Davis
4cb7cfff09 Remove button wrapping blog logo image
Closes #4959

An SVG (without width & height attributes) inside a button won't display as it should. There seems to be no fix other than apply a minimum width & height. That doesn't feel right, so I've opted for this.

- Remove the `<button>` wrapping `<img>` elements
- Add `cursor: pointer;` to those images (now they don't get one, not being inside a `<button>`
- Remove the `#blog-logo/cover` IDs and `for` attributes. They only apply focus on text inputs anyway.
2015-03-02 14:53:03 +00:00
Hannah Wolfe
879b6afbc5 Display serverside HTML notifications correctly
refs #4964

- persistent notifcations from the server contain HTML and should be marked HTML safe
2015-02-28 17:41:38 +00:00
Matt Enlow
3f1d0b9353 Merge pull request #4965 from ErisDS/validate-image-url
Validate urls in modal
2015-02-28 09:49:15 -07:00
Hannah Wolfe
8be8831adb Validate urls in modal
- Urls added via a model are stored in the DB and need to be validated

Credits: Abdel Adim Oisif
2015-02-28 16:24:34 +00:00
Hannah Wolfe
e75939c083 Mark html notifications as html-safe, else escape
no issue

- Use the double-tash escaping output for notification messages
- Mark known and trusted html notifications as html-safe

Credits: Abdel Adim Oisif
2015-02-28 16:22:38 +00:00
Matt Enlow
ca4c4c17de Merge pull request #4950 from ErisDS/nav-flag-remove
Remove navigation config flag
2015-02-26 07:50:23 -07:00
Jason Williams
515abc3080 Simplify navigation item reordering 2015-02-25 17:26:25 +00:00
Hannah Wolfe
70a200d53f Remove navigation config flag
ref #4535

- don't need this any more :)
2015-02-25 15:15:55 +00:00
Paul Adam Davis
c473303abf Improve icon handling code
Closes #4878

This changes nothing except DRYness of code. Its output is exactly the
same.

- Moves all icon variables into a map
- Add getter function to extract variables from the map
2015-02-25 00:21:56 +00:00
Matt Enlow
299fbf9fbd Don't save if nav items have empty labels
Closes #4942, Closes #4944
- Also adds the `order` prop to the lastItem on save, so it doesn't jump about
2015-02-24 11:50:07 -07:00
Matt Enlow
1f195bdf88 Fix navigation deletion
Closes #4928
2015-02-23 17:02:48 -07:00
Hannah Wolfe
8cf111e767 Merge pull request #4934 from PaulAdamDavis/fix-nav-order-metadata
Add `order` property when parsing Navigation JSON
2015-02-23 23:39:06 +00:00
Paul Adam Davis
2843a35ecc Add order property when parsing Navigation JSON
Closes #4927

- Add `order` property when parsing Navigation JSON
- Fixes CSS issue where the placeholder nav item drag handle was still visible
2015-02-21 14:07:13 +00:00
Hannah Wolfe
2029f264d0 Merge pull request #4935 from PaulAdamDavis/input-error-style
Add `error` class styles for inputs
2015-02-20 16:17:28 +00:00
Sebastian Gierlinger
ca1d97ab43 Merge pull request #4923 from ErisDS/nav-trailing-slash
Ensure internal nav items have a trailing slash
2015-02-18 20:40:22 +01:00
Hannah Wolfe
a30b165e13 Merge pull request #4930 from jaswilli/issue-4871
Run listener callbacks in Ember run-loops
2015-02-18 19:19:01 +00:00
Sebastian Gierlinger
27859a9769 Merge pull request #4914 from ErisDS/nav-ux-fix
Use placeholder only for last item
2015-02-18 19:55:09 +01:00
Jason Williams
1bac657c8c Run listener callbacks in Ember run-loops
Closes #4871
2015-02-18 17:11:02 +00:00
Paul Adam Davis
914d2fa1e3 Add error class styles for inputs
No issue

Adds a red border to inputs when a `error` class is applied

Also DRY's up the URL input a tad.
2015-02-18 11:34:52 +00:00
John O'Nolan
c997ff52fa Merge pull request #4870 from PaulAdamDavis/notifications-bug
Move bottom notifications outlet outside of <main>
2015-02-17 21:22:12 +02:00
Hannah Wolfe
01dc9bd834 Ensure internal nav items have a trailing slash
refs #4535

- all internal urls in ghost have a trailing slash, missing it out will cause nav-current to not work
2015-02-16 19:08:41 +00:00
Hannah Wolfe
4a2963a2ae Use placeholder only for last item
refs #4535

- as discussed in the meeting on 1st February ;)
- changed the fake-placeholder to only operate on the last item, this way it feels right, I think
2015-02-13 23:27:22 +00:00
Matt Enlow
81fd5f9eaf Merge pull request #4858 from PaulAdamDavis/nav-drag-order
Drag & Drop Navigation Reordering
2015-02-13 11:26:34 -07:00
Matt Enlow
2d7bbdcaa7 Merge pull request #4910 from 1pete/disable-reset-pw-btn
Set reset-password button disabled while submitting form
2015-02-12 19:51:49 -07:00
Jason Williams
6cc715d41b Adjust reauth modal to handle removal of proxying
Closes #4907.
- The modal signin no longer inherits from the signin page
  controller to simplify the interaction with simple-auth.
2015-02-13 01:40:13 +00:00
1Pete
69f9cc5192 set reset-password button disabled while submitting form 2015-02-13 06:16:18 +07:00
Paul Adam Davis
68eb6b67b0 Drag & Drop Navigation Reordering
Closes #4540

- Implements drag & drop to reorder navigation items
- Adds a `sort` property to navigation items
- Adds a tiny library to enable touch events for drag & drop. It hooks onto jQuery UI.
- Sort nav items before being saved
- Adds `settings-view-navigation` to route for body class
2015-02-12 17:02:46 +00:00
Jason Williams
2a91a1071e Update Ember to 1.10.0
No issue.
- Ember@1.10.0
- Update grunt-ember-templates to version that supports HTMLBars.
- Update Gruntfile.js to compile templates with HTMLBars.
- Convert Handlebars code to its HTMLBars equivalent.
2015-02-09 16:20:16 +00:00
John O'Nolan
3c52d96fe6 Merge pull request #4793 from PaulAdamDavis/url-upload-styles
Update Image URL Input Styles
2015-02-04 09:02:33 -04:00
John O'Nolan
6f0e445e9f Merge pull request #4864 from PaulAdamDavis/user-image-styles
Update user image styles
2015-02-04 09:02:20 -04:00
Hannah Wolfe
31880e7cfa Merge pull request #4880 from jaswilli/client-model-tests
Add tests for admin client models
2015-02-02 19:03:40 +00:00
Jason Williams
b1b24706b4 Merge pull request #4877 from harryhope/master
Ignore non-words in word counter
2015-02-02 10:52:04 -06:00
Jason Williams
d60fff9519 Add tests for admin client models 2015-02-01 21:41:55 +00:00
Harry Hope
6361976c39 ignore non-words in word counter 2015-02-01 01:22:20 -05:00
Jason Williams
15fcc8067b Fix regression in re-setting slug on untitled post
Refs #4748
2015-02-01 05:17:24 +00:00
Jason Williams
db693b50cb Do not add autofocus attribute unless set to focus
No Issue
- Don't add the "autofocus" attribute to the input element unless
  the "focus" property is set to true.
2015-01-30 22:29:34 +00:00
Hannah Wolfe
aa4bcda52c Merge pull request #4865 from PaulAdamDavis/user-settings-no-name-bug
Fix layout error when there's no user name
2015-01-30 20:16:04 +00:00
Paul Adam Davis
35ddf189e7 Move bottom notifications outlet outside of <main>
Closes #4379

- Moves the bottom notification outlet _outside_ the `<main>` element which allows notifications to show above the nav bar
- Removes (the now unnecessary) code which counter-positioned the bottom notifications when a Settings Menu was opened.

The way these notifications look or are positioned at various viewport sizes **has not changed**.
2015-01-30 16:01:13 +00:00
Jason Williams
571c9b61c3 Simplify url preview component, add test
No Issue
- Rework the preview URL component so its implementation is
  simpler.
- Add test for gh-url-preview component.
- ember-mocha@0.3.0.
- Remove unused jshint options.
2015-01-29 17:13:02 +00:00
Paul Adam Davis
56e9f09277 Update user image styles
Related to #4844

The newly added user image in the content list uses a CSS property to
crop `img` tags, but it's not supported in IE or Firefox. This issue
corrects that by chancing them to be background images which can be
cropped cross-browser.

It also adjusts the nav bar user image (previously an `img` tag) which
would squash a non-square image.

Also removes the border around the settings/users/ user images, to be
consistent with the rest of the UI.
2015-01-29 11:34:14 +00:00
Paul Adam Davis
61a6197074 Fix layout error when there's no user name
No issue

- Adds a clearfix to the user settings header to prevent a broken
layout when there's no name.
2015-01-28 16:43:55 +00:00
Jason Williams
b3ed3d78cb Add new navigation item on enter key
No Issue
- Fix regression in add item on enter behavior.
2015-01-27 23:14:45 +00:00
Jason Williams
f0ae1fa919 Set 'value' property before a dependent CP is used
No issue.
- Make sure value property has been set before computed
  property isRelative is referenced.
2015-01-27 22:23:10 +00:00
John O'Nolan
9881af3404 Merge pull request #4844 from PaulAdamDavis/content-list-style
Update content list styles
2015-01-27 13:03:24 -05:00
Hannah Wolfe
057a8d19ac Merge pull request #4842 from chilts/add-slash-to-tag-editor-tag-url
Make preview URLs include trailing slash when slug is given
2015-01-27 17:45:01 +00:00
Matt Enlow
8693e1dda0 Merge pull request #4855 from jaswilli/serializer-cleanup
Update Ember-Data, remove unneeded code
2015-01-26 12:05:50 -07:00
Jason Williams
f794490e61 Update Ember-Data, remove unneeded code
No Issue.
- Ember-Data@1.0.0-beta.14.1.
- Remove code from serializers for a workaround that's no longer needed.
2015-01-25 20:00:55 +00:00
Paul Adam Davis
d54af1b926 Update content list styles
Closes #4425

- Adds the author avatar (with defalt fallback)
- Shows author name when hovering the avatar (falls back to email address)
- Slightly adjusts type, colour, and spacing
2015-01-24 17:51:19 +00:00
Jason Williams
d633ffc766 Remove jshint rules that are no longer supported
No Issue
- grunt-contrib-jshint@0.11.0.
- remove error about browser global Notification being redefined.
2015-01-23 21:00:37 +00:00
Andrew Chilton
4e8dc4f6e3 Make preview URLs include trailing slash when slug is given
- the trailing slash isn't shown usually
- slash added when a slug is given to be more correct
2015-01-23 17:34:36 +13:00
Jason Williams
d446ad84ea Implement Navigation item input behaviors
Closes #4807
2015-01-18 23:08:03 -06:00
Jason Williams
1c07273f5a Update grunt-jscs dependency
No Issue
- grunt-jscs@1.2.0
- Clean up some instances of multiple spaces.
- Remove jscs:disable for regexes now that jscs better supports them.
2015-01-16 18:06:20 +00:00
Matt Enlow
3982e0f871 Merge pull request #4804 from jaswilli/issue-4539
Connect Navigation page to live data
2015-01-14 15:45:04 -07:00
Jason Williams
a007ae1442 Connect Navigation page to live data
Closes #4539
2015-01-14 21:24:08 +00:00
Fabian Becker
7090fa0430 Fix user role select
fixes #4800
- Correctly reference the user role for initial value
2015-01-14 00:58:15 +01:00
Paul Adam Davis
f90cb0c8de Update Image URL Input Styles
No issue

The style for the URL input when uploading images are a bit broken.
This PR reduces the horizontal spacing in the settings menu uploader (to widen the input), corrects the button with black text in the editor uploader and makes sure all image upload inputs fill the container.
2015-01-13 11:16:04 +00:00
Hannah Wolfe
0cb3483bc0 Merge pull request #4694 from PaulAdamDavis/navigation-ember
Navigation UI Ember Integration
2015-01-13 09:31:32 +00:00
Hannah Wolfe
e8fa276fea Update about page copyright 2015-01-12 17:46:11 +00:00
Hannah Wolfe
e6305e83fa Merge pull request #4765 from martinnormark/master
Load next page if scrollHeight <= clientHeight
2015-01-12 14:17:51 +00:00
Jason Williams
66154145f1 Fixup validation engine to handle lack of proxying
Closes #4766
- Adjust ValidationEngine so it no longer assumes the properties
  it is validating are proxies via ObjectController.
- Fixup controllers, templates, and routes to use models where
  data needs to be validated.
2015-01-12 03:27:47 +00:00
Paul Adam Davis
6cc5a58b68 Navigation UI Ember Integration
Closes #4537

- Adds Navigation to the Settings menu
- Adds a `navigationUI` config flag (redirects if not an editor or author)
2015-01-11 20:04:01 +00:00
Hannah Wolfe
5ceb721fa4 Fixes post sort order
fixes #4788
2015-01-11 16:46:43 +00:00
Felix Rieseberg
d7bf4258fe Editor Save Button/Notifcations: Post vs Page
Closes #4768

- Notifications that used to read ‘View Post’ now read ‘View Page’ if
the post is actually a page
- The Editor Save Button now also makes a distinction between posts and
pages
2015-01-08 10:23:48 -08:00
Hannah Wolfe
7860818a2f Reset the store after import
no issue

- without this, the content screen doesn't update properly after an import
2015-01-08 13:42:45 +00:00
Martin H. Normark
3faf4deca0 Load next page if scrollHeight <= clientHeight
closes #4764
- call loadNextPage in attachCheckScroll, if element scrollHeight <=
clientHeight
2015-01-07 00:16:16 +01:00
Jason Williams
04180bc83b Merge pull request #4763 from ErisDS/no-tag-flag
Move tag management from behind config/labs flags
2015-01-06 13:41:19 -06:00
Hannah Wolfe
1f22d8c28c Move tag management from behind config/labs flags
issue #4248

- tag management is ready for release, this takes the training wheels off :)
- remove config flag
- remove labs checkbox and related code
2015-01-06 18:56:42 +00:00
Jason Williams
ce11c728c6 Reset upload component on tag switch
Closes #4755
2015-01-05 22:45:19 +00:00
Jason Williams
e6fd1b89c0 Rework Labs feature toggling
Refs #4750
- Make "Feature" a Controller with promise support.
- Use via 'needs' instead of injecting from an initializer because
  we need authenticated access to the API.
- Check whether feature is enabled when entering Code Injection route.
2015-01-04 20:05:25 +00:00
Jason Williams
7c7dbb911c Merge pull request #4750 from ErisDS/labs-thing
Labs page checkboxes
2015-01-04 13:44:47 -06:00
Hannah Wolfe
c0fc7c5bcd Adds global feature manager
closes #4409
2015-01-03 14:25:04 +00:00
Paul Adam Davis
cc6f698053 Start of labs
issue #4409
2015-01-02 15:58:36 +00:00
Robert Jackson
a1ed9adf92
Remove ObjectController proxying behavior.
Ember.ObjectController (and Ember.ArrayController) will be deprecated in
Ember 1.11 (and removed from core in Ember 2.0). The reasoning is
detailed in the Ember 2.0 RFC.

This PR does the following:

* Updates templates/controllers/views to explicitly reference model
  properties (instead of relying on proxying behavior).
* Clearly delineate where certain properties are being set or retrieved
  from (for example it was not clear exactly where `scratch` and
  `titleScratch` were stored).
* Remove usage of `Ember.ObjectController`.
* Add JSCS rule to prevent future PR's from adding regressions.
2015-01-01 21:51:20 -05:00
Jason Williams
5d1412bc86 Merge pull request #4742 from rwjblue/cleanup-posts-template
Cleanup posts template.
2015-01-01 10:13:45 -06:00
Robert Jackson
b6676b38c7
Do not use static and {{bind-attr}} for the same attribute.
No issue.
2014-12-31 22:30:39 -05:00
Robert Jackson
273a782fcb
Cleanup posts template.
No issue.

* Fix indentation (it was surprisingly hard for me to grok what was happening
  without indentation).
* Utilize `alternateActive` from `core/client/utils/link-view.js` to
  maintain the `active` state. Observing `childViews` is deprecated (and
  may not work properly in future versions of Ember).
* Remove now unused `item-view`.
2014-12-31 21:06:05 -05:00
Robert Jackson
d70b19987c
Allow resolver to lookup gh-path helper. 2014-12-31 14:44:39 -05:00
Robert Jackson
eb2d940e11
Remove PostSettingsMenuView.
It seems that the properties this sets up (`datePlaceholder` and
`publishedAt`) are unused throughout the project.
2014-12-28 22:14:02 -05:00
Robert Jackson
fc18a38215
Fix invalid HTML in templates.
HTMLBars (coming soon in Ember 1.10) validatest templates during
compilation. This PR fixes errors identified.
2014-12-28 18:01:05 -05:00
Jason Williams
3f3544a3bb Make embedded-relation-adapter the default
No Issue
- Generalize embedded-relation-adapter so it can be used for both fetching
  and saving records.
- Change Adapter inheritance hierarchy to
  RESTAdapter => BaseAdapter => EmbeddedRelationAdapter. ApplicationAdapter
  now extends EmbeddedRelationAdapter.
- Cleanup or remove adapters that existed just to extend directly
  from EmbeddedRelationAdapter.
2014-12-28 00:28:36 +00:00
Hannah Wolfe
5b23a3d957 Merge pull request #4720 from jaswilli/modal-error
Use an explicit action name in action helper
2014-12-27 19:13:53 +00:00
Jason Williams
07bf54224a Merge pull request #4666 from felixrieseberg/iss4651
Trigger Change Event before Login
2014-12-26 11:13:18 -06:00
Jason Williams
26b7102451 Use an explicit action name in action helper
No Issue
- Clicking on the body of a modal dialog causes an
  unhandled exception in the console.  Add an explicit
  action name to the helper.
2014-12-26 16:01:50 +00:00
Hannah Wolfe
98087f0244 Merge pull request #4708 from cobbspur/editors
Fixes navigation for Editors on small screen
2014-12-24 13:03:46 +00:00
John O'Nolan
c01b32c74f Fix settings back button implementation 2014-12-23 20:02:55 +00:00
Paul Davis
a8b30209be Merge pull request #4711 from JohnONolan/fix-tagmgmt
Fix tag mgmt display bugs
2014-12-23 12:22:54 +00:00
John O'Nolan
06b4b377a6 Fix tag mgmt display bugs
- Misaligned header due to back button being in the wrong place in the markup
- Corrected padding on tag delete button
- Updated tag settings input labels for consistency
2014-12-23 14:10:21 +02:00
Paul Adam Davis
7200b5ec40 Fix modal edge spacing
No issue

The transparent border surrounding modals was being cut off.
This fix uses padding instead of adjusting the left & right valued to create space.
2014-12-23 12:05:18 +00:00
cobbspur
050491a9d3 Fixes navigation for Editors on small screen
closes #4707

- Changes Back-link on settings users page to content for editors
2014-12-23 10:35:49 +00:00
Hannah Wolfe
d620f3a0d2 Merge pull request #4699 from jaswilli/issue-4683
Finish tag post count UI.  Misc tag related fixes
2014-12-22 20:15:25 +00:00
cobbspur
c98ee001be Fix back button on tag UI page
closes #4703

- previous link used absolute url which fails for subdirectories
2014-12-22 16:50:09 +00:00
Jason Williams
7176097e9d Finish tag post count UI. Misc tag related fixes
Issue #4683
- Finish setting up pagination in tag management page.
- Add post count warning to delete tag modal.  Fix styling.
- Make sure tag input menu is loading all tags.
- Only include saved tags in tag input suggestion list.
- Unload tag records from store when entering tag route so that
  we get accurate post count.
- Add a resetPagination action to pagination-controller-mixin for
  cases where we want to start fresh.
- Include tag.id when sending tag payload to API.
2014-12-22 02:17:18 +00:00
Jason Williams
15ebc5d5dc Merge pull request #4689 from ekulabuhov/4683_TagPostCountUI
Updated tag management UI with the post counts
2014-12-21 19:19:56 -06:00
Eugene Kulabuhov
f1da5f86b6 Updated tag management UI with the post counts
closes #4683
- added post count to 'delete tag' modal
- fixed lint errors
- preventing extra data to be sent to server
- adjustments suggested by @jaswilli
2014-12-22 00:26:52 +00:00
Paul Adam Davis
a3e36fca8d Fix broken user list paginated scrolling
Closes #4695

- Adds a new class to the template and minor CSS to allow user list scroll events to work
2014-12-21 23:03:39 +00:00
Hannah Wolfe
48ac142c54 Merge pull request #4546 from PaulAdamDavis/url-preview-comp
Add a URL preview componant
2014-12-20 15:26:59 +00:00
Paul Adam Davis
7c310ad2df Add a URL preview componant
Closes #4499

- Introduces a URL preview component
- Added the component to tag settings and post settings
- Adds a new CSS file for this component which makes sure the preview never wraps onto multiple lines
2014-12-19 23:48:21 +00:00
Hannah Wolfe
e6227e7a24 Merge pull request #4674 from delgermurun/post-sort
Add 'id' to post sort fields. So there is no longer equally sorted posts.
2014-12-19 21:05:45 +00:00
Jason Williams
8d9df785be Prevent error when closing modal dialog
No Issue
- Moved sendAction outside of the event handler as calling it
  from inside was generating an error in the console.
2014-12-18 23:10:25 +00:00
Hannah Wolfe
8119ee7f6e Merge pull request #4671 from jaswilli/ember-data-beta12
Update Ember-Data.
2014-12-18 16:45:00 +00:00
Hannah Wolfe
c7e3ceebc1 Merge pull request #4563 from felixrieseberg/iss4557
PSM: Reset 'Published Date'
2014-12-18 16:37:17 +00:00
Hannah Wolfe
c5f165d5b7 Merge pull request #4643 from novaugust/settings-menu-mixin
Create settings-menu-mixin for subview state tracking
2014-12-18 16:34:39 +00:00
John O'Nolan
e3bd9d556e Merge pull request #4647 from PaulAdamDavis/modal-css-ani
Use CSS animations for modals
2014-12-18 17:49:41 +02:00
Hannah Wolfe
5b0c1e71a2 Merge pull request #4665 from PaulAdamDavis/navigation-ui
Navigation UI Mockup
2014-12-18 10:28:34 +00:00
Delgermurun
afdb3a948d Add 'id' to post sort fields. So there is no longer equally sorted posts.
closes #4648
- Add id to order by fields on posts API
- Order by id on posts controller
2014-12-18 11:34:26 +08:00
Paul Adam Davis
eae4410a6f Navigation UI Mockup
Refs #4537

Static mockup of the navigation UI

- Includes hacky JS to simulate interactions (but not dragging, which is #4540 and no modal when deleting)
- Delete & add icons have invisible padding to increase hit area
- Drag handle has the `move` cursor
- Switches into a single column at 600px and below
2014-12-17 21:43:44 +00:00
Jason Williams
908ddc2681 Update Ember-Data.
No Issue
- ember-data@beta.12
- ember-data now warns if a payload contains properties that do
  not exist in the model.  Because of this all missing model
  attributes have been added (without their relationship defined)
  because they're currently unused and we don't need to generate
  additional API requests to resolve the async relationships.
2014-12-17 20:34:25 +00:00
Hannah Wolfe
4b6c2bff51 Merge pull request #4656 from felixrieseberg/iss4633
Tag Management: Delete Flow
2014-12-17 18:11:08 +00:00
Felix Rieseberg
fb348fb30a Tag Management: Delete Flow
Closes #4633
- The ‘delete’ button is now a smaller plain text link, opening a
confirmation modal analog to the delete user/post flow
- Adding a post count is dependent on #4654, but the modal is already a
neat step up from the immediate, warning-less deletion.
2014-12-17 08:38:14 -08:00
Hannah Wolfe
e0f65b899e Merge pull request #4620 from jaswilli/ember19
Update to Ember 1.9.0.
2014-12-16 23:18:24 +00:00
Felix Rieseberg
db1539747b Trigger Change Event before Login
Ref #4651

- Manually triggering the change event ensures compatibility with
legacy password managers and browsers not properly firing events on
autofill (which leads to Ember not picking up the entered values)
2014-12-16 12:37:58 -08:00
Ilya Radchenko
4b5242dd09 Prevent publish-bar from floating up 2014-12-16 08:44:49 -05:00
Paul Adam Davis
4fb3fe62a9 Use CSS animations for modals
No issue

- Changes Modals to use CSS-based animations
- All modals have an animation, so the option is removed from the handlebars helper
- Removes `animation` from the handlebars helper, as all had one anyway
- Removed the `centered` style - All modals should be left-aligned
- Buttons now default to being on the left
- Cleans up some styles (modal body top spacing) which #4632 helped clean up
2014-12-15 18:23:42 +00:00
Hannah Wolfe
7d0deebc08 Merge pull request #4653 from jaswilli/client-data
Do not include url and author_id in post payload.
2014-12-15 15:58:08 +00:00
Jason Williams
2ee731a06d Remove files for a modal that is no longer used.
Refs #4602
- The modal dialog that used to be shown when re-auth was
  needed in the editor has been replaced.
2014-12-15 15:29:35 +00:00
Jason Williams
ff321e086b Do not include url and author_id in post payload.
No Issue.
- Neither of these properties should be included in the
  payload sent from the client to the API.  URL is a
  read-only virtual property, and author_id is inserted
  locally as a convenience.
2014-12-15 15:07:04 +00:00
Jason Williams
1541b92ccf Fixup behavior and styling of editor re-auth.
Closes #2092
- Adds styling for re-auth modal.
- Prevent transition to posts route on success.
- Clear credentials from controller.
- Handle confirmAccept action if form is submitted via 'enter'.
- Only allow re-auth as the user that was previously logged in.
2014-12-15 14:42:00 +00:00
Marco Otte-Witte
1961b075bb allow re-login when authorization fails on editor.edit route 2014-12-15 14:39:41 +00:00
Hannah Wolfe
a0db21d3ec Merge pull request #4629 from cobbspur/postpreview
Add view post link on published and updated posts
2014-12-15 13:28:47 +00:00
Hannah Wolfe
3eb457a6aa Merge pull request #4645 from katiefenn/issue-4356 2014-12-15 12:29:19 +00:00
Katie Fenn
a233a14f4a Fixed editor tag field handling of comma key on international keyboards
fixes #4356
- Added new keyPress event handler to identify keys by character instead of key
- Removed code for handling comma key from keyDown event handler
2014-12-15 12:27:35 +00:00
cobbspur
53d12a9659 Add view post link on published and updated posts
closes #1756

- adds a post url link to 'post updated' and 'post published' in editor
- adds join function in ghost paths
- adds a '/' detection to makeRoute method
- adds test for join function
2014-12-15 12:18:47 +00:00
Hannah Wolfe
787e0a9a71 Merge pull request #4346 from novaugust/scroll-posts
Scroll post-item-view into view
2014-12-14 23:17:12 +00:00
Matt Enlow
29328bd4c9 Create settings-menu-mixin for subview state tracking
Ref #4642
- Move duplicate code from PSM and SettingsTags to a mixin
2014-12-13 20:37:36 -07:00
Jason Williams
994dee16d4 Merge pull request #4635 from ikhattab/fix-autosave-whitespace-title
Autosave for whitespace-only titles
2014-12-12 10:19:07 -06:00
Jason Williams
a69b2a2e9a Merge pull request #4632 from PaulAdamDavis/modal-colour-spacing
Modal spacing & warning colour
2014-12-12 09:49:05 -06:00
Ihab Khattab
0f37f3d4e5 Autosave for whitespace-only titles
closes #4625
- trim white space form `titleScratch` to enable autosave for
whitespace-only titles
2014-12-12 16:44:24 +02:00
Paul Adam Davis
458f399a3a Modal spacing & warning colour
Closes #4583

- Adds a `.red` class (used to make the post count red)
- Adds a little spacing under the modal header to things arent bunched up
2014-12-12 10:48:50 +00:00
Hannah Wolfe
b9310a2716 Merge pull request #4613 from felixrieseberg/iss4506-2
Tag Cover Images
2014-12-12 10:46:58 +00:00
Hannah Wolfe
6c09c0b0d1 Merge pull request #4619 from jaswilli/issue-4583
Change user deletion warning to be more explicit.
2014-12-12 10:16:59 +00:00
Hannah Wolfe
35ee121761 Merge pull request #4628 from sebgie/issue#4624
Password change MU
2014-12-12 10:07:34 +00:00
Sebastian Gierlinger
40c78493a3 Password change MU
closes #4624
- added user_id to password reset request
- hide old password field
- updated changePassword method to check permissions
- updated changePassword method to work without oldPassword
- fixed bug for errors shown as [Object object]
2014-12-11 21:23:07 +01:00
Hannah Wolfe
28eb91763f Labs page bug fixes
- clear import errors on new attempt
- clear posts and tags from store after delete all
2014-12-11 19:53:56 +00:00
John O'Nolan
4c3d548bb3 Merge pull request #4621 from graphiclunarkid/issue4583
Swap button order on deleter-user modal
2014-12-11 17:20:43 +02:00
John O'Nolan
d81cc1f071 Merge pull request #4623 from vikhyat/unfocus-nav
Fix active menu state on settings navigation
2014-12-11 17:09:40 +02:00
Felix Rieseberg
028a64eaee Tag Cover Images
Closes #4506

Works just like the Post Cover Images (and uses the same component)
Tiny changes to the component ensures that we can reuse it across Ghost
2014-12-10 17:48:18 -08:00
Paul Adam Davis
ce395998ff Add Tag Meta View
Closes #4509, Closes #4615

- Adds meta title & meta description input fields
- Autosaves meta data
- Shows SEO preview (falling back to tag name & description if meta not supplied)
- Adds `type="button"` to delete button (which closes 4651)
2014-12-10 18:12:30 +00:00
Vikhyat Korrapati
297c33b3f7 Fix active menu state on settings navigation
closes #4622
- unfocus ActivatingListItem link when clicked
2014-12-10 22:01:40 +05:30
Jason Williams
56e4798dcf Update to Ember 1.9.0.
No Issue
- Ember@1.9.0
- Handlebars@2.0.0
- grunt-ember-templates@0.5.0-alpha
2014-12-10 16:24:20 +00:00
Richard King
cb037241be Swap button-order on modal dialogs
Issue #4583

- Delete button should be on the right, cancel on the left, for all modal dialogs.
2014-12-10 16:13:45 +01:00
Jason Williams
83f154385e Change user deletion warning to be more explicit.
Issue #4583
- If a user has posts, show the count in the deletion warning.
2014-12-10 01:44:36 +00:00
David Balderston
aff0622248 Added Highlight to Markdown Help 2014-12-09 17:07:08 -08:00
Matt Enlow
a04157daeb Dry up tag saving behavior
Ref #4248
2014-12-09 07:38:32 -07:00
Matt Enlow
93c5ff3e04 Merge pull request #4523 from Gargol/issue-4516
Adds ctrl/cmd+s shortcut to whole application with a noop default
2014-12-08 11:45:48 -07:00
Nazar Gargol
7e16ef328d Adds ctrl/cmd+s shortcut to whole application with a noop default
closes #4516
- shortcut for ctrl/cmd+s on application level
- shortens a syntax for any route that is using 'save' method, shortcuts object doesn't have to be defined at all, only the save action.
2014-12-08 19:08:40 +01:00
Sebastian Gierlinger
d479b0c262 Fix reset token verification
closes #3872
closes #4603
- updated regex to work with url safe tokens
2014-12-08 09:34:40 +01:00
Jason Williams
6f595c959a Update syntax in ember templates.
No Issue.
- Outlet names must be quoted.
- {{#each}} helper will no longer implicitly switch context.
  Change usage to {{#each foo in bar}}.
2014-12-06 16:30:57 +00:00
Hannah Wolfe
aca7577b60 Merge pull request #4579 from PaulAdamDavis/about-tests
About Page Tests
2014-12-05 17:03:17 +00:00
Sebastian Gierlinger
be928dd7a2 Merge pull request #4570 from jaswilli/update-simple-auth
Update authentication initializer.
2014-12-05 16:38:50 +01:00
Paul Adam Davis
3b87aa2895 About Page Tests
Closes #4508

Tests for:

- Version number is a number
- Database type is an allowed 1 of 3
- There are 20 contributors
- First contributor has an image tag and image src exists, alt tag, title tag, href to github
2014-12-05 14:40:59 +00:00
John O'Nolan
b705d5cd7d Fix settings header to allow dropdown menus to work 2014-12-04 19:25:14 +02:00
Sebastian Gierlinger
658dea9e6b Merge pull request #4580 from ErisDS/footnote-excerpt
Strip footnotes from excerpts
2014-12-04 17:24:56 +01:00
Hannah Wolfe
299b06e705 Merge pull request #4582 from jaswilli/ci-adjust
Match labels with element ids.
2014-12-04 16:05:07 +00:00
Hannah Wolfe
591d653b36 Strip footnotes from excerpts
fixes #4572

- Remove both inline and bottom footnotes from excerpt output before stripping the remaining HTML
- No more red errors, black text or bold links in codemirror, as codemirror gets confused by footnote syntax. This is a step towards the new editor which has no syntax highlighting in the editor
2014-12-04 15:28:30 +00:00
Jason Williams
de20f3af2a Match labels with element ids.
Refs #4578
- Match label "for" attributes with ids from the inputs they're
  labeling.
- Remove extra promise generation from ghost header and footer helpers.
2014-12-04 15:21:27 +00:00
Paul Davis
f2b90bfa07 Revert "Allow notifications to sit over the nav bar" 2014-12-04 15:12:38 +00:00
Jason Williams
6a2e699c8e Update authentication initializer.
Refs #3492
- ember-simple-auth@0.7.2
2014-12-04 15:09:11 +00:00
Sebastian Gierlinger
32959b2269 Merge pull request #4578 from ErisDS/pr-3489
Code Injection PR 3489 rebased and updated
2014-12-04 15:16:37 +01:00
Sebastian Gierlinger
0b2541b19f Merge pull request #4575 from ErisDS/highlight
Adds markdown highlight support
2014-12-04 15:00:01 +01:00
Hannah Wolfe
9783f16e76 Adds markdown highlight support
closes #4574

- adds highlight showdown extension with tests
2014-12-04 13:37:29 +00:00
Hannah Wolfe
904918d5cc Code Injection - adds perms, shortcuts, icon, flag
refs #1993

- adds ctrl/cmd+s for save
- adds config flag
- adds icon on settings page, puts items in the right order
- sorts out permissions for all settings pages with consistent configuration
2014-12-04 13:34:44 +00:00
Hannah Wolfe
818085f18c Add XSL for Sitemaps
fixes #4555

- There's no easy way to declare an XSL with the node xml module, so I
  needed to move the declarations to both be strings
- Ideally the code to serve the XSL would also be inside the sitemap
  module, but I think we need to refactor a bit to get there easily
- Added the XSL from #4559, with minor amends to make the tables and urls
  display correctly
2014-12-04 09:38:09 +00:00
Stefan Baumgartner
60effc1b51 adds code injection admin frontend implementation, handlebar helpers + settings
escaping handlebars
2014-12-04 04:16:08 +00:00
Matt Enlow
f01fd0bbc0 Merge pull request #4564 from Gargol/issue-4517
Tag Settings Menu Autosave
2014-12-03 14:29:42 -07:00
Nazar Gargol
2a4b071f80 Tag Settings Menu Autosave
closes #4517

- adds autosave to name/slug/description fields in TMS
- adds nprogress indicator when saving
2014-12-03 19:15:59 +01:00
John O'Nolan
26117ea6de Merge pull request #4544 from PaulAdamDavis/notification-over-nav
Allow notifications to sit over the nav bar
2014-12-03 15:06:16 +01:00
John O'Nolan
52de82094f Merge pull request #4561 from PaulAdamDavis/sass-layout-cleanup
Cleanup layout Sass
2014-12-03 15:05:54 +01:00
Hannah Wolfe
13757041d9 Merge pull request #4270 from mispy/footnotes2
Footnotes extension for Showdown
2014-12-03 13:38:47 +00:00
Paul Davis
893bd1939c Merge pull request #4568 from jaswilli/buttons
Change anchors without hrefs to buttons.
2014-12-03 12:59:20 +00:00
Paul Davis
52a9cddc71 Merge pull request #4550 from felixrieseberg/iss4446
gh-trim-focus-input autofocus fix for iOS Safari
2014-12-03 12:59:02 +00:00
Felix Rieseberg
69662bd5d2 gh-trim-focus-input autofocus fix for iOS Safari
Closes #4446
- Mobile Safari doesn’t support the HTML5 `autofocus` attribute, but
also doesn’t play nice with jQuery’s `focus()` and `select()` methods.
- Mobile Safari wouldn’t automatically select the input field anyway,
so this PR simply removes the “jumping input fields” error without
changing any actual behaviour.
- Disallowing the programmatic selection of input fields (with select,
focus or similar methods) is apparently considered a feature rather
than a bug (ref http://bugs.jquery.com/ticket/12789)
- `autofocus` attribute is now only set on non-iOS devices
2014-12-02 09:14:32 -08:00
Jason Williams
b6dff38d32 Change anchors without hrefs to buttons. 2014-12-02 15:02:37 +00:00
Hannah Wolfe
89905a8e3c Merge pull request #4560 from cobbspur/labs
Move ugly debug to Settings  Labs
2014-12-02 10:34:17 +00:00
Felix Rieseberg
4bc5f91efc PSM: Reset 'Published Date'
Closes #4557
- The underlying issue is that the PSM is already loaded when Ember
routes from an existing post to a new post. Instead of resetting the
‘Published Date’ value manually (with jQuery), I’m using Ember’s
computed property setter to ‘refresh’ the cache for that property. I
believe that this Ember solution is better than manually going in and
resetting it with jQuery.
2014-12-01 11:57:47 -08:00
cobbspur
edfa74f349 Move ugly debug to Settings Labs
closes #4534

- Adds new Labs route
- Wires route in settings page
- Move and rename debug templates and logic to labs
- Redirect /debug to settings/labs
2014-12-01 19:19:08 +00:00
Paul Adam Davis
21991758aa Cleanup layout Sass
Continues on from #4441

- Reformats the layout Sass files (comments, white space)
- DRY up small chunks of CSS to make it more comprehensible
2014-12-01 16:06:53 +00:00
John O'Nolan
0d54fc88c1 Introduce sitemap XSL template
Based on Yoast's All in One SEO plugin for WordPress implementation
2014-12-01 16:10:14 +02:00
Hannah Wolfe
1e4a3cb204 Merge pull request #4551 from jaswilli/editor-401-modal
Do not display "auth failed" modal on clean posts.
2014-12-01 11:04:59 +00:00
Hannah Wolfe
aa44743c67 Merge pull request #4531 from Gargol/issue-4485
Cleans up HTML data attributes on body in default.hbs
2014-12-01 10:54:19 +00:00
Paul Adam Davis
a2e550f594 Allow notifications to sit over the nav bar
Closes #4379

- Adjusts the `.viewport` `z-index` propetty to allow notificatons to sit over the nav bar

Looks like a weird fix, but inheritence of z-index was the issue here.
2014-12-01 10:31:29 +00:00
Jason Williams
df4e0349ca Do not display "auth failed" modal on clean posts.
Refs #4543
- Check EditorController.isDirty before displaying the
  authorization failed modal dialog.  This prevents the modal
  appearing immediately upon entering the editor in cases where
  auth has failed prior to opening the editor.
2014-11-30 20:53:59 +00:00
Jason Williams
0a7d161822 Prevent silent failures and recover after error.
Refs #4543
- Alway return model out of save handler so sub-classes which
  call this._super() on save have a model on success and failure.
- Always return resolved promise out of post slug generator.
- Test the errors object in the error notification helper to avoid
  throwing an unhandled exception and silently failing.
- Consider a post model "dirty" if it is in an error state.
2014-11-30 20:38:24 +00:00
Nazar Gargol
df5a598718 Cleans up HTML data attributes on body in default.hbs
closes #4485

- removes data attributes used on body in default.hbs
- introduces new way to generate configuration through meta tags
- config initializer consumes configurations from the meta tags using parser
- moves blog_title helper/value to be a property in a configuration api
2014-11-29 17:09:43 +01:00
Hannah Wolfe
4f94c77634 Merge pull request #4542 from jaswilli/misc-cleanup
Miscellaneous client cleanup
2014-11-29 16:05:37 +00:00
John O'Nolan
f6e7bcc089 Merge pull request #4533 from PaulAdamDavis/logo-no-hover-bg
Swap nav item & logo style order
2014-11-29 16:54:14 +01:00
John O'Nolan
e1743e3501 Merge pull request #4536 from PaulAdamDavis/labs-icon
Add Labs, Nav & Grab icons
2014-11-29 16:53:52 +01:00
Jason Williams
90d12fd990 Miscellaneous client cleanup
No issue
- Consolidate extension of Ember.Router.
- Remove unneeded local jshint flags and '_' as a global.
- Cleanup client README.md.
- Fix error message.
2014-11-29 02:42:08 +00:00
Hannah Wolfe
6f0bca8d57 Merge pull request #4522 from felixrieseberg/iss4487
Dynamic Titles in Ghost Admin
2014-11-28 19:06:44 +00:00
Paul Adam Davis
9c66f236a2 Add Labs, Nav & Grab icons
References #4535, #4534

- Add an Atom icon for Labs page
- Adds Compass and Grab icons for the Navigation page
2014-11-28 15:29:29 +00:00
Paul Adam Davis
08afada499 Swap nav item & logo style order
Closes #4532

- Swaps the order of nav-item and .ghost-logo styles, as .ghost-logo was being overwritten by .nav-item, allowing a hover state
2014-11-28 10:21:14 +00:00
Felix Rieseberg
7c4381c812 Dynamic Titles in Ghost Admin
- Every route can set a title token that is combined with the blog’s
title, resulting in titles like ‘Content - Test Blog’.
- Subroutes are supported (‘Settings - General - Test Blog’)
- The blog’s name is applied to and taken from the `config` object to
spare Ember a REST call via `store.find(‘settings’)`.
- Tests have been changed to test for the new titles.
- The initially proposed solution
(https://github.com/paddle8/ember-document-title) doesn’t play nice
with EAK, which is why I went with this solution
(https://gist.github.com/machty/8413411) by Ember.JS core dev @Machty.
2014-11-27 15:41:00 -08:00
Robert Jackson
ef71d932f3
Add initial client unit test. 2014-11-26 23:20:50 -05:00
Hannah Wolfe
f4388712f8 Merge pull request #4502 from felixrieseberg/iss4431
Ensure Post Image Uploader Reset
2014-11-25 19:07:32 +00:00
Felix Rieseberg
ce9d590f34 Ensure Post Image Uploader Reset
Closes #4431

- The PSM does not reset on a transition from editor (existing post) to
editor (new post). If the existing post had a cover image, the image
uploader would not be reset during the transition and appear slightly
broken in the editor for the new post.
- In this PR: A reference to the uploader is saved, allowing the route
for editor/new to instruct the PSM controller to have the uploader
reset.
2014-11-24 09:43:17 -08:00
Hannah Wolfe
05a400384d Merge pull request #4513 from PaulAdamDavis/close-tag-settings-on-exit
Close tag settings menu on transition
2014-11-24 16:27:15 +00:00
Paul Adam Davis
7b1cfce2e9 Larger edit tag hit area
Closes #4505

- Increases the size of hit area on tags settings pages
- Comments out the styles for nested tags as these will need revisiting
2014-11-24 11:08:02 +00:00
Paul Adam Davis
8373d1d5b0 Close tag settings menu on transition
Closes #4504

- Adds a `willTransition` action that closes the tag settings menu when transitioning to another page
2014-11-23 21:17:29 +00:00
Hannah Wolfe
aa58aef433 Merge pull request #4501 from jaswilli/routes
Fix up single post routes.
2014-11-23 21:15:23 +00:00
Hannah Wolfe
09658f8377 Merge pull request #4489 from novaugust/tags-client-basics
Tags management api hookup
2014-11-22 10:57:46 +00:00
Hannah Wolfe
62eb0b96e5 Merge pull request #4482 from harrykiselev/patch-1
Posts view: some DRY.
2014-11-22 10:17:10 +00:00
Matt Enlow
bd0f5e0c5b Tags management api hookup
Ref #4248
- Added tags settings menu
- Added basic new, edit, delete, and save actions
- Show actionable edit buttons dynamically based on tag state
- Infinite scroll
- Closing the tag settings menu rollbacks your changes
- Removed not-yet-implementable code
2014-11-21 16:24:28 -07:00
Jason Williams
915fa17436 Fix up single post routes.
No Issue
- Add local store lookup back to edit route.
- Prevent entry into route when an author is not the owner of a post
  even if model is passed in.
- Clean up references to pagination as there's no pagination going on.
2014-11-21 21:56:49 +00:00
Hannah Wolfe
bdf4538cb2 Merge pull request #4488 from Gargol/issue-4415
Loads correct screen after author refreshes page in editor
2014-11-20 19:45:51 +00:00
John O'Nolan
99b7c07978 Merge pull request #4401 from PaulAdamDavis/sass-cleanup
Update Patterns Sass Formatting
2014-11-20 19:05:15 +01:00
Nazar Gargol
7656b030f6 Loads correct screen after author refreshes page in editor
closes #4415
- corrected logic around author check
- fixes a bug where it was possible to see editor for other author posts
2014-11-20 00:11:42 +01:00
Hannah Wolfe
0c38a839b0 Merge pull request #4469 from PaulAdamDavis/permalink-improvs
Improvements to the permalinks UI
2014-11-19 20:46:32 +00:00
Harry V. Kiselev
5016db85a6 Posts view: some DRY. 2014-11-20 00:00:10 +04:00
Paul Adam Davis
15dd8bdf89 Update Tags Management Markup
References #4248

- Updates the markup & classes for the tag management settings menu, as they've fallen behind now we've renamed the 'right-outlet' to 'settings-menu'
2014-11-19 16:07:11 +00:00
Hannah Wolfe
7317259c89 Fixing logic for editors deleting themselves
no issue
- no user is allowed to delete their own account
2014-11-18 12:01:01 +00:00
Hannah Wolfe
50f8b29bdd Fix issue with editor and images
ref #4459

- move initMarkers back to its original home
- add new test that a post with an image can be edited
2014-11-17 21:55:12 +00:00
Hannah Wolfe
c0155c208e Revert "Update PSM Date and Time to be Selectable Instead of Text" 2014-11-17 17:09:01 +00:00
Matt Enlow
4f3a45552c Scroll post-item-view into view
Closes #3998
- Scroll the active post into view on page load
- If the active post changes and the newly active post is offscreen, scroll it into the middle of the screen
2014-11-17 09:50:49 -07:00
Hannah Wolfe
1079ef8aeb Merge pull request #4466 from VictorVation/url-validation
Improve validation for user.website
2014-11-17 15:43:25 +00:00
Paul Adam Davis
3df6ab47f4 Improvements to the permalinks UI
Closes #4454

* Relies on Flexbox more heavily
* Adds JS to simulate how it should work
2014-11-17 15:37:32 +00:00
Hannah Wolfe
611c22151a Merge pull request #4459 from novaugust/slow-save-errors#4400
Fix high latency autosave bug in editor.new
2014-11-17 15:18:12 +00:00
Paul Davis
30874a6e71 Merge pull request #4448 from dbalders/master
Update PSM Date and Time to be Selectable Instead of Text
2014-11-17 11:24:10 +00:00
Victor Szeto
2e8e2ce367 Improve validation for user.website
closes #4444
- validate URL without protocol in server and client
- when saving url, add `http://` if the url doesn't have a protocol
2014-11-17 00:40:43 -05:00
David Balderston
dff9751105 Update PSM Date to be Selectable 2014-11-16 11:59:09 -08:00
Matt Enlow
41bea61d4b Add self to list of filtered users for editors
Closes #4412
2014-11-16 09:36:37 -07:00
Matt Enlow
a9ce31ffe7 Fix high latency autosave bug in editor.new
Closes #4400
- Added focusCursorAtEnd property to codemirror component, to set the cursor at document end on load. Used for posts that have been edited
- centralized codemirror init code in component
2014-11-16 08:53:02 -07:00
Matt Enlow
360d77bebd Merge pull request #4457 from jaswilli/tags
Fix post tags input.
2014-11-15 08:37:07 -07:00
Jason Williams
215cc520cd Fix post tags input.
Closes #4378. Closes #4455.
- Trim whitespace from tag names on entry.
- Prevent duplicate tags in suggestion list.
- Fix unhandled exception that happens when backspace is pressed in
  an empty tags input box.
2014-11-15 04:45:36 +00:00
Felix Rieseberg
1a99abeee7 Enable .fade-out animations in Safari
Closes #4432

Random sidenote: Safari is a whiny non-animating wuss and figuring this
out took way longer than one would think.
2014-11-14 17:52:28 -08:00
John O'Nolan
3711fcb906 Merge pull request #4397 from PaulAdamDavis/cleanup-users
Cleanup User List styles
2014-11-14 14:57:31 +01:00
John O'Nolan
b1641d9559 Merge pull request #4391 from PaulAdamDavis/publish-transition
Faster dropdown animation for publish button
2014-11-14 14:57:06 +01:00
John O'Nolan
55357e03b7 Merge pull request #4433 from PaulAdamDavis/rm-ttf-eot-fonts
Remove .eot & .ttf fonts
2014-11-14 14:56:50 +01:00
John O'Nolan
1cdafae8d9 Merge pull request #4441 from PaulAdamDavis/cleanup-sass-components
Refactor component styles
2014-11-14 14:56:07 +01:00
Nazar Gargol
a9cb2efe8c Adds 'save' shortcut to settings screens
closes #4414
- adds `ctrl/cmd+s` shortcuts to `settings/general` screen
- adds `ctrl/cmd+s` shortcuts to `settings/user/xx` screen
- extracts `ctrlOrCmd` variable to separate module for reuse
2014-11-13 19:36:31 +01:00
Paul Adam Davis
f8282ad22f Refactor component styles
Continues on from #4401

- Reformats the Sass to match our new style (property order, comments, & white space)
- Changes the modal container to a class from an ID (and adjust tests)
2014-11-13 11:28:22 +00:00
Paul Adam Davis
778e05045c Remove .eot & .ttf fonts
No issue

According to [caniuse](http://caniuse.com/#feat=woff), all the browsers we support (last 2 versions of major browsers) support the `.woff` font format. It's actually what pretty much all browsers will serve if its offered anyway.

This PR removes the .eot and .ttf font formats.

SVG remains as its the base file we use to add new icons & convert into other formats. It is not referenced anywhere.
2014-11-11 15:23:34 +00:00
Jaiden Mispy
31eea94b18 Add footnotes extension to showdown
refs 1318
- based on Markdown Extra https://michelf.ca/projects/php-markdown/extra/
- allows [^n] for automatic numbering based on sequence
2014-11-11 19:24:04 +11:00
Jason Williams
0b35df49e4 Merge pull request #4428 from felixrieseberg/iss4411
Reset slugValue when the user changes
2014-11-10 15:51:25 -06:00
Felix Rieseberg
3b3d5f85bc Reset slugValue when the user changes
Closes #4411
- Previously, saving the user’s slug would lead to the slug value being
‘stuck’ on that saved value, even if one navigated to a different
user’s profile settings.
2014-11-10 13:31:11 -08:00
David Balderston
d6863ae306 Change Numeric Keyboard to Keypad
Added pattern to html to make the keyboard a keypad

Closes #4426

    Added pattern="[0-9]*" to the postsPerPage input on general.hbs
2014-11-10 12:57:24 -08:00
Jason Williams
6c579f6a6f Remove image related text from meta description.
Closes #4408
2014-11-07 05:22:34 +00:00
Jilles Soeters
71c6b33385 Remove hash after the url when clicking Meta Data
Removes that hash appended to the URL when clicking Meta Data in post settings.

Closes #4386

When clicking 'Meta Data' the click event appends a # to the URL. I replaced the a with a button element so that won't happen anymore. The button has a type attribute because it will try and submit the form without it. Added text-align: left to the navlist button because the button centers it's content by default.
2014-11-05 14:17:52 +00:00
Paul Adam Davis
77e1b4c130 Update Patterns Sass Formatting
Continues on from #4342

- Reformats the Sass to match our new style (property order, comments, & white space)
2014-11-05 10:24:38 +00:00
Paul Adam Davis
eef6fccca2 Cleanup User List styles
No issue

* Cleans up the Sass a bit
* Uses the same basic markup as other settings pages. Before, we had extra elements which required 'reseting'
2014-11-04 22:00:32 +00:00
Matt Enlow
ef448a0f85 Merge pull request #4273 from cobbspur/tags
Create Tags Management Stubs for Ember
2014-11-04 10:30:00 -07:00
cobbspur
69d4852a6d Create Tags Management Stubs for Ember
closes #4260

- Adds "tags" route inside of the settings routes.
- Adds this route to router.js
- Links the route from the settings.hbs template
- Adds demo tags html in tag.hbs template
- Adds flag for tagsUI
2014-11-04 15:50:41 +00:00
Paul Adam Davis
660c9064eb Faster dropdown animation for publish button
Closes #4390

- Apply same animation timing from the nav bar dropdown to the publish button dropdown
2014-11-04 12:59:08 +00:00
Matt Enlow
b5af691a61 Save meta title and meta desc on post save
Closes #4369
- Renamed `editor-route-base` -> `editor-base-route` to bring it in alignment with the view and controller mixins
- Consolidated editor route code into editor-base-route
- Removed `serialize` from EditorEditRoute, as it reimplemented the ember default
2014-11-03 21:11:04 -07:00
David Robson
8bcfd16f19 Editor must be focused before allowing certain keyboard shortcuts.
closes #4253
- checked for the CodeMirror-focused class on the CodeMirror div
- used length to determine whether CodeMirror-focused has been added
- determines whether the editor has been focused on
2014-11-02 09:50:42 +00:00
Matt Enlow
2bd129fb81 Merge pull request #4361 from jaswilli/ember18
Update Ember to 1.8.0.
2014-10-30 08:26:26 -06:00
Paul Adam Davis
be976485ad Better comments
Also introduces a new format of file opening comment, to outline what happens and a contents list.
2014-10-30 12:40:50 +00:00
Paul Adam Davis
d314727506 Var cleanup 2014-10-30 12:40:12 +00:00
Paul Adam Davis
4ae81799c3 File structure cleanup 2014-10-30 12:39:31 +00:00
Jason Williams
de63f56f68 Update Ember to 1.8.0.
Closes #4316
- Ember@1.8.0.
- Ember-Data@1.0.0-beta.11.
- Change templates to use new Ember.Select syntax and other minor
  cleanup.
- Adjust functional tests.
2014-10-30 06:01:22 +00:00
Matt Enlow
a2d37ce265 Redirect unauthorized users to signin from debug
Closes #4357
- Adds a call to `this._super()` in DebugRoute#beforeModel to hit the ember simpleauth mixin's beforemodel hook
2014-10-29 14:30:40 -06:00
Matt Enlow
344f3080df Consolidate SimpleAuth.AuthenticatedRouteMixin into AuthenticatedRoute
No issue
2014-10-28 08:29:42 -06:00
Hannah Wolfe
bc728c3e62 Merge pull request #4285 from novaugust/read-draft-shortcuts
Go between post list / post content with keyboard
2014-10-28 13:02:17 +02:00
Paul Adam Davis
17d662bff9 Use gh-path for nav bar dfallback avatar
Closes #4344

- Uses the `{{gh-path}}` helper to make the fellback avatar src work when Ghost is in a sub-directory
2014-10-27 16:26:02 +00:00
John O'Nolan
edef2ec941 Merge pull request #4341 from PaulAdamDavis/fix-floating-scroll-shadows
Fix floating header vertical shadows glitch
2014-10-27 16:59:42 +01:00
Hannah Wolfe
2d48c2b695 Merge pull request #4343 from jaswilli/gh-paths
Fix argument handling in gh-path helper.
2014-10-27 17:45:34 +02:00
Matt Enlow
d8f858e264 Go between post list / post content with keyboard
Closes #3940
- Pushing left/right changes the "focus" of the posts screen to the list / content, respectively
- Once one of these has been focused, up/down keyboards work on that section in particular
- By default, the post list is selected
- Using the keyboard to focus one of the two makes it go "poof" to let you know you changed stuff
2014-10-27 09:41:13 -06:00
Hannah Wolfe
644f922510 Merge pull request #4324 from jaswilli/timed-save
Auto-save post at 60 second intervals
2014-10-27 17:38:54 +02:00
Hannah Wolfe
6db2973f0f Merge pull request #4337 from jaswilli/title
Fix up title/slug handling on posts.
2014-10-27 17:27:11 +02:00
Jason Williams
d810fe1ca7 Fix argument handling in gh-path helper.
No Issue
- Make helper behave as stated in description when variable
  number of arguments are passed in.
- Handle leading and trailing slashes when creating output
  url partial.
2014-10-27 02:17:07 +00:00
Paul Adam Davis
074c12a763 Swap 2 box shadows for 1 radial gradient
Closes #4340

Fixes a UI glitch where the vertical parts of a box shadow would show.
This fix changes those box shadows for 1 radial gradient, where only 5px of it is shown. No more vertical shadows.
2014-10-26 17:35:54 +00:00
Felix Rieseberg
e9c22ea580 Include post title in 'delete post' modal
Closes #2971
2014-10-25 18:37:18 -07:00
Jason Williams
e046f4a536 Fix up title/slug handling on posts.
Refs #4323
- Remove any titleScratch observers that may be hanging
  around on the post-settings-menu controller from previous posts.
- Change logic around when to regenerate slugs on posts that are
  "(Untitled)" so that slug generation continues after slug no
  longer resembles "untitled."
2014-10-25 23:35:50 +00:00
Jason Williams
0f17378b26 Enable JSCS checking on client.
Refs #4001
- grunt-jscs@0.8.1 which provides ES6 support.
2014-10-25 16:13:04 +00:00
Hannah Wolfe
a5d4a9cd2c Merge pull request #4329 from jaswilli/remove-lodash-requirement
Remove lodash from admin client (updates PR #3491)
2014-10-25 12:26:18 +03:00
Jason Williams
9aa13330ba Fix up PR #3491, remove lodash from admin
Refs #3491
2014-10-23 19:44:53 +00:00
John O'Nolan
16e9098906 Merge pull request #4217 from PaulAdamDavis/permalinks-ui
[WIP] Custom Permalink UI
2014-10-23 21:06:33 +02:00
Robert Jackson
a3456b7e1c Remove lodash from admin client.
* Adds `bind`, `isFinite`, and `isNumber` utility functions from lodash.
* Use new util funtions instead of lodash throughout the codebase.
* Remove lodash from vendor builds.
2014-10-23 18:27:09 +00:00
Paul Adam Davis
d999ce555d Custom permalink UI
References #3920
2014-10-23 12:12:48 +01:00
Jason Williams
9a62a38440 Change slug and date placeholders to values
Closes #4121
2014-10-22 16:49:13 +00:00
Jason Williams
5de2cb4471 Auto-save post at 60 second intervals
Refs #4259
- Auto-save the post at least once in any 60 second interval where
  there have been changes.
2014-10-22 15:26:27 +00:00
Paul Adam Davis
a32e5a7135 Move unrelated editor cover code to the right place
Closes #4106

Moved the `.editor-close` styles to `post-settings-menu.scss`
2014-10-21 13:14:07 +01:00
John O'Nolan
9ec4b35163 Merge pull request #4213 from PaulAdamDavis/new-popovers
Implement new popovers
2014-10-21 14:02:17 +02:00
John O'Nolan
5e2d9c47fb Merge pull request #4287 from PaulAdamDavis/tag-input-ux
Tag input UX improvements
2014-10-21 14:01:40 +02:00
Paul Adam Davis
6fd27796f4 Implement popovers 2014-10-20 22:09:45 +01:00
Paul Adam Davis
89ee30becd Tag input UX improvements
Closes #4105

- Turns the tag icon white when input is focused.
- Focuses on the tag inout after deleting a tag.

Credit to @novaugust for a PR to this which is rebased into one single commit
2014-10-20 22:08:26 +01:00
Jason Williams
2369080572 Ensure slug generation has completed prior to save
Refs #4307 Refs #4259
- Make sure that a slug has been generated prior to the first
  save that occurs on a post.
- Wait on in-flight slug generation requests before saving.
2014-10-20 19:15:01 +00:00
Jason Williams
58fda8a9a4 Cancel pending auto-save if manual save occurs
Closes #4309
2014-10-20 18:40:45 +00:00
Hannah Wolfe
fbccc36f77 More autosave improvements
issue #4305, issue #4259, issue #1413

- change new->edit transitionToRoute to be replaceRoute
- auto focus in the editor on transition to the edit route
- change the one-time autosave to happen on codemirror focusin instead of title focusout
- re-add removed tests, and reorder broken test
2014-10-18 17:27:05 +02:00
Jason Williams
b05da0f1e4 Auto-save changes
Refs #4259
- Auto-save new post when title loses focus.
- If a post has '(Untitled)' for a title, regenerate slugs
  on all title changes--same behavior as a new post that does
  not yet have a slug.
- Adjust some functional tests to handle the automatic transition
  from editor/new to editor/editor and the URL changes that go
  along with it.
2014-10-17 22:52:43 +00:00
Hannah Wolfe
a27cadd0bd Merge pull request #4302 from jaswilli/issue-4301
Truncate with ellipsis when metatitle > 70 chars
2014-10-18 01:07:31 +03:00
John O'Nolan
8da76215ed Merge pull request #4303 from ErisDS/pr-4259
Autosave additions
2014-10-17 23:59:19 +02:00
Jason Williams
34142c9834 Truncate metatitle and url when > 70 characters
Closes #4301
2014-10-17 17:15:36 +00:00