mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-03 19:08:20 -04:00
rjs -> webpack
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'api!system/status'
|
||||
], function (Backbone, statusData) {
|
||||
var Backbone = require('backbone');
|
||||
var ApiData = require('../Shared/ApiData');
|
||||
|
||||
var StatusModel = Backbone.Model.extend({
|
||||
url: window.NzbDrone.ApiRoot + '/system/status'
|
||||
});
|
||||
|
||||
var instance = new StatusModel(statusData);
|
||||
return instance;
|
||||
});
|
||||
module.exports = (function(){
|
||||
var StatusModel = Backbone.Model.extend({url : window.NzbDrone.ApiRoot + '/system/status'});
|
||||
var instance = new StatusModel(ApiData.get('system/status'));
|
||||
return instance;
|
||||
}).call(this);
|
||||
Reference in New Issue
Block a user