-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change links home page * Project (#8) * change links home page (#5) * Feature/folder (#7) * #3 * Feature/folder (#9) * #3 update home page * reset page home * notification feature (#12) * #13 Display users's avatar each project (#14) 13-display-users-avatar-project
- Loading branch information
1 parent
ecf0829
commit e7ca62f
Showing
45 changed files
with
5,882 additions
and
754 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
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
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
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 |
---|---|---|
|
@@ -104,4 +104,7 @@ a:hover .header-profile-image { | |
position: absolute; | ||
left: 180px; | ||
top: 30px; | ||
} | ||
.menu{ | ||
height: 165px; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
viDoc/modules/notifications/client/notifications.client.module.js
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,5 @@ | ||
(function (app) { | ||
'use strict'; | ||
|
||
app.registerModule('notifications'); | ||
}(ApplicationConfiguration)); |
28 changes: 28 additions & 0 deletions
28
viDoc/modules/notifications/client/services/notifications.client.service.js
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,28 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
angular | ||
.module('core') | ||
.factory('NotificationsService', NotificationsService); | ||
|
||
NotificationsService.$inject = ['$resource']; | ||
|
||
function NotificationsService($resource) { | ||
var Notifications = $resource('/api/notifications', {}, { | ||
listNotifications: { | ||
method: 'GET', | ||
url: '/api/notifications', | ||
isArray: true | ||
} | ||
}); | ||
|
||
angular.extend( Notifications, { | ||
getNotifications: function() { | ||
return this.listNotifications().$promise; | ||
} | ||
}); | ||
|
||
return Notifications; | ||
} | ||
|
||
}()); |
24 changes: 24 additions & 0 deletions
24
viDoc/modules/notifications/client/views/form-notification.client.view.html
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,24 @@ | ||
<section> | ||
<div class="page-header"> | ||
<h1>{{vm.notification._id ? 'Edit Notification' : 'New Notification'}}</h1> | ||
</div> | ||
<div class="col-md-12"> | ||
<form name="vm.form.notificationForm" class="form-horizontal" ng-submit="vm.save(vm.form.notificationForm.$valid)" novalidate> | ||
<fieldset> | ||
<div class="form-group" show-errors> | ||
<label class="control-label" for="name">Name</label> | ||
<input name="name" type="text" ng-model="vm.notification.name" id="name" class="form-control" placeholder="Name" required> | ||
<div ng-messages="vm.form.notificationForm.name.$error" role="alert"> | ||
<p class="help-block error-text" ng-message="required">Notification name is required.</p> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<button type="submit" class="btn btn-default">{{vm.notification._id ? 'Update' : 'Create'}}</button> | ||
</div> | ||
<div ng-show="vm.error" class="text-danger"> | ||
<strong ng-bind="vm.error"></strong> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
</section> |
22 changes: 22 additions & 0 deletions
22
viDoc/modules/notifications/client/views/list-notifications.client.view.html
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,22 @@ | ||
<section> | ||
<div class="page-header"> | ||
<h1>Notifications</h1> | ||
</div> | ||
<div class="list-group"> | ||
<a ng-repeat="notification in vm.notifications" | ||
ui-sref="notifications.view({ notificationId: notification._id })" | ||
class="list-group-item"> | ||
<small class="list-group-item-text"> | ||
Posted on | ||
<span ng-bind="notification.created | date:'mediumDate'"></span> | ||
by | ||
<span ng-if="notification.user" ng-bind="notification.user.displayName"></span> | ||
<span ng-if="!notification.user">Deleted User</span> | ||
</small> | ||
<h4 class="list-group-item-heading" ng-bind="notification.name"></h4> | ||
</a> | ||
</div> | ||
<div class="alert alert-warning text-center" ng-if="vm.notifications.$resolved && !vm.notifications.length"> | ||
No Notifications yet, why don't you <a ui-sref="notifications.create">create one</a>? | ||
</div> | ||
</section> |
26 changes: 26 additions & 0 deletions
26
viDoc/modules/notifications/client/views/view-notification.client.view.html
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,26 @@ | ||
<section> | ||
<div class="page-header"> | ||
<h1 ng-bind="vm.notification.name"></h1> | ||
</div> | ||
<div class="pull-right" | ||
ng-show="vm.notification.isCurrentUserOwner"> | ||
<a class="btn btn-primary" | ||
ui-sref="notifications.edit({ notificationId: vm.notification._id })"> | ||
<i class="glyphicon glyphicon-edit"></i> | ||
</a> | ||
<a class="btn btn-primary" ng-click="vm.remove()"> | ||
<i class="glyphicon glyphicon-trash"></i> | ||
</a> | ||
</div> | ||
<small> | ||
<em class="text-muted"> | ||
Posted on | ||
<span ng-bind="vm.notification.created | date:'mediumDate'"></span> | ||
by | ||
<span ng-if="vm.notification.user" | ||
ng-bind="vm.notification.user.displayName"></span> | ||
<span ng-if="!vm.notification.user">Deleted User</span> | ||
</em> | ||
</small> | ||
<p class="lead" ng-bind="vm.notification.content"></p> | ||
</section> |
14 changes: 14 additions & 0 deletions
14
viDoc/modules/notifications/server/config/notifications.server.config.js
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,14 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Module dependencies | ||
*/ | ||
var path = require('path'), | ||
config = require(path.resolve('./config/config')); | ||
|
||
/** | ||
* Notifications module init function. | ||
*/ | ||
module.exports = function (app, db) { | ||
|
||
}; |
Oops, something went wrong.