2016-11-14 14:16:51 +01:00
|
|
|
/* eslint-disable camelcase */
|
2016-01-12 20:23:01 +01:00
|
|
|
import Model from 'ember-data/model';
|
2016-05-24 14:06:59 +02:00
|
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
2017-05-29 20:50:03 +02:00
|
|
|
import attr from 'ember-data/attr';
|
2014-06-24 08:33:24 +02:00
|
|
|
|
2015-10-28 12:36:45 +01:00
|
|
|
export default Model.extend(ValidationEngine, {
|
2014-06-24 08:33:24 +02:00
|
|
|
validationType: 'setting',
|
|
|
|
|
2015-10-28 12:36:45 +01:00
|
|
|
title: attr('string'),
|
|
|
|
description: attr('string'),
|
|
|
|
logo: attr('string'),
|
2017-04-24 19:42:43 +02:00
|
|
|
coverImage: attr('string'),
|
2017-01-26 12:17:34 +01:00
|
|
|
icon: attr('string'),
|
2017-05-31 17:01:46 +02:00
|
|
|
defaultLocale: attr('string'),
|
2015-10-28 12:36:45 +01:00
|
|
|
forceI18n: attr('boolean'),
|
|
|
|
permalinks: attr('string'),
|
2016-06-10 15:28:11 +02:00
|
|
|
activeTimezone: attr('string', {defaultValue: 'Etc/UTC'}),
|
2017-04-24 19:42:43 +02:00
|
|
|
ghostHead: attr('string'),
|
|
|
|
ghostFoot: attr('string'),
|
2016-05-16 20:16:40 +02:00
|
|
|
facebook: attr('facebook-url-user'),
|
2016-03-03 09:52:27 +01:00
|
|
|
twitter: attr('twitter-url-user'),
|
2015-10-28 12:36:45 +01:00
|
|
|
labs: attr('string'),
|
2016-04-26 11:45:59 +02:00
|
|
|
navigation: attr('navigation-settings'),
|
2015-10-28 12:36:45 +01:00
|
|
|
isPrivate: attr('boolean'),
|
2016-03-29 10:40:44 +02:00
|
|
|
password: attr('string'),
|
2017-01-20 10:33:54 +01:00
|
|
|
slack: attr('slack-settings'),
|
2017-08-02 09:05:59 +02:00
|
|
|
amp: attr('boolean'),
|
2017-10-03 06:54:24 +02:00
|
|
|
unsplash: attr('unsplash-settings', {defaultValue() {
|
|
|
|
return {isActive: true};
|
|
|
|
}})
|
2014-06-20 04:29:49 +02:00
|
|
|
});
|