Skip to content

Conversation

@AhmedHanafy725
Copy link
Contributor

No description provided.

Comment on lines +362 to +376
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)
})
}
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor

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",
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants