-
Notifications
You must be signed in to change notification settings - Fork 5
Cleanup and upgrade for backend & frontend servers #1180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
| const generateUUID = (): string => { | ||
| let d = new Date().getTime() | ||
| let d2 = (performance?.now() * 1000) || 0 | ||
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { | ||
| let r = Math.random() * 16 | ||
| if (d > 0) { | ||
| r = (d + r) % 16 | 0 | ||
| d = Math.floor(d / 16) | ||
| } else { | ||
| r = (d2 + r) % 16 | 0 | ||
| d2 = Math.floor(d2 / 16) | ||
| } | ||
| return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16) | ||
| }) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same function is used here & in app.ts. Extract it & use it in here.
| @@ -1,18 +1,45 @@ | |||
| # 3botlogin_backend | |||
| # ThreeFold Connect Backend | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration needs to be updated in the README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update frontend readme title.
| @@ -1,47 +1,44 @@ | |||
| { | |||
| "name": "3botlogin_frontend", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to threefold-connect-frontend
No description provided.