0.0.40
This commit is contained in:
parent
e281e81587
commit
ed5dcf9623
61
css/main.css
61
css/main.css
@ -540,6 +540,7 @@ details p {
|
|||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
.display-balance .balance {
|
.display-balance .balance {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
@ -548,7 +549,7 @@ details p {
|
|||||||
}
|
}
|
||||||
.display-balance .balance h4 {
|
.display-balance .balance h4 {
|
||||||
margin-top: 2.5rem;
|
margin-top: 2.5rem;
|
||||||
font-size: 1.5rem;
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
.display-balance .balance h5 {
|
.display-balance .balance h5 {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
@ -557,13 +558,18 @@ details p {
|
|||||||
background: rgba(var(--text-color), 0.06);
|
background: rgba(var(--text-color), 0.06);
|
||||||
}
|
}
|
||||||
.display-balance .balance:nth-of-type(2) {
|
.display-balance .balance:nth-of-type(2) {
|
||||||
background: #C70039;
|
background: linear-gradient(#ff4857, #fd946a);
|
||||||
color: rgba(var(--foreground-color), 1);
|
|
||||||
}
|
}
|
||||||
.display-balance .balance:nth-of-type(3) {
|
.display-balance .balance:nth-of-type(3) {
|
||||||
grid-area: flo;
|
grid-area: flo;
|
||||||
background: #040618;
|
|
||||||
color: rgba(var(--foreground-color), 1);
|
color: rgba(var(--foreground-color), 1);
|
||||||
|
background: linear-gradient(#051575, #0d014e);
|
||||||
|
}
|
||||||
|
.display-balance .balance:nth-of-type(3) .tooltip {
|
||||||
|
color: rgba(var(--text-color), 1);
|
||||||
|
}
|
||||||
|
.display-balance .balance .tooltip {
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
.display-balance .icon {
|
.display-balance .icon {
|
||||||
height: 1.4rem;
|
height: 1.4rem;
|
||||||
@ -573,14 +579,48 @@ details p {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
cursor: help;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: rgba(var(--foreground-color), 1);
|
||||||
|
z-index: 1;
|
||||||
|
transition: clip-path 0.3s;
|
||||||
|
clip-path: circle(0.8rem at calc(100% - 1.25rem) 1.15rem);
|
||||||
|
}
|
||||||
|
.tooltip .tt-icon {
|
||||||
|
display: inline-flex;
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-left: auto;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.tooltip .tooltip-text {
|
||||||
|
padding: 1.5rem;
|
||||||
|
line-height: 1.4;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.tooltip:hover {
|
||||||
|
clip-path: circle(100%);
|
||||||
|
}
|
||||||
|
|
||||||
.user-type {
|
.user-type {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options-tab {
|
.options-tab {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(4, 1fr);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
|
gap: 2rem 0.2rem;
|
||||||
}
|
}
|
||||||
.options-tab .option {
|
.options-tab .option {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -589,8 +629,6 @@ details p {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
margin-right: 1rem;
|
|
||||||
width: 5rem;
|
width: 5rem;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
@ -1186,7 +1224,12 @@ sm-panel {
|
|||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
#home_page .balance h4 {
|
#home_page .balance h4 {
|
||||||
margin-top: 2rem;
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.options-tab {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings_page > h4 {
|
#settings_page > h4 {
|
||||||
|
|||||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -566,6 +566,7 @@ details{
|
|||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
.balance{
|
.balance{
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
@ -573,7 +574,7 @@ details{
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
h4{
|
h4{
|
||||||
margin-top: 2.5rem;
|
margin-top: 2.5rem;
|
||||||
font-size: 1.5rem;
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
h5{
|
h5{
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
@ -582,13 +583,18 @@ details{
|
|||||||
background: rgba(var(--text-color), 0.06);
|
background: rgba(var(--text-color), 0.06);
|
||||||
}
|
}
|
||||||
&:nth-of-type(2){
|
&:nth-of-type(2){
|
||||||
background: #C70039 ;
|
background: linear-gradient(#ff4857, #fd946a);
|
||||||
color: rgba(var(--foreground-color), 1);
|
|
||||||
}
|
}
|
||||||
&:nth-of-type(3){
|
&:nth-of-type(3){
|
||||||
grid-area: flo;
|
grid-area: flo;
|
||||||
background: #040618;
|
|
||||||
color: rgba(var(--foreground-color), 1);
|
color: rgba(var(--foreground-color), 1);
|
||||||
|
background: linear-gradient(#051575, #0d014e);
|
||||||
|
.tooltip{
|
||||||
|
color: rgba(var(--text-color), 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tooltip{
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.icon {
|
.icon {
|
||||||
@ -600,14 +606,48 @@ details{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip{
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
cursor: help;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: rgba(var(--foreground-color), 1);
|
||||||
|
z-index: 1;
|
||||||
|
transition: clip-path 0.3s;
|
||||||
|
clip-path: circle(0.8rem at calc(100% - 1.25rem) 1.15rem);
|
||||||
|
.tt-icon{
|
||||||
|
display: inline-flex;
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-left: auto;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.tooltip-text{
|
||||||
|
padding: 1.5rem;
|
||||||
|
line-height: 1.4;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
&:hover{
|
||||||
|
clip-path: circle(100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.user-type {
|
.user-type {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options-tab {
|
.options-tab {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(4, 1fr);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
|
gap: 2rem 0.2rem;
|
||||||
.option {
|
.option {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -615,8 +655,6 @@ details{
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
margin-right: 1rem;
|
|
||||||
width: 5rem;
|
width: 5rem;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
@ -1245,10 +1283,14 @@ sm-panel{
|
|||||||
}
|
}
|
||||||
.balance{
|
.balance{
|
||||||
h4{
|
h4{
|
||||||
margin-top: 2rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.options-tab{
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
#settings_page{
|
#settings_page{
|
||||||
& > h4{
|
& > h4{
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
|
|||||||
112
index.html
112
index.html
@ -459,14 +459,26 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="display-balance grid">
|
<div class="display-balance grid">
|
||||||
<div class="balance">
|
<div class="balance">
|
||||||
|
<div class="tooltip help">
|
||||||
|
<div class="tt-icon">?</div>
|
||||||
|
<p class="tooltip-text">Your wallet balance</p>
|
||||||
|
</div>
|
||||||
<h4 class="token-balance">0</h4>
|
<h4 class="token-balance">0</h4>
|
||||||
<h5>Rupee</h5>
|
<h5>Rupee</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="balance">
|
<div class="balance">
|
||||||
|
<div class="tooltip help">
|
||||||
|
<div class="tt-icon">?</div>
|
||||||
|
<p class="tooltip-text">Money that is pending after deposit.</p>
|
||||||
|
</div>
|
||||||
<h4 class="uncnf-token-balance">0</h4>
|
<h4 class="uncnf-token-balance">0</h4>
|
||||||
<h5>In-process</h5>
|
<h5>In-process</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="balance">
|
<div class="balance">
|
||||||
|
<div class="tooltip help">
|
||||||
|
<div class="tt-icon">?</div>
|
||||||
|
<p class="tooltip-text">FLO balance required for each transaction.</p>
|
||||||
|
</div>
|
||||||
<h4 class="flo-balance">0</h4>
|
<h4 class="flo-balance">0</h4>
|
||||||
<h5>FLO</h5>
|
<h5>FLO</h5>
|
||||||
</div>
|
</div>
|
||||||
@ -1652,8 +1664,8 @@
|
|||||||
paymentRequestId = parent.dataset.paymentRequestId;
|
paymentRequestId = parent.dataset.paymentRequestId;
|
||||||
if (await confirmation(
|
if (await confirmation(
|
||||||
`Do want to decline this request?`)) {
|
`Do want to decline this request?`)) {
|
||||||
const all_reqs = floDapps.getNextGeneralData(token_app.master_configurations
|
const all_reqs = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_REQUEST_PAYMENT, "0").reverse();
|
.TYPE_REQUEST_PAYMENT, "0").reverse());
|
||||||
|
|
||||||
const original_req = all_reqs.filter(f => f.message.pay_req_id === paymentRequestId)
|
const original_req = all_reqs.filter(f => f.message.pay_req_id === paymentRequestId)
|
||||||
.map(m => m.message)[0];
|
.map(m => m.message)[0];
|
||||||
@ -11219,6 +11231,12 @@
|
|||||||
return Math.abs(Math.round(diff));
|
return Math.abs(Math.round(diff));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeDuplicates(sample_object) {
|
||||||
|
jsonObject = sample_object.map(JSON.stringify);
|
||||||
|
uniqueSet = new Set(jsonObject);
|
||||||
|
return Array.from(uniqueSet).map(JSON.parse);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -11623,7 +11641,7 @@
|
|||||||
|
|
||||||
let cash_deposits_upi_txid_list = Object.values(cash_deposits).map(m => m.user_upi_txid);
|
let cash_deposits_upi_txid_list = Object.values(cash_deposits).map(m => m.user_upi_txid);
|
||||||
|
|
||||||
const general_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_DEPOSITS, "0");
|
const general_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_DEPOSITS, "0"));
|
||||||
|
|
||||||
let depositsContainer = document.getElementById("pending_deposits_container");
|
let depositsContainer = document.getElementById("pending_deposits_container");
|
||||||
depositsContainer.innerHTML = ``;
|
depositsContainer.innerHTML = ``;
|
||||||
@ -11662,8 +11680,8 @@
|
|||||||
receiverID: myFloID
|
receiverID: myFloID
|
||||||
});
|
});
|
||||||
|
|
||||||
const general_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_WITHDRAWS,
|
const general_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_WITHDRAWS,
|
||||||
"0");
|
"0"));
|
||||||
|
|
||||||
if (typeof general_msg !== "object") {
|
if (typeof general_msg !== "object") {
|
||||||
notify(`No data available in withdraws.`);
|
notify(`No data available in withdraws.`);
|
||||||
@ -11862,8 +11880,8 @@
|
|||||||
} else {
|
} else {
|
||||||
showTrasactionStatus('success', 'Rupee Sent', 'It may take upto 48 working hours for transaction to be completed.', flo_txid);
|
showTrasactionStatus('success', 'Rupee Sent', 'It may take upto 48 working hours for transaction to be completed.', flo_txid);
|
||||||
if (payingRequested === true) {
|
if (payingRequested === true) {
|
||||||
const all_reqs = floDapps.getNextGeneralData(token_app.master_configurations
|
const all_reqs = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_REQUEST_PAYMENT, "0").reverse();
|
.TYPE_REQUEST_PAYMENT, "0").reverse());
|
||||||
|
|
||||||
const original_req = all_reqs
|
const original_req = all_reqs
|
||||||
.filter(f => f.message.pay_req_id === currentPaymentRequest.requestId)
|
.filter(f => f.message.pay_req_id === currentPaymentRequest.requestId)
|
||||||
@ -11952,8 +11970,8 @@
|
|||||||
receiverID: myFloID
|
receiverID: myFloID
|
||||||
});
|
});
|
||||||
|
|
||||||
const user_requests = floDapps.getNextGeneralData(token_app.master_configurations
|
const user_requests = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_PAY_THROUGH_CASHIER, "0");
|
.TYPE_PAY_THROUGH_CASHIER, "0"));
|
||||||
|
|
||||||
let pay_thru_cashier = await compactIDB.readAllData('pay_thru_cashier');
|
let pay_thru_cashier = await compactIDB.readAllData('pay_thru_cashier');
|
||||||
let pay_thru_cashier_list = Object.values(pay_thru_cashier).map(m => m.upi_txid);
|
let pay_thru_cashier_list = Object.values(pay_thru_cashier).map(m => m.upi_txid);
|
||||||
@ -12047,8 +12065,8 @@
|
|||||||
.TYPE_UNCONFIRMED_BALANCE_CLAIM_REQUESTS, {
|
.TYPE_UNCONFIRMED_BALANCE_CLAIM_REQUESTS, {
|
||||||
receiverID: myFloID
|
receiverID: myFloID
|
||||||
});
|
});
|
||||||
const unconfirmed_cash_deposit_claims = floDapps.getNextGeneralData(token_app.master_configurations
|
const unconfirmed_cash_deposit_claims = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_UNCONFIRMED_BALANCE_CLAIM_REQUESTS, "0");
|
.TYPE_UNCONFIRMED_BALANCE_CLAIM_REQUESTS, "0"));
|
||||||
|
|
||||||
// load processed claims
|
// load processed claims
|
||||||
const cashiersList = Object.keys(token_app.master_configurations.cashiers);
|
const cashiersList = Object.keys(token_app.master_configurations.cashiers);
|
||||||
@ -12133,8 +12151,8 @@
|
|||||||
.TYPE_PROCESSED_DEPOSITS, {
|
.TYPE_PROCESSED_DEPOSITS, {
|
||||||
receiverID: myFloID
|
receiverID: myFloID
|
||||||
});
|
});
|
||||||
const cash_deposits = floDapps.getNextGeneralData(token_app.master_configurations
|
const cash_deposits = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_PROCESSED_DEPOSITS, "0");
|
.TYPE_PROCESSED_DEPOSITS, "0"));
|
||||||
let total = 0;
|
let total = 0;
|
||||||
for (t in cash_deposits) {
|
for (t in cash_deposits) {
|
||||||
let data = cash_deposits[t].message;
|
let data = cash_deposits[t].message;
|
||||||
@ -12322,14 +12340,14 @@
|
|||||||
try {
|
try {
|
||||||
await token_app.actions.retrieveLatestContent();
|
await token_app.actions.retrieveLatestContent();
|
||||||
|
|
||||||
const deposit_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_DEPOSITS, "0")
|
const deposit_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_DEPOSITS, "0")
|
||||||
.reverse();
|
.reverse());
|
||||||
const withdraw_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_WITHDRAWS,
|
const withdraw_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_WITHDRAWS,
|
||||||
"0").reverse();
|
"0").reverse());
|
||||||
const user_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_MSGES, "0")
|
const user_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_MSGES, "0")
|
||||||
.reverse();
|
.reverse());
|
||||||
const pay_thru_cashier_msg = floDapps.getNextGeneralData(token_app.master_configurations
|
const pay_thru_cashier_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_PAY_THROUGH_CASHIER, "0").reverse();
|
.TYPE_PAY_THROUGH_CASHIER, "0").reverse());
|
||||||
|
|
||||||
console.log(deposit_msg, withdraw_msg, user_msg)
|
console.log(deposit_msg, withdraw_msg, user_msg)
|
||||||
for (usr_deposits of deposit_msg) {
|
for (usr_deposits of deposit_msg) {
|
||||||
@ -12394,8 +12412,8 @@
|
|||||||
|
|
||||||
switch (req_type) {
|
switch (req_type) {
|
||||||
case token_app.master_configurations.TYPE_DEPOSITS:
|
case token_app.master_configurations.TYPE_DEPOSITS:
|
||||||
const deposit_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_DEPOSITS, "0")
|
const deposit_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_DEPOSITS, "0")
|
||||||
.reverse();
|
.reverse());
|
||||||
|
|
||||||
for (usr_deposits of deposit_msg) {
|
for (usr_deposits of deposit_msg) {
|
||||||
let {
|
let {
|
||||||
@ -12410,8 +12428,8 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case token_app.master_configurations.TYPE_WITHDRAWS:
|
case token_app.master_configurations.TYPE_WITHDRAWS:
|
||||||
const withdraw_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_WITHDRAWS,
|
const withdraw_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_WITHDRAWS,
|
||||||
"0").reverse();
|
"0").reverse());
|
||||||
|
|
||||||
for (usr_withdraws of withdraw_msg) {
|
for (usr_withdraws of withdraw_msg) {
|
||||||
let {
|
let {
|
||||||
@ -12427,8 +12445,8 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case token_app.master_configurations.TYPE_MSGES:
|
case token_app.master_configurations.TYPE_MSGES:
|
||||||
const user_msg = floDapps.getNextGeneralData(token_app.master_configurations.TYPE_MSGES, "0")
|
const user_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations.TYPE_MSGES, "0")
|
||||||
.reverse();
|
.reverse());
|
||||||
|
|
||||||
for (cashier_message of pay_thru_cashier_msg) {
|
for (cashier_message of pay_thru_cashier_msg) {
|
||||||
console.log(cashier_message)
|
console.log(cashier_message)
|
||||||
@ -12446,8 +12464,8 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case token_app.master_configurations.TYPE_PAY_THROUGH_CASHIER:
|
case token_app.master_configurations.TYPE_PAY_THROUGH_CASHIER:
|
||||||
const pay_thru_cashier_msg = floDapps.getNextGeneralData(token_app.master_configurations
|
const pay_thru_cashier_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_PAY_THROUGH_CASHIER, "0").reverse();
|
.TYPE_PAY_THROUGH_CASHIER, "0").reverse());
|
||||||
|
|
||||||
for (msg of user_msg) {
|
for (msg of user_msg) {
|
||||||
frag.append(render.cashierMessage(msg))
|
frag.append(render.cashierMessage(msg))
|
||||||
@ -12546,12 +12564,12 @@
|
|||||||
floCloudAPI.requestGeneralData(token_app.master_configurations.TYPE_REQUEST_PAYMENT_DECLINED, options),
|
floCloudAPI.requestGeneralData(token_app.master_configurations.TYPE_REQUEST_PAYMENT_DECLINED, options),
|
||||||
floCloudAPI.requestGeneralData(token_app.master_configurations.TYPE_REQUEST_PAYMENT_APPROVED, options)
|
floCloudAPI.requestGeneralData(token_app.master_configurations.TYPE_REQUEST_PAYMENT_APPROVED, options)
|
||||||
]);
|
]);
|
||||||
const general_msg = floDapps.getNextGeneralData(token_app.master_configurations
|
const general_msg = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_REQUEST_PAYMENT, "0").reverse(),
|
.TYPE_REQUEST_PAYMENT, "0").reverse()),
|
||||||
declined_reqs_list = floDapps.getNextGeneralData(token_app.master_configurations
|
declined_reqs_list = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_REQUEST_PAYMENT_DECLINED, "0").reverse(),
|
.TYPE_REQUEST_PAYMENT_DECLINED, "0").reverse()),
|
||||||
approved_reqs_list = floDapps.getNextGeneralData(token_app.master_configurations
|
approved_reqs_list = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_REQUEST_PAYMENT_APPROVED, "0").reverse();
|
.TYPE_REQUEST_PAYMENT_APPROVED, "0").reverse());
|
||||||
|
|
||||||
console.log(general_msg);
|
console.log(general_msg);
|
||||||
console.log(approved_reqs_list);
|
console.log(approved_reqs_list);
|
||||||
@ -12753,15 +12771,15 @@
|
|||||||
console.log(unprocessed_deposits_complaints);
|
console.log(unprocessed_deposits_complaints);
|
||||||
|
|
||||||
for (const udc of unprocessed_deposits_complaints) {
|
for (const udc of unprocessed_deposits_complaints) {
|
||||||
let all_users_deposits = floDapps.getNextGeneralData(token_app.master_configurations
|
let all_users_deposits = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_DEPOSITS, "0");
|
.TYPE_DEPOSITS, "0"));
|
||||||
let this_user_deposit = all_users_deposits.filter(f => f.vectorClock === udc.message.order_vc);
|
let this_user_deposit = all_users_deposits.filter(f => f.vectorClock === udc.message.order_vc);
|
||||||
let this_user_deposit_upi_txid_list = this_user_deposit.map(m => m.message.upi_txid);
|
let this_user_deposit_upi_txid_list = this_user_deposit.map(m => m.message.upi_txid);
|
||||||
|
|
||||||
let userData = {},
|
let userData = {},
|
||||||
cashierData = {};
|
cashierData = {};
|
||||||
let all_cashier_processed_deposits = floDapps
|
let all_cashier_processed_deposits = removeDuplicates(floDapps
|
||||||
.getNextGeneralData(token_app.master_configurations.TYPE_PROCESSED_DEPOSITS, "0");
|
.getNextGeneralData(token_app.master_configurations.TYPE_PROCESSED_DEPOSITS, "0"));
|
||||||
console.log(udc)
|
console.log(udc)
|
||||||
let this_cashier_processed_user_deposit = all_cashier_processed_deposits
|
let this_cashier_processed_user_deposit = all_cashier_processed_deposits
|
||||||
.filter(f => this_user_deposit_upi_txid_list.includes(f.message.user_upi_txid));
|
.filter(f => this_user_deposit_upi_txid_list.includes(f.message.user_upi_txid));
|
||||||
@ -12849,16 +12867,16 @@
|
|||||||
.filter(orders_comparer(Object.values(processed_withdraws_complaints)));
|
.filter(orders_comparer(Object.values(processed_withdraws_complaints)));
|
||||||
|
|
||||||
for (const udc of unprocessed_withdraws_complaints) {
|
for (const udc of unprocessed_withdraws_complaints) {
|
||||||
let all_users_withdraws = floDapps.getNextGeneralData(token_app.master_configurations
|
let all_users_withdraws = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_WITHDRAWS, "0");
|
.TYPE_WITHDRAWS, "0"));
|
||||||
let this_user_withdraws = all_users_withdraws.filter(f => f.vectorClock === udc.message
|
let this_user_withdraws = all_users_withdraws.filter(f => f.vectorClock === udc.message
|
||||||
.order_vc);
|
.order_vc);
|
||||||
console.log(this_user_withdraws);
|
console.log(this_user_withdraws);
|
||||||
|
|
||||||
let this_user_withdraws_token_txid_list = this_user_withdraws.map(m => m.message.token_txid);
|
let this_user_withdraws_token_txid_list = this_user_withdraws.map(m => m.message.token_txid);
|
||||||
|
|
||||||
let all_cashier_processed_withdraws = floDapps
|
let all_cashier_processed_withdraws = removeDuplicates(floDapps
|
||||||
.getNextGeneralData(token_app.master_configurations.TYPE_PROCESSED_WITHDRAWS, "0");
|
.getNextGeneralData(token_app.master_configurations.TYPE_PROCESSED_WITHDRAWS, "0"));
|
||||||
|
|
||||||
let this_cashier_processed_user_withdraws = all_cashier_processed_withdraws
|
let this_cashier_processed_user_withdraws = all_cashier_processed_withdraws
|
||||||
.filter(f => this_user_withdraws_token_txid_list.includes(f.message.token_txid));
|
.filter(f => this_user_withdraws_token_txid_list.includes(f.message.token_txid));
|
||||||
@ -12954,8 +12972,8 @@
|
|||||||
.filter(orders_comparer(Object.values(processed_pay_thru_cashier_complaints)));
|
.filter(orders_comparer(Object.values(processed_pay_thru_cashier_complaints)));
|
||||||
|
|
||||||
for (const udc of unprocessed_pay_thru_cashier_complaints) {
|
for (const udc of unprocessed_pay_thru_cashier_complaints) {
|
||||||
let all_users_pay_thru_cashier = floDapps.getNextGeneralData(token_app.master_configurations
|
let all_users_pay_thru_cashier = removeDuplicates(floDapps.getNextGeneralData(token_app.master_configurations
|
||||||
.TYPE_PAY_THROUGH_CASHIER, "0");
|
.TYPE_PAY_THROUGH_CASHIER, "0"));
|
||||||
let this_user_pay_thru_cashier = all_users_pay_thru_cashier.filter(f => f.vectorClock === udc
|
let this_user_pay_thru_cashier = all_users_pay_thru_cashier.filter(f => f.vectorClock === udc
|
||||||
.message.order_vc);
|
.message.order_vc);
|
||||||
console.log(this_user_pay_thru_cashier);
|
console.log(this_user_pay_thru_cashier);
|
||||||
@ -12963,8 +12981,8 @@
|
|||||||
let this_user_pay_thru_cashier_upi_txid_list = this_user_pay_thru_cashier.map(m => m.message
|
let this_user_pay_thru_cashier_upi_txid_list = this_user_pay_thru_cashier.map(m => m.message
|
||||||
.upi_txid);
|
.upi_txid);
|
||||||
|
|
||||||
let all_cashier_processed_pay_thru_cashier = floDapps
|
let all_cashier_processed_pay_thru_cashier = removeDuplicates(floDapps
|
||||||
.getNextGeneralData(token_app.master_configurations.TYPE_PROCESSED_WITHDRAWS, "0");
|
.getNextGeneralData(token_app.master_configurations.TYPE_PROCESSED_WITHDRAWS, "0"));
|
||||||
|
|
||||||
let this_cashier_processed_user_pay_thru_cashier = all_cashier_processed_pay_thru_cashier
|
let this_cashier_processed_user_pay_thru_cashier = all_cashier_processed_pay_thru_cashier
|
||||||
.filter(f => this_user_pay_thru_cashier_upi_txid_list.includes(f.message.upi_txid));
|
.filter(f => this_user_pay_thru_cashier_upi_txid_list.includes(f.message.upi_txid));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user