forked from jeescu/meteor-react-admin-lte
-
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.
- Loading branch information
John Edward
committed
Apr 3, 2017
1 parent
a007365
commit 3aa8e12
Showing
45 changed files
with
815 additions
and
800 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,5 @@ | ||
/node_modules | ||
/.meteor | ||
/.vscode | ||
/client | ||
/public |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* eslint-disable import/no-unresolved */ | ||
import { Meteor } from 'meteor/meteor'; | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Routes } from './routes'; | ||
|
||
Meteor.startup(() => { | ||
render(<Routes />, document.getElementById('react-root')); | ||
$('body').addClass('skin-blue'); | ||
}); |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
import React from 'react'; | ||
import { Router, Route, browserHistory } from 'react-router'; | ||
|
||
import Index from '../../ui/components/index'; | ||
import SignIn from '../../ui/components/sign_in'; | ||
import SignUp from '../../ui/components/sign_up'; | ||
import Dashboard from '../../ui/components/dashboard/dashboard'; | ||
import Statistics from '../../ui/components/dashboard/views/statistics/statistics'; | ||
import { NotFound } from '../../ui/pages/not_found/not_found'; | ||
|
||
export const Routes = () => ( | ||
<Router history={browserHistory}> | ||
<Route path="/" component={Index}> | ||
<Route path="/home" name="home" component={Index} /> | ||
<Route path="/sign-in" name="signIn" component={SignIn} /> | ||
<Route path="/sign-up" name="signUp" component={SignUp} /> | ||
<Route path="/dashboard" component={Dashboard}> | ||
<Route path="/dashboard" component={Statistics} /> | ||
</Route> | ||
</Route> | ||
<Route name="not-found" path="*" component={NotFound} /> | ||
</Router> | ||
); |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
import React from 'react'; | ||
|
||
const AppFooter = () => ( | ||
<footer className="main-footer"> | ||
<div className="pull-right hidden-xs"> | ||
<b>Version</b> 2.3.11 | ||
</div> | ||
<strong>Copyright © 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved. | ||
</footer> | ||
); | ||
|
||
export default AppFooter; |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
import React from 'react'; | ||
|
||
import AppHeaderNotificationMenu from './header_menus/app_header_notification_menu'; | ||
import AppHeaderUserMenu from './header_menus/app_header_user_menu'; | ||
|
||
const AppHeader = () => ( | ||
<header className="main-header"> | ||
|
||
<a href="#" className="logo"> | ||
<span className="logo-mini"><b>A</b>L</span> | ||
<span className="logo-lg"><b>Admin</b>LTE</span> | ||
</a> | ||
|
||
<nav className="navbar navbar-static-top"> | ||
<a href="#" className="sidebar-toggle" data-toggle="offcanvas" role="button"> | ||
<span className="sr-only">Toggle navigation</span> | ||
</a> | ||
|
||
<div className="navbar-custom-menu"> | ||
<ul className="nav navbar-nav"> | ||
|
||
<AppHeaderNotificationMenu /> | ||
<AppHeaderUserMenu /> | ||
|
||
</ul> | ||
</div> | ||
</nav> | ||
|
||
</header> | ||
); | ||
|
||
export default AppHeader; |
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
imports/ui/components/app/header_menus/app_header_notification_menu.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,42 @@ | ||
import React, { Component } from 'react'; | ||
|
||
// components | ||
import AppHeaderNotificationMenuItem from './app_header_notification_menu_item'; | ||
|
||
export default class AppHeaderNotificationMenu extends Component { | ||
|
||
getNotificationItems() { | ||
const notificationItems = [ | ||
{ _id: '1', classNames: 'fa fa-users text-aqua', message: '5 new members joined today' }, | ||
{ _id: '2', classNames: 'fa fa-warning text-yellow', message: 'Very long description here' }, | ||
]; | ||
/* eslint-disable no-underscore-dangle*/ | ||
return notificationItems.map(item => ( | ||
<AppHeaderNotificationMenuItem | ||
key={item._id} | ||
classNames={item.classNames} | ||
message={item.message} | ||
/>) | ||
); | ||
} | ||
|
||
render() { | ||
return ( | ||
<li className="dropdown notifications-menu"> | ||
<a href="#" className="dropdown-toggle" data-toggle="dropdown"> | ||
<i className="fa fa-bell-o" /> | ||
<span className="label label-warning">2</span> | ||
</a> | ||
<ul className="dropdown-menu"> | ||
<li className="header">You have 2 notifications</li> | ||
<li> | ||
<ul className="menu"> | ||
{this.getNotificationItems()} | ||
</ul> | ||
</li> | ||
<li className="footer"><a href="#">View all</a></li> | ||
</ul> | ||
</li> | ||
); | ||
} | ||
} |
48 changes: 0 additions & 48 deletions
48
imports/ui/components/app/header_menus/app_header_notification_menu.jsx
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
imports/ui/components/app/header_menus/app_header_notification_menu_item.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,16 @@ | ||
import React, { PropTypes } from 'react'; | ||
|
||
const AppHeaderNotificationMenuItem = ({ classNames, message }) => ( | ||
<li> | ||
<a href="#"> | ||
<i className={classNames} /> {message} | ||
</a> | ||
</li> | ||
); | ||
|
||
AppHeaderNotificationMenuItem.propTypes = { | ||
classNames: PropTypes.string, | ||
message: PropTypes.string, | ||
}; | ||
|
||
export default AppHeaderNotificationMenuItem; |
20 changes: 0 additions & 20 deletions
20
imports/ui/components/app/header_menus/app_header_notification_menu_item.jsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.