1 line
No EOL
7.8 KiB
JSON
1 line
No EOL
7.8 KiB
JSON
{"ast":null,"code":"/*eslint-env browser*/\n\nvar clientOverlay = document.createElement('div');\nclientOverlay.id = 'webpack-hot-middleware-clientOverlay';\nvar styles = {\n background: 'rgba(0,0,0,0.85)',\n color: '#e8e8e8',\n lineHeight: '1.6',\n whiteSpace: 'pre',\n fontFamily: 'Menlo, Consolas, monospace',\n fontSize: '13px',\n position: 'fixed',\n zIndex: 9999,\n padding: '10px',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n overflow: 'auto',\n dir: 'ltr',\n textAlign: 'left'\n};\nvar ansiHTML = require('ansi-html-community');\nvar colors = {\n reset: ['transparent', 'transparent'],\n black: '181818',\n red: 'ff3348',\n green: '3fff4f',\n yellow: 'ffd30e',\n blue: '169be0',\n magenta: 'f840b7',\n cyan: '0ad8e9',\n lightgrey: 'ebe7e3',\n darkgrey: '6d7891'\n};\nvar htmlEntities = require('html-entities');\nfunction showProblems(type, lines) {\n clientOverlay.innerHTML = '';\n lines.forEach(function (msg) {\n msg = ansiHTML(htmlEntities.encode(msg));\n var div = document.createElement('div');\n div.style.marginBottom = '26px';\n div.innerHTML = problemType(type) + ' in ' + msg;\n clientOverlay.appendChild(div);\n });\n if (document.body) {\n document.body.appendChild(clientOverlay);\n }\n}\nfunction clear() {\n if (document.body && clientOverlay.parentNode) {\n document.body.removeChild(clientOverlay);\n }\n}\nfunction problemType(type) {\n var problemColors = {\n errors: colors.red,\n warnings: colors.yellow\n };\n var color = problemColors[type] || colors.red;\n return '<span style=\"background-color:#' + color + '; color:#000000; padding:3px 6px; border-radius: 4px;\">' + type.slice(0, -1).toUpperCase() + '</span>';\n}\nmodule.exports = function (options) {\n for (var color in options.ansiColors) {\n if (color in colors) {\n colors[color] = options.ansiColors[color];\n }\n ansiHTML.setColors(colors);\n }\n for (var style in options.overlayStyles) {\n styles[style] = options.overlayStyles[style];\n }\n for (var key in styles) {\n clientOverlay.style[key] = styles[key];\n }\n return {\n showProblems: showProblems,\n clear: clear\n };\n};\nmodule.exports.clear = clear;\nmodule.exports.showProblems = showProblems;","map":{"version":3,"names":["clientOverlay","document","createElement","id","styles","background","color","lineHeight","whiteSpace","fontFamily","fontSize","position","zIndex","padding","left","right","top","bottom","overflow","dir","textAlign","ansiHTML","require","colors","reset","black","red","green","yellow","blue","magenta","cyan","lightgrey","darkgrey","htmlEntities","showProblems","type","lines","innerHTML","forEach","msg","encode","div","style","marginBottom","problemType","appendChild","body","clear","parentNode","removeChild","problemColors","errors","warnings","slice","toUpperCase","module","exports","options","ansiColors","setColors","overlayStyles","key"],"sources":["/home/poule/encrypted/stockage-syncable/www/development/html/ng-implementation/implem/node_modules/webpack-hot-middleware/client-overlay.js"],"sourcesContent":["/*eslint-env browser*/\n\nvar clientOverlay = document.createElement('div');\nclientOverlay.id = 'webpack-hot-middleware-clientOverlay';\nvar styles = {\n background: 'rgba(0,0,0,0.85)',\n color: '#e8e8e8',\n lineHeight: '1.6',\n whiteSpace: 'pre',\n fontFamily: 'Menlo, Consolas, monospace',\n fontSize: '13px',\n position: 'fixed',\n zIndex: 9999,\n padding: '10px',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n overflow: 'auto',\n dir: 'ltr',\n textAlign: 'left',\n};\n\nvar ansiHTML = require('ansi-html-community');\nvar colors = {\n reset: ['transparent', 'transparent'],\n black: '181818',\n red: 'ff3348',\n green: '3fff4f',\n yellow: 'ffd30e',\n blue: '169be0',\n magenta: 'f840b7',\n cyan: '0ad8e9',\n lightgrey: 'ebe7e3',\n darkgrey: '6d7891',\n};\n\nvar htmlEntities = require('html-entities');\n\nfunction showProblems(type, lines) {\n clientOverlay.innerHTML = '';\n lines.forEach(function (msg) {\n msg = ansiHTML(htmlEntities.encode(msg));\n var div = document.createElement('div');\n div.style.marginBottom = '26px';\n div.innerHTML = problemType(type) + ' in ' + msg;\n clientOverlay.appendChild(div);\n });\n if (document.body) {\n document.body.appendChild(clientOverlay);\n }\n}\n\nfunction clear() {\n if (document.body && clientOverlay.parentNode) {\n document.body.removeChild(clientOverlay);\n }\n}\n\nfunction problemType(type) {\n var problemColors = {\n errors: colors.red,\n warnings: colors.yellow,\n };\n var color = problemColors[type] || colors.red;\n return (\n '<span style=\"background-color:#' +\n color +\n '; color:#000000; padding:3px 6px; border-radius: 4px;\">' +\n type.slice(0, -1).toUpperCase() +\n '</span>'\n );\n}\n\nmodule.exports = function (options) {\n for (var color in options.ansiColors) {\n if (color in colors) {\n colors[color] = options.ansiColors[color];\n }\n ansiHTML.setColors(colors);\n }\n\n for (var style in options.overlayStyles) {\n styles[style] = options.overlayStyles[style];\n }\n\n for (var key in styles) {\n clientOverlay.style[key] = styles[key];\n }\n\n return {\n showProblems: showProblems,\n clear: clear,\n };\n};\n\nmodule.exports.clear = clear;\nmodule.exports.showProblems = showProblems;\n"],"mappings":"AAAA;;AAEA,IAAIA,aAAa,GAAGC,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;AACjDF,aAAa,CAACG,EAAE,GAAG,sCAAsC;AACzD,IAAIC,MAAM,GAAG;EACXC,UAAU,EAAE,kBAAkB;EAC9BC,KAAK,EAAE,SAAS;EAChBC,UAAU,EAAE,KAAK;EACjBC,UAAU,EAAE,KAAK;EACjBC,UAAU,EAAE,4BAA4B;EACxCC,QAAQ,EAAE,MAAM;EAChBC,QAAQ,EAAE,OAAO;EACjBC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAE,MAAM;EACfC,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE,CAAC;EACRC,GAAG,EAAE,CAAC;EACNC,MAAM,EAAE,CAAC;EACTC,QAAQ,EAAE,MAAM;EAChBC,GAAG,EAAE,KAAK;EACVC,SAAS,EAAE;AACb,CAAC;AAED,IAAIC,QAAQ,GAAGC,OAAO,CAAC,qBAAqB,CAAC;AAC7C,IAAIC,MAAM,GAAG;EACXC,KAAK,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;EACrCC,KAAK,EAAE,QAAQ;E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