1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-23 19:02:29 +03:00
Commit Graph

32067 Commits

Author SHA1 Message Date
Hannah Wolfe
9d19af7928 Merge pull request from jgable/disableCacheOnAPI
Disable caching of API requests via middleware
2013-06-24 04:49:07 -07:00
Jacob Gable
8099396062 Disable caching of API requests via middleware
Added a simple middleware to the api routes that disables caching via
headers.
2013-06-23 17:00:33 -05:00
Jacob Gable
4810f410c4 Fix settings multi save
We were not undelegating our events on the element which was causing the
view to live on indefinitely in the background with its events still
bound.
2013-06-23 16:25:34 -05:00
Jacob Gable
2b7d0f054d Import and Export UI
Added a basic UI and implementation for importing and exporting data.
Hooked up the routes and tested importing and exporting a version 001
file.

Slipped in the TemplateView in base.js but didn't end up using it.  I
think it will encapsulate common logic for template views pretty well.

Should close .
2013-06-23 16:06:57 -05:00
Hannah Wolfe
e953aac252 Merge pull request from cobbspur/helpers2
closes  foreach column parameter
2013-06-23 10:04:48 -07:00
cobbspur
bf9c55a6fb closes foreach column parameter
- adds keys @rowStart and @rowEnd in foreach helper based on an argument passed in for the number of columns desired
- added setKeys function to remove  duplication code
2013-06-23 16:46:02 +01:00
Hannah Wolfe
510950595f Merge pull request from cobbspur/tabindex
closes  tabindex bug
2013-06-23 04:48:46 -07:00
cobbspur
d1351dc8a3 closes tabindex bug
- fixes tabindex issue on editor page
2013-06-23 11:49:30 +01:00
Hannah Wolfe
b7c1ed2aef Merge pull request from matthojo/template-moving
Updated reference to templates in Backbone views
2013-06-22 09:57:39 -07:00
Matthew Harrison-Jones
23d317ed3e Updated reference to templates in Backbone views 2013-06-22 16:50:59 +01:00
Hannah Wolfe
36a2be3abc Merge branch 'master' into version-0.2.0 2013-06-22 15:54:22 +01:00
Hannah Wolfe
ae58257630 Freezing dependency versions
Updating package.json with full version numbers so that we can be certain
this version will continue to work in future
2013-06-22 15:23:36 +01:00
Gabor Javorszky
07cbe984ae Fix forge returning null on empty fetch
Closes . It got broken because of a9c4a5409e
2013-06-22 13:49:32 +01:00
Hannah Wolfe
ecde2f078a Merge pull request from javorszky/iss184
Fix forge returning null on empty fetch
2013-06-22 05:44:38 -07:00
Gabor Javorszky
e40eb12a51 Fix forge returning null on empty fetch
Closes . It got broken because of a9c4a5409e
2013-06-22 13:43:01 +01:00
Hannah Wolfe
2621de54a0 Merge pull request from jgable/suppressLoginNotification
Suppress login notification if navigating to /ghost
2013-06-19 14:42:21 -07:00
Hannah Wolfe
c643976bab Merge pull request from matthojo/Input-Border-Fix
Fixes transitions on input elements and other globals not working in Firefox
2013-06-19 14:42:01 -07:00
Hannah Wolfe
28574e29c7 Merge pull request from jgable/renameTmpl
Rename tmpl directory to tpl and remove content level. closes 
2013-06-19 14:29:04 -07:00
Hannah Wolfe
5cb2f60cc5 Merge pull request from matthojo/Notification-Dismissal
Notifications can now be dismissed via click / tap
2013-06-19 14:23:58 -07:00
Jacob Gable
ccdb63cc71 Rename tmpl directory to tpl and remove content level
Should close .
2013-06-19 15:24:07 -05:00
Jacob Gable
063cf6a003 Suppress login notification if navigating to /ghost
Added a simple regex check of the requesting url.  Put a placeholder in
in case you want to do some more checking and show a different message.

Should close .
2013-06-19 15:22:03 -05:00
Hannah Wolfe
bc3b8541ab Milestone 0.1.1 version bump commit & updated Casper reference to match 2013-06-18 22:42:30 +01:00
Hannah Wolfe
f5e46449ef closes - deployments
Added a standard grunt build task for doing deploys, this works in tandem with the ghost-deploy.sh script
Switched grunt-zip for grunt-contrib-compress as it seems more stable/reliable
2013-06-18 22:28:30 +01:00
Matthew Harrison-Jones
26d57fbb17 Fixes transitions on input elements and other globals not working in Firefox
Removed unnecessary :focus transition style and updated actual transitions to Bourbon syntax.
2013-06-18 13:37:16 +01:00
John O'Nolan
ce6ea8cd66 Updating readme to be more targeted at 0.2 developer access 2013-06-18 11:01:04 +02:00
Hannah Wolfe
d15f1f8961 closes - data model updates
Further changes to the data model to ensure created_by, author_id and updated_by are all set to user 1
Updated settings such that the default type is always 'general', and changed the types in the fixtures to be slightly more useful
Added additional assertions to tests to cover more assumptions about data
2013-06-17 23:59:08 +01:00
Hannah Wolfe
316985feab Pointer to Casper updated
Casper has been updated to match the name change of ghostGlobals to
settings
2013-06-17 23:36:12 +01:00
Hannah Wolfe
d0eace2d36 Merge pull request from ErisDS/settings-cache
Settings cache & clean up "ghostGlobals"
2013-06-17 15:33:18 -07:00
Hannah Wolfe
50eb91fe51 issue - reloading settings
- ghost.js - split the settings loading out of ghost.init, so that we have a function for loading / reloading settings
- api.js - implemented a new requestHandler, the cachedSettingsRequestHandler which handles all aspects of local caching for settings when making requests
- app.js - updated the settings api routes to use the new cached request handler
2013-06-17 23:24:05 +01:00
Hannah Wolfe
32bbf2ba57 issue , issue - cleaning up ghostGlobals
- ghost.js - globals/globalConfig has become settings / settingsCache to make it clearer
- app.js - the ghostGlobals local cache is gone, and the use of res.locals has been cleaned up and simplified, although this needs to be properly split into frontend and admin locals (to be finished in )
- frontend/index.js - doesn't need to be passed globals and nav properties as res.locals does this for us
2013-06-17 23:12:13 +01:00
John O'Nolan
cdb9ecab76 Merge pull request from matthojo/Input-fix
Restore rounded corners on form inputs, fixes 
2013-06-17 06:54:48 -07:00
Matthew Harrison-Jones
b46ac790ab Fixes wrong conversion from Compass to Bourbon. 2013-06-17 14:49:37 +01:00
Hannah Wolfe
f58c8eb6c3 Merge pull request from jgable/exportData
Data import and export
2013-06-17 01:19:48 -07:00
Hannah Wolfe
8d8a6e0949 Wiring up the content settings panel to save blog description
Also cleaned up a bit of broken markup
2013-06-16 22:47:10 +01:00
Hannah Wolfe
0d5b6e8915 Added consistent error handling throughout the models 2013-06-16 22:36:28 +01:00
Hannah Wolfe
0a500bd104 Updating Casper reference to point to todays changes. 2013-06-16 20:49:47 +01:00
Matthew Harrison-Jones
14aabec80c Notifications can now be dismissed via click / tap 2013-06-16 19:45:16 +01:00
Hannah Wolfe
0f0769ab2b issue - init ordering and error handling
reordering init so that settings are always loaded after the db is initialised
adding error handling to promises
2013-06-16 17:14:01 +01:00
Hannah Wolfe
382da5daf0 Adding a test for published at. 2013-06-16 16:09:54 +01:00
Hannah Wolfe
74dc64f1a3 Merge pull request from cobbspur/helpers
Adding core helper function
2013-06-16 06:33:05 -07:00
cobbspur
b9e1ddcb2e Adds handlerbars helper 'foreach'
Function allows you to iterate through an array or object  in handlebars
Sets Key Values for @first/ @last entry and @odd/@even to true/false
2013-06-16 14:12:28 +01:00
ErisDS
17c8c02eae closes - published order
Fixes the knex query so that posts are correctly returned in the order of published_at, desc
2013-06-16 12:21:49 +01:00
Hannah Wolfe
49999a7f15 Merge pull request from javorszky/iss132
/register/ => /signup/
2013-06-16 01:45:57 -07:00
John O'Nolan
b278ed6aa7 Merge pull request from matthojo/Users-Settings
Refactored users settings page - see 
2013-06-16 01:33:51 -07:00
Hannah Wolfe
49f6cc92d4 Merge pull request from tgriesser/published_at
Setting published_at when post changes to published status.
2013-06-16 01:33:24 -07:00
Tim Griesser
fad7087cd1 Setting published_at when post changes to published status 2013-06-15 19:24:27 -04:00
Jacob Gable
0c4ccc284b Data import and export 2013-06-15 20:52:32 +00:00
Hannah Wolfe
1369789aec closes - Updating Grunt
Grunt tasks are now hopefully a little bit less confusing
Have updated the readme to match
2013-06-15 19:33:52 +01:00
Gabor Javorszky
78cbaf0387 /register/ => /signup/
Fixes issue . Also added `js-login-container` class to the
signup box, as it wasn't faded in due to javascript not picking
up the element.
2013-06-15 19:16:15 +01:00
Hannah Wolfe
7b932b9986 Merge pull request from jgable/fixDeployPaths
Fix relative paths for deployment
2013-06-15 10:53:48 -07:00