cryptonomic / nautilus-cloud-ui Goto Github PK
View Code? Open in Web Editor NEWFrontend for Nautilus Cloud
Frontend for Nautilus Cloud
Update the following test
:443
to the Conseil URLUpdate the frontend code to match the new flow of user registration w.r.t ToS acceptance (along with other attributes such as newletter opt in) as described in Cryptonomic/Nautilus-Cloud#58.
The new registration workflow is described below.
/users/github-init
as before./users/github-init
endpoint responds with a new payload like this:{
"header": {
"payloadType":"REGISTERED"
},
"payload": {
"userId": 1,
"userEmail": "[email protected]",
"userRole": "user",
"registrationDate": "2019-11-20T08:56:55.067Z",
"accountSource": "github"
}
}
If the header
field is set to REGISTERED
, the FE can read the payload
field for the User
object and proceed to the next UI screen as before.
/users/github-init
endpoint responds with a payload like:{
"header":
{
"payloadType":"REGISTRATION"
},
"payload": {
"registrationAttemptId":"4362652f-6089-45e6-8c86-18fb01b3902b"
}
}
If the header
field is set to REGISTRATION
, the FE should prompt the ToS / Newsletter dialog to the user. Only if the user clicks the accept terms
button the following payload should be sent via POST
to /users/register
.
{
"registrationAttemptId":"c4e158da-6ef4-49f8-9f1c-30af76ded501", // Value from previous "REGISTRATION" payload.
"tosAccepted":true, // True always when user accepts terms
"newsletterAccepted": true // Depends on if user ticked newsletter checkbox
}
/users/register
upon successful registration will respond with the following payload:{
"header": {
"payloadType":"REGISTERED"
},
"payload": {
"userId": 1,
"userEmail": "[email protected]",
"userRole": "user",
"registrationDate": "2019-11-20T08:56:55.067Z",
"accountSource": "github"
}
}
If there is an error while registering a 403 error will be returned.
In the backend I'm working on a support for tokens and deprecating cookies. Cryptonomic/Nautilus-Cloud#65
The way this will work:
Set-Authorization
header and a token XYZ
Authorization
header with token XYZ
Set-Authorization
and an empty string as a token403 Forbidden
Update the following text in UI
web
tab to node
Only require terms to be accepted once, if the user already exists, skip to the account page.
Click the key refresh button on the left most UI box, causes the boxes to swap position.
Observed on FF 69.0.1, mainline.
Hide the terms dialog upon git hub login till a response is retrieved from the server.
The loading spinner can be displayed till the server responds.
Accept
and Decline
buttons during registration step appear too small.
Observed on FF 69.0.1, mainline
List of changes required, see comments.
NC should load the account page instead of the landing page is there is a valid authenticated session already present in the browser.
`
let header = await conseiljs.TezosConseilClient.getBlockHead(conseilServer, conseilServer.network).then(h => h).catch(console.error);
`
one time level = 1758298
one time level = 1758985
why change so many times? ...... any update on-chain or sdk
We're going to move away from Medium as a place where we publish our tutorials. NCUI should have some process where we can add content in markdown format and it would get added to the site.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.