Hannah Wolfe
315ca052a9
Merge pull request #1489 from sebgie/issue#1466
...
Fix wrong error message
2013-11-19 03:00:04 -08:00
Sebastian Gierlinger
639c0d0627
Add schema.js
...
closes #1398
closes #1399
closes #1400
- added schema.js with database version '000'
- refactored migration to use schema.js
- if new table is added to schema.js and databaseVersion is increased, table will be added
- if new table is deleted to schema.js and databaseVersion is increased, table will be deleted
- alter table from issue #1400 is delayed until knex supports column modification
- changed import pre checks to work again (will be refactored separately)
- added basic PostgreSQL support (Attention: not supported/tested)
- changed error handling in server.js
2013-11-18 15:21:15 +01:00
Fabian Becker
89201a5c84
Lowercase email address.
...
fixes #1498
2013-11-18 00:34:51 +00:00
Hannah Wolfe
8e9b27f0b5
Remove inline script from default.hbs
...
closes #1268
2013-11-16 18:47:55 +00:00
Sebastian Gierlinger
fd60a12469
Fix wrong error message
...
closes #1466
- added status code for error object
- added test for frontend errors
2013-11-15 15:27:06 +01:00
Jacob Gable
ef9f5dc33f
Pass proxy Ghost interface to Apps
...
Closes #1478
- Create new proxy.js that exposes createProxy method
- Pass proxy to App activate/install in lieu of Ghost instance
2013-11-14 20:36:27 -06:00
Hannah Wolfe
9d55e68689
Merge pull request #1458 from mjbshaw/svg
...
Add support for SVG images
2013-11-14 12:53:26 -08:00
Harry Wolff
688dd363cd
Move plugin init code into plugin.js and have it called from server.js
2013-11-12 22:52:31 -05:00
Michael Bradshaw
0d4283176e
Add support for SVG images
2013-11-12 11:37:54 -07:00
Hannah Wolfe
f022e8486d
Merge pull request #1446 from JohnONolan/notifications
...
Growl style desktop notifications
2013-11-12 04:15:35 -08:00
Hannah Wolfe
3235a3a3e2
Merge pull request #1442 from Decad/user-gravatar
...
Add users Gravatar on signup
2013-11-12 03:53:49 -08:00
Hannah Wolfe
b8a98660fb
Merge pull request #1440 from JohnONolan/post-settings
...
Post settings refactor
2013-11-12 03:50:56 -08:00
John O'Nolan
c40357c8cb
Growl style desktop notifications
...
First pass. See #1349
2013-11-12 09:58:45 +01:00
John O'Nolan
4ee1b9849b
Complete post-settings menu refactor
2013-11-12 09:19:02 +01:00
Declan cook
cbe8c15dc8
Add users Gravatar on signup
...
When a user registers try to find their gravatar.
2013-11-11 23:45:47 +00:00
Hannah Wolfe
e4f2165f0c
Merge pull request #917 from jgable/publishedAtTime
...
Allow published_at times to be specified
2013-11-11 14:45:58 -08:00
Hannah Wolfe
256cd6ecd0
Merge pull request #1317 from jgillich/no-posts
...
Show "Write a new Post" message when there are no posts
2013-11-11 14:35:56 -08:00
Hannah Wolfe
cd12210b0b
Further grunt & test cleanup
2013-11-11 21:38:52 +00:00
Jakob Gillich
50510e63fd
Show "Write a new Post" message when there are no posts
...
closes #1308
2013-11-11 22:14:01 +01:00
Hannah Wolfe
2e64fcc5d2
Coverage report task fix for Windoze
2013-11-11 20:56:36 +00:00
Hannah Wolfe
61d693cac9
Merge pull request #1429 from germanrcuriel/add-coverage-report-with-blanket
...
Add Coverage report for Unit and Integration tests
2013-11-11 12:50:49 -08:00
Jacob Gable
38bd71a36c
Allow published_at times to be specified
...
Fixes #907
- Modified the PostSettings view to use moment.js formats that include hours and minutes
- Add 12:00 to value if it is not specified
2013-11-11 14:43:47 -06:00
Hannah Wolfe
15da975c06
image upload controller refactor
...
issue #635
- upload controller shouldn't assume fs
- filesystem module proxies all the fs work
- proxies and exposes middleware for serving images
- creating a date based path and unique filename is a base object util
- unit tests updated
2013-11-11 16:10:57 +00:00
Hannah Wolfe
778e626f85
Rename rss file to prevent errors confusing output
...
issue #1434
- This is a hack until we can get a PR merged into casperjs
2013-11-11 10:46:54 +00:00
Hannah Wolfe
b0c61720d9
Test file cleanup on accoutn of OCD
2013-11-11 10:37:09 +00:00
Hannah Wolfe
9dd15edab7
Merge pull request #1372 from hswolff/cleanup-middleware
...
Move all middleware into middleware module.
2013-11-11 02:05:16 -08:00
Hannah Wolfe
219e9601ed
Merge pull request #1331 from zacgeis/dirtymessage-fix
2013-11-11 09:42:35 +00:00
Hannah Wolfe
2c3de67062
Preventing incorrectly shown unload alert
...
issue #1327
- IE9 fires an unload when using Backbone.history.navigate which meant the alert always got shown on first save when the url changes from from /editor/ to /editor/id. Not sure if other browsers do this, but this workaround fixes it
2013-11-11 09:36:29 +00:00
Hannah Wolfe
3fd3102486
Moving dirty editor handling out of uploadMgr
...
issue #1327
- just moved to be in editor obj, everything else is the same
2013-11-11 09:14:18 +00:00
Zach Geis
340206fa4b
Displays alert if editor is dirty before unload
...
closes #1327
- Prevents user from accidently losing changes
2013-11-11 09:00:15 +00:00
Fabian Becker
0faabe9132
Fix page errors during builds.
...
fixes #1434
2013-11-10 23:46:09 +00:00
germanrcuriel
afbbee031e
Add Coverage report for Unit and Integration tests
...
issue #361
- Added shell:coverage task to generate coverage report
- Registered test-coverage Grunt task as shortcut of shell:coverage
- Added coverage files to .gitignore
- Added require-cli and blanket to package.json
2013-11-09 18:58:27 +01:00
John O'Nolan
bbc1d0207e
Kill iCheck cause Hannah says it has genital warts.
2013-11-08 14:38:23 +01:00
Harry Wolff
901d189bf0
Move middleware functions into middleware module and create associated tests
...
Note: this only moves middleware functions that have associated tests.
2013-11-07 23:05:51 -05:00
Sebastian Gierlinger
a137d9c93e
Add X-Cache-Invalidation Tests
...
closes #1397
- added checks for x-cache-invalidation to api tests
2013-11-07 16:08:39 +00:00
Sebastian Gierlinger
e2cee5be66
Move API tests to /integration/
...
closes #1396
- moved core/test/unit/api* to core/test/integration/api/
- moved core/test/integration/model* to core/test/integration/model/
- moved core/test/unit/utils to core/test/utils
- moved core/test/unit/fixtures to core/test/utils/fixtures/
- changed gruntfile.js to execute api tests with target 'integration'
2013-11-07 14:26:47 +01:00
Hannah Wolfe
ae236068dd
Merge pull request #1412 from egdelwonk/feature/1329_page_template
...
Render a page template if it exists in a theme for a post marked as page
2013-11-06 12:31:14 -08:00
Hannah Wolfe
ab878decef
Merge pull request #1408 from halfdan/1285-unidecode
...
Automatically replace unicode characters with ascii characters for slugs...
2013-11-06 05:44:10 -08:00
William Golden
766ce1ac51
Render a page template if it exists in a theme for a post marked as page.
...
Closes #1329 .
2013-11-05 21:43:13 -06:00
Fabian Becker
88d7682605
Automatically replace unicode characters with ascii characters for slugs.
...
fixes #1285
2013-11-05 21:00:29 +00:00
Fabian Becker
f356745b1a
Properly format publish date.
...
fixes #1335
2013-11-05 17:44:13 +00:00
Sebastian Gierlinger
8574813660
Bugfixes for tests
2013-11-05 15:02:12 +00:00
Fabian Becker
0908ecf6b7
Run tests on MySQL and use travis-$DB environments.
...
refs #921
fixes #1385
2013-11-05 15:01:10 +00:00
Hannah Wolfe
5e8f3d927f
Remove timeouts on tests
2013-11-04 12:26:11 +00:00
Sebastian Gierlinger
bb17e1c0e9
Add API tests
...
closes #1189
- added tests
- added request module
- added status codes to API calls
- fixed return values of API calls
- fixed that drafts caused an error when being deleted
- fixed X-Invalidate-Cache headers
- moved testUtils.js to utils/index.js
2013-11-03 18:13:19 +01:00
Hannah Wolfe
dee054e2c3
Merge pull request #1388 from germanrcuriel/add-canonical-support
...
Add rel='canonical' support
2013-11-03 06:50:35 -08:00
Hannah Wolfe
6626c3e7eb
Merge pull request #1384 from halfdan/1377-fs-extra
...
Fix image upload issue.
2013-11-03 06:00:43 -08:00
germanrcuriel
97bd8c40ea
Add rel='canonical' support
...
closes #1341
- Added canonical link to header using ghost_head helper.
2013-11-03 14:37:33 +01:00
Fabian Becker
48d3b10649
Fix image upload issue.
...
fixes #1377
2013-11-02 11:16:00 +00:00
John O'Nolan
62416d203a
Make webkit autocomplete login styles less heinous
...
Fixes #771
2013-11-03 09:29:59 +01:00
Hannah Wolfe
9b2434be4c
Merge pull request #1345 from halfdan/944-crazy-notifications
...
Fix notification stacking.
2013-11-01 09:00:56 -07:00
Hannah Wolfe
6b29d4392a
Merge pull request #1375 from jamesbloomer/image-refactor2
...
Tidy up the local file storage for images
2013-11-01 08:48:12 -07:00
jamesbloomer
f42e977fa7
Tidy up the local file storage for images
2013-11-01 13:08:27 +00:00
Hannah Wolfe
0db907ada2
Bump grunt-jslint and fix issues
2013-11-01 12:12:01 +00:00
Hannah Wolfe
df1571cecc
Merge pull request #1369 from bengladwell/jslint-params
...
Remove unparam:true from jslint config in Gruntfile.js
2013-11-01 04:39:50 -07:00
Hannah Wolfe
cfe272e175
Functional tests for home and post page
...
closes #1373
- Note that the tests fail if you run them pre #1363 , thus future proofing us from this happening again.
- Added submodule handling to travis
- Added a new test for each of the home and post pages
2013-11-01 11:33:50 +00:00
Hannah Wolfe
422403c40b
Merge pull request #1363 from jgable/fixAsyncHelperContext
...
Fix async helpers losing proper "this" context
2013-11-01 03:59:06 -07:00
Fabian Becker
933a8c764a
Separate model tests to separate tasks/directory.
...
refs #921
2013-11-01 09:38:42 +00:00
Hannah Wolfe
5df0acf37d
Merge pull request #1361 from halfdan/update-should
...
Update should.js and fix tests.
2013-11-01 02:00:01 -07:00
Ben Gladwell
69d3a1460d
Remove unparam:true from jslint config in Gruntfile.js
...
issue #1365
- added /*jslint unparam:true*/ to functions where absolutely necessary
- added /*jslint unparam:true*/ to functions in which keeping parameter
list added clarity to the underlying api, even when those parameters
are not currently used
- removed unused parameters in a few places
2013-10-31 14:02:34 -04:00
jamesbloomer
ec79069a1c
Convert local file system image storage to use promises
...
Part of #635
2013-10-31 08:25:25 +00:00
Hannah Wolfe
2983e657a6
Unit test fixes
...
issue #635
2013-10-31 08:25:24 +00:00
jamesbloomer
6e44280b96
Moving file system storage to a module
...
issue #635
- refactored file system storage into module
- convert save to return a promise
- convert admin controller to use storage module
2013-10-31 08:25:24 +00:00
Jacob Gable
257169e8c9
Fix async helpers losing proper "this" context
...
Fixes #1357
- Instead of calling the passed function directly, use .call(this,
options)
2013-10-30 21:07:17 -05:00
Fabian Becker
297d853ddb
Update should.js and fix tests.
...
fixes #1360
2013-10-31 00:28:53 +00:00
Hannah Wolfe
0005d763af
Merge pull request #1336 from cobbspur/cleanhelpers
...
improve layout of code to jslint standards in helpers unit tests
2013-10-30 09:39:58 -07:00
John O'Nolan
9b188e592b
Improved image cancel button
...
* Removed duplicate references
* Adjusted hover styles
* Imroved visibility of icon on dark images
2013-10-30 14:35:24 +01:00
John O'Nolan
376a3ec2b2
Fix bug where image-delete icon was on top of floating headers
2013-10-30 14:20:44 +01:00
Tony Gaskell
404c4fb2e1
Allow user to set static page before saving
...
fixes #1350
- jQuery event.preventDefault() stops the user from selecting the checkbox
2013-10-30 02:33:58 -10:00
Fabian Becker
6de3ef1701
Fix notification stacking.
...
fixes #944
2013-10-30 01:24:21 +00:00
cobbspur
b316e2fd70
improve layout of code to jslint standards in helpers unit tests
2013-10-29 20:16:59 +00:00
Hannah Wolfe
8a8dacb0e4
Merge pull request #1323 from ErisDS/test-fixes
...
Wait for menu to open in editor test
2013-10-29 04:37:41 -07:00
Hannah Wolfe
6a0a453a96
Read activePlugins from settings & improve error handling
...
issue #769
- activePlugins were being read from settings in two different ways, this has been simplified
- error handling has been improved so that plugins do not crash Ghost
- used full error messaging capabilities to make it easier to recover from errors
2013-10-29 11:27:52 +00:00
Jacob Gable
507174a00b
Plugin API Refactor: Filter and Theme Helpers
...
issue #769
- Refactor doFilter to allow returning a promise from a filter handler
and to also return a promise itself
- Move the logic out of the registerThemeHelper calls and into their own methods so
we could test them in isolation.
- Assign the server to the ghost instance so the initPlugins method can
get access to it.
2013-10-29 11:27:52 +00:00
Hannah Wolfe
ddece0464b
Merge pull request #1301 from ErisDS/js-build-warn
...
Adding a warning message if js is not built
2013-10-28 15:24:19 -07:00
Hannah Wolfe
68f78c9cc4
Merge pull request #1315 from cobbspur/suffix
...
added suffix to tag helper
2013-10-28 15:24:11 -07:00
Fabian Becker
798e5b1a4e
Allow user to mark a post as static page
...
- Increased post-settings width to properly display "Static Page"
- Changed templates to display "Static Page" if set
- Added unit test for body_class helper
fixes #969
2013-10-28 22:01:03 +00:00
Hannah Wolfe
d3a61b93e9
Wait for menu to open in editor test
...
issue #1287
- also contains some misc cleanup
2013-10-28 22:00:17 +00:00
cobbspur
d605100709
added suffix to tag helper
...
closes #607
- added suffix as optional parameter to tag helper
2013-10-28 21:38:36 +00:00
Hannah Wolfe
c364ec472a
Merge pull request #1288 from zacgeis/codeformat-fix
...
Avoid filtering markdown code blocks
2013-10-28 04:19:55 -07:00
John O'Nolan
b07facbb70
Updated Breakpoint Sass 1.3.0 => 2.0.6
2013-10-27 16:25:26 +01:00
Hannah Wolfe
6869c01a28
Adding a warning message if js is not built
...
closes #1205
2013-10-27 15:16:34 +00:00
Zach Geis
1f15df41ef
Avoid filtering markdown code blocks
...
closes #1045
- Fixed markdown code block format issue.
- Added test case to verify fix.
2013-10-26 12:16:47 -05:00
Hannah Wolfe
47e507b37e
Merge pull request #1283 from halfdan/prevent-drop-event
...
Prevent default drag/drop action.
2013-10-26 08:34:07 -07:00
Hannah Wolfe
bf06c57746
Merge pull request #1279 from willglynn/code_wrap
...
<code>/<tt> elements should wrap since they're used inline
2013-10-26 07:45:26 -07:00
Fabian Becker
95cbbcf07e
Prevent default drag/drop action.
2013-10-25 20:19:51 +00:00
Hannah Wolfe
5c33a707e9
Merge pull request #1164 from halfdan/1162-unpublished-posts
...
Unpublished Post should not be accessible
2013-10-25 13:18:39 -07:00
Hannah Wolfe
dfced52abc
Merge pull request #1281 from halfdan/regression
...
Fixes regression introduced in #1218 .
2013-10-25 13:13:38 -07:00
Fabian Becker
134f9a2b10
Fixes regression introduced in #1218 .
2013-10-25 19:31:53 +00:00
Simone D'Amico
c4bf0123c8
Added quotes to changepw admin controller
2013-10-25 20:11:33 +02:00
Will Glynn
1bcb751e29
<code>/<tt> elements should wrap since they're used inline
2013-10-25 08:48:57 -05:00
Fabian Becker
0997eae716
Remove .txt from blacklist.
...
fixes #1263
2013-10-25 00:15:39 +00:00
Fabian Becker
aa5c0cc620
Unpublished Post should not be accessible
...
fixes #1162
2013-10-24 21:29:10 +00:00
Hannah Wolfe
6cd22c306d
Merge pull request #1122 from gotdibbs/Issue814
...
Simplify publish date checks
2013-10-24 10:53:55 -07:00
Hannah Wolfe
ca6bc7525d
Merge pull request #1238 from jgable/exposeKnex
...
Store the Bookshelf instance on the Bookshelf module
2013-10-24 08:18:29 -07:00
Hannah Wolfe
0333ab7711
Merge pull request #1258 from gotdibbs/Issue1242
...
Fix duplication of entries in infinite scroll
2013-10-24 08:17:41 -07:00
Hannah Wolfe
5b8048506e
Merge pull request #1251 from sebgie/api-refactor-move
...
Move /api to /ghost/api
2013-10-24 07:52:49 -07:00
Hannah Wolfe
a190a209c0
Merge pull request #1252 from halfdan/531-lines-to-spaces
...
Replace new-lines with spaces in excerpt helper.
2013-10-24 07:30:49 -07:00
Hannah Wolfe
ebef969f49
Merge pull request #1245 from StevenMcD/issue/1007
...
Issue/1007: Corrected the behaviour of the HOME and END keys on the Code...
2013-10-24 07:24:41 -07:00
Hannah Wolfe
37359dc7d6
Merge pull request #1222 from mduvall/encoding-image-upload
...
r# the commit.
2013-10-24 14:37:23 +01:00
Matt DuVall
6dc3e05d21
Allow only images to be uploaded in the upload modal
...
Fixes #1221
- This changes the accepted encodings on the files upload input field to
be only "image/*" now
-
2013-10-24 14:37:08 +01:00
Sebastian Gierlinger
6505986f6b
Move /api to /ghost/api
...
closes #1249
- changed routes
- changed apiRoots
2013-10-24 14:50:17 +02:00
Hannah Wolfe
0ddd7e8dd1
Merge pull request #1254 from halfdan/943-login-notification
...
Only show notifications when logged in.
2013-10-24 03:35:37 -07:00
Fabian Becker
f5d65d7ac4
Only show notifications when logged in.
...
fixes #943
2013-10-24 08:47:27 +00:00
William Dibbern
54a6cf79d7
Fix duplication of entries in infinite scroll
...
Fixes #1242
- Switched to render each new item as its added to the collection when
retrieving via scroll checks.
- Added check to remove all subviews whenever `render` is called on
`ContentList` as a preventative measure.
- Cached the jquery reference to the ordered list in `render`.
2013-10-24 01:19:09 -05:00
Fabian Becker
16f72ba865
Replace new-lines with spaces in excerpt helper.
...
fixes #531
2013-10-23 20:28:36 +00:00
Fabian Becker
fc019fe675
Fixed style of modal in preview.
...
fixes #1179
2013-10-23 21:13:29 +01:00
Hannah Wolfe
5ba8959e83
Merge pull request #986 from sebgie/issue#952
2013-10-23 19:43:12 +01:00
Sebastian Gierlinger
c558cb7648
Add validation for importer
...
closes #952
- moved api.js to api/index.js
- added api/db.js for import and export functions
- moved /ghost/debug/db/export to GET /api/v0.1/db
- moved /ghost/debug/db/import to POST /api/v0.1/db
- removed /ghost/debug/db/reset
- added validation for import
- added constraints object to migration
2013-10-23 19:42:55 +01:00
Hannah Wolfe
6356ff9e94
Merge pull request #1248 from halfdan/bcryptjs
...
Replace nodejs-bcrypt with bcryptjs
2013-10-23 11:41:03 -07:00
Fabian Becker
1af17725fc
Replace nodejs-bcrypt with bcryptjs
...
* https://github.com/shaneGirish/bcrypt-nodejs
* https://github.com/dcodeIO/bcrypt.js
2013-10-23 15:43:45 +00:00
Hannah Wolfe
80bbcf7205
Merge pull request #1239 from cobbspur/tagsprefix
...
adds prefix option to tag helper
2013-10-23 08:11:22 -07:00
Hannah Wolfe
40ba763f0f
Merge pull request #1218 from halfdan/1212-themable-error-pages
...
Allow themes to provide custom error template.
2013-10-23 08:00:56 -07:00
StevenMcD
2aded98a3c
Issue/1007: Corrected the behaviour of the HOME and END keys on the CodeMirror editor by overriding their calls in the extraKeys config of the editor
2013-10-23 15:56:53 +02:00
Matthew Harrison-Jones
5c7dc88eda
Removed special character from SCSS
...
Replaced it with the escaped unicode version (\21AA).
2013-10-23 11:38:57 +01:00
Enrique Chavez
3edd0e118d
Validate negative numbers in the posts per page setting
...
issue #1236
- added validation to not allow number less than 0
2013-10-22 23:15:38 +01:00
b1nd
8f74eb0b83
Added server validation for location field
2013-10-22 23:00:12 +01:00
cobbspur
b85e5b6196
adds prefix option to tag helper
...
closes #607
- added prefix attributetor tags helper
- will add prefix only if tags are present
- adds unit tests for prefix
2013-10-22 22:57:31 +01:00
Hannah Wolfe
3185078238
Merge pull request #1204 from Gotvitch/error-code
...
Keep the status code generate by connect in case of error.
2013-10-22 14:55:17 -07:00
Hannah Wolfe
2d1e28335c
Merge pull request #1197 from halfdan/994-image-uploads
...
Show proper error message when image upload fails
2013-10-22 14:40:47 -07:00
andy matthews
8743766071
Add tooltip text to icons in admin section
...
Closes #1178
* Add tooltip text to assorted icons within CMS
* Add tooltip for blog URL to Ghost logo
* Change 'Options' to 'Post Settings'
Change 'Options' to 'Post Settings'
2013-10-22 22:31:02 +01:00
Fabian Becker
27e66f75f3
Show proper error message when image upload fails
...
fixes #994
2013-10-22 21:08:26 +00:00
Hannah Wolfe
0d1fd56c0e
Fixing client-side jslint exclude
...
- Gruntfile had an exclude for all of client/assets rather than client/assets/vendor
- Fixes missed jsLint errors
2013-10-22 22:06:22 +01:00
Hannah Wolfe
b319e5b800
Merge pull request #1232 from thgaskell/master
...
Undefined post data causing server to crash
2013-10-22 13:35:03 -07:00
Jacob Gable
34343e893d
Store the Bookshelf instance on the Bookshelf module
...
- Assigns the ghostBookshelf instance to the Bookshelf.ghost property
2013-10-22 15:32:46 -05:00
Hannah Wolfe
fb97dd6e29
Merge pull request #1226 from halfdan/csrf-token
...
Fix CSRF propery deprecated warning
2013-10-22 13:18:27 -07:00
Hannah Wolfe
fc53bc8a15
Merge pull request #1152 from jgillich/status-code
...
Set correct HTTP status code on error
2013-10-22 13:05:22 -07:00
Hannah Wolfe
15a2eacaac
Merge pull request #1141 from halfdan/246-helper-tests
...
Improved test coverage of theme helpers.
2013-10-22 12:45:07 -07:00
Hannah Wolfe
3e2ce74c90
Merge pull request #1121 from abe33/fix_user_image_border_in_settings
...
Fix style issue on user-image on Firefox and Opera
2013-10-22 12:40:07 -07:00
Hannah Wolfe
7ddc2fa287
Merge pull request #1119 from halfdan/featured-post-button
...
Posts can now be featured by clicking on the star icon
2013-10-22 12:38:43 -07:00
Hannah Wolfe
e2cf362395
Merge pull request #1117 from halfdan/featured-posts
...
Add featured class when post is featured
2013-10-22 12:38:33 -07:00
Hannah Wolfe
d64f2cde4c
Merge pull request #1051 from nason/settingsResetOnImageUpload
...
Fixes #1017 . Save all settings when the logo or cover is saved
2013-10-22 09:05:38 -07:00
Hannah Wolfe
5d169610ce
Merge pull request #1133 from gotdibbs/Issue1124
...
Fixed intermittent test errors
2013-10-22 07:59:50 -07:00
Hannah Wolfe
4480d3bd02
Merge pull request #1088 from jacobian/postgres-fix
...
Fix #896 - work around errors in pagination under Postgresql.
2013-10-22 07:08:15 -07:00
Tony Gaskell
2809e405d5
fixed bug where an undefined variable could be dereferenced
...
which could cause the server to choke.
2013-10-22 03:20:09 -10:00
Fabian Becker
7099091c28
Fix CSRF deprecated warning
2013-10-22 07:33:30 +00:00
Fabian Becker
57bd929d2c
Allow themes to provide custom error template.
...
fixes #1212 , #1213
2013-10-21 19:12:22 +00:00
Seb Gotvitch
596cd13ca5
Keep the status code generate by connect in case of error.
...
The status code generate by connect/express in case of error was always
replace by 500 status.
2013-10-21 01:53:26 -04:00
Pascal Borreli
14c420c8d1
Fixed typos
2013-10-20 20:33:51 +00:00
Hannah Wolfe
accf525061
Temporarily removing API test
2013-10-20 11:02:06 +01:00
Hannah Wolfe
65dcb17117
Merge branch '0.3.3-wip'
...
Conflicts:
core/client/views/blog.js
core/server/api.js
core/server/views/default.hbs
package.json
2013-10-20 10:09:39 +01:00
Sebastian Gierlinger
2ee8f96829
Revert sessions to cookieSessions
...
no issue
- modified sessions to use cookieSession
- set max-age to 12 hrs
- modified logout to delete cookie completely
2013-10-18 13:24:01 +02:00
Hannah Wolfe
158d237122
Improved error handling
...
fixes #845
- only returns an error page for get requests, otherwise returns a response
- no more admin menu when not logged in
- no more error message about theme error template
- logWarn is available
2013-10-17 22:49:14 +01:00
Hannah Wolfe
f12a3cecf7
Fixing URL-based image uploads on settings screen
2013-10-17 21:54:51 +01:00
Hannah Wolfe
4f8ac2a4fd
Current user data update
2013-10-17 21:38:49 +01:00
Hannah Wolfe
5916844835
Fixes for content screen
...
fixes #1125
- fixes an error in the console when there are no posts
- resolves the issue whereby content disappears after scroll
2013-10-17 21:06:01 +01:00
Jakob Gillich
0f048eeb79
Set correct HTTP status code on error
...
closes #1055
2013-10-17 21:52:40 +02:00
Hannah Wolfe
e29a598fa5
CSRF for debug screen
2013-10-17 20:52:09 +01:00
Hannah Wolfe
2a6e77752f
API JSON updates
2013-10-17 20:52:05 +01:00
Hannah Wolfe
d9c9ca0e33
Merge pull request #4 from sebgie/sec/3
...
Sec/3
2013-10-17 10:49:40 -07:00
Hannah Wolfe
491651da59
Merge pull request #2 from ErisDS/bookshelf-knex-update
...
Updating to bookshelf 0.5.7 & knex 0.4.11
2013-10-17 10:49:28 -07:00
Tim Griesser
13639ad8d1
Updating to bookshelf 0.5.7 & knex 0.4.11
2013-10-17 18:23:36 +01:00
Sebastian Gierlinger
374c41e138
Remove private data from API
...
no issue
- added removal to user.browse, posts.read, posts.browse
- fixed removal for user.read
2013-10-17 17:15:25 +02:00
Sebastian Gierlinger
90176e1f40
Security improvements
...
no issue
- added CSRF protection
- changed session handling to express.session
- changed session handling to change session id
- added config property useCookieSession
- added file extension check for /ghost/upload
- removed /ghost/debug/db/reset
2013-10-17 15:28:28 +02:00
Hannah Wolfe
daa87e92c2
Merge pull request #1026 from jenius/master
...
Remove unneeded info from /user api response
2013-10-17 14:12:13 +01:00
John O'Nolan
1bd8002858
Fixed further firefox display bugs
...
See #1090
Conflicts:
core/client/tpl/settings/user-profile.hbs
2013-10-17 14:10:49 +01:00
John O'Nolan
c6d805cd28
Merge pull request #1090 from bnchdrff/user-image-ff-fix
...
fixes firefox user image disappearance
2013-10-17 14:04:34 +01:00
Fabian Becker
dfa7793d44
Improved test coverage of theme helpers.
...
refs #246
2013-10-17 07:53:11 +00:00
Talon
675d02d466
fixed typo in comments of manage.scss
...
The mage posts screen is probably supposed to be the manage posts screen.
2013-10-16 20:43:59 -06:00
William Dibbern
702a016547
Fixed intermittent test errors
...
Fixes #1124
- Updated default mocha timeout to 15 seconds. Any future tests that
depend on a timeout (and thus might be better off with a lower value)
can override the default setting which is now 15 seconds.
- Removed test-specific timeout overrides for the mocha tests.
- Fixed the editor/splitbutton tests to wait for the appropriate
selector instead of assuming the dom has been updated immediately.
Should resolve intermittent timeouts when checking the splitbutton's
applied classes.
2013-10-16 17:57:52 -05:00
Fabian Becker
9a975f5a45
Posts can now be featured by clicking on the star icon
...
fixes #1111
2013-10-16 19:06:03 +00:00
William Dibbern
3e1b37e194
Simplify publish date checks
...
Fixes #814
- Changed to compare instances of `moment` using it's built in
comparison function instead of string compare with the date from the
database.
- Ensure compared date is parsed with the correct formats that we were
supporting before #1107 .
- Moved date formats to variables to reduce chance for error in future.
2013-10-16 11:32:20 -05:00
Hannah Wolfe
9b879f6edb
Merge pull request #1108 from nason/signupErrorHandler
...
Add otherwise error callback to redirectToSignup promise. Fixes #1071
2013-10-16 08:43:23 -07:00
nason
6a5e399997
Add error handling to redirectToSignup promise
...
Fixes #1078
- Add an otherwise error callback to the redirectToSignup promise
2013-10-16 08:39:58 -07:00
Michael Nason
7044d97d73
Save all settings when the logo or cover save button is clicked.
...
Fixes #1017 .
- Call saveSettings for cover and blog logo photos
- Call saveUser for profile and profile cover photos
2013-10-16 08:39:24 -07:00
John O'Nolan
0e5dc9275c
Fixed further firefox display bugs
...
See #1090
2013-10-16 17:26:28 +02:00
John O'Nolan
b1edd889b9
Merge pull request #1090 from bnchdrff/user-image-ff-fix
...
fixes firefox user image disappearance
2013-10-16 07:57:56 -07:00
Benjamin Chodoroff
672bb01d15
fixes firefox user image disappearance
...
take advice from @JohnONolan and subtract border-width
2013-10-16 10:47:06 -04:00
Fabian Becker
f4ac715f97
Add featured class when post is featured
...
fixes #1112
2013-10-16 11:41:49 +00:00
Hannah Wolfe
3eae0a3939
Merge pull request #1103 from b1nd/merge
...
Removed unused variables and updated commenting
2013-10-16 03:31:57 -07:00
Hannah Wolfe
7419e05b3a
Merge pull request #1092 from halfdan/uc-helper
...
Added new helper to escape URIs called 'encode'
2013-10-16 02:23:13 -07:00
Fabian Becker
788987d04a
Added new helper to escape URIs called 'encode'
...
fixes #1089
2013-10-16 09:19:26 +00:00
John O'Nolan
a76a702e6e
Merge pull request #1098 from hansondr/floatingheader
...
tweaked .floatingheader background for non-webkit browsers
2013-10-16 01:18:31 -07:00
Karolis Dzeja
88d0303093
Fix notification bug
...
The date stored in the model is in a different format and needs to be converted before being checked. Otherwise, any blur event will trigger the notification that the date has been changed, even if the date is the same.
2013-10-16 00:30:25 -05:00
b1nd
c61806c1c8
Removed unused variables and updated commenting
2013-10-16 11:32:44 +11:00
abe33
c6b9b80e18
Fix style issue on user-image on Firefox and Opera
...
On both Firefox and Opera (OSX) the user image badge in
the settings page wasn't displayed.
Also, on firefox the badge overlay didn't have the proper size.
I don't know if there's a specific use case requiring a `display:
table` instead of a plain `display: block` but that was failing on
Firefox and Opera.
Using a block instead seems works perfectly (at least on Opera, Chrome,
Safari, Safari Mobile IOS7 and Firefox) regarding the badge size issue.
On Opera, though, the border radius wasn't applied properly to the
image. Adding a `border-radius: 100%;`fix that.
2013-10-16 00:25:03 +02:00
Daniel Hanson
0bcc111025
tweaked .floatingheader background for non-webkit browsers
2013-10-15 13:29:56 -06:00
Hannah Wolfe
930309363d
Merge pull request #1020 from padhg/omit-uri-scheme
...
Allow omission of URI Scheme in config.js url
2013-10-15 12:26:18 -07:00
Jacob Kaplan-Moss
2acb546028
Fix #896 - work around errors in pagination under Postgresql.
2013-10-15 11:09:08 -05:00
William Dibbern
ac33cea0a1
Clean up test database after tests
...
Fixes #1064
- Updated grunt config for unit and functional tests to remove the test
database after each is run.
- Cleaned up a couple of issues with the functional tests that may have
been causing travis builds to fail randomly, including: the start page
is now `about:blank` instead of whatever page the last test suite left
off at, added some checks in the logout tests to ensure they're truly
independent of the other test suites.
2013-10-14 22:39:52 -05:00
Hannah Wolfe
18f78875ed
Merge pull request #1050 from jgable/fixCssErrors
...
Fix extra semi-colon in sass
2013-10-14 14:53:25 -07:00
buddhamagnet
0662817cea
Cache selector in afterRender function
...
- cache selector in a variable to prevent recomputing it in the function.
2013-10-14 20:56:20 +01:00
Hannah Wolfe
3cb955fb44
Merge pull request #1041 from halfdan/markdown-modal
...
Fix emphasize notation in Markdown modal.
2013-10-14 12:20:01 -07:00
Jeff Escalante
44973ba255
remove unneeded info from user api response
2013-10-14 15:07:52 -04:00
Fabian Becker
72f7404d2f
Fix emphasize notation in Markdown modal.
...
fixes #1008
2013-10-14 18:12:55 +00:00
Jacob Gable
c153a3ca01
Fix extra semi-colon in sass
...
Related to #1033 but needs TryGhost/Casper#32 to close
- Remove extra semi-colon
2013-10-14 12:45:46 -05:00
Ryan Powell
dc1cf3b509
changes to support URI's without a scheme in config.js.
...
also removed "http:" from google fonts link to prevent a mixed content warning.
2013-10-14 10:42:08 -04:00
Hannah Wolfe
119b0ea430
Merge branch '0.3.2-wip'
...
Conflicts:
core/client/assets/lib/uploader.js
2013-10-11 20:56:15 +01:00
Hannah Wolfe
b4e04b3650
Fix for image uploads
...
- express 3.4.0 uses connect 2.9.0 which had a sizable change to how multipart woks
- this change resulting in req.files.uploadimage.type going away
2013-10-11 20:26:09 +01:00
cobbspur
c52a10cd1a
fixed image upload url synchronicity and url removed on cancel
...
closes #988 , closes #956 , closes #975
- fixed multiple ids and refactored triggers
- persistence requirement overridden
- trash can now removes url in editor
- if empty url is saved http:// is inserted and dropzone initialized
Conflicts:
core/client/assets/lib/uploader.js
2013-10-11 18:15:17 +01:00
jamesbloomer
9d114c7fa6
Lock down theme static directory to not serve templates, markdown and text files.
...
closes #942
- insert custom middleware to check for blacklisted files
- redirect to express.static if file accepted
- if not valid return next() to do nothing
- currently black listing .hbs, .txt, .md and .json
- debatable which is best, black list or white list, either one will probably need tweaks but erred on side of letting
a theme serve unknown types
2013-10-11 18:05:31 +01:00
Sebastian Gierlinger
b040ea3365
Change from address
...
closes #872
- changed from address to use config.mail.fromaddress
- changed from address to default to settings.email
2013-10-11 12:49:33 +01:00
Hannah Wolfe
c732cd2ccb
Adding xss unit test
...
issue #938
2013-10-10 16:43:25 +01:00
Hannah Wolfe
9466a9753b
Merge branch '0.3.2-wip'
...
Conflicts:
core/test/unit/api_posts_spec.js
2013-10-10 16:37:35 +01:00
Hannah Wolfe
31e2737cfd
Update config validation to allow for socket only
...
issue #887
2013-10-10 16:13:02 +01:00
Patrick Garman
97f592aa41
Allow Ghost to run using sockets
...
Closes #887
- Adds getSocket function > Returns the socket location if sockets are enabled or false
- Adds startGhost function > Callback for server.listen
2013-10-10 16:12:28 +01:00
Hannah Wolfe
54f8a04779
Merge pull request #996 from ErisDS/0.3.2-tagfixes
...
Improving tag handling in post_class and body_class
2013-10-10 07:05:15 -07:00
Sebastian Gierlinger
6ff17c78a2
Fix filepaths for config and upload
...
no issue
- added appRoot to config-loader.js
- modified uploader to use correct path
- modified tests
2013-10-10 12:44:31 +02:00
Hannah Wolfe
f1317b84af
Improving tag handling in post_class and body_class
...
closes #967 , closes #987
- use slug instead of name (it's unique)
- get tags even if we aren't inside the post context
- add tag handling to body_class too
2013-10-09 19:51:55 +01:00
Hannah Wolfe
f5d617d8d4
Merge pull request #925 from matthojo/New-line
...
Added new paragraph keyboard shortcut
2013-10-09 11:32:43 -07:00
Hannah Wolfe
95f9fce3be
Swapping escape to sanitze
...
issue #938
- rather than using escape, use node-validatiors santize function which is designed for preventing xss vectors
- added listener for changes to both editor and settings page
- added more sanitization to the user model
- consistently use triple-braces when outputting blog post titles
2013-10-09 19:13:16 +01:00
Tim Griesser
c9235ccb0b
Escaping several fields to prevent XSS
...
issue #938
- escapes post's title field
- escapes settings title, description, email
- escapes user's name field
- includes test for post title
2013-10-09 19:13:13 +01:00
Hannah Wolfe
59d69f273e
Merge pull request #984 from matthojo/Loading-Bar
...
Loading bar
2013-10-09 09:32:13 -07:00
Hannah Wolfe
b5c5d531d1
Fix for unhandled promise on fresh db startup
...
issue #977
- As of the addition of when/monitor/console we now get errors about unhandled promises
- This fixes one which appeared when starting up without a DB
2013-10-09 16:58:50 +01:00
Matthew Harrison-Jones
58417c2a8d
Added in functionality for a working loading bar
2013-10-08 16:39:07 +01:00
Matthew Harrison-Jones
fdf5e3d69e
Revert "loading bar implementation"
...
This reverts commit de6b8ee9b3
and 16742bcaef
2013-10-08 14:12:46 +01:00
William Dibbern
8ef27f0590
Refactored tests
...
Fixes #362
- There is no need to set the viewport on functional tests anymore
unless something other
than the default of 1280x1024 is desired.
- There is no need to invoke `casper.run` to trigger `test.done`
anymore for functional tests.
- Each test works independently of the rest; registration is handled
once for the lifetime of the test run and then login/logout can be
invoked automatically as desired.
- Mocha tests all utilize predefined, more realistic fixtures when
appropriate.
- Renamed old api tests that were really model tests as appropraite.
- Added example api test for posts.
2013-10-07 21:05:25 -05:00
Tim Griesser
ccd7b211f2
adding when/monitor/console
2013-10-07 09:28:53 -04:00
Hannah Wolfe
cd929f19b3
Merge pull request #954 from jgable/fixChangePasswordEnter
...
Fix pressing enter key on user settings
2013-10-05 12:25:26 -07:00
John O'Nolan
34762ce1be
Move webfonts to // rather than http://
...
https://en.ghost.org/forum/bugs-suggestions/475-suggestion-remove-system-dependence-on-google-web-fonts
2013-10-04 09:48:51 +02:00
Hannah Wolfe
4bc8db57cc
Merge pull request #918 from gotdibbs/Issue877
...
Fix a couple of issues when there are no posts
2013-10-03 07:40:11 -07:00
Hannah Wolfe
ba0b6982a4
Trailing slashes for cache invalidation headers
...
issue #963
2013-10-02 16:14:35 +01:00
Sebastian Gierlinger
40acf28321
Fix for dropzone
...
no issue
- dropzone is disabled when fileStorage = false
2013-10-02 13:34:16 +02:00
Sebastian Gierlinger
0220cf2448
Disable filestorage
...
closes #937
- fixed bug where ![] is replaced with ![](http://) for image url
- added fileStorage setting to uploader
- added fileStorage helper (could become standard way of providing config data for frontend???)
- added data element to editor and settings
- if no config value is set fileStorage: true is default
2013-10-02 11:39:34 +02:00
Jacob Gable
986d5c6299
Fix pressing enter key on user settings
...
Specified type='button' for the buttons in the form so they don't get
pseudo clicked on enter key in inputs. Added a keyup handler to check
for enter keys in the inputs and do the proper action based on where you
are in the form.
2013-10-01 10:05:12 -05:00
Matthew Harrison-Jones
de6b8ee9b3
Refactored loading bar SCSS
2013-09-30 15:02:51 +01:00
John O'Nolan
16742bcaef
Initial loading bar implementation
...
See #726
Becomes visible when <body> has a class of `js-loading`
2013-09-30 11:17:06 +02:00
John O'Nolan
8cbb09124d
Smushed mobile app icons
2013-09-30 10:33:18 +02:00
Hannah Wolfe
17a0bd37b0
Merge pull request #930 from javorszky/iss840
...
Adds error message to blog import on empty / bad file
2013-09-29 11:10:08 -07:00
Gabor Javorszky
f709dcb798
Adds error message to blog import on empty / bad file
...
Closes #840
* Checks file to be size > 0
* Checks file to be .json
* Fails if either of them are not good
2013-09-28 15:42:42 +01:00
John O'Nolan
ba0ae3b4d8
Set sensible admin meta title
2013-09-28 16:21:59 +02:00
John O'Nolan
137a8dfc58
Adding support for Apple, Android, and Microsoft app icons
2013-09-28 15:54:12 +02:00
John O'Nolan
82f048c8fd
Tidied up indentation/properties for default admin template
2013-09-28 15:00:17 +02:00
Hannah Wolfe
6bd62538af
Merge branch '0.3.1-wip'
...
Conflicts:
core/server/controllers/admin.js
2013-09-27 17:22:55 +01:00
Hannah Wolfe
a5bf8bf1e2
Removing reset button
...
- noone needs this, and someone is bound to press it and then complain.
2013-09-27 17:20:41 +01:00
Matthew Harrison-Jones
32aebc40d3
Added new paragraph keyboard shortcut
...
`Ctrl / Cmd + Enter` now enters a new paragraph, but only if the user is not on a new line.
2013-09-27 14:41:38 +01:00
Hannah Wolfe
e86958fdb7
Further fix to image markdown
...
issue #866 again
2013-09-27 14:17:19 +01:00
Hannah Wolfe
d841e749f9
Adding extra class for url uploads
2013-09-27 13:34:39 +01:00
Hannah Wolfe
ee8d8102db
Merge pull request #923 from ErisDS/0.3.1-wip-mysql
...
0.3.1 wip mysql
2013-09-27 05:04:45 -07:00
Hannah Wolfe
5c10f6608c
Unit Test fixes for MySQL
...
issue #858
- there is no guaranteed order to arrays, so sort before testing them
- tests run much faster, date comparisons fail
- settings tests are more explicit, otherwise they fail random validations
- dates must be inserted as date objects
2013-09-27 12:52:31 +01:00
Hannah Wolfe
d544b4aebb
Custom destroy method for posts
...
issue #858
- correctly handles detaching tags before deleting the post
2013-09-27 11:56:20 +01:00
Hannah Wolfe
e6b779330f
Correctly test for an empty Tag array
...
issue #858
- fixes syntax errors in mysql
2013-09-27 11:55:02 +01:00
Hannah Wolfe
71711c1fd2
Drop tables in correct order
...
issue #858
- unit tests now run for MySQL
2013-09-27 11:54:09 +01:00
Hannah Wolfe
50a16ceb76
Test Cleanup
2013-09-27 11:36:12 +01:00
Hannah Wolfe
e411ed6889
No autolinking inside of code blocks
...
closes #865
- rejigged markdown to have some functionality before showdown runs, and other functionality before.
- autolinking now happens last, so it can be smarter
2013-09-27 11:35:44 +01:00
Hannah Wolfe
8c6519fde7
Don't output image tag for empty source
...
closes #866
- ensures we don't end up creating any more empty image tags.
2013-09-27 11:30:41 +01:00
John O'Nolan
9df4955bcb
Fix tiny alignment issue on Ghost logo
2013-09-27 11:23:24 +02:00
John O'Nolan
8ce4d4b7c5
Fixed fucked up modal padding
2013-09-27 11:21:23 +02:00
Hannah Wolfe
6369eb20be
Remove broken image from fixture
...
issue #866
- this fixes the problem inside the fixture
2013-09-27 09:18:02 +01:00
William Dibbern
c5438c5fff
Fix couple of issues when there are no posts
...
Fixes #877
- Updated the blog/content view to check `collection.length` before
attempting to pull another record.
- In the event an item is removed and the collection now has zero items,
still redraw the preview pane, just with no data.
2013-09-26 23:44:01 -05:00
Hannah Wolfe
681aa71bf5
Merge pull request #848 from jamesbloomer/705-image-Upload-file-storage-amends-type
...
Use file mime type to check server side if image upload is a valid file
2013-09-26 15:18:04 -07:00
Hannah Wolfe
57d83fe560
Merge pull request #794 from sebgie/issue#570
...
Add invalidate cache headers
2013-09-26 15:17:24 -07:00
Jacob Gable
a9c0359f18
Add some unit tests for post saving
...
- Confirm published_at for new posts
- Confirm slug generating on saving posts
2013-09-26 23:15:43 +01:00
Jacob Gable
088518936c
Configuration validation in config-loader
...
Added a couple sanity checks to the config during the loadConfig call.
- Check that the config exists for the current NODE_ENV
- Check that the config.url exists and is valid structure
- Check that the config.database exists
- Check that the config.server exists and has a port and host value
2013-09-26 23:07:48 +01:00
Hannah Wolfe
18ca744c98
Merge pull request #913 from ErisDS/0.3.1-html-handling
...
Treat markdown as text in editor
2013-09-26 14:53:37 -07:00
Sebastian Gierlinger
59b57b84e0
Fix partials in themes
...
closes #884
- changed init sequence of ghost and helpers
2013-09-26 22:30:45 +02:00
Hannah Wolfe
0ef99ad393
Merge pull request #912 from cobbspur/saveposition
...
fixes position of save button in image uploader
2013-09-26 13:26:01 -07:00
Hannah Wolfe
fc881229f4
Treat markdown as text in editor
...
closes #857
- markdown is inserted into codemirror with .text() not .html()
2013-09-26 21:06:52 +01:00
cobbspur
3119fc5388
fixes position of save button in image uploader
...
closes #911
- adds display block to save button centre class
2013-09-26 20:15:48 +01:00
cobbspur
2a55595191
Increased visibility of trash can in image uploader for broken url
...
closes #838
- adds a min height value to pre-image-uploader scss
2013-09-26 18:33:09 +01:00
Sebastian Gierlinger
3def65ee11
Fix for sendmail problem
...
closes #871
- added solution from email
- tested on OSX
2013-09-26 15:45:34 +01:00
Sebastian Gierlinger
fa43ca79d3
Add content to RSS
...
closes #886
- removed meta_description which is empty and would have crashed
- added content
- img src converted to absolute path
- a href converted to absolute path
2013-09-26 15:37:25 +01:00
John O'Nolan
58873a9fc3
Stripped obsolete CSS3 prefixes
2013-09-26 15:26:00 +01:00
jamesbloomer
55048d6a20
Fix image upload tests on windows
...
closes #826
- on windows the fs.exists call had windows style back slashes
- set up the test to cope with either (not the most elegant but works)
2013-09-26 15:19:05 +01:00
John O'Nolan
d1957958e3
Cleanup indentation and quotes
...
Aligns all requirements vertically for easier reading + adds single quote standard consistently throughout Ghost, except in long strings.
2013-09-26 15:06:31 +01:00
jamesbloomer
8e3ddcbdcc
Trim version number to major and minor numbers only in meta tag
...
closes #880
- as the version number is under control from package.json use regex to trim
2013-09-26 15:00:05 +01:00
Hannah Wolfe
b787cc6639
Image upload start event fired earlier
...
issue #882
2013-09-26 12:35:03 +01:00
cobbspur
90e4637ede
Image Upload URl saves in the right place
...
closes #864
- adds trigger - uploadstart to url handler
2013-09-26 12:34:59 +01:00
Hannah Wolfe
0b87c42e84
Merge pull request #891 from ErisDS/0.3.1-importerfix
...
0.3.1 Import & Export fixes
2013-09-26 04:14:56 -07:00
John O'Nolan
78775f1976
Added email to username if no name is given
...
Gets rid of generic "Ghost" - we know a user will always have an email address as it is a required field.
2013-09-26 12:02:48 +01:00
John O'Nolan
bf5ab32fe9
Renamed user image data helper to make more sense
2013-09-26 12:02:44 +01:00
Matthew Harrison-Jones
67132ff28b
Bug Fix: Date Keyboard Shortcut no-longer crashes the browser
2013-09-26 11:22:02 +01:00
jamesbloomer
6941b73168
Fix admin redirect issue
...
closes #850
- the aliases for the ghost admin link were causing redirects of the
form /ghost//admin etc.
- simplest solution is to split the route into two with the first one
just redirecting and the second doing the auth
2013-09-26 10:46:45 +01:00
Hannah Wolfe
02a02054e8
Handle duplicate tags on import
...
closes #890
- importer only adds tags which don't exist.
- added back the import unit tests - these are basic for now
2013-09-25 11:30:59 +01:00
Hannah Wolfe
f68633df20
Adding missing return to MySQL exporter
...
closes #888
2013-09-25 09:38:03 +01:00
Hannah Wolfe
4b5cfbde2e
Adding missing multipart to importer route
...
closes #869
2013-09-25 09:36:45 +01:00
John O'Nolan
598915a125
Stripped obsolete CSS3 prefixes
2013-09-24 18:44:32 +02:00
Sebastian Gierlinger
6697d8a097
Add invalidate cache headers
...
closes #570
- added X-Cach-Invalidate headers for PUT, POST, DELETE requests
2013-09-24 17:21:43 +02:00
Matthew Harrison-Jones
340958cfcf
Updated 'Help / Support' link
2013-09-23 18:46:03 +01:00
John O'Nolan
472406d157
Removed version number from user menu
...
Fixes #855
2013-09-22 22:54:07 +02:00
jamesbloomer
c215626d2b
Use file mime type rather than extension to check server side if image upload is a valid file
...
closes #705
- uses the file type passed by express/connect
- relies on the type being set correctly by the browser upload
- doesn't reread the file to check
2013-09-20 13:20:59 +01:00
Hannah Wolfe
0c545d5f2e
Cleanup
2013-09-19 08:51:01 +01:00
Hannah Wolfe
32d1076d35
Correct validation message for short passwords
...
closes #833
2013-09-19 08:41:04 +01:00
Hannah Wolfe
5528423636
Client & Server side validation for posts per page
...
closes #839
- caused a 500 error
2013-09-19 07:55:37 +01:00
Hannah Wolfe
477c4c59fa
Merge pull request #843 from cgiffard/500-errors
...
500 Series Error Handling & Stack Traces
2013-09-18 22:52:52 -07:00
Hannah Wolfe
358ce63732
Merge pull request #831 from gotdibbs/Issue824
...
Removed global registration of express.bodyParser
2013-09-18 22:51:35 -07:00
Hannah Wolfe
4023e55bc2
Merge pull request #842 from gotdibbs/Issue834
...
Expanded spelling of chars to characters
2013-09-18 22:51:09 -07:00
Hannah Wolfe
43fe50ca7b
New Tag in fixture breaks Tag tests
2013-09-19 06:50:32 +01:00
Hannah Wolfe
fe5df2b0d1
Updated Welcome to Ghost fixture
...
closes #790
2013-09-19 05:59:33 +01:00
Christopher Giffard
9c8b02949a
500 Series Error Handling & Stack Traces
...
Fixes #825
- Changes the way the error middleware is delivered in server.js, moving
all the logic back into errorHandling.js
- Alters error logging to use console.error (probably more appropriate) instead
of console.log
- Changes error tests to accomodate for these alterations
- Alters user-error and error hbs templates to incorporate stack traces
- Adds additional styling for error pages to accomodate stack traces
- Added logic to parse and deliver formatted stack traces
Notes:
======
- Jslint gets in the way of the regex I've got to use to parse the stack.
(It cites 'security reasons' which are not relevant in this case.)
I needed to add a condition to relax it at the top of errorHandling.js
- The stack trace should probably be added as a partial, but I figured it
was out of scope for this PR.
2013-09-19 13:01:20 +10:00
William Dibbern
4ff6162d79
Expanded spelling of chars to characters
...
Fixes #834
- Updated error message for password length to use "characters" instead
of "chars".
2013-09-18 21:51:56 -05:00
William Dibbern
2417de8141
Removed global registration of express.bodyParser
...
Fixes #824
- Removed global registration of `express.bodyParser` middleware.
- Replaced with `express.bodyParser`'s constituents: `express.json` and
`express.urlencoded`, then registered `express.multipart` against *only*
the upload route.
2013-09-18 18:30:31 -05:00
Hannah Wolfe
eb6856dac3
Removing Temporary importer
2013-09-18 23:24:26 +01:00
John O'Nolan
a7a14fac22
New default user image
2013-09-18 22:34:01 +01:00
Hannah Wolfe
eb7a63bd1d
Fixing tag save event
...
- lost in a bad merge somewhere
2013-09-18 20:04:39 +01:00
Hannah Wolfe
c7a91ffff1
Removing FancyFirstChar plugin
...
- requires removal of most of the plugin tests
2013-09-18 19:49:10 +01:00
Hannah Wolfe
ee78f87c47
Import > Signout
...
- uncommitting the thing I shouldn't have commited
2013-09-18 16:11:21 +01:00
Hannah Wolfe
f717aed96f
Merge pull request #820 from jamesbloomer/705-image-Upload-file-storage-amends
...
Remove temporary files when uploading images
2013-09-18 08:08:48 -07:00
Hannah Wolfe
7193f05376
Default user image and cover
...
closes #812
- replace defaults with consistently named .png files
- change the settings saving code so that it doesn't double-save images and save the defaults to the db
2013-09-18 15:54:52 +01:00
Hannah Wolfe
571333bb5d
Temporary Importer
...
- seems my very late night commit was a bit screwed.
2013-09-18 15:03:29 +01:00
Hannah Wolfe
0246397618
Removing console log
2013-09-18 15:03:25 +01:00
Hannah Wolfe
ed9259a32e
Merge pull request #822 from matthojo/Post-Settings-labels
...
Bug Fix: Clicking on Post Settings labels now selects relative input
2013-09-18 05:59:01 -07:00
Hannah Wolfe
5fdfa79faf
Merge pull request #816 from cgiffard/404-500-design
...
Default 404/500 Error Message
2013-09-18 05:37:09 -07:00
Matthew Harrison-Jones
d70b8d8479
Bug Fix: Clicking on Post Settings labels now selects relative input
2013-09-18 11:29:57 +01:00
Matthew Harrison-Jones
2cd763d7f5
Bug Fix: Images in the Settings no longer breakout of their container in Firefox
2013-09-18 10:20:34 +01:00
Sebastian Gierlinger
1cac1acded
RSS without User
...
closes #817
- no user, no rss author
2013-09-18 10:17:56 +02:00
jamesbloomer
36f218abaf
Remove temporary files when uploading images
...
closes #502
part of #705
- copy the files but then remove the temporary ones
- moving instead of copying was problematic due to moving across devices
- still need to convert code to using promises
2013-09-18 09:15:21 +01:00
Christopher Giffard
e13ac321c9
Default 404/500 Error Message
...
Fixes #792
- Added default template for errors where a user has not defined a custom
template (error.hbs) in the theme folder
- Now searches for user-error.hbs in the server view folder should a user
template not be present.
2013-09-18 15:12:53 +10:00
Hannah Wolfe
65e00f8418
Move favicon further up the middleware stack
2013-09-18 04:35:08 +01:00
Hannah Wolfe
e0edb6455d
Temporary Importer
...
closes #735
- make sure the importer gets loaded
- additional preprocessing to ensure data can be loaded
- removed old importers
2013-09-18 04:20:21 +01:00
Jacob Gable
6c0ddb4124
Importer for 003 Schema
...
- Add new 003.js in import based on 000.js
- Change importPosts and importUsers from the 000.js for new / default values
- Add language setting to black list
2013-09-18 04:20:17 +01:00
Hannah Wolfe
f661ad9a63
Merge pull request #811 from cgiffard/ugly-settings-404
...
Settings: Return 404 for unrecognised pages
2013-09-17 19:47:19 -07:00
Christopher Giffard
8fa1ce96ff
Settings: Return 404 for unrecognised pages
...
Fixes #798
- Now checks the request URL against a whitelist to determine whether the settings
page exists.
**Notes**
- This works in the short term, but a better solution for enumerating the available
settings views or centralising a list of recognised views that are available
to client side code, (the router and sidebar, among others) as well as the backend
controller will be required.
2013-09-18 12:31:43 +10:00
Hannah Wolfe
1fc7966a5c
Merge pull request #808 from gotdibbs/Issue788
...
Corrected settings menu bugs
2013-09-17 19:14:59 -07:00
Hannah Wolfe
7be4362523
404 Page vertical centering
...
closes #791
2013-09-18 03:07:22 +01:00
William Dibbern
ebe70534c2
Corrected settings menu bugs
...
Fixes #788
- Toggles now close all any other open toggles.
- Added .active class for post settings menu to ensure highlight stays
on settings icon/button until it is closed, not just on hover.
2013-09-17 20:59:35 -05:00
Hannah Wolfe
658a21bcf8
Quick file type amend
...
- adding .jpeg spelling to allowed extensions, #705 will fix this properly
2013-09-18 02:53:08 +01:00
Hannah Wolfe
00b60a7a74
Clear notifications before adding new ones
...
closes #783
- I think there's probably a nicer solution than putting clearEverything() everywhere, but that would also probably involve significant refactoring.
2013-09-18 02:48:38 +01:00
John O'Nolan
60bb02ad6a
Throttle scrolling. LIKE A BAWS.
...
See #481
2013-09-18 02:09:21 +01:00
Hannah Wolfe
a18f5e7181
Post settings menu success notifications
...
closes #786
2013-09-18 01:46:10 +01:00
Hannah Wolfe
092ee2e6e7
Merge pull request #805 from ericterpstra/774-post-date-output-bug
...
Set post-settings date to 12:00
2013-09-17 17:38:56 -07:00
Hannah Wolfe
d92a0b98a2
First run message
...
closes #682
- notification gives users the basic info they need to configure their app
2013-09-18 01:35:46 +01:00
ericterpstra
371f8ce0b1
Set post-settings date to 12:00
2013-09-17 18:54:01 -05:00
Hannah Wolfe
a4aefb2b8e
Merge pull request #803 from nicoburns/fastclick
...
Fastclick
2013-09-17 16:34:53 -07:00
nicoburns
d7a47858ba
Added FastClick to assumed globals for tests
2013-09-17 22:57:40 +01:00
Hannah Wolfe
c51c7e197d
Merge branch 'master' of github.com:/TryGhost/Ghost
2013-09-17 22:48:18 +01:00
Hannah Wolfe
22f7eb1a8d
Merge pull request #804 from cobbspur/metahelper
...
Added meta title and description theme helpers
2013-09-17 14:47:59 -07:00
Hannah Wolfe
3a852b8dbb
Merge pull request #801 from sebgie/issue#780
...
Fix for images with special chars
2013-09-17 14:34:00 -07:00
Hannah Wolfe
b15b8d03da
Clearing out images we don't use
2013-09-17 22:28:28 +01:00
nicoburns
f3a824bda5
Changed back button text
...
- Changed back button text from "Cancel" to "Back"
- Removed box-shadow from back buttons
2013-09-17 22:25:26 +01:00
nicoburns
3b3d7a7c34
Replaced Hammer.js with FastClick
...
Issue #149 Closes #519
- Uses FastClick to speed up click events instead of using Hammer.js tap
events
2013-09-17 22:11:13 +01:00
cobbspur
6a5f88ed18
Added meta title and description theme helpers
...
closes #795
- firstly fixes res.locals to include path again
- adds {{media_title}} and {{media_description}} theme helpers
2013-09-17 22:11:02 +01:00
Hannah Wolfe
ae01e5eeae
Editor notification cleanup
...
closes #666
- no more split messaging
2013-09-17 21:35:30 +01:00
James Inman
38ae87524d
Notification cleanup
...
Closes #666 .
* Adding new error notifications (removed post name, cleaned up statuses) when creating/updating a post
* Removing scheduled from the maps and changing the text of publish-on
* Made temporary "Scheduled publishing is not supported yet." message display in a proper error container, plus a slight grammar fix.
* Removed ; from the start of validation errors on post error, as the previous sentence finishes with a .
2013-09-17 21:19:07 +01:00
Sebastian Gierlinger
60d93bd3f3
Fix for images with special chars
...
closes #780
- added replacing of special chars with '_'
2013-09-17 22:11:22 +02:00
John O'Nolan
56620635db
Merge pull request #800 from M165437/issue-149
...
Add back button to settings and content preview
2013-09-17 12:55:52 -07:00
Matthew Harrison-Jones
2305329041
Complete Modal Refactor
...
* Smoother animations
* Removed blurring in Chrome temporarily
* Centering is now done in CSS (the height is calculated in JS to work in FF and Opera)
* Modals now need close: true to be set to enable the close icon and shortcuts for closing (ESC key, background clicking)
2013-09-17 20:40:19 +01:00
Michael Schmidt-Voigt
08ed07372f
Add back button to settings and content preview
...
Issue #149
- added back button to content preview and settings
- added hammer.js interactions
- needs some tweaking for mobile view
- problems with touch events (additional click event after 300ms)
2013-09-17 15:58:41 -03:00
cobbspur
757ed3a8f5
Added url functionality for image uploads
...
closes #701 , closes #702
- if image upload is called from editor the url icon provides a text field and a save button
- if on settings pages (general and user) the save button will capture the entered url or uploaded url
- both modes have the reset button
- fixed bug that is created by url when image is dragged onto window
2013-09-17 19:15:32 +01:00
Hannah Wolfe
4399402613
Merge pull request #796 from ErisDS/import
...
Standard Importer
2013-09-17 11:13:54 -07:00
Hannah Wolfe
425328b4af
Standard Importer
...
closes #734
- use models instead of knex so that we know we get correct data
- preprocesses post_tags, adds the right tags back to the posts
TODO
- deduplicate posts (if they have the same title and slug?)
2013-09-17 18:42:06 +01:00
Matthew Harrison-Jones
4930c7c479
Updated Upload Modal Icon
2013-09-17 18:36:47 +01:00
Hannah Wolfe
b165dd3e62
Merge pull request #787 from cgiffard/new-404-handling
...
Initial 404 Error Handling Support
2013-09-17 07:07:19 -07:00
John O'Nolan
438279a1a0
ONE. PIXEL.
2013-09-17 13:04:43 +01:00
John O'Nolan
14d07ef98a
Restyled delete post-settings menu item
2013-09-17 13:02:20 +01:00
John O'Nolan
d674996dce
Fix wonky settings icon alignment
2013-09-17 12:32:56 +01:00
Christopher Giffard
48b75fa396
Initial 404 Error Handling Support
...
Fixes #356
- Adds new generic methods for handling errors to errorHandling.js
- Initialises generic methods as middleware
- Created error.hbs view in admin
- Error handler searches for error.hbs view file in user theme folder
and renders it if available, otherwise lets the error fall through
to express.
- We *could* change the final behaviour to render a default ghost
template should the user template be missing
- Because it currently isn't possible to require(ghost) in errorHandling.js,
it was necessary to duplicate some aspects of the ghost path init code
inside errorhandling.js. This should be cleaned up and moved back
into ghost.js when possible.
2013-09-17 20:56:05 +10:00
Hannah Wolfe
83e655701c
Post settings menu tweaks
...
closes #782 , #783
- delete button hidden until ID
- publish date works before publish
2013-09-17 11:51:24 +01:00
John O'Nolan
b6b019621a
Make user profile images always fit their circle
...
Closes #778
2013-09-17 11:03:55 +01:00
Hannah Wolfe
357cb9f201
Post settings gets published_at
...
closes #773
- listen for change events on published_at
- change all listeners in views to use this.listenTo
2013-09-17 10:26:28 +01:00
William Dibbern
9f4122d0cd
Ability to spawn multiple notifications
...
Fixes #696
- Updated notifications logic to deal directly with the individual
notification, rather than the notification container.
2013-09-16 22:43:18 -05:00
Hannah Wolfe
750c19014a
Populating admin email with user signup email
...
closes #775
2013-09-17 03:08:36 +01:00
Hannah Wolfe
ce57b46358
More trailing slashes
2013-09-17 02:52:29 +01:00
John O'Nolan
650bdce220
Merge pull request #777 from nicoburns/notification-color-fix
...
Fix notification link color
2013-09-16 18:48:52 -07:00
Hannah Wolfe
c052fe82d8
Merge pull request #749 from cobbspur/urls2
2013-09-17 02:42:28 +01:00
Hannah Wolfe
6a276668bc
Default to trailing slashes on the end of URLs
...
issue #448
2013-09-17 02:41:44 +01:00
Hannah Wolfe
16329ac6f0
Removing i18n until it's done properly
2013-09-17 02:41:40 +01:00
cobbspur
713e4c0d5c
Adds slashes to urls
...
ref issue #448
- adds slashes to urls, templates and tests
TODO
Add function to add slash to urls automatically
2013-09-17 02:39:55 +01:00
Hannah Wolfe
30a2cfe6e2
Clear the view cache completely
...
- directly clear the cache rather than relying on disabling it to clear it.
2013-09-17 02:26:28 +01:00
Hannah Wolfe
79f75865a1
Error handling for the frontend routes
2013-09-17 01:54:36 +01:00