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

350 commits

Author SHA1 Message Date
Jason Williams 4e96504872 Simplify navigation item reordering 2015-02-25 17:26:25 +00:00
Jason Williams 1577d31cdb Run listener callbacks in Ember run-loops
Closes #4871
2015-02-18 17:11:02 +00:00
Paul Adam Davis e447837210 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 db0dfde996 Implement Navigation item input behaviors
Closes #4807
2015-01-18 23:08:03 -06:00
Jason Williams b5d3217b29 Connect Navigation page to live data
Closes #4539
2015-01-14 21:24:08 +00:00
Paul Adam Davis 685bcfc3e3 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
Felix Rieseberg c797086191 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
Jason Williams 4fef0f8785 Reset upload component on tag switch
Closes #4755
2015-01-05 22:45:19 +00:00
Robert Jackson a41fd1024c 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
Robert Jackson 33322e7ec3 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 3a059d79e5 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
Paul Adam Davis 8554b798b8 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 dbf658d144 Merge pull request #4645 from katiefenn/issue-4356 2014-12-15 12:29:19 +00:00
Katie Fenn 1c96b5db5c 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
Hannah Wolfe a293c9e1f9 Merge pull request #4346 from novaugust/scroll-posts
Scroll post-item-view into view
2014-12-14 23:17:12 +00:00
Felix Rieseberg 945c783399 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
Stefan Baumgartner ef6cb93c3f adds code injection admin frontend implementation, handlebar helpers + settings
escaping handlebars
2014-12-04 04:16:08 +00:00
cobbspur e32a9bed89 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
Hannah Wolfe 2ac0ea4ca2 Merge pull request #4489 from novaugust/tags-client-basics
Tags management api hookup
2014-11-22 10:57:46 +00:00
Matt Enlow 1d3679a5fd 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
Harry V. Kiselev 2a78cf0729 Posts view: some DRY. 2014-11-20 00:00:10 +04:00
Hannah Wolfe 37fc58321c 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
Matt Enlow 888473d47b 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
Jason Williams 352d463d29 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
cobbspur 37c4600895 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
Jason Williams e1666234be Enable JSCS checking on client.
Refs #4001
- grunt-jscs@0.8.1 which provides ES6 support.
2014-10-25 16:13:04 +00:00
Jason Williams 90a212f483 Fix up PR #3491, remove lodash from admin
Refs #3491
2014-10-23 19:44:53 +00:00
Robert Jackson 0bfa9dd3d1 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 334b532380 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
Paul Adam Davis bf931f6ae0 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
Hannah Wolfe 0ac2012673 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
Mattias Cibien 5e11137bc9 Clean up hardcoded ghost paths
closes #4144
- made contributors template use the `gh-path` helper
- Removing blogRoot from application.js
- made error image use the `gh-path` helper
2014-10-06 16:33:58 +02:00
John O'Nolan d327213991 Merge pull request #4193 from PaulAdamDavis/less-animations
Less Animations
2014-10-01 15:52:27 +02:00
Paul Adam Davis 3c210ac804 Remove sliding animation between content & list & post preview on mobile
Closes #3951
2014-09-30 11:02:42 +01:00
Paul Adam Davis 8cf113c83b Rename popovers to dropdowns 2014-09-30 10:48:21 +01:00
Fabian Becker dc4f6a48db Close mobile menu on tap.
fixes #4168
- Listen to tap event
2014-09-25 18:35:27 +02:00
Paul Adam Davis 36622307da Rewrite publish bar markup
Closes #4123, closes #4114, references #4105

- Rewrite to use flexbox for über mobile goodness
- Fixes tag suggestions (using the new dropdown style)
- Fixes vertical alignment
2014-09-24 09:47:33 +01:00
Matt Enlow 54789eba86 Fix uncentered no posts view
Closes #4097
2014-09-22 17:42:56 -06:00
Matt Enlow ba6c43c148 Add Tab components
Closes #3937
- Add ghost tab components
- Remove extra container div from Application view
- Move right-outlet viewing logic to application level
- Prepare PSM.hbs for tabbing
2014-09-18 18:15:43 -06:00
Matt Enlow a2a766ba1b Abstract mobile transition interactions
Closes #4032
- Created "mobile" views: `parent-view`, `content-view` and `index-view`
- `mobile/parent-view` has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the user
- content-view and index-view use their parent-views callbacks to bring themselves into and out of the viewport as appropriate
- fixed media queries for post content list from 800px to 900px
- Created `mobile-index-route` to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute)
- Extract mobile interactions from settings views to new mobile utility views
- `js-` prefixed settings view transitions
- removed unused openEditor action from PostsRoute
- removed unused mobile util "responsiveAction"
2014-09-16 07:28:03 -06:00
Hannah Wolfe 6f20efd475 Merge pull request #3999 from novaugust/emberify-posts-c-and-v
Emberify Posts mobile transitions
2014-09-12 11:19:34 +01:00
Paul Adam Davis 0687ff14c2 Snap page transition for mobile settings
References #3810

- Disables the `.fade-in` animation for settings page transitions on mobile
2014-09-11 14:19:16 +01:00
Matt Enlow 243f1f690c Emberify Posts mobile transitions
Closes #3950

- Fixed up event attachment and removal in a few mixins
- Renamed content-list-content-view to something more understandable
- simplify transition from posts.index to posts.post
2014-09-10 20:58:10 -06:00
Paul Adam Davis 4cb86f91c5 [WIP] Wire up new mobile nav
References #3810

With GUI2, there's now a number of places to open the mobile navigation menu. This handles those clicks.
2014-09-10 18:33:27 +01:00
Fabian Becker ff564e3969 Post Settings Menu - Step 1
closes #3936
- Implement new PSM
- Hook up close action
- Automatically close when view is destroyed
- Close on click and when pressing ESC
2014-09-10 17:31:19 +02:00
Matt Enlow d6bc30df1e js- prefix; fix content preview back button
Closes #1990, Ref #3810
- Add `js-` prefix to jQuery calls throughout code and templates
- move MarkdownComponent classNames to template
- Fix back button on posts content preview
- Remove dead code for preview tabbing jQuery
2014-09-02 22:29:32 -06:00
Hannah Wolfe 847318bd8a Merge pull request #3575 from novaugust/about-ghost
About ghost page
2014-09-02 21:17:16 +01:00
Matt Enlow ee065181e2 Implement About Ghost page
Closes #3568
- Deleted html placeholders in client
- Added new grunt task, buildAboutPage, which 1)creates -contributors.hbs partial and 2) downloads contributor avatars
- buildAboutPage is called by anything that does an emberTemplates task
- Removed unused code from ghostpaths
2014-09-02 13:49:01 -06:00
Hannah Wolfe 077a10cbe6 Merge pull request #3819 from studioromeo/reset-preview-scroll-position
Reset preview scroll position when post item is clicked
2014-09-02 16:28:53 +01:00
Robert Rhoades 14402c0a1a Resets the scroll position on controller content change
When scrolling through the preview of a long article, if the
post was changed the scroll position of the preview would
remain the same.
2014-09-02 13:13:32 +01:00