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