mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
96743e64cd
requires https://github.com/TryGhost/Ghost/pull/8093 - adds `theme.activate()` method and associated adapter method for activating themes rather than relying on `settings.activeTheme` - minor refactors to the `modals/upload-theme` component to use a full theme model
30 lines
929 B
JavaScript
30 lines
929 B
JavaScript
/* eslint-disable camelcase */
|
|
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'setting',
|
|
|
|
title: attr('string'),
|
|
description: attr('string'),
|
|
logo: attr('string'),
|
|
cover: attr('string'),
|
|
icon: attr('string'),
|
|
defaultLang: attr('string'),
|
|
postsPerPage: attr('number'),
|
|
forceI18n: attr('boolean'),
|
|
permalinks: attr('string'),
|
|
activeTimezone: attr('string', {defaultValue: 'Etc/UTC'}),
|
|
ghost_head: attr('string'),
|
|
ghost_foot: attr('string'),
|
|
facebook: attr('facebook-url-user'),
|
|
twitter: attr('twitter-url-user'),
|
|
labs: attr('string'),
|
|
navigation: attr('navigation-settings'),
|
|
isPrivate: attr('boolean'),
|
|
password: attr('string'),
|
|
slack: attr('slack-settings'),
|
|
amp: attr('boolean')
|
|
});
|