Skip to content

Commit

Permalink
shovee: all create and update form
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshiv007 committed Sep 30, 2023
1 parent ac47d2d commit 8f92b9d
Show file tree
Hide file tree
Showing 53 changed files with 5,145 additions and 230 deletions.
48 changes: 46 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
{
"extends": "next/core-web-vitals"
}
"extends": "next/core-web-vitals",
"rules": {
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"import/no-duplicates": "error",
"import/order": [
"error",
{
"groups": [
[
"builtin",
"external"
],
"internal",
[
"parent",
"sibling",
"index"
]
],
"newlines-between": "always"
}
],
"quotes": [
"error",
"double"
],
"react/jsx-max-props-per-line": [
"error",
{
"maximum": 4
}
],
"react/jsx-sort-props": [
"error",
{
"ignoreCase": true
}
],
"react/self-closing-comp": "error"
}
}
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: { domains: ["res.cloudinary.com"] }
}

module.exports = nextConfig
121 changes: 121 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
"@reduxjs/toolkit": "^1.9.6",
"autoprefixer": "10.4.16",
"axios": "^1.5.1",
"browser-image-compression": "^2.0.2",
"eslint": "8.50.0",
"eslint-config-next": "13.5.3",
"firebase": "^10.4.0",
"mongoose": "^7.5.3",
"next": "13.5.3",
"nodemailer": "^6.9.5",
"postcss": "8.4.31",
"react": "18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-debounce-input": "^3.3.0",
"react-dom": "18.2.0",
"react-icons": "^4.11.0",
"react-redux": "^8.1.2",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/images/developer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/male.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/noImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/person.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/components/application/boxes/savedEducationBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ export const SavedEducationBox = ({

// Edit Education
const editEducation = (i) => {
setFileInputValue("");
if (setFileInputValue) setFileInputValue("");
setEducationArray(educationArray.filter((education, index) => index !== i));
setEducationForm(educationArray[i]);
window.scrollTo({
top: 0,
behavior: "smooth", // Use smooth scrolling animation
});
};

// Move Up Education
Expand Down Expand Up @@ -119,4 +123,3 @@ export const SavedEducationBox = ({
</div>
);
};

5 changes: 4 additions & 1 deletion src/components/application/boxes/savedExperienceBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export const SavedExperienceBox = ({
experienceArray.filter((experience, index) => index !== i)
);
setExperienceForm(experienceArray[i]);
scrollTo(0, 0);
window.scrollTo({
top: 0,
behavior: "smooth", // Use smooth scrolling animation
});
};

// Move Up
Expand Down
7 changes: 5 additions & 2 deletions src/components/application/boxes/savedProjectBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ export const SavedProjectBox = ({

// Edit Project
const editProject = (i) => {
setFileInputValue("");
if (setFileInputValue) setFileInputValue("");
setProjectArray(projectArray.filter((project, index) => index !== i));
setProjectForm(projectArray[i]);
scrollTo(0, 0);
window.scrollTo({
top: 0,
behavior: "smooth", // Use smooth scrolling animation
});
};

// Move Up
Expand Down
2 changes: 1 addition & 1 deletion src/components/application/layout/alert/LiveAlert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const LiveAlert = ({ liveAlert, userName, firstName }) => {
"py-3 px-5 w-fit m-auto bg-green-600 flex items-center gap-8 rounded"
}
>
<div className='flex flex-col items-center gap-5'>
<div className='text-white flex flex-col items-center gap-5'>
<AiOutlineCheckCircle size={100} />
<div className='flex flex-col gap-5'>
<p className='text-white font-semibold'>
Expand Down
Loading

0 comments on commit 8f92b9d

Please sign in to comment.