arnaucube
arnaucube/commonroutesServerPublic Self-hosted repository
added icons to notifications
arnaucode idoctnef@openmailbox.org
Thu, 13 Jul 2017 20:39:19 +0200
commit

73c386ff7f542379bf43e1790ca6c339bf4a0b0b

parent

af912e3a3b6c85fac76ab1208cee91cd1aea0d26

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: + +![carsincommon](https://raw.githubusercontent.com/arnaucode/carsincommonApp/master/carsincommon.png "carsincommon") +code: https://github.com/arnaucode/carsincommonApp + +-------------------- **To Do Backend and Frontend:**

@@ -17,9 +27,6 @@ ```

- pagination search - https (tls/ssl) ``` - - --------------------- #### RESOURCES using:
M config.js → config.js

@@ -5,5 +5,4 @@ 'secret': 'secretfortoken',// local version

'database': 'mongodb://localhost/carsincommon', "port" : process.env.PORT || 3000, "pageSize": 20 - };
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);