2015-02-13 05:22:32 +01:00
|
|
|
{
|
|
|
|
"name": "ghost",
|
|
|
|
"dependencies": {
|
2016-04-08 16:28:30 +02:00
|
|
|
"blueimp-md5": "2.3.0",
|
2016-05-31 16:38:51 +02:00
|
|
|
"codemirror": "5.15.2",
|
2015-04-27 20:03:43 +02:00
|
|
|
"devicejs": "0.2.7",
|
2016-06-09 17:41:16 +02:00
|
|
|
"ember": "2.6.0",
|
2016-03-31 11:13:15 +02:00
|
|
|
"ember-cli-shims": "0.1.1",
|
2016-02-04 11:35:59 +01:00
|
|
|
"ember-cli-test-loader": "0.2.2",
|
|
|
|
"ember-mocha": "0.8.11",
|
2016-04-08 16:36:37 +02:00
|
|
|
"Faker": "3.1.0",
|
2015-04-27 20:03:43 +02:00
|
|
|
"fastclick": "1.0.6",
|
2016-06-01 13:02:00 +02:00
|
|
|
"google-caja": "6005.0.0",
|
2016-04-20 13:18:47 +02:00
|
|
|
"jquery-deparam": "0.5.1",
|
2016-06-01 13:15:00 +02:00
|
|
|
"jquery-file-upload": "9.12.3",
|
2015-08-17 11:41:28 +02:00
|
|
|
"jquery-ui": "1.11.4",
|
2015-11-24 17:39:14 +01:00
|
|
|
"jqueryui-touch-punch": "furf/jquery-ui-touch-punch#4bc009145202d9c7483ba85f3a236a8f3470354d",
|
2015-09-16 19:02:06 +02:00
|
|
|
"jquery.simulate.drag-sortable": "0.1.0",
|
2015-04-27 20:03:43 +02:00
|
|
|
"keymaster": "1.6.3",
|
2015-11-30 19:23:47 +01:00
|
|
|
"lodash": "3.7.0",
|
2016-06-01 13:21:57 +02:00
|
|
|
"moment": "2.13.0",
|
Timezones: Always use the timezone of blog setting
closes TryGhost/Ghost#6406
follow-up PR of #2
- adds a `timeZone` Service to provide the offset (=timezone reg. moment-timezone) of the users blog settings
- `gh-datetime-input` will read the offset of the timezone now and adjust the `publishedAt` date with it. This is the date which will be shown in the PSM 'Publish Date' field. When the user writes a new date/time, the offset is considered and will be deducted again before saving it to the model. This way, we always work with a UTC publish date except for this input field.
- gets `availableTimezones` from `configuration/timezones` API endpoint
- adds a `moment-utc` transform on all date attr (`createdAt`, `updatedAt`, `publishedAt`, `unsubscribedAt` and `lastLogin`) to only work with UTC times on serverside
- when switching the timezone in the select box, the user will be shown the local time of the selected timezone
- `createdAt`-property in `gh-user-invited` returns now `moment(createdAt).fromNow()` as `createdAt` is a moment date already
- added clock service to show actual time ticking below select box
- default timezone is '(GMT) Greenwich Mean Time : Dublin, Edinburgh, London'
- if no timezone is saved in the settings yet, the default value will be used
- shows the local time in 'Publish Date' in PSM by default, until user overwrites it
- adds dependency `moment-timezone 0.5.4` to `bower.json`
---------
**Tests:**
- sets except for clock service in test env
- adds fixtures to mirage
- adds `service.ajax` and `service:ghostPaths` to navigation-test.js
- adds unit test for `gh-format-timeago` helper
- updates acceptance test `general-setting`
- adds acceptance test for `editor`
- adds integration tests for `services/config` and `services/time-zone`
---------
**Todos:**
- [ ] Integration tests: ~~`services/config`~~, ~~`services/time-zone`~~, `components/gh-datetime-input`
- [x] Acceptance test: `editor`
- [ ] Unit tests: `utils/date-formatting`
- [ ] write issue for renaming date properties (e. g. `createdAt` to `createdAtUTC`) and translate those for server side with serializers
2016-02-02 08:04:40 +01:00
|
|
|
"moment-timezone": "0.5.4",
|
2015-05-14 15:45:37 +02:00
|
|
|
"normalize.css": "3.0.3",
|
2016-04-19 21:18:37 +02:00
|
|
|
"password-generator": "2.0.2",
|
2016-06-01 13:26:56 +02:00
|
|
|
"pretender": "1.1.0",
|
2015-03-13 10:39:28 +01:00
|
|
|
"rangyinputs": "1.2.0",
|
2015-08-19 11:16:32 +02:00
|
|
|
"selectize": "~0.12.1",
|
2015-03-16 20:30:50 +01:00
|
|
|
"showdown-ghost": "0.3.6",
|
2016-03-30 20:45:20 +02:00
|
|
|
"validator-js": "3.39.0"
|
2015-02-13 05:22:32 +01:00
|
|
|
}
|
|
|
|
}
|