mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
624680bb93
- This is a first pass at getting a more logical structure. The focus is on moving from admin/frontend to client/server. - The location of the databases is highly important, this isn't expected to change again In the future - client/assets should probably become public/ - more stuff should be shared (helpers etc) - cleanup some confusion around tpl and views
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
/*global window, document, Ghost, $, _, Backbone */
|
|
(function () {
|
|
"use strict";
|
|
|
|
Ghost.Models.Widget = Backbone.Model.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 = Backbone.Collection.extend({
|
|
// url: Ghost.settings.apiRoot + '/widgets', // What will this be?
|
|
model: Ghost.Models.Widget
|
|
});
|
|
|
|
}()); |