2015-02-13 07:22:32 +03:00
|
|
|
{
|
|
|
|
"name": "ghost",
|
|
|
|
"dependencies": {
|
2016-04-08 17:28:30 +03:00
|
|
|
"blueimp-md5": "2.3.0",
|
2016-05-31 17:38:51 +03:00
|
|
|
"codemirror": "5.15.2",
|
2015-04-27 21:03:43 +03:00
|
|
|
"devicejs": "0.2.7",
|
2016-06-29 11:28:40 +03:00
|
|
|
"ember": "2.6.1",
|
2016-03-31 12:13:15 +03:00
|
|
|
"ember-cli-shims": "0.1.1",
|
2016-02-04 13:35:59 +03:00
|
|
|
"ember-cli-test-loader": "0.2.2",
|
|
|
|
"ember-mocha": "0.8.11",
|
2016-04-08 17:36:37 +03:00
|
|
|
"Faker": "3.1.0",
|
2015-04-27 21:03:43 +03:00
|
|
|
"fastclick": "1.0.6",
|
2016-06-01 14:02:00 +03:00
|
|
|
"google-caja": "6005.0.0",
|
2016-04-20 14:18:47 +03:00
|
|
|
"jquery-deparam": "0.5.1",
|
2016-06-01 14:15:00 +03:00
|
|
|
"jquery-file-upload": "9.12.3",
|
2015-08-17 12:41:28 +03:00
|
|
|
"jquery-ui": "1.11.4",
|
2015-11-24 19:39:14 +03:00
|
|
|
"jqueryui-touch-punch": "furf/jquery-ui-touch-punch#4bc009145202d9c7483ba85f3a236a8f3470354d",
|
2015-09-16 20:02:06 +03:00
|
|
|
"jquery.simulate.drag-sortable": "0.1.0",
|
2015-04-27 21:03:43 +03:00
|
|
|
"keymaster": "1.6.3",
|
2015-11-30 21:23:47 +03:00
|
|
|
"lodash": "3.7.0",
|
2016-06-01 14:21:57 +03: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 10:04:40 +03:00
|
|
|
"moment-timezone": "0.5.4",
|
2015-05-14 16:45:37 +03:00
|
|
|
"normalize.css": "3.0.3",
|
2016-04-19 22:18:37 +03:00
|
|
|
"password-generator": "2.0.2",
|
2016-06-01 14:26:56 +03:00
|
|
|
"pretender": "1.1.0",
|
2015-03-13 12:39:28 +03:00
|
|
|
"rangyinputs": "1.2.0",
|
2015-08-19 12:16:32 +03:00
|
|
|
"selectize": "~0.12.1",
|
2015-03-16 22:30:50 +03:00
|
|
|
"showdown-ghost": "0.3.6",
|
2016-03-30 21:45:20 +03:00
|
|
|
"validator-js": "3.39.0"
|
2015-02-13 07:22:32 +03:00
|
|
|
}
|
|
|
|
}
|