warmachine028 / memories Goto Github PK
View Code? Open in Web Editor NEWA well refined project to store your valuable memories in a digital Diary
Home Page: https://memories-pritam.vercel.app
License: MIT License
A well refined project to store your valuable memories in a digital Diary
Home Page: https://memories-pritam.vercel.app
License: MIT License
server/controllers/user
Tracking issue for:
https://github.com/warmachine028/memories/security/code-scanning/40
Before:
export const getUser = async (id) => {
try {
const userId = id
const user = await User.findById(userId)
...
After:
Star my other Repositories here
Star my other Repositories here
Star my other Repositories here
Add CONTRIBTING.md and CODE_OF_CONDUCT.md file
Star my other Repositories here
Star my other Repositories here
Found the usage of undefined variables and variable used before definition in 2 files
Star my other Repositories here
No response
Star my other Repositories here
Star my other Repositories here
Star my other Repositories here
npm run dev
.Star my other Repositories here
Add Vite as a tech stack in README.md
No response
No response
When refreshing the page, a loading animation appears for the posts, which is expected behavior. However, there is an issue with the pagination. Initially, the pagination shows only "1" as the page number, and then it suddenly updates to show the actual page numbers. To address this issue and provide a more seamless user experience, it is necessary to implement a loading component that can handle these conditions:
No response
found unused variables, state and functions in 3 files
Star my other Repositories here
Star my other Repositories here
Performance can be improved by using regexpTest() over Stringmatch()
Star my other Repositories here
actions/post
Before:
const sanitize = ({ tags, search }) => {
return {
tags: tags.replace('#', '%23').replace(' ', '%20'),
search: search?.replace('#', '%23').replace(' ', '%20'),
}
}
After:
const sanitize = ({ tags, search }) => {
return {
tags: tags.replace(/#/g, '%23').replace(/ /g, '%20'),
search: search?.replace(/#/g, '%23').replace(/ /g, '%20'),
}
}
Star my other Repositories here
Describe the bug
When I see this beautiful website on a mobile device at 360px to read the whole post created by users I saw an insane thing the Post title is very big and looked very ugly and bad user experience
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The title's font size should be small on mobile screens it looks awesome
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
No options
to No tags found
Star my other Repositories here
Previous Deployment for Light mode
Current Deployment for Light mode
Star my other Repositories here
Found variable shadowing in 2 files and an unreachable code line in 1 file
Star my other Repositories here
nodemon
from server dependency to dev dependency$> cd server
$> npm uninstall nodemon
$> npm install --save-dev nodemon
"dependencies": {
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.1",
"cors": "^2.8.5",
"dotenv": "^16.0.0",
"express": "^4.17.2",
"express-rate-limit": "^6.7.0",
"jsonwebtoken": "^9.0.0",
"lodash": "^4.17.21",
"mongoose": "^6.12.0",
"nodemailer": "^6.7.7",
"nodemon": "^3.0.1"
}
"dependencies": {
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.1",
"cors": "^2.8.5",
"dotenv": "^16.0.0",
"express": "^4.17.2",
"express-rate-limit": "^6.7.0",
"jsonwebtoken": "^9.0.0",
"lodash": "^4.17.21",
"mongoose": "^6.12.0",
"nodemailer": "^6.7.7",
},
"devDependencies": {
"nodemon": "^3.0.1"
}
Star my other Repositories here
My suggestion is to implement custom scrollbar styling to complement the overall design and aesthetics. As we know, a visually appealing interface contributes significantly to user engagement and satisfaction.
As a user of Memories, I believe that these custom scrollbar styles would elevate the overall user experience and align better with the website's design vision.
No response
Star my other Repositories here
Have a look at this previous deployment.
Star my other Repositories here
square bracket notation are found in a file which is not recommended.
Star my other Repositories here
The tags input field is in incorrect size when empty.
Star my other Repositories here
Anti-pattern
Found duplicate imports on 4 files
Star my other Repositories here
Star my other Repositories here
Issued : the demo section of latest version of this repository doesn't show the gif.
No response
No response
Star my other Repositories here
Describe the bug
Memories crashes when changing page while editing post
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
A proper documentation for local setup will help in contribution. Details of env variables is not given on the rules.md.
The following variables were confusing during first time setup of the local environment.
Star my other Repositories here
No response
No response
server/controllers/user
Before:
export const googleSignin = async (req, res) => {
const { name, email, image, googleId } = req.body
try {
const id = new mongoose.Types.ObjectId(googleId)
const user = await User.findByIdAndUpdate(id, { name, email, image }, { upsert: true })
...
After:
export const googleSignin = async (req, res) => {
const { name, email, image, googleId } = req.body
try {
if (![name, email, image].every((field) => typeof field === "string")) {
return res.status(400).json({ status: "error" });
}
const user = await User.findByIdAndUpdate(googleId, { name, email, image }, { upsert: true })
Star my other Repositories here
This repo requires a pull request template for contributors fast. You can refer to the pr template in my UEMCRP project.
./server/index.js
Tracking issue for:
Star my other Repositories here
Hide below tabs -
Hide below widgets -
Note - Hide if you are not using
Tracking issue for:
server/.env.example
.TOKEN_SECRET
.secret
in the file accordingly.Star my other Repositories here
No response
Star my other Repositories here
Create Issue template for Issues.
Get help from my UEMCRP project.
Don't blindly copy paste, make necessary changes.
The animation can be implemented using CSS transitions, animations.
Always use styled components instead of plain CSS and MUI components.
Star my other Repositories here
Star my other Repositories here
As this project is getting contributions,
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.