-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[notifications] - Add notifications page. Close #1126
- Loading branch information
Showing
5 changed files
with
275 additions
and
2 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 |
---|---|---|
@@ -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); | ||
} |
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,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); | ||
} |
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,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); | ||
} |
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,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); | ||
} |
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