ng-implementation/implem/.angular/cache/20.1.4/babel-webpack/4856fc7fdd2a53ca01b85aafa5034f4b.json

1 line
7.8 KiB
JSON
Raw Normal View History

2025-08-19 10:58:54 +02:00
{"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));