John O'Nolan
19272a03cc
New post title placeholder
2013-09-14 23:18:35 +01:00
Hannah Wolfe
b902f8109c
Renaming default to defaultValue as default is reserved
2013-09-14 22:39:31 +01:00
Hannah Wolfe
9fcc0a6ed6
Renamed currentVersion setting to databaseVersion to avoid confusion with software version
2013-09-14 22:13:59 +01:00
Hannah Wolfe
d968495996
Mass renaming of things
...
Conflicts:
core/client/views/settings.js
core/server/models/user.js
2013-09-14 21:56:07 +01:00
John O'Nolan
f5216db326
Fix favicon reference
2013-09-14 21:03:51 +01:00
Hannah Wolfe
d587a845d4
Set migrations to use new 000 schema
...
issue #632
- removed old schemas
- updated base model to reflect all of the consistent behaviours and properties across the models
- updated all models to match the new schema
TODO
- no fixtures are currently loaded except settings
- need to rename properties across the codebase
2013-09-14 20:01:46 +01:00
Hannah Wolfe
72229fa8ea
Adding the new schema - it doesn't do anything yet
...
issue #632
- shiny new 000 file contains the new much more detailed schema
2013-09-14 19:17:41 +01:00
Hannah Wolfe
70824a247f
Merge branch 'migrations-003' into new-version
...
Conflicts:
.gitignore
config.example.js
core/server/models/post.js
package.json
2013-09-14 19:15:04 +01:00
Hannah Wolfe
0b1ffcd1f5
Updating settings types
...
- issue #573 , issue #632
2013-09-14 19:04:41 +01:00
Hannah Wolfe
dea7ac56ac
Fixing config path in email
2013-09-14 18:34:21 +01:00
Hannah Wolfe
3fab1f708a
Merge pull request #728 from skattyadz/default-settings-validations
...
Conflicts:
Gruntfile.js
core/server.js
core/server/data/default-settings.json
core/test/unit/admin_spec.js
2013-09-14 14:37:52 +01:00
Adam Howard
3823d10c35
Restructure default-settings.json and add validations to important settings.
2013-09-14 14:29:27 +01:00
Hannah Wolfe
ae8b0045da
Merge pull request #707 from sebgie/stable-db-version
2013-09-14 14:09:07 +01:00
Hannah Wolfe
21df506c47
Moving default location of the Database
...
closes #579
- adding a readme to the content/data folder to make sure it is always created
- also fixes a rebasing error
2013-09-14 14:08:56 +01:00
Sebastian Gierlinger
7aca800f53
Remove path from activeTheme
...
no issue
- obvious
2013-09-14 14:08:38 +01:00
Hannah Wolfe
63d8cbb87c
Unit tests require config file to be present.
...
Conflicts:
Gruntfile.js
core/test/unit/admin_spec.js
2013-09-14 14:07:05 +01:00
Hannah Wolfe
4210c03ec8
Removing config.js
...
closes #376
- was already added to .gitignore
2013-09-14 14:05:39 +01:00
Hannah Wolfe
506ce91a5b
Merge pull request #695 from skattyadz/issue-376
2013-09-14 14:04:29 +01:00
Adam Howard
c5fa7ae1a6
Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact.
...
Extracts all express-server-related code in index.js to core/server.js, leaving index.js purely for booting up Ghost's core components in a sensible order.
Aside from the project's tidiness, this means that we can perform asynchronous configuration loading/checks before requiring any modules that read the config.
2013-09-14 14:04:08 +01:00
Hannah Wolfe
5f0d8c63d0
Merge pull request #690 from sebgie/issue#628
2013-09-14 13:58:50 +01:00
Sebastian Gierlinger
35a32279d9
Clean up config (drop 'env')
...
closes #628
- removed .env from config.js
- ghost.config() returns correct config for NODE_ENV
- removed .env[process.env.NODE_ENV]
- updated tests
- deleted users.hbs, plugins.hbs, appearance.hbs (forgot to delete in PR #649 )
2013-09-14 13:14:00 +01:00
Hannah Wolfe
486c2b4eea
Use software version in RSS
...
closes #723
Still waiting on https://github.com/dylang/node-rss/pull/16 to get this to actually output
2013-09-14 12:12:27 +01:00
Hannah Wolfe
406c6d0dea
Merge pull request #711 from javorszky/iss-581
...
Added client side validation
2013-09-14 03:11:11 -07:00
Gabor Javorszky
6c99b67ab3
Added client side validation
...
Closes #581 .
* Basically adds the client side of node validator, that we're already using
* Validator is plonked onto `Ghost.Validator`
* Usage is identical as to https://github.com/chriso/node-validator
* Has sanitizing values et al
* `Ghost.Validator.error` is redefined, it populates Ghost.Validator._errors (Array)
* `Ghost.Validator.handleErrors` is supposed to print out the multiple error messages, if there are multiple (this is broken due to how notifications are presented `.html` instead of `.append`), and also apply class to element
* The ajax calls are wrapped in an if to prevent network traffic if something's not right on client side
* Added validation to general settings and user settings screens.
* On validation error, optionally adds `.input-error` to whatever element you reference, see below (if `el` exists on the error object). This is the only place where usage is different to the original implementation. Redeclared `error()` function in `init.js`
* Usage: `Ghost.Validate.check(valueToCheck, {message: "the error message", el: $('#the element')}).isEmail()`
* The element above will receive the `.input-error` class. `isEmail()` is one of the stuff you can check against.
2013-09-14 10:52:27 +01:00
Hannah Wolfe
d00392973f
Merge pull request #727 from sethlilly/issue-700
...
Replaced default user image for navbar
2013-09-13 14:32:36 -07:00
Hannah Wolfe
486b2406b1
Merge pull request #722 from ericterpstra/370-post-settings-permalink
...
Added post-settings menu with edit permalink field
2013-09-13 14:31:49 -07:00
Seth Lilly
3ca843e962
Replaced default user image for navbar
...
Replaced default user image for navbar
closes #700
- Replaced photo of John (sorry, man) with a smaller version of the default heart user photo
2013-09-13 16:48:04 -04:00
Hannah Wolfe
420986de62
Updating tag saving logic to never save duplicates
2013-09-13 21:38:53 +01:00
ericterpstra
e2bc5257a6
Added post-settings menu with edit permalink field
...
closes #370
- Added new Backbone view for post settings menu
- Moved sass styles to global.scss for post settings menu items
- Added field to change post slug (permalink) using existing slug
validation
2013-09-13 12:36:38 -05:00
Hannah Wolfe
003f9d2048
Fixing tests
2013-09-13 17:29:01 +01:00
Hannah Wolfe
e9d2646997
Refactoring tests to always run as expected
...
closes #721
- we now have grunt test-unit for safely running unit tests.
2013-09-13 15:12:38 +01:00
Hannah Wolfe
01f6551bf2
Small model update for tags and users
...
- tags are now created with uuid & timestamps
- user role is no longer a model, just a join done with attach
2013-09-13 15:06:17 +01:00
Hannah Wolfe
dd7e04e9a5
Merge pull request #720 from skattyadz/issue-658
...
Fix bug preventing tags from being saved when a Post is created.
2013-09-13 06:43:37 -07:00
Adam Howard
f6b86a98ff
Fix bug preventing tags from being saved when a Post is created.
...
Fixes #658
2013-09-13 14:30:22 +01:00
Hannah Wolfe
7d3eb512f6
Unit tests require config file to be present.
2013-09-13 08:24:28 +01:00
Hannah Wolfe
c82ebb15d8
Merge pull request #712 from cobbspur/redirecttosignup
...
Redirects to signup if there is no user
2013-09-12 15:07:08 -07:00
cobbspur
9d6f2b8185
Redirects to signup if there is no user
...
closes #653
- adds redirectToSignup function
- if there is no user then /ghost/ and /ghost/signin/ redirect to /ghost/signup/
2013-09-12 22:59:38 +01:00
Hannah Wolfe
8cea12e728
Merge branch 'master' into stable-db-version
2013-09-12 22:08:23 +01:00
Hannah Wolfe
762dcb2334
Adding missing file
2013-09-12 22:04:28 +01:00
Hannah Wolfe
c9556abd31
Ensuring content/images is present
...
- removed the two old core/content READMEs which serve little purpose
2013-09-12 22:01:59 +01:00
Hannah Wolfe
147951c59c
Reverting some markdown fixes
...
issue #644
- this caused more trouble than it was worth, will revisit
2013-09-12 21:49:29 +01:00
Hannah Wolfe
eb15a37850
Gruntfile cleanup
2013-09-12 21:03:01 +01:00
John O'Nolan
60635991db
Added option for large buttons
2013-09-12 18:34:21 +02:00
Hannah Wolfe
aa60a6386f
Moving default location of the Database
...
closes #579
- adding a readme to the content/data folder to make sure it is always created
- also fixes a rebasing error
2013-09-12 15:51:55 +01:00
Hannah Wolfe
53a55fd46f
Removing config.js
...
closes #376
- was already added to .gitignore
2013-09-12 15:44:46 +01:00
Hannah Wolfe
8c9bcf661f
Merge pull request #707 from sebgie/stable-db-version
...
Remove path from activeTheme
2013-09-12 07:40:37 -07:00
Hannah Wolfe
6307e4f3dc
Merge pull request #695 from skattyadz/issue-376
2013-09-12 15:38:46 +01:00
Adam Howard
00199cee67
Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact.
...
Extracts all express-server-related code in index.js to core/server.js, leaving index.js purely for booting up Ghost's core components in a sensible order.
Aside from the project's tidiness, this means that we can perform asynchronous configuration loading/checks before requiring any modules that read the config.
2013-09-12 15:38:11 +01:00
Hannah Wolfe
4f05888079
Merge pull request #690 from sebgie/issue#628
2013-09-12 15:27:43 +01:00
Sebastian Gierlinger
212521712d
Clean up config (drop 'env')
...
closes #628
- removed .env from config.js
- ghost.config() returns correct config for NODE_ENV
- removed .env[process.env.NODE_ENV]
- updated tests
- deleted users.hbs, plugins.hbs, appearance.hbs (forgot to delete in PR #649 )
2013-09-12 15:25:58 +01:00