Skip to content

Commit

Permalink
Merge pull request #374 from RunOnFlux/development
Browse files Browse the repository at this point in the history
v3.0.3
  • Loading branch information
TheTrunk authored Nov 30, 2021
2 parents c6364cc + 738d2c6 commit 29e0bc2
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 19 deletions.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion HomeUI/dist/css/chunk-1ed85d30.css

This file was deleted.

1 change: 1 addition & 0 deletions HomeUI/dist/css/chunk-74da2b58.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/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
transform: rotate(1turn);
opacity: 1;
}
}</style><link rel="icon" href="/logo.png" type="image/x-icon"><link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap" rel="stylesheet"><title>FluxOS Dashboard</title><link href="/css/chunk-049e28b4.css" rel="prefetch"><link href="/css/chunk-11167d93.css" rel="prefetch"><link href="/css/chunk-1c76f7fe.css" rel="prefetch"><link href="/css/chunk-1ed85d30.css" rel="prefetch"><link href="/css/chunk-1fb3aa5d.css" rel="prefetch"><link href="/css/chunk-238f14a8.css" rel="prefetch"><link href="/css/chunk-2b6840ea.css" rel="prefetch"><link href="/css/chunk-2e4305fd.css" rel="prefetch"><link href="/css/chunk-2f037878.css" rel="prefetch"><link href="/css/chunk-377903a4.css" rel="prefetch"><link href="/css/chunk-3bddc606.css" rel="prefetch"><link href="/css/chunk-448594c3.css" rel="prefetch"><link href="/css/chunk-44a48fcb.css" rel="prefetch"><link href="/css/chunk-4ba4f37c.css" rel="prefetch"><link href="/css/chunk-4d0d7446.css" rel="prefetch"><link href="/css/chunk-50ab797a.css" rel="prefetch"><link href="/css/chunk-56bfc1e1.css" rel="prefetch"><link href="/css/chunk-57cc3794.css" rel="prefetch"><link href="/css/chunk-586caf0d.css" rel="prefetch"><link href="/css/chunk-593d700c.css" rel="prefetch"><link href="/css/chunk-5fed373c.css" rel="prefetch"><link href="/css/chunk-66546a30.css" rel="prefetch"><link href="/css/chunk-68c6ed17.css" rel="prefetch"><link href="/css/chunk-7c77c1e2.css" rel="prefetch"><link href="/css/chunk-7cc860f7.css" rel="prefetch"><link href="/css/chunk-829f4c26.css" rel="prefetch"><link href="/css/chunk-84a82956.css" rel="prefetch"><link href="/css/chunk-b2383f76.css" rel="prefetch"><link href="/css/chunk-cb06fb70.css" rel="prefetch"><link href="/css/chunk-f4e44914.css" rel="prefetch"><link href="/css/chunk-f742bcf2.css" rel="prefetch"><link href="/css/chunk-f8d17ac2.css" rel="prefetch"><link href="/css/chunk-ff4818f0.css" rel="prefetch"><link href="/js/chunk-049e28b4.js" rel="prefetch"><link href="/js/chunk-08f30e46.js" rel="prefetch"><link href="/js/chunk-0c9d4aae.js" rel="prefetch"><link href="/js/chunk-0fdab1f5.js" rel="prefetch"><link href="/js/chunk-11167d93.js" rel="prefetch"><link href="/js/chunk-18c81973.js" rel="prefetch"><link href="/js/chunk-1c76f7fe.js" rel="prefetch"><link href="/js/chunk-1d267246.js" rel="prefetch"><link href="/js/chunk-1ed85d30.js" rel="prefetch"><link href="/js/chunk-1fb3aa5d.js" rel="prefetch"><link href="/js/chunk-207cf88f.js" rel="prefetch"><link href="/js/chunk-238f14a8.js" rel="prefetch"><link href="/js/chunk-255299ca.js" rel="prefetch"><link href="/js/chunk-276a226b.js" rel="prefetch"><link href="/js/chunk-2928c9ba.js" rel="prefetch"><link href="/js/chunk-292e506e.js" rel="prefetch"><link href="/js/chunk-2a15b404.js" rel="prefetch"><link href="/js/chunk-2b6840ea.js" rel="prefetch"><link href="/js/chunk-2d2082cb.js" rel="prefetch"><link href="/js/chunk-2dcd0dfb.js" rel="prefetch"><link href="/js/chunk-2e4305fd.js" rel="prefetch"><link href="/js/chunk-2f037878.js" rel="prefetch"><link href="/js/chunk-3775d85b.js" rel="prefetch"><link href="/js/chunk-377903a4.js" rel="prefetch"><link href="/js/chunk-3bddc606.js" rel="prefetch"><link href="/js/chunk-3f1b13c2.js" rel="prefetch"><link href="/js/chunk-41b45156.js" rel="prefetch"><link href="/js/chunk-448594c3.js" rel="prefetch"><link href="/js/chunk-44a48fcb.js" rel="prefetch"><link href="/js/chunk-45eb91e0.js" rel="prefetch"><link href="/js/chunk-49419389.js" rel="prefetch"><link href="/js/chunk-4ba4f37c.js" rel="prefetch"><link href="/js/chunk-4d0d7446.js" rel="prefetch"><link href="/js/chunk-50ab797a.js" rel="prefetch"><link href="/js/chunk-52d08741.js" rel="prefetch"><link href="/js/chunk-56bfc1e1.js" rel="prefetch"><link href="/js/chunk-57cc3794.js" rel="prefetch"><link href="/js/chunk-586caf0d.js" rel="prefetch"><link href="/js/chunk-593d700c.js" rel="prefetch"><link href="/js/chunk-5a60f0de.js" rel="prefetch"><link href="/js/chunk-5b67c44c.js" rel="prefetch"><link href="/js/chunk-5fed373c.js" rel="prefetch"><link href="/js/chunk-623dc2e1.js" rel="prefetch"><link href="/js/chunk-64f322df.js" rel="prefetch"><link href="/js/chunk-650d0bfc.js" rel="prefetch"><link href="/js/chunk-66546a30.js" rel="prefetch"><link href="/js/chunk-68c6ed17.js" rel="prefetch"><link href="/js/chunk-69bcc4fe.js" rel="prefetch"><link href="/js/chunk-6fff6798.js" rel="prefetch"><link href="/js/chunk-70d6337e.js" rel="prefetch"><link href="/js/chunk-72cac487.js" rel="prefetch"><link href="/js/chunk-7a1a851d.js" rel="prefetch"><link href="/js/chunk-7bf0b7cc.js" rel="prefetch"><link href="/js/chunk-7c77c1e2.js" rel="prefetch"><link href="/js/chunk-7cc860f7.js" rel="prefetch"><link href="/js/chunk-7db479ac.js" rel="prefetch"><link href="/js/chunk-7fc4780e.js" rel="prefetch"><link href="/js/chunk-829f4c26.js" rel="prefetch"><link href="/js/chunk-84a82956.js" rel="prefetch"><link href="/js/chunk-b2383f76.js" rel="prefetch"><link href="/js/chunk-cb06fb70.js" rel="prefetch"><link href="/js/chunk-cb4887ac.js" rel="prefetch"><link href="/js/chunk-ceeb5c8c.js" rel="prefetch"><link href="/js/chunk-d4fcbd38.js" rel="prefetch"><link href="/js/chunk-e696eef4.js" rel="prefetch"><link href="/js/chunk-f4e44914.js" rel="prefetch"><link href="/js/chunk-f742bcf2.js" rel="prefetch"><link href="/js/chunk-f8b79a3e.js" rel="prefetch"><link href="/js/chunk-f8d17ac2.js" rel="prefetch"><link href="/js/chunk-ff4818f0.js" rel="prefetch"><link href="/css/index.css" rel="preload" as="style"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/js/index.js" rel="preload" as="script"><link href="/css/index.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but the FluxOS Dashboard doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="loading-bg"><div class="loading-logo"><img src="/logo.png" alt="Logo"></div><div class="loading"><div class="effect-1 effects"></div><div class="effect-2 effects"></div><div class="effect-3 effects"></div></div></div><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/index.js"></script></body><script>var skin = localStorage.getItem('vuexy-skin') || 'dark';
}</style><link rel="icon" href="/logo.png" type="image/x-icon"><link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap" rel="stylesheet"><title>FluxOS Dashboard</title><link href="/css/chunk-049e28b4.css" rel="prefetch"><link href="/css/chunk-089f62c4.css" rel="prefetch"><link href="/css/chunk-11167d93.css" rel="prefetch"><link href="/css/chunk-1c76f7fe.css" rel="prefetch"><link href="/css/chunk-1fb3aa5d.css" rel="prefetch"><link href="/css/chunk-238f14a8.css" rel="prefetch"><link href="/css/chunk-2b6840ea.css" rel="prefetch"><link href="/css/chunk-2e4305fd.css" rel="prefetch"><link href="/css/chunk-2f037878.css" rel="prefetch"><link href="/css/chunk-377903a4.css" rel="prefetch"><link href="/css/chunk-3bddc606.css" rel="prefetch"><link href="/css/chunk-448594c3.css" rel="prefetch"><link href="/css/chunk-44a48fcb.css" rel="prefetch"><link href="/css/chunk-4ba4f37c.css" rel="prefetch"><link href="/css/chunk-4d0d7446.css" rel="prefetch"><link href="/css/chunk-50ab797a.css" rel="prefetch"><link href="/css/chunk-56bfc1e1.css" rel="prefetch"><link href="/css/chunk-57cc3794.css" rel="prefetch"><link href="/css/chunk-586caf0d.css" rel="prefetch"><link href="/css/chunk-593d700c.css" rel="prefetch"><link href="/css/chunk-5fed373c.css" rel="prefetch"><link href="/css/chunk-66546a30.css" rel="prefetch"><link href="/css/chunk-68c6ed17.css" rel="prefetch"><link href="/css/chunk-74da2b58.css" rel="prefetch"><link href="/css/chunk-7c77c1e2.css" rel="prefetch"><link href="/css/chunk-829f4c26.css" rel="prefetch"><link href="/css/chunk-84a82956.css" rel="prefetch"><link href="/css/chunk-b2383f76.css" rel="prefetch"><link href="/css/chunk-cb06fb70.css" rel="prefetch"><link href="/css/chunk-f4e44914.css" rel="prefetch"><link href="/css/chunk-f742bcf2.css" rel="prefetch"><link href="/css/chunk-f8d17ac2.css" rel="prefetch"><link href="/css/chunk-ff4818f0.css" rel="prefetch"><link href="/js/chunk-049e28b4.js" rel="prefetch"><link href="/js/chunk-089f62c4.js" rel="prefetch"><link href="/js/chunk-08f30e46.js" rel="prefetch"><link href="/js/chunk-0c9d4aae.js" rel="prefetch"><link href="/js/chunk-0fdab1f5.js" rel="prefetch"><link href="/js/chunk-11167d93.js" rel="prefetch"><link href="/js/chunk-18c81973.js" rel="prefetch"><link href="/js/chunk-1c76f7fe.js" rel="prefetch"><link href="/js/chunk-1d267246.js" rel="prefetch"><link href="/js/chunk-1fb3aa5d.js" rel="prefetch"><link href="/js/chunk-207cf88f.js" rel="prefetch"><link href="/js/chunk-238f14a8.js" rel="prefetch"><link href="/js/chunk-255299ca.js" rel="prefetch"><link href="/js/chunk-276a226b.js" rel="prefetch"><link href="/js/chunk-2928c9ba.js" rel="prefetch"><link href="/js/chunk-292e506e.js" rel="prefetch"><link href="/js/chunk-2a15b404.js" rel="prefetch"><link href="/js/chunk-2b6840ea.js" rel="prefetch"><link href="/js/chunk-2d2082cb.js" rel="prefetch"><link href="/js/chunk-2dcd0dfb.js" rel="prefetch"><link href="/js/chunk-2e4305fd.js" rel="prefetch"><link href="/js/chunk-2f037878.js" rel="prefetch"><link href="/js/chunk-3775d85b.js" rel="prefetch"><link href="/js/chunk-377903a4.js" rel="prefetch"><link href="/js/chunk-3bddc606.js" rel="prefetch"><link href="/js/chunk-3f1b13c2.js" rel="prefetch"><link href="/js/chunk-41b45156.js" rel="prefetch"><link href="/js/chunk-448594c3.js" rel="prefetch"><link href="/js/chunk-44a48fcb.js" rel="prefetch"><link href="/js/chunk-45eb91e0.js" rel="prefetch"><link href="/js/chunk-49419389.js" rel="prefetch"><link href="/js/chunk-4ba4f37c.js" rel="prefetch"><link href="/js/chunk-4d0d7446.js" rel="prefetch"><link href="/js/chunk-50ab797a.js" rel="prefetch"><link href="/js/chunk-52d08741.js" rel="prefetch"><link href="/js/chunk-56bfc1e1.js" rel="prefetch"><link href="/js/chunk-57cc3794.js" rel="prefetch"><link href="/js/chunk-586caf0d.js" rel="prefetch"><link href="/js/chunk-593d700c.js" rel="prefetch"><link href="/js/chunk-5a60f0de.js" rel="prefetch"><link href="/js/chunk-5b67c44c.js" rel="prefetch"><link href="/js/chunk-5fed373c.js" rel="prefetch"><link href="/js/chunk-623dc2e1.js" rel="prefetch"><link href="/js/chunk-64f322df.js" rel="prefetch"><link href="/js/chunk-650d0bfc.js" rel="prefetch"><link href="/js/chunk-66546a30.js" rel="prefetch"><link href="/js/chunk-68c6ed17.js" rel="prefetch"><link href="/js/chunk-69bcc4fe.js" rel="prefetch"><link href="/js/chunk-6fff6798.js" rel="prefetch"><link href="/js/chunk-70d6337e.js" rel="prefetch"><link href="/js/chunk-72cac487.js" rel="prefetch"><link href="/js/chunk-74da2b58.js" rel="prefetch"><link href="/js/chunk-7a1a851d.js" rel="prefetch"><link href="/js/chunk-7bf0b7cc.js" rel="prefetch"><link href="/js/chunk-7c77c1e2.js" rel="prefetch"><link href="/js/chunk-7db479ac.js" rel="prefetch"><link href="/js/chunk-7fc4780e.js" rel="prefetch"><link href="/js/chunk-829f4c26.js" rel="prefetch"><link href="/js/chunk-84a82956.js" rel="prefetch"><link href="/js/chunk-b2383f76.js" rel="prefetch"><link href="/js/chunk-cb06fb70.js" rel="prefetch"><link href="/js/chunk-cb4887ac.js" rel="prefetch"><link href="/js/chunk-ceeb5c8c.js" rel="prefetch"><link href="/js/chunk-d4fcbd38.js" rel="prefetch"><link href="/js/chunk-e696eef4.js" rel="prefetch"><link href="/js/chunk-f4e44914.js" rel="prefetch"><link href="/js/chunk-f742bcf2.js" rel="prefetch"><link href="/js/chunk-f8b79a3e.js" rel="prefetch"><link href="/js/chunk-f8d17ac2.js" rel="prefetch"><link href="/js/chunk-ff4818f0.js" rel="prefetch"><link href="/css/index.css" rel="preload" as="style"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/js/index.js" rel="preload" as="script"><link href="/css/index.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but the FluxOS Dashboard doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="loading-bg"><div class="loading-logo"><img src="/logo.png" alt="Logo"></div><div class="loading"><div class="effect-1 effects"></div><div class="effect-2 effects"></div><div class="effect-3 effects"></div></div></div><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/index.js"></script></body><script>var skin = localStorage.getItem('vuexy-skin') || 'dark';
if (skin === 'dark') {
document.body.classList.add('dark-layout')
} else if (document.body.className.match('dark-layout')) {
Expand Down
2 changes: 1 addition & 1 deletion HomeUI/dist/js/chunk-049e28b4.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions HomeUI/dist/js/chunk-089f62c4.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion HomeUI/dist/js/chunk-1ed85d30.js

This file was deleted.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/chunk-57cc3794.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion HomeUI/dist/js/chunk-5fed373c.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions HomeUI/dist/js/chunk-74da2b58.js

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions HomeUI/dist/js/chunk-7cc860f7.js

This file was deleted.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion HomeUI/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default {
]),
callbackValue() {
const backendURL = this.backendURL();
const url = `${backendURL}/zelid/verifylogin`;
const url = `${backendURL}/id/verifylogin`;
return encodeURI(url);
},
},
Expand Down
2 changes: 1 addition & 1 deletion HomeUI/src/views/apps/Management.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ export default {
mybackend += this.config.apiPort;
}
const backendURL = store.get('backendURL') || mybackend;
const url = `${backendURL}/zelid/providesign`;
const url = `${backendURL}/id/providesign`;
return encodeURI(url);
},
validTill() {
Expand Down
2 changes: 1 addition & 1 deletion HomeUI/src/views/apps/RegisterFluxApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ export default {
mybackend += this.config.apiPort;
}
const backendURL = store.get('backendURL') || mybackend;
const url = `${backendURL}/zelid/providesign`;
const url = `${backendURL}/id/providesign`;
return encodeURI(url);
},
},
Expand Down
2 changes: 1 addition & 1 deletion HomeUI/src/views/xdao/ProposalView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export default {
mybackend += config.value.apiPort;
}
const backendURL = store.get('backendURL') || mybackend;
const url = `${backendURL}/zelid/providesign`;
const url = `${backendURL}/id/providesign`;
return encodeURI(url);
};
Expand Down
42 changes: 42 additions & 0 deletions ZelBack/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ module.exports = (app, expressWs) => {
app.get('/id/emergencyphrase', (req, res) => {
idService.emergencyPhrase(req, res);
});
app.get('/zelid/loginphrase', (req, res) => {
idService.loginPhrase(req, res);
});
app.get('/zelid/emergencyphrase', (req, res) => {
idService.emergencyPhrase(req, res);
});

app.get('/flux/nodetier', cache('30 seconds'), (req, res) => {
fluxService.getNodeTier(req, res);
Expand All @@ -217,6 +223,9 @@ module.exports = (app, expressWs) => {
app.get('/flux/zelid', cache('30 seconds'), (req, res) => {
fluxService.getFluxZelID(req, res);
});
app.get('/flux/id', cache('30 seconds'), (req, res) => {
fluxService.getFluxZelID(req, res);
});
app.get('/flux/cruxid', cache('30 seconds'), (req, res) => {
fluxService.getFluxCruxID(req, res);
});
Expand Down Expand Up @@ -361,6 +370,15 @@ module.exports = (app, expressWs) => {
app.get('/id/logoutallsessions', cache('30 seconds'), (req, res) => {
idService.logoutAllSessions(req, res);
});
app.get('/zelid/loggedsessions', cache('30 seconds'), (req, res) => {
idService.loggedSessions(req, res);
});
app.get('/zelid/logoutcurrentsession', cache('30 seconds'), (req, res) => {
idService.logoutCurrentSession(req, res);
});
app.get('/zelid/logoutallsessions', cache('30 seconds'), (req, res) => {
idService.logoutAllSessions(req, res);
});

app.get('/benchmark/getstatus', cache('30 seconds'), (req, res) => {
benchmarkService.getStatus(req, res);
Expand Down Expand Up @@ -578,6 +596,15 @@ module.exports = (app, expressWs) => {
app.get('/id/logoutallusers', (req, res) => {
idService.logoutAllUsers(req, res);
});
app.get('/zelid/loggedusers', (req, res) => {
idService.loggedUsers(req, res);
});
app.get('/zelid/activeloginphrases', (req, res) => {
idService.activeLoginPhrases(req, res);
});
app.get('/zelid/logoutallusers', (req, res) => {
idService.logoutAllUsers(req, res);
});

app.get('/flux/adjustcruxid/:cruxid?', (req, res) => { // note this essentially rebuilds flux use with caution!
fluxService.adjustCruxID(req, res);
Expand Down Expand Up @@ -802,6 +829,15 @@ module.exports = (app, expressWs) => {
app.post('/id/checkprivilege', (req, res) => {
idService.checkLoggedUser(req, res);
});
app.post('/zelid/verifylogin', (req, res) => {
idService.verifyLogin(req, res);
});
app.post('/zelid/providesign', (req, res) => {
idService.provideSign(req, res);
});
app.post('/zelid/checkprivilege', (req, res) => {
idService.checkLoggedUser(req, res);
});

app.post('/daemon/createrawtransaction', (req, res) => {
daemonService.createRawTransactionPost(req, res);
Expand Down Expand Up @@ -829,6 +865,9 @@ module.exports = (app, expressWs) => {
app.post('/id/logoutspecificsession', (req, res) => { // requires the knowledge of a session loginPhrase so users level is sufficient and user cannot logout another user as he does not know the loginPhrase.
idService.logoutSpecificSession(req, res);
});
app.post('/zelid/logoutspecificsession', (req, res) => { // requires the knowledge of a session loginPhrase so users level is sufficient and user cannot logout another user as he does not know the loginPhrase.
idService.logoutSpecificSession(req, res);
});

app.post('/daemon/submitblock', (req, res) => {
daemonService.submitBlockPost(req, res);
Expand Down Expand Up @@ -892,6 +931,9 @@ module.exports = (app, expressWs) => {
app.ws('/ws/id/:loginphrase', (ws, req) => {
idService.wsRespondLoginPhrase(ws, req);
});
app.ws('/ws/zelid/:loginphrase', (ws, req) => {
idService.wsRespondLoginPhrase(ws, req);
});
app.ws('/ws/sign/:message', (ws, req) => {
idService.wsRespondSignature(ws, req);
});
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": "3.0.2",
"version": "3.0.3",
"description": "Flux, Your Gateway to a Decentralized World",
"repository": {
"type": "git",
Expand Down

0 comments on commit 29e0bc2

Please sign in to comment.