mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 12:10:19 -07:00
rjs -> webpack
This commit is contained in:
parent
344f3d66ef
commit
428a1439e5
399 changed files with 11591 additions and 16139 deletions
|
@ -1,18 +1,12 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Profile/ProfileModel'
|
||||
], function (Backbone, ProfileModel) {
|
||||
var Backbone = require('backbone');
|
||||
var ProfileModel = require('./ProfileModel');
|
||||
|
||||
var ProfileCollection = Backbone.Collection.extend({
|
||||
model: ProfileModel,
|
||||
url : window.NzbDrone.ApiRoot + '/profile'
|
||||
});
|
||||
|
||||
var profiles = new ProfileCollection();
|
||||
|
||||
profiles.fetch();
|
||||
|
||||
return profiles;
|
||||
module.exports = (function(){
|
||||
var ProfileCollection = Backbone.Collection.extend({
|
||||
model : ProfileModel,
|
||||
url : window.NzbDrone.ApiRoot + '/profile'
|
||||
});
|
||||
var profiles = new ProfileCollection();
|
||||
profiles.fetch();
|
||||
return profiles;
|
||||
}).call(this);
|
|
@ -1,14 +1,9 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone.deepmodel'
|
||||
], function (DeepModel) {
|
||||
return DeepModel.DeepModel.extend({
|
||||
defaults: {
|
||||
id : null,
|
||||
name : '',
|
||||
cutoff: null
|
||||
}
|
||||
});
|
||||
});
|
||||
var DeepModel = require('backbone.deepmodel');
|
||||
|
||||
module.exports = DeepModel.DeepModel.extend({
|
||||
defaults : {
|
||||
id : null,
|
||||
name : '',
|
||||
cutoff : null
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue