This file contains hidden or 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
admin account info" filetype:log | |
!Host=*.* intext:enc_UserPassword=* ext:pcf | |
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
"AutoCreate=TRUE password=*" | |
"http://*:*@www” domainname | |
"index of/" "ws_ftp.ini" "parent directory" | |
"liveice configuration file" ext:cfg -site:sourceforge.net | |
"parent directory" +proftpdpasswd | |
Duclassified" -site:duware.com "DUware All Rights reserved" | |
duclassmate" -site:duware.com |
This file contains hidden or 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
@mixin respond-to($media) { | |
@if $media == mobile{ | |
@media only screen and (max-width: $break-small) { | |
@content; | |
} | |
} | |
@else if $media == tablet { | |
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1){ | |
@content; | |
} |
This file contains hidden or 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
import React, {Component} from 'react' | |
import PropTypes from 'prop-types' | |
import {Route, Redirect} from 'react-router' | |
/** | |
* Component that protects route from unauthorized users. | |
* @type {Object} | |
*/ | |
class RouteAuth extends Component { | |
constructor(props) { |
This file contains hidden or 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
/** | |
* Returns application routing with protected by AuthCheck func routes | |
* @param {Function} authCheck checks is user logged in | |
*/ | |
export const Routing = authCheck => { | |
// remove components that aren't application routes, (e.g. github link in sidebar) | |
let routes = appRouting.filter(a => a.tag || a.component) | |
// render components that are inside Switch (main view) | |
let routesRendered = routes.map((a, i) => { | |
// get tag for Route. is it RouteAuth `protected route` or Route? |
This file contains hidden or 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
export const appRouting = [ | |
{ | |
path: '/', | |
exact: true, | |
tag: RouteAuth, | |
component: Dashboard | |
}, | |
{ | |
path: '/inbox', | |
exact: true, |
This file contains hidden or 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
import React, {Component} from 'react' | |
import PropTypes from 'prop-types' | |
import {Provider} from 'react-redux' | |
import {ConnectedRouter as Router} from 'react-router-redux' | |
export default class Root extends Component { | |
static propTypes = { | |
store: PropTypes.object, | |
history: PropTypes.object, | |
routes: PropTypes.func |
This file contains hidden or 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
import React, {Component} from 'react' | |
import PropTypes from 'prop-types' | |
import {Route, Redirect} from 'react-router' | |
/** | |
* Component that protects route from unauthorized users. | |
* @type {Object} | |
*/ | |
class RouteAuth extends Component { | |
static propTypes = { |
This file contains hidden or 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
// Styles | |
import ‘semantic-ui-css/semantic.css’ | |
// Fetch and promise polyfill | |
import ‘promise-polyfill’ | |
import ‘isomorphic-fetch’ | |
// Application | |
import React from ‘react’ | |
import ReactDOM, {render} from ‘react-dom’ | |
import {configureApp, configureRootComponent} from ‘common/app’ | |
// get initial redux state from server |
This file contains hidden or 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
if (componentHasNoState) { | |
return itsStatelessComponent() | |
} else if (componentHasSimplePropsState && propsHasNoNestedObjects) { | |
return itsPureComponent() | |
} else { | |
return itsComponent() | |
} |
This file contains hidden or 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
interface State { | |
entities: object; | |
fetchStatus: ‘none’ | ‘loading’ | ‘loaded’; | |
errors: object; | |
} |
OlderNewer