-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from codeuino/development
Development--->Master merge
- Loading branch information
Showing
31 changed files
with
2,589 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,4 +79,6 @@ typings/ | |
|
||
# Config files | ||
credential.js | ||
secret.js | ||
secret.js | ||
|
||
views/images/uploads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Contributing to Donut | ||
========================== | ||
|
||
We welcome community contributions to plotsbot! To setup Donut locally, follow the instructions in the [README.md file](https://github.com/codeuino/Social-Platform-Donut/blob/master/README.md). | ||
|
||
## First Timers Welcome! | ||
|
||
New to open source/free software? Here are a selection of issues we've made especially for first-timers. We're here to help, so just ask if one looks interesting: | ||
|
||
|
||
Thank you so much! | ||
|
||
Learn more about contributing to Codeuino code projects on these pages: | ||
|
||
* https://github.com/codeuino/Social-Platform-Donut/blob/master/PR_Template.md | ||
|
||
* https://github.com/codeuino/Social-Platform-Donut/issues/new?assignees=&labels=&template=pull-request-template.md&title= | ||
|
||
## Bug reports & troubleshooting | ||
|
||
If you are submitting a bug, please go to https://github.com/codeuino/Social-Platform-Donut/issues/new | ||
|
||
## Make sure to follow templates for the same |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
### **Problem** | ||
_Describe the problem you are trying to achieve. Please provide in detail_ | ||
|
||
new and robust schema needed for users, project and notification. | ||
### **Issue this PR referred to** | ||
_Please refer to the issue this PR is referred to write in this format `Fixes #<issue number>`, Refer to this [link](https://help.github.com/en/articles/closing-issues-using-keywords) for more details_ | ||
Fixes issue number 146, Refer to this [link](https://github.com/codeuino/Social-Platform-Donut/issues/146) for more details_ | ||
|
||
### **Solution of problem** | ||
_How did you solve this problem? Please provide in detail_ | ||
I added some new fields to the schema of the user.js, project.js and notification.js | ||
|
||
### **Before and After Screenshots** | ||
_**Before** [How was it earlier, add it here]_ | ||
# in notification.js | ||
- added field shortinfo(type:string) for short description about notification. | ||
# in user.js | ||
- added field website(type:string) for any personal website user has. | ||
- added followerList and followingList(type:\[number]) to include the name of all the followers and following. | ||
- add field status(type:string) for status of user. | ||
- added field school(type:string) for user's schoolname. | ||
- added field collegeTimeperiod and schoolTimeperiod (type:\[Date]) for time period of college and school respectively. | ||
- added field blockedUser(type:\[Number]) for keeping track of all users blocked. | ||
# in project.js | ||
- added field endAt(type:\[Date]) as to when is the deadline. | ||
- added field shortDesc(type:String) for one liner description of the project. | ||
- added field linkedUser(type:\[Number]) for all the people linked with project. | ||
|
||
_**After** [How it looks now, add it here]_ | ||
### **Before and After Screenshots** | ||
|
||
### **Type of Change** | ||
- [ ] Bug fix | ||
- [ ] New Feature | ||
- [ ] Development of UI/UX prototypes | ||
- [ ] Small refactor | ||
- [ ] Change in Documentation | ||
- Small refactor | ||
|
||
### **Checklist** | ||
- [ ] My code follow the same style as the codebase | ||
- [ ] My Code changed required change in documentation | ||
- [ ] I have updated the Readme accordingly | ||
- [ ] I made PR within **development branch only** | ||
- My code follow the same style as the codebase | ||
- My Code changed required change in documentation | ||
- I have updated the Readme accordingly | ||
- I made PR within **development branch only** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
module.exports = { | ||
oauth: { | ||
clientID: "192695093229-kf95jtdv1jge25d86ak99e68dkrpu33o.apps.googleusercontent.com", | ||
clientSecret: "rXvfxBahDlJF1ORk7y660XM8" | ||
}, | ||
database: 'YOUR MONGODB URL', | ||
github: { | ||
clientID: 'c9afdb238ed98b213912', | ||
clientSecret: '3031efea8badea1381da682fd5f21e88e5a15d2f' | ||
}, | ||
facebook: { | ||
clientID: '383717979035587', | ||
clientSecret: '82bd80d286ef6e45606da6d53a97efbc' | ||
} | ||
} | ||
module.exports = { | ||
oauth: { | ||
clientID: "192695093229-kf95jtdv1jge25d86ak99e68dkrpu33o.apps.googleusercontent.com", | ||
clientSecret: "rXvfxBahDlJF1ORk7y660XM8" | ||
}, | ||
database: 'mongodb://localhost:27017/donut1', | ||
github: { | ||
clientID: 'c9afdb238ed98b213912', | ||
clientSecret: '3031efea8badea1381da682fd5f21e88e5a15d2f' | ||
}, | ||
facebook: { | ||
clientID: '383717979035587', | ||
clientSecret: '82bd80d286ef6e45606da6d53a97efbc' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const Jimp=require('jimp') | ||
|
||
module.exports={ | ||
ppResize:function(img,height,width){ | ||
imgDir="./views/uploads/profilePics/"+img | ||
console.log(typeof(imgDir)) | ||
Jimp.read(imgDir, (err, img) => { | ||
if (err) throw err; | ||
img | ||
.resize(width,height) | ||
.quality(60) | ||
.write(imgDir) | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.