1import Swal from 'sweetalert2' 2 3export function successSwal(title, text = null) { 4 Swal.fire({ 5 title: title, 6 text: text, 7 icon: 'success', 8 confirmButtonText: "OK", 9 confirmButtonColor: '#9FBA00', 10 }); 11} 12 13export function errorSwal(title, text = null) { 14 Swal.fire({ 15 title: title, 16 text: text, 17 icon: 'error', 18 confirmButtonText: "OK", 19 confirmButtonColor: '#d73925', 20 }); 21} 22 23export function warningSwal({ title, text = null, confirmButtonText = 'OK', cancelButtonText }) { 24 return Swal.fire({ 25 title: title, 26 text: text, 27 icon: 'warning', 28 showConfirmButton: true, 29 showCancelButton: true, 30 confirmButtonText: confirmButtonText, 31 confirmButtonColor: '#d73925', 32 cancelButtonText: cancelButtonText, 33 }).then((result) => result.isConfirmed); 34}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.