mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 03:38:26 -07:00
rjs -> webpack
This commit is contained in:
parent
344f3d66ef
commit
428a1439e5
399 changed files with 11591 additions and 16139 deletions
|
@ -1,19 +1,14 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'handlebars',
|
||||
'Shared/FormatHelpers'
|
||||
], function (Handlebars, FormatHelpers) {
|
||||
Handlebars.registerHelper('Bytes', function (size) {
|
||||
return new Handlebars.SafeString(FormatHelpers.bytes(size));
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('Pad2', function (input) {
|
||||
return FormatHelpers.pad(input, 2);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('Number', function (input) {
|
||||
return FormatHelpers.number(input);
|
||||
});
|
||||
var Handlebars = require('handlebars');
|
||||
var FormatHelpers = require('../../Shared/FormatHelpers');
|
||||
|
||||
module.exports = (function(){
|
||||
Handlebars.registerHelper('Bytes', function(size){
|
||||
return new Handlebars.SafeString(FormatHelpers.bytes(size));
|
||||
});
|
||||
Handlebars.registerHelper('Pad2', function(input){
|
||||
return FormatHelpers.pad(input, 2);
|
||||
});
|
||||
Handlebars.registerHelper('Number', function(input){
|
||||
return FormatHelpers.number(input);
|
||||
});
|
||||
}).call(this);
|
Loading…
Add table
Add a link
Reference in a new issue