Módulo VPSManager para WHMCS con configuración externa, acceso seguro al panel y métricas Graphite para LX.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

9 lignes
677 B

  1. 'use strict';
  2. const fs = require('fs');
  3. const path = require('path');
  4. const assets = path.join(__dirname, '..', 'assets');
  5. const original = fs.readFileSync(path.join(assets, 'chart-4.4.8.umd.js'), 'utf8');
  6. const prefix = '(function () {\nvar hadChart = Object.prototype.hasOwnProperty.call(window, "Chart");\nvar previousChart = window.Chart;\nvar module = {exports: {}}; var exports = module.exports;\n';
  7. const suffix = '\nwindow.O6HVpsChart = module.exports;\nif (hadChart) window.Chart = previousChart; else delete window.Chart;\n}());\n';
  8. fs.writeFileSync(path.join(assets, 'chart-4.4.8.scoped.js'), prefix + original.replace(/^\/\/# sourceMappingURL=.*$/m, '') + suffix);