Skip to content

Commit

Permalink
deploy: 36f8dfe
Browse files Browse the repository at this point in the history
  • Loading branch information
JST5000 committed Nov 21, 2023
1 parent dc3d2cf commit b86a9d8
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 239 deletions.
74 changes: 37 additions & 37 deletions pr-preview/tx-sender-migration/ja/static/js/tx-sender.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
const set_up_tx_sender = async function() {
// const set_up_tx_sender = async function() {
//////////////////////////////////////////////////////////////////////////////
// Notification helpers
//////////////////////////////////////////////////////////////////////////////

function successNotif(msg) {
$.bootstrapGrowl(msg, {
delay: 7000,
offset: {from: 'bottom', amount: 68},
type: 'success',
width: 'auto'
})
}
function errorNotif(msg) {
$.bootstrapGrowl(msg, {
delay: 7000,
offset: {from: 'bottom', amount: 68},
type: 'danger',
width: 'auto'
})
}

function logTx(txtype, hash, result) {
let classes
let icon
const txlink = "https://testnet.xrpl.org/transactions/" + hash
if (result === "tesSUCCESS") {
classes = "text-muted"
icon = '<i class="fa fa-check-circle"></i>'
} else {
classes = "list-group-item-danger"
icon = '<i class="fa fa-times-circle"></i>'
}
const li = `<li class="list-group-item fade-in p-1 ${classes}">${icon} ${txtype}: <a href="${txlink}" target="_blank" class="external-link">${hash}</a></li>`

$("#tx-sender-history ul").prepend(li)
}
// function successNotif(msg) {
// $.bootstrapGrowl(msg, {
// delay: 7000,
// offset: {from: 'bottom', amount: 68},
// type: 'success',
// width: 'auto'
// })
// }
// function errorNotif(msg) {
// $.bootstrapGrowl(msg, {
// delay: 7000,
// offset: {from: 'bottom', amount: 68},
// type: 'danger',
// width: 'auto'
// })
// }

// function logTx(txtype, hash, result) {
// let classes
// let icon
// const txlink = "https://testnet.xrpl.org/transactions/" + hash
// if (result === "tesSUCCESS") {
// classes = "text-muted"
// icon = '<i class="fa fa-check-circle"></i>'
// } else {
// classes = "list-group-item-danger"
// icon = '<i class="fa fa-times-circle"></i>'
// }
// const li = `<li class="list-group-item fade-in p-1 ${classes}">${icon} ${txtype}: <a href="${txlink}" target="_blank" class="external-link">${hash}</a></li>`

// $("#tx-sender-history ul").prepend(li)
// }

//////////////////////////////////////////////////////////////////////////////
// Connection / Setup
Expand Down Expand Up @@ -461,9 +461,9 @@ const set_up_tx_sender = async function() {
// }
// $("#trust_for button").click(on_trust_for)

}
// }


$(document).ready( function() {
set_up_tx_sender()
} )
// $(document).ready( function() {
// set_up_tx_sender()
// } )
74 changes: 37 additions & 37 deletions pr-preview/tx-sender-migration/static/js/tx-sender.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
const set_up_tx_sender = async function() {
// const set_up_tx_sender = async function() {
//////////////////////////////////////////////////////////////////////////////
// Notification helpers
//////////////////////////////////////////////////////////////////////////////

function successNotif(msg) {
$.bootstrapGrowl(msg, {
delay: 7000,
offset: {from: 'bottom', amount: 68},
type: 'success',
width: 'auto'
})
}
function errorNotif(msg) {
$.bootstrapGrowl(msg, {
delay: 7000,
offset: {from: 'bottom', amount: 68},
type: 'danger',
width: 'auto'
})
}

function logTx(txtype, hash, result) {
let classes
let icon
const txlink = "https://testnet.xrpl.org/transactions/" + hash
if (result === "tesSUCCESS") {
classes = "text-muted"
icon = '<i class="fa fa-check-circle"></i>'
} else {
classes = "list-group-item-danger"
icon = '<i class="fa fa-times-circle"></i>'
}
const li = `<li class="list-group-item fade-in p-1 ${classes}">${icon} ${txtype}: <a href="${txlink}" target="_blank" class="external-link">${hash}</a></li>`

$("#tx-sender-history ul").prepend(li)
}
// function successNotif(msg) {
// $.bootstrapGrowl(msg, {
// delay: 7000,
// offset: {from: 'bottom', amount: 68},
// type: 'success',
// width: 'auto'
// })
// }
// function errorNotif(msg) {
// $.bootstrapGrowl(msg, {
// delay: 7000,
// offset: {from: 'bottom', amount: 68},
// type: 'danger',
// width: 'auto'
// })
// }

// function logTx(txtype, hash, result) {
// let classes
// let icon
// const txlink = "https://testnet.xrpl.org/transactions/" + hash
// if (result === "tesSUCCESS") {
// classes = "text-muted"
// icon = '<i class="fa fa-check-circle"></i>'
// } else {
// classes = "list-group-item-danger"
// icon = '<i class="fa fa-times-circle"></i>'
// }
// const li = `<li class="list-group-item fade-in p-1 ${classes}">${icon} ${txtype}: <a href="${txlink}" target="_blank" class="external-link">${hash}</a></li>`

// $("#tx-sender-history ul").prepend(li)
// }

//////////////////////////////////////////////////////////////////////////////
// Connection / Setup
Expand Down Expand Up @@ -461,9 +461,9 @@ const set_up_tx_sender = async function() {
// }
// $("#trust_for button").click(on_trust_for)

}
// }


$(document).ready( function() {
set_up_tx_sender()
} )
// $(document).ready( function() {
// set_up_tx_sender()
// } )
Loading

0 comments on commit b86a9d8

Please sign in to comment.