UNPKG

eazyminer

Version:

Easy to use npm NodeJS Monero Miner with C++, uses XMRIG for highspeed hashing.

29 lines (28 loc) 1.01 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ToastManager = void 0; const jquery_1 = __importDefault(require("jquery")); const bootstrap_1 = require("bootstrap"); class ToastManager { toasts = []; show(options) { const toast = ` <div class="toast show align-items-center text-white bg-${options.type} border-0" role="alert" aria-live="assertive" aria-atomic="true"> <div class="d-flex"> <div class="toast-body"> Settings updated </div> <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button> </div> </div> `; const toastEl$ = (0, jquery_1.default)(toast); document.body.appendChild(toastEl$[0]); this.toasts.push(toastEl$); new bootstrap_1.Toast(toastEl$[0], {}); } } exports.ToastManager = ToastManager;