Commit Graph

2598 Commits

Author SHA1 Message Date
Kevin Ansfield
7c2e923074 Rename "offset" to "blogTimezone"
refs https://github.com/TryGhost/Ghost/pull/6941#issuecomment-224553575
- `blogTimezone` and `timezone` better reflect their values (a string representing a timezone in the format `Europe/Dublin`) than `offset` which suggests a fixed value
2016-06-08 12:09:19 +01:00
Austin Burdine
bec486f542 Merge pull request #16 from TryGhost/deps-ember-ajax
deps: ember-ajax@2.4.1
2016-06-06 09:39:18 -06:00
Kevin Ansfield
0c79ff3365 deps: ember-ajax@2.4.1
no issue
- update ember-ajax
- update error handling to match recommended approach
- update error normalization for handling a returned array of strings
2016-06-06 11:54:15 +01:00
Kevin Ansfield
8d12b6bb91 Version bump to 0.9.0-beta1 2016-06-06 10:21:16 +01:00
Kevin Ansfield
c74c937b40 Merge pull request #43 from TryGhost/greenkeeper-ember-one-way-controls-0.8.2
Update ember-one-way-controls to version 0.8.2 🚀
2016-06-04 14:33:33 +01:00
greenkeeperio-bot
11aa59356a chore(package): update ember-one-way-controls to version 0.8.2
https://greenkeeper.io/
2016-06-04 13:57:12 +01:00
Austin Burdine
bebcc49073 Merge pull request #42 from TryGhost/greenkeeper-ember-one-way-controls-0.8.1
Update ember-one-way-controls to version 0.8.1 🚀
2016-06-04 03:30:22 -06:00
greenkeeperio-bot
580961f915 chore(package): update ember-one-way-controls to version 0.8.1
https://greenkeeper.io/
2016-06-04 10:05:55 +01:00
Hannah Wolfe
9ab3cae6c9 Merge pull request #40 from kevinansfield/package-json
Update package.json details, rename module to `ghost-admin`
2016-06-03 17:39:30 +01:00
Kevin Ansfield
d53ef125e0 Update package.json details, rename module to ghost-admin
no issue
- updates `package.json` details to better reflect the separation from the `Ghost` package
- update ember config and all import statements to reflect the new `ghost-admin` module name in `package.json`
2016-06-03 16:12:54 +01:00
Kevin Ansfield
b1987e586c Merge pull request #29 from AileenCGN/timezones-finish-up
Always use the timezone of blog setting
2016-06-03 15:32:35 +01:00
Aileen Nowak
24e71ffdaa 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-06-03 16:23:39 +02:00
Hannah Wolfe
b9864114ea Merge pull request #39 from kevinansfield/version-header-fixes
Minor version header fixes
2016-06-03 15:16:33 +01:00
Kevin Ansfield
5e9cec8384 Minor version header fixes
refs #38
- use same version regex as `safeVersion` does on the server
- remove errant `console.log` from store service test
2016-06-03 14:47:47 +01:00
Austin Burdine
c854dacefe Merge pull request #38 from kevinansfield/version-header
Add version header to API requests
2016-06-03 05:09:18 -06:00
Kevin Ansfield
4cc4781b3e Add version header to API requests
no issue
- modifies the version info included in `env.APP.version` to only include the `major.minor` version numbers
- update base adapter to include `X-Ghost-Version` header
- update `ajax` service to include `X-Ghost-Version` header
2016-06-03 11:53:29 +01:00
Austin Burdine
a4d519d20c Merge pull request #33 from kevinansfield/bower-deps
Bower dependency updates
2016-06-02 21:34:56 -06:00
Hannah Wolfe
31947d24bc Merge pull request #36 from kevinansfield/linting
Add Gruntfile.js, setup linting task and Travis build
2016-06-02 17:32:44 +01:00
Kevin Ansfield
a2a041db2a Add Gruntfile.js, setup linting task and Travis build
refs #23
- add `grunt lint`
- add lint build to Travis matrix
2016-06-02 17:19:30 +01:00
Kevin Ansfield
55cb0f1dbe Merge pull request #35 from TryGhost/greenkeeper-ember-wormhole-0.3.6
Update ember-wormhole to version 0.3.6 🚀
2016-06-02 16:55:24 +01:00
greenkeeperio-bot
dd25a24c3a chore(package): update ember-wormhole to version 0.3.6
https://greenkeeper.io/
2016-06-02 16:36:38 +01:00
Kevin Ansfield
8c58424bfe deps: pretender@1.1.0 2016-06-01 12:26:56 +01:00
Kevin Ansfield
1fd0981f3b deps: moment@2.13.0 2016-06-01 12:21:57 +01:00
Kevin Ansfield
20989bcf57 deps: jquery-file-upload@9.12.3 2016-06-01 12:15:00 +01:00
Kevin Ansfield
e1d5dfa971 deps: google-caja@6005.0.0 2016-06-01 12:02:00 +01:00
Kevin Ansfield
c56f22122f deps: codemirror@5.15.2 2016-06-01 11:50:18 +01:00
Kevin Ansfield
65e04bf61d Merge pull request #31 from TryGhost/greenkeeper-ember-power-select-0.10.10
Update ember-power-select to version 0.10.10 🚀
2016-05-31 15:38:51 +01:00
greenkeeperio-bot
215fc70e86 chore(package): update ember-power-select to version 0.10.10
https://greenkeeper.io/
2016-05-31 15:28:59 +01:00
Hannah Wolfe
3e64cbe5f9 Merge pull request #27 from kevinansfield/improve-file-upload-tests
Improve uploader tests + test subscribers CSV import
2016-05-27 19:29:07 +01:00
Kevin Ansfield
66ed2a02df Improve uploader tests + test subscribers CSV import
no issue
- override `x-file-input` in `gh-file-input` to look for a custom property on the change event if we are in testing mode (this is necessary because Ember 2.5+ use native rather than jQuery events so `target.files` is readonly, see https://github.com/emberjs/ember.js/issues/13540)
- migrate unit tests for the uploader components to the integration tests
- add skipped acceptance tests for the subscribers CSV import now that it's possible to simulate file uploads
2016-05-27 13:34:31 +01:00
Hannah Wolfe
faf24e4f4f Merge pull request #26 from kevinansfield/remove-search-outline
Remove outline from search input
2016-05-25 18:20:49 +01:00
Kevin Ansfield
3e1087f80f Remove outline from search input
no issue
- remove the outline that is shown on the search input once the dropdown box has closed
- remove unused styles for the old selectize-based search input
2016-05-25 10:52:21 +01:00
Austin Burdine
a64169dee1 Merge pull request #24 from TryGhost/greenkeeper-ember-power-select-0.10.9
Update ember-power-select to version 0.10.9 🚀
2016-05-24 11:57:28 -06:00
greenkeeperio-bot
5c3ae0fec2 chore(package): update ember-power-select to version 0.10.9
https://greenkeeper.io/
2016-05-24 17:32:07 +01:00
Kevin Ansfield
f8a3e84b56 Merge pull request #21 from TryGhost/greenkeeper-ember-cli-htmlbars-inline-precompile-0.3.2
Update ember-cli-htmlbars-inline-precompile to version 0.3.2 🚀
2016-05-23 12:14:02 +01:00
greenkeeperio-bot
6c323c62c9 chore(package): update ember-cli-htmlbars-inline-precompile to version 0.3.2
https://greenkeeper.io/
2016-05-23 12:04:43 +01:00
Kevin Ansfield
f60d28470d Merge pull request #22 from TryGhost/greenkeeper-ember-cli-htmlbars-1.0.8
Update ember-cli-htmlbars to version 1.0.8 🚀
2016-05-23 12:04:29 +01:00
Kevin Ansfield
08fa7bd4a7 Rename PULL_REQUEST_TEMPLATE to PULL_REQUEST_TEMPLATE.md 2016-05-23 10:50:15 +01:00
Kevin Ansfield
97e16ed09f Create PULL_REQUEST_TEMPLATE 2016-05-23 10:49:08 +01:00
greenkeeperio-bot
1ee20be51e chore(package): update ember-cli-htmlbars to version 1.0.8
https://greenkeeper.io/
2016-05-22 23:18:02 +01:00
Kevin Ansfield
9aa1c5e742 Merge pull request #3 from TryGhost/greenkeeper-update-all
Update all dependencies 🌴
2016-05-22 09:56:28 +01:00
greenkeeperio-bot
b2277244d6 chore(package): update dependencies
https://greenkeeper.io/
2016-05-22 09:42:57 +01:00
Kevin Ansfield
06ad2eed55 Merge pull request #14 from TryGhost/greenkeeper-ember-cli-jshint-1.0.3
Update ember-cli-jshint to version 1.0.3 🚀
2016-05-22 09:35:21 +01:00
greenkeeperio-bot
a921a14e2d chore(package): update ember-cli-jshint to version 1.0.3
https://greenkeeper.io/
2016-05-22 09:27:48 +01:00
Kevin Ansfield
fb0b1631a7 Merge pull request #12 from TryGhost/greenkeeper-loader.js-4.0.7
Update loader.js to version 4.0.7 🚀
2016-05-22 09:27:34 +01:00
greenkeeperio-bot
d47ef4393a chore(package): update loader.js to version 4.0.7
https://greenkeeper.io/
2016-05-21 02:31:44 +01:00
Austin Burdine
e54da7314b Merge pull request #15 from TryGhost/greenkeeper-ember-cli-2.5.1
Update ember-cli to version 2.5.1 🚀
2016-05-20 19:31:30 -06:00
greenkeeperio-bot
f80404c495 chore(package): update ember-cli to version 2.5.1
https://greenkeeper.io/
2016-05-20 16:30:21 +01:00
Kevin Ansfield
2e9934ce2e Merge pull request #10 from TryGhost/greenkeeper-ember-cli-htmlbars-1.0.7
Update ember-cli-htmlbars to version 1.0.7 🚀
2016-05-20 12:24:45 +01:00
greenkeeperio-bot
514008ad01 chore(package): update ember-cli-htmlbars to version 1.0.7
https://greenkeeper.io/
2016-05-20 06:11:11 +01:00