2016-11-14 16:16:51 +03:00
|
|
|
/* eslint-disable camelcase */
|
2020-01-16 20:01:12 +03:00
|
|
|
import Model, {attr} from '@ember-data/model';
|
2016-05-24 15:06:59 +03:00
|
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
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'),
|
2019-12-17 14:07:34 +03:00
|
|
|
brand: attr('json-string'),
|
2017-05-31 18:01:46 +03:00
|
|
|
defaultLocale: attr('string'),
|
2016-06-10 16:28:11 +03:00
|
|
|
activeTimezone: attr('string', {defaultValue: 'Etc/UTC'}),
|
2019-03-05 13:40:19 +03:00
|
|
|
codeinjectionHead: attr('string'),
|
|
|
|
codeinjectionFoot: 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'),
|
2019-12-04 07:14:45 +03:00
|
|
|
secondaryNavigation: attr('navigation-settings', {isSecondary: true}),
|
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};
|
|
|
|
}
|
2019-02-26 06:29:57 +03:00
|
|
|
}),
|
2019-10-02 12:13:59 +03:00
|
|
|
defaultContentVisibility: attr('string'),
|
2019-08-21 18:16:59 +03:00
|
|
|
membersSubscriptionSettings: attr('string'),
|
2020-06-02 14:58:43 +03:00
|
|
|
stripeConnectIntegrationToken: attr('string'),
|
2019-08-21 18:16:59 +03:00
|
|
|
metaTitle: attr('string'),
|
|
|
|
metaDescription: attr('string'),
|
|
|
|
twitterTitle: attr('string'),
|
|
|
|
twitterDescription: attr('string'),
|
|
|
|
twitterImage: attr('string'),
|
|
|
|
ogTitle: attr('string'),
|
|
|
|
ogDescription: attr('string'),
|
2019-11-13 06:58:27 +03:00
|
|
|
ogImage: attr('string'),
|
2020-06-04 23:30:06 +03:00
|
|
|
bulkEmailSettings: attr('json-string'),
|
|
|
|
sharedViews: attr('string')
|
2014-06-20 06:29:49 +04:00
|
|
|
});
|