350e3d1481
closes https://github.com/TryGhost/Ghost/issues/8859, requires https://github.com/TryGhost/Ghost/pull/8895 - adds Unsplash app to app settings - enable/disable toggle - validation and testing of Unsplash App ID - Unsplash App ID field hidden if provided via Ghost config - adds `fetchPrivate` method to `config` service to pull config that requires authentication and updates authentication routines to fetch private config - adds Unsplash buttons to editor toolbar and `{{gh-image-uploader}}` - only present when Unsplash app is enabled - opens Unsplash image selector when clicked - `{{gh-image-uploader}}` has a new `allowUnsplash` attribute to control display of the unsplash button on a per-uploader basis - adds Unsplash image selector (`{{gh-unsplash}}`) - uses new `unsplash` service to handle API requests and maintain state - search - infinite scroll - zoom image - insert image - download image - adds `{{gh-scroll-trigger}}` that will fire an event when the component is rendered into or enters the visible screen area via scrolling - updates `ui` service - adds `isFullscreen` property and updates `gh-editor` so that it gets set/unset when toggling editor fullscreen mode - adds `hasSideNav` and `isSideNavHidden` properties - updates `media-queries` service so that it fires an event each time a breakpoint is entered/exited - removes the need for observers in certain circumstances
207 lines
5.0 KiB
JavaScript
207 lines
5.0 KiB
JavaScript
/* eslint-disable camelcase */
|
|
export default [
|
|
{
|
|
id: 1,
|
|
created_at: '2015-09-11T09:44:30.805Z',
|
|
created_by: 1,
|
|
key: 'title',
|
|
type: 'blog',
|
|
updated_at: '2015-10-04T16:26:05.195Z',
|
|
updated_by: 1,
|
|
value: 'Test Blog'
|
|
},
|
|
{
|
|
id: 2,
|
|
created_at: '2015-09-11T09:44:30.806Z',
|
|
created_by: 1,
|
|
key: 'description',
|
|
type: 'blog',
|
|
updated_at: '2015-10-04T16:26:05.198Z',
|
|
updated_by: 1,
|
|
value: 'Thoughts, stories and ideas.'
|
|
},
|
|
{
|
|
id: 3,
|
|
key: 'logo',
|
|
value: '/content/images/2013/Nov/logo.png',
|
|
type: 'blog',
|
|
created_at: '2013-11-25T14:48:11.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.273Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 4,
|
|
key: 'cover_image',
|
|
value: '/content/images/2014/Feb/cover.jpg',
|
|
type: 'blog',
|
|
created_at: '2013-11-25T14:48:11.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.276Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 5,
|
|
key: 'default_lang',
|
|
value: 'en_US',
|
|
type: 'blog',
|
|
created_at: '2013-11-25T14:48:11.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.278Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 7,
|
|
key: 'force_i18n',
|
|
value: 'true',
|
|
type: 'blog',
|
|
created_at: '2013-11-25T14:48:11.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.280Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 9,
|
|
key: 'permalinks',
|
|
value: '/:slug/',
|
|
type: 'blog',
|
|
created_at: '2014-01-14T12:01:51.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.282Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 10,
|
|
created_at: '2015-09-11T09:44:30.809Z',
|
|
created_by: 1,
|
|
key: 'ghost_head',
|
|
type: 'blog',
|
|
updated_at: '2015-09-23T13:32:49.858Z',
|
|
updated_by: 1,
|
|
value: ''
|
|
},
|
|
{
|
|
id: 11,
|
|
created_at: '2015-09-11T09:44:30.809Z',
|
|
created_by: 1,
|
|
key: 'ghost_foot',
|
|
type: 'blog',
|
|
updated_at: '2015-09-23T13:32:49.858Z',
|
|
updated_by: 1,
|
|
value: ''
|
|
},
|
|
{
|
|
id: 12,
|
|
key: 'labs',
|
|
value: '{"subscribers":true}',
|
|
type: 'blog',
|
|
created_at: '2015-01-12T18:29:01.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.288Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 13,
|
|
created_at: '2015-09-11T09:44:30.810Z',
|
|
created_by: 1,
|
|
key: 'navigation',
|
|
type: 'blog',
|
|
updated_at: '2015-09-23T13:32:49.868Z',
|
|
updated_by: 1,
|
|
value: JSON.stringify([
|
|
{label: 'Home', url: '/'},
|
|
{label: 'About', url: '/about'}
|
|
])
|
|
},
|
|
{
|
|
id: 14,
|
|
created_at: '2015-09-11T09:44:30.810Z',
|
|
created_by: 1,
|
|
key: 'is_private',
|
|
type: 'blog',
|
|
updated_at: '2015-09-23T13:32:49.868Z',
|
|
updated_by: 1,
|
|
value: false
|
|
},
|
|
{
|
|
id: 15,
|
|
created_at: '2015-09-11T09:44:30.810Z',
|
|
created_by: 1,
|
|
key: 'password',
|
|
type: 'blog',
|
|
updated_at: '2015-09-23T13:32:49.868Z',
|
|
updated_by: 1,
|
|
value: ''
|
|
},
|
|
{
|
|
id: 16,
|
|
created_at: '2016-05-05T15:04:03.115Z',
|
|
created_by: 1,
|
|
key: 'slack',
|
|
type: 'blog',
|
|
updated_at: '2016-05-05T18:33:09.168Z',
|
|
updated_by: 1,
|
|
value: '[{"url":""}]'
|
|
},
|
|
{
|
|
id: 17,
|
|
created_at: '2016-05-05T15:40:12.133Z',
|
|
created_by: 1,
|
|
key: 'facebook',
|
|
type: 'blog',
|
|
updated_at: '2016-05-08T15:20:25.953Z',
|
|
updated_by: 1,
|
|
value: 'test'
|
|
},
|
|
{
|
|
id: 18,
|
|
created_at: '2016-05-05T15:40:12.134Z',
|
|
created_by: 1,
|
|
key: 'twitter',
|
|
type: 'blog',
|
|
updated_at: '2016-05-08T15:20:25.954Z',
|
|
updated_by: 1,
|
|
value: '@test'
|
|
},
|
|
{
|
|
id: 19,
|
|
created_at: '2015-09-11T09:44:30.810Z',
|
|
created_by: 1,
|
|
key: 'active_timezone',
|
|
type: 'blog',
|
|
updated_at: '2015-09-23T13:32:49.868Z',
|
|
updated_by: 1,
|
|
value: 'Etc/UTC'
|
|
},
|
|
{
|
|
id: 21,
|
|
created_at: '2017-01-09T08:40:59.000Z',
|
|
created_by: 1,
|
|
key: 'amp',
|
|
type: 'blog',
|
|
updated_at: '2017-01-09T08:49:42.991Z',
|
|
updated_by: 1,
|
|
value: 'true'
|
|
},
|
|
{
|
|
id: 22,
|
|
key: 'icon',
|
|
value: '/content/images/2014/Feb/favicon.ico',
|
|
type: 'blog',
|
|
created_at: '2013-11-25T14:48:11.000Z',
|
|
created_by: 1,
|
|
updated_at: '2015-10-27T17:39:58.276Z',
|
|
updated_by: 1
|
|
},
|
|
{
|
|
id: 23,
|
|
created_at: '2017-08-11T06:38:10.000Z',
|
|
created_by: 1,
|
|
key: 'unsplash',
|
|
type: 'blog',
|
|
updated_at: '2017-08-11T08:00:14.000Z',
|
|
updated_by: 1,
|
|
value: '{"applicationId":"","isActive":false}'
|
|
}
|
|
];
|