Commit Graph

185 Commits

Author SHA1 Message Date
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
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
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
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