Skip to content

Commit

Permalink
Merge pull request #1388 from RunOnFlux/development
Browse files Browse the repository at this point in the history
v5.21.1
  • Loading branch information
TheTrunk authored Aug 15, 2024
2 parents d4c3fea + d300508 commit a8ac6e1
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 17 deletions.
1 change: 0 additions & 1 deletion HomeUI/dist/css/1875.css

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions HomeUI/dist/css/7585.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/3912.js → HomeUI/dist/js/1834.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions HomeUI/dist/js/1875.js

This file was deleted.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/7985.js → HomeUI/dist/js/5328.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/7805.js → HomeUI/dist/js/6855.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/9310.js → HomeUI/dist/js/7449.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions HomeUI/dist/js/7585.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/index.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions HomeUI/src/views/apps/Management.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8659,7 +8659,6 @@ export default {
timestamp: this.timestamp,
signature: this.signature,
};
// this.showToast('info', 'Propagating message accross Flux network...');
this.progressVisable = true;
this.operationTitle = "Propagating message accross Flux network...";
const response = await AppsService.updateApp(zelidauth, data).catch((error) => {
Expand Down Expand Up @@ -8817,7 +8816,7 @@ export default {
}
this.appPricePerSpecsUSD = +response.data.data.usd;
console.log(response.data.data);
if (!this.extendSubscription && this.appPricePerSpecsUSD <= 0.50) {
if (!this.extendSubscription && this.appPricePerSpecsUSD <= 0.99) {
this.freeUpdate = true;
} else if (Number.isNaN(+response.data.data.fluxDiscount)) {
this.applicationPriceFluxError = true;
Expand Down
31 changes: 30 additions & 1 deletion HomeUI/src/views/apps/RegisterFluxApp.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
<template>
<div>
<b-modal
v-model="progressVisable"
hide-footer
centered
hide-header-close
no-close-on-backdrop
no-close-on-esc
size="lg"
header-bg-variant="primary"
:title="operationTitle"
title-tag="h5"
>
<div class="d-flex flex-column justify-content-center align-items-center" style="height: 100%;">
<div class="d-flex align-items-center mb-2">
<b-spinner label="Loading..." />
<div class="ml-1">
Waiting for the operation to be completed...
</div>
</div>
</div>
</b-modal>
<b-card>
<b-card-sub-title>
Note: Mining of any sort including bandwidth mining is prohibited as well as any illegal activites. Please read through
Expand Down Expand Up @@ -2193,6 +2214,8 @@ export default {
},
data() {
return {
progressVisable: false,
operationTitle: '',
isDragging: false,
reader: new FileReader(),
tooltipText: 'Copy to clipboard',
Expand Down Expand Up @@ -2815,6 +2838,8 @@ export default {
throw new Error('This application is configured and needs to be bought directly from marketplace.');
}
// formation, pre verificaiton
this.operationTitle = ' Compute registration message...';
this.progressVisable = true;
const appSpecification = this.appRegistrationSpecification;
let secretsPresent = false;
if (appSpecification.version >= 7) {
Expand Down Expand Up @@ -2923,6 +2948,7 @@ export default {
this.applicationPrice = +response.data.data.flux;
this.applicationPriceFluxDiscount = +response.data.data.fluxDiscount;
}
this.progressVisable = false;
this.timestamp = Date.now();
this.dataForAppRegistration = appSpecFormatted;
this.dataToSign = this.registrationtype + this.version + JSON.stringify(appSpecFormatted) + this.timestamp;
Expand All @@ -2932,6 +2958,7 @@ export default {
}
});
} catch (error) {
this.progressVisable = false;
console.log(error);
this.showToast('danger', error.message || error);
}
Expand Down Expand Up @@ -3104,7 +3131,8 @@ export default {
timestamp: this.timestamp,
signature: this.signature,
};
this.showToast('info', 'Propagating message accross Flux network...');
this.progressVisable = true;
this.operationTitle = 'Propagating message accross Flux network...';
const response = await AppsService.registerApp(zelidauth, data).catch((error) => {
this.showToast('danger', error.message || error);
});
Expand All @@ -3120,6 +3148,7 @@ export default {
this.stripeEnabled = fiatGateways.stripe;
this.paypalEnabled = fiatGateways.paypal;
}
this.progressVisable = false;
},
async appsDeploymentInformation() {
Expand Down
4 changes: 2 additions & 2 deletions ZelBack/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module.exports = {
staticip: 0.4, // additional price per application for targetting nodes that have static ip address
},
],
fluxUSDRate: 0.91,
fluxUSDRate: 0.6,
usdprice: {
height: -1, // height from which price spec is valid
cpu: 0.15, // per 0.1 cpu core,
Expand All @@ -161,7 +161,7 @@ module.exports = {
staticip: 2, // additional price per application for targetting nodes that have static ip address
fluxmultiplier: 0.9, // discount given if payed with flux 1 would be 0%
multiplier: 1, // multiplier in case we want to increase prices globaly
minUSDPrice: 0.50, // min. usd price that can be paid with stripe/paypal.
minUSDPrice: 0.99, // min. usd price that can be paid with stripe/paypal.
},
appSpecsEnforcementHeights: {
1: 0, // blockheight v1 is deprecated. Not possible to use api to update to its specs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flux",
"version": "5.21.0",
"version": "5.21.1",
"description": "Flux, Your Gateway to a Decentralized World",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/globalconfig/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports = {
staticip: 0.4, // additional price per application for targetting nodes that have static ip address
},
],
fluxUSDRate: 0.91,
fluxUSDRate: 0.6,
usdprice: {
height: -1, // height from which price spec is valid
cpu: 0.15, // per 0.1 cpu core,
Expand All @@ -155,7 +155,7 @@ module.exports = {
staticip: 2, // additional price per application for targetting nodes that have static ip address
fluxmultiplier: 0.9, // discount given if payed with flux 1 would be 0%
multiplier: 1, // multiplier in case we want to increase prices globaly
minUSDPrice: 0.50, // min. usd price that can be paid with stripe/paypal.
minUSDPrice: 0.99, // min. usd price that can be paid with stripe/paypal.
},
appSpecsEnforcementHeights: {
1: 0, // blockheight v1 is deprecated. Not possible to use api to update to its specs
Expand Down

0 comments on commit a8ac6e1

Please sign in to comment.