Closed Tanay-ErrorCode closed 6 days ago
Currently, there is UI for Article Writing, add backend logic to create and display articles.
ArticleWritingPage.tsx
Articles HomePage.tsx
None.
The single article reading page should look like this:
The data must be stored this this way:
There must be another section in the database named articles:
articles
Inside articles the articles will be saved with a unique ID like the events:
The unique Id generation function used must be:
function generateUUID() { var d = new Date().getTime(); var d2 = (typeof performance !== "undefined" && performance.now && performance.now() 1000) || 0; return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { var 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); }); }
Assign me this issue
@nishant0708 Go ahead.
Is your feature request related to a problem? Please describe.
Currently, there is UI for Article Writing, add backend logic to create and display articles.
Describe the solution you'd like
ArticleWritingPage.tsx
.Articles HomePage.tsx
.Describe alternatives you've considered
None.
Additional context
The single article reading page should look like this:
The data must be stored this this way:
There must be another section in the database named
articles
:Inside articles the articles will be saved with a unique ID like the events:
The unique Id generation function used must be:
function generateUUID() { var d = new Date().getTime(); var d2 = (typeof performance !== "undefined" && performance.now && performance.now() 1000) || 0; return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { var 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); }); }