2016-11-14 14:16:51 +01:00
|
|
|
/* eslint-disable camelcase */
|
2020-01-16 18:01:12 +01:00
|
|
|
import Model, {attr} from '@ember-data/model';
|
2016-05-24 14:06:59 +02:00
|
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
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'),
|
2020-06-23 21:48:53 +02:00
|
|
|
accentColor: attr('string'),
|
2020-06-24 16:27:17 +02:00
|
|
|
lang: attr('string'),
|
2020-06-24 16:34:59 +02:00
|
|
|
timezone: attr('string', {defaultValue: 'Etc/UTC'}),
|
2019-03-05 11:40:19 +01:00
|
|
|
codeinjectionHead: attr('string'),
|
|
|
|
codeinjectionFoot: 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'),
|
2019-12-04 05:14:45 +01:00
|
|
|
secondaryNavigation: attr('navigation-settings', {isSecondary: true}),
|
2015-10-28 12:36:45 +01:00
|
|
|
isPrivate: attr('boolean'),
|
2017-10-05 11:59:14 +02:00
|
|
|
publicHash: attr('string'),
|
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-10 14:26:19 +02:00
|
|
|
unsplash: attr('unsplash-settings', {
|
|
|
|
defaultValue() {
|
|
|
|
return {isActive: true};
|
|
|
|
}
|
2019-02-26 04:29:57 +01:00
|
|
|
}),
|
2019-10-02 11:13:59 +02:00
|
|
|
defaultContentVisibility: attr('string'),
|
2019-08-21 17:16:59 +02:00
|
|
|
membersSubscriptionSettings: attr('string'),
|
2020-06-02 13:58:43 +02:00
|
|
|
stripeConnectIntegrationToken: attr('string'),
|
2020-06-11 15:15:44 +02:00
|
|
|
stripeConnectIntegration: attr('string'),
|
2019-08-21 17:16:59 +02: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 04:58:27 +01:00
|
|
|
ogImage: attr('string'),
|
2020-06-04 22:30:06 +02:00
|
|
|
bulkEmailSettings: attr('json-string'),
|
2020-06-19 18:06:49 +02:00
|
|
|
portalButton: attr('boolean'),
|
|
|
|
portalName: attr('boolean'),
|
|
|
|
portalPlans: attr('json-string'),
|
2020-06-04 22:30:06 +02:00
|
|
|
sharedViews: attr('string')
|
2014-06-20 04:29:49 +02:00
|
|
|
});
|