Skip to content

Commit

Permalink
[notifications] - Add notifications page. Close #1126
Browse files Browse the repository at this point in the history
  • Loading branch information
sachalifs authored and mjlescano committed Apr 18, 2016
1 parent bae32af commit caa5232
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 2 deletions.
78 changes: 78 additions & 0 deletions lib/boot/boot_BACKUP_47312.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import 'native-promise-only';
import page from 'page';
import './timeago-fix'
import timeago from 'democracyos-timeago';
import debug from 'debug';
import config from '../config/config';

import '../translations/translations.js';

/**
* Enable client-side debug messages
*/

import '../debug';

/**
* Initialize debug for DemocracyOS
*/

let log = debug('democraycos:boot');

/**
* Mount applications.
*/

import '../analytics';
<<<<<<< HEAD
import '../body-classes/body';
import '../content-lock/locker';
import '../header/header';
import '../help/help';
import '../signin/signin';
import '../signup/signup';
import '../forgot/forgot';
import '../notifications-page/notifications';
import '../logout/logout';
=======
import '../body-classes/body.js';
import '../content-lock/locker.js';
import '../header/header.js';
import '../help/help.js';
import '../signin/signin.js';
import '../signup/signup.js';
import '../forgot/forgot.js';
import '../notifications-page/notifications.js';
import '../logout/logout.js';
>>>>>>> [notifications] - Add notifications page. Close #1126
import '../auth-facebook/auth-facebook';
import '../settings/settings';
import '../forum/forum';
import '../admin/admin';
import '../homepage/homepage';
import '../newsfeed/newsfeed';
import '../topic/topic';
// require('proposal');
// require('404');

/**
* Init `timeago` component with parameter locale
*/

timeago('.ago', { lang: config.locale, interval: 1000 });

/**
* Render not found page.
*/

page('*', () => log('Should render Not found.'));

/**
* Init page.js
*/

page();

if (config.googleAnalyticsTrackingId) {
require('democracyos-ga')(config.googleAnalyticsTrackingId);
}
64 changes: 64 additions & 0 deletions lib/boot/boot_BASE_47312.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import 'native-promise-only';
import page from 'page';
import timeago from 'democracyos-timeago';
import debug from 'debug';
import config from '../config/config';

import '../translations/translations.js';

/**
* Enable client-side debug messages
*/

import '../debug';

/**
* Initialize debug for DemocracyOS
*/

let log = debug('democraycos:boot');

/**
* Mount applications.
*/

import '../analytics';
import '../body-classes/body';
import '../content-lock/locker';
import '../header/header';
import '../help/help';
import '../signin/signin';
import '../signup/signup';
import '../forgot/forgot';
import '../logout/logout';
import '../auth-facebook/auth-facebook';
import '../settings/settings';
import '../forum/forum';
import '../admin/admin';
import '../homepage/homepage';
import '../newsfeed/newsfeed';
import '../topic/topic';
// require('proposal');
// require('404');

/**
* Init `timeago` component with parameter locale
*/

timeago('.ago', { lang: config.locale, interval: 1000 });

/**
* Render not found page.
*/

page('*', () => log('Should render Not found.'));

/**
* Init page.js
*/

page();

if (config.googleAnalyticsTrackingId) {
require('democracyos-ga')(config.googleAnalyticsTrackingId);
}
66 changes: 66 additions & 0 deletions lib/boot/boot_LOCAL_47312.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import 'native-promise-only';
import page from 'page';
import './timeago-fix'
import timeago from 'democracyos-timeago';
import debug from 'debug';
import config from '../config/config';

import '../translations/translations.js';

/**
* Enable client-side debug messages
*/

import '../debug';

/**
* Initialize debug for DemocracyOS
*/

let log = debug('democraycos:boot');

/**
* Mount applications.
*/

import '../analytics';
import '../body-classes/body';
import '../content-lock/locker';
import '../header/header';
import '../help/help';
import '../signin/signin';
import '../signup/signup';
import '../forgot/forgot';
import '../notifications-page/notifications';
import '../logout/logout';
import '../auth-facebook/auth-facebook';
import '../settings/settings';
import '../forum/forum';
import '../admin/admin';
import '../homepage/homepage';
import '../newsfeed/newsfeed';
import '../topic/topic';
// require('proposal');
// require('404');

/**
* Init `timeago` component with parameter locale
*/

timeago('.ago', { lang: config.locale, interval: 1000 });

/**
* Render not found page.
*/

page('*', () => log('Should render Not found.'));

/**
* Init page.js
*/

page();

if (config.googleAnalyticsTrackingId) {
require('democracyos-ga')(config.googleAnalyticsTrackingId);
}
65 changes: 65 additions & 0 deletions lib/boot/boot_REMOTE_47312.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import 'native-promise-only';
import page from 'page';
import timeago from 'democracyos-timeago';
import debug from 'debug';
import config from '../config/config';

import '../translations/translations.js';

/**
* Enable client-side debug messages
*/

import '../debug';

/**
* Initialize debug for DemocracyOS
*/

let log = debug('democraycos:boot');

/**
* Mount applications.
*/

import '../analytics';
import '../body-classes/body.js';
import '../content-lock/locker.js';
import '../header/header.js';
import '../help/help.js';
import '../signin/signin.js';
import '../signup/signup.js';
import '../forgot/forgot.js';
import '../notifications-page/notifications.js';
import '../logout/logout.js';
import '../auth-facebook/auth-facebook';
import '../settings/settings';
import '../forum/forum';
import '../admin/admin';
import '../homepage/homepage';
import '../newsfeed/newsfeed';
import '../topic/topic';
// require('proposal');
// require('404');

/**
* Init `timeago` component with parameter locale
*/

timeago('.ago', { lang: config.locale, interval: 1000 });

/**
* Render not found page.
*/

page('*', () => log('Should render Not found.'));

/**
* Init page.js
*/

page();

if (config.googleAnalyticsTrackingId) {
require('democracyos-ga')(config.googleAnalyticsTrackingId);
}
4 changes: 2 additions & 2 deletions lib/notifications-page/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import debug from 'debug'
import o from 'component-dom'
import page from 'page'
import t from 't-component'
import title from '../title/title.js'
import Notifications from './view.js'
import title from '../title/title'
import Notifications from './view'
import notificationsStore from '../notification-store/notification-store'

/**
Expand Down

0 comments on commit caa5232

Please sign in to comment.