diff2html/dist/diff2html-templates.min.js
2016-04-25 14:11:26 +01:00

1 line
No EOL
4.6 KiB
JavaScript

!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module){(function(global){!function(){global.browserTemplates||(global.browserTemplates={}),global.browserTemplates["line-by-line-column-line-number"]=new Hogan.Template({code:function(c,p,i){var t=this;return t.b(i=i||""),t.b("<tr>"),t.b("\n"+i),t.b(' <td class="d2h-code-linenumber '),t.b(t.v(t.d("diffParser.LINE_TYPE.INFO",c,p,0))),t.b('"></td>'),t.b("\n"+i),t.b(' <td class="'),t.b(t.v(t.d("diffParser.LINE_TYPE.INFO",c,p,0))),t.b('">'),t.b("\n"+i),t.b(' <div class="d2h-code-line '),t.b(t.v(t.d("diffParser.LINE_TYPE.INFO",c,p,0))),t.b('">'),t.b(t.t(t.f("blockHeader",c,p,0))),t.b("</div>"),t.b("\n"+i),t.b(" </td>"),t.b("\n"+i),t.b("</tr>"),t.fl()},partials:{},subs:{}}),global.browserTemplates["line-by-line-empty-diff"]=new Hogan.Template({code:function(c,p,i){var t=this;return t.b(i=i||""),t.b("<tr>"),t.b("\n"+i),t.b(' <td class="'),t.b(t.v(t.d("diffParser.LINE_TYPE.INFO",c,p,0))),t.b('">'),t.b("\n"+i),t.b(' <div class="d2h-code-line '),t.b(t.v(t.d("diffParser.LINE_TYPE.INFO",c,p,0))),t.b('">'),t.b("\n"+i),t.b(" File without changes"),t.b("\n"+i),t.b(" </div>"),t.b("\n"+i),t.b(" </td>"),t.b("\n"+i),t.b("</tr>"),t.fl()},partials:{},subs:{}}),global.browserTemplates["line-by-line-file-diff"]=new Hogan.Template({code:function(c,p,i){var t=this;return t.b(i=i||""),t.b('<div id="'),t.b(t.v(t.f("fileHtmlId",c,p,0))),t.b('" class="d2h-file-wrapper" data-lang="'),t.b(t.v(t.d("file.language",c,p,0))),t.b('">'),t.b("\n"+i),t.b(' <div class="d2h-file-header">'),t.b("\n"+i),t.b(' <span class="d2h-file-stats">'),t.b("\n"+i),t.b(' <span class="d2h-lines-added">'),t.b("\n"+i),t.b(" <span>+"),t.b(t.v(t.d("file.addedLines",c,p,0))),t.b("</span>"),t.b("\n"+i),t.b(" </span>"),t.b("\n"+i),t.b(' <span class="d2h-lines-deleted">'),t.b("\n"+i),t.b(" <span>-"),t.b(t.v(t.d("file.deletedLines",c,p,0))),t.b("</span>"),t.b("\n"+i),t.b(" </span>"),t.b("\n"+i),t.b(" </span>"),t.b("\n"+i),t.b(' <span class="d2h-file-name-wrapper">'),t.b("\n"+i),t.b(' <span class="d2h-file-name">&nbsp;'),t.b(t.v(t.f("fileDiffName",c,p,0))),t.b("</span>"),t.b("\n"+i),t.b(" </span>"),t.b("\n"+i),t.b(" </div>"),t.b("\n"+i),t.b(' <div class="d2h-file-diff">'),t.b("\n"+i),t.b(' <div class="d2h-code-wrapper">'),t.b("\n"+i),t.b(' <table class="d2h-diff-table">'),t.b("\n"+i),t.b(' <tbody class="d2h-diff-tbody">'),t.b("\n"+i),t.b(" "),t.b(t.t(t.f("diffs",c,p,0))),t.b("\n"+i),t.b(" </tbody>"),t.b("\n"+i),t.b(" </table>"),t.b("\n"+i),t.b(" </div>"),t.b("\n"+i),t.b(" </div>"),t.b("\n"+i),t.b("</div>"),t.fl()},partials:{},subs:{}}),global.browserTemplates["line-by-line-line"]=new Hogan.Template({code:function(c,p,i){var t=this;return t.b(i=i||""),t.b("<tr>"),t.b("\n"+i),t.b(' <td class="d2h-code-linenumber '),t.b(t.v(t.f("type",c,p,0))),t.b('">'),t.b("\n"+i),t.b(' <div class="line-num1">'),t.b(t.v(t.f("oldNumber",c,p,0))),t.b("</div>"),t.b("\n"+i),t.b(' <div class="line-num2">'),t.b(t.v(t.f("newNumber",c,p,0))),t.b("</div>"),t.b("\n"+i),t.b(" </td>"),t.b("\n"+i),t.b(' <td class="'),t.b(t.v(t.f("type",c,p,0))),t.b('">'),t.b("\n"+i),t.b(' <div class="d2h-code-line '),t.b(t.v(t.f("type",c,p,0))),t.b('">'),t.b("\n"+i),t.s(t.f("prefix",c,p,1),c,p,0,253,329,"{{ }}")&&(t.rs(c,p,function(c,p,t){t.b(' <span class="d2h-code-line-prefix">'),t.b(t.t(t.f("prefix",c,p,0))),t.b("</span>"),t.b("\n"+i)}),c.pop()),t.s(t.f("content",c,p,1),c,p,0,361,435,"{{ }}")&&(t.rs(c,p,function(c,p,t){t.b(' <span class="d2h-code-line-ctn">'),t.b(t.t(t.f("content",c,p,0))),t.b("</span>"),t.b("\n"+i)}),c.pop()),t.b(" </div>"),t.b("\n"+i),t.b(" </td>"),t.b("\n"+i),t.b("</tr>"),t.fl()},partials:{},subs:{}}),global.browserTemplates["line-by-line-wrapper"]=new Hogan.Template({code:function(c,p,i){var t=this;return t.b(i=i||""),t.b('<div class="d2h-wrapper">'),t.b("\n"+i),t.b(" "),t.b(t.t(t.f("content",c,p,0))),t.b("\n"+i),t.b("</div>"),t.fl()},partials:{},subs:{}}),module.exports=global.browserTemplates}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);