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