added icons to notifications
arnaucode idoctnef@openmailbox.org
Thu, 13 Jul 2017 20:39:19 +0200
5 files changed,
23 insertions(+),
16 deletions(-)
M
README.md
→
README.md
@@ -1,15 +1,25 @@
# CarsInCommonServer -frontend app code: https://github.com/idoctnef/carsincommonApp -images server: https://github.com/arnaucode/goImgServer +- frontend app code: https://github.com/arnaucode/carsincommonApp +- images server: https://github.com/arnaucode/goImgServer **Backend:** - Nodejs + Express + MongoDB + +- Nodejs + Express + MongoDB +- Go --> for the images server **Frontend:** - Angularjs + Ionic + MaterialDesign + +- Angularjs + Ionic + +App: + + +code: https://github.com/arnaucode/carsincommonApp + +-------------------- **To Do Backend and Frontend:**@@ -17,9 +27,6 @@ ```
- pagination search - https (tls/ssl) ``` - - --------------------- #### RESOURCES using:
M
controllers/travelController.js
→
controllers/travelController.js
@@ -153,7 +153,7 @@ var notification = new notificationModel({
concept: "join", message: "user "+userJoining.username+" joins your travel "+travel.title, date: new Date(), - icon: 'join.png', + icon: 'ion-person-add', link: "travels/" + travel._id, user: user._id });@@ -212,7 +212,7 @@ var notification = new notificationModel({
concept: "unjoin", message: "user "+userJoining.username+" unjoins your travel "+travel.title, date: new Date(), - icon: 'unjoin.png', + icon: 'ion-arrow-return-left', link: "travels/" + travel._id, user: user._id });@@ -281,7 +281,7 @@ var notification = new notificationModel({
concept: "travel", message: "user "+userOwner.username+" declines your petition for "+travel.title, date: new Date(), - icon: 'travel.png', + icon: 'ion-close', link: "travels/" + travel._id, user: user._id });@@ -350,7 +350,7 @@ var notification = new notificationModel({
concept: "travel", message: "user "+userOwner.username+" accepts your petition for "+travel.title, date: new Date(), - icon: 'travel.png', + icon: 'ion-checkmark', link: "travels/" + travel._id, user: user._id });@@ -409,7 +409,7 @@ var notification = new notificationModel({
concept: "leave", message: "user "+userLeaving.username+" leaves your travel "+travel.title, date: new Date(), - icon: 'leave.png', + icon: 'ion-log-out', link: "travels/" + travel._id, user: user._id });
M
controllers/userController.js
→
controllers/userController.js
@@ -418,7 +418,7 @@ var notification = new notificationModel({
concept: "like", message: "user " + userL.username + " adds a like to you", date: new Date(), - icon: 'like.png', + icon: 'ion-heart', link: "users/" + user._id, user: user._id });@@ -469,7 +469,7 @@ var notification = new notificationModel({
concept: "like", message: "user " + userL.username + " removes like on you", date: new Date(), - icon: 'like.png', + icon: 'ion-heart-broken', link: "users/" + user._id, user: user._id });
M
models/notificationModel.js
→
models/notificationModel.js
@@ -14,7 +14,8 @@ concept: {type: String},
message: {type: String}, link: {type: String},//aquí oju, a la app i a la web calen links diferents date: {type: Date}, - dateviewed: {type: Date} + dateviewed: {type: Date}, + icon: {type: String} }) notificationSchema.plugin(mongooseUniqueValidator);