mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
f0c6aec36d
closes #2277 - Added ES6 linting to core/client/ - Fix typeof array comparison
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
/*global Ghost */
|
|
(function () {
|
|
'use strict';
|
|
|
|
Ghost.Models.Widget = Ghost.ProgressModel.extend({
|
|
|
|
defaults: {
|
|
title: '',
|
|
name: '',
|
|
author: '',
|
|
applicationID: '',
|
|
size: '',
|
|
content: {
|
|
template: '',
|
|
data: {
|
|
number: {
|
|
count: 0,
|
|
sub: {
|
|
value: 0,
|
|
dir: '', // "up" or "down"
|
|
item: '',
|
|
period: ''
|
|
}
|
|
}
|
|
}
|
|
},
|
|
settings: {
|
|
settingsPane: false,
|
|
enabled: false,
|
|
options: [{
|
|
title: 'ERROR',
|
|
value: 'Widget options not set'
|
|
}]
|
|
}
|
|
}
|
|
});
|
|
|
|
Ghost.Collections.Widgets = Ghost.ProgressCollection.extend({
|
|
// url: Ghost.paths.apiRoot + '/widgets/', // What will this be?
|
|
model: Ghost.Models.Widget
|
|
});
|
|
|
|
}());
|