path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
Libraries/Components/Keyboard/Keyboard.js | tszajna0/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
docs/app/Examples/collections/Table/Variations/TableExampleSelectableInverted.js | ben174/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleSelectableInverted = () => {
return (
<Table celled inverted selectable>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
... |
src/svg-icons/notification/time-to-leave.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTimeToLeave = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.... |
src/svg-icons/notification/vpn-lock.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVpnLock = (props) => (
<SvgIcon {...props}>
<path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-... |
ajax/libs/react-instantsearch/4.0.0-beta.5/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 4.0.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
frontend/jqwidgets/jqwidgets-react/react_jqxdropdownbutton.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxDropDownButton extends React.Component {
componentDidMount() {
let options = this... |
app/javascript/mastodon/components/status_list.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ScrollableList from './scrollable_list';
import { Formatted... |
src/svg-icons/notification/system-update.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSystemUpdate = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/>
</Sv... |
src/board.js | jniemann66/react-chessdiagram | /*
MIT License
Copyright (c) 2016 Judd Niemann
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... |
src/components/main_header.js | DavidSunny/mastering-react | import React from 'react';
import MainNav from './main_nav';
class MainHeader extends React.Component {
render() {
return (
<div className='main-header'>
<div className='logo'>Storekeeper</div>
<MainNav />
</div>
);
}
}
export default MainHeader;
|
src/interface/icons/WarcraftLogs.js | sMteX/WoWAnalyzer | import React from 'react';
import Image from './images/WarcraftLogs-logo.png';
const icon = props => (
<img src={Image} alt="Warcraft Logs" className="icon" {...props} />
);
export default icon;
|
index.ios.js | ModusCreateOrg/swift-modules-for-react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import { NativeModules, NativeEventEmitter } from 'react-native';
console.log('Calendar Manager', NativeModules.... |
src/components/checkbox/checkbox.stories.js | teamleadercrm/teamleader-ui | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { Checkbox, Link, TextBody } from '../../index';
export default {
component: Checkbox,
title: addStoryInGroup(LOW_LEVEL_BLOCKS, 'Form elements/Checkbox'),
parameters: {
design: {
type: 'fig... |
src/app/browser/BrowserRoot.js | killpowa/Twickt-Launcher | import React from 'react';
function BrowserRoot() {
return <div>This is a browser app</div>;
}
export default BrowserRoot;
|
tests/react_children/component.js | ylu1317/flow | // @flow
import React from 'react';
import type {Node} from 'react';
class MyComponent extends React.Component<{children: Node}, void> {
render(): Node {
// OK: Can pass a node down like so.
return <MyComponent>{this.props.children}</MyComponent>;
}
}
class MyComponentOptional extends React.Component<{ch... |
website/irulez/src/App.js | deklungel/iRulez | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import AuthService from './components/AuthService';
import withAuth from './components/withAuth';
const Auth = new AuthService();
class App extends Component {
user = Auth.getProfile();
componentWillMount() {
... |
src/MenuItem.js | snadn/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
src/svg-icons/social/notifications-paused.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsPaused = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11... |
src/js/stores/gamestate.js | furgat/mtg-lifewarden | 'use strict';
import React from 'react';
import { EventEmitter } from 'events';
import { ACTIONS } from '../actions/actions';
import dispatcher from '../dispatchers/dispatcher';
const DEFAULT_PLAYER = {
colors: '',
id: 0,
life: 20,
monarch: false,
name: 'New Player',
trackers: []
}
const DEFAULT_TRACKER ... |
stories/checkbox.stories.js | isogon/material-components | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Checkbox from '../src/components/checkbox/demos/Checkbox.js'
storiesOf('Checkbox', module)
.addDecorator(wrapStory)
.add('Checkbox', () => <Checkbox />)
|
examples/async/index.js | chrisclarke1977/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
docs/src/app/components/pages/components/SelectField/Page.js | rhaedes/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import selectFieldReadmeText from './README';
import SelectFieldExampleSimple fr... |
test/integration/css-fixtures/nested-global/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/routes/admin/competition-show/competition-show.component.js | YGO/compe-frontend | import PropTypes from 'prop-types'
import React from 'react'
import EntryListContainer from './entry-list.container'
import Helmet from 'react-helmet/es/Helmet'
import { Link } from 'react-router'
import style from './compeitition-show.styles'
import { connect } from 'react-redux'
const mapStateToProps = state => {
... |
src/components/Navigation/Navigation.js | louisukiri/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import cx from 'classnames';... |
src/Components/SubReadable.js | abhishekdhaduvai/readable_react | import React, { Component } from 'react';
import Post from './Post';
import Sort from './Sort';
import Loading from './Utils/Loading';
import sortBy from 'sort-by';
import RaisedButton from 'material-ui/RaisedButton';
import { connect } from 'react-redux';
import { fetchPosts, changeSort } from '../actions';
class Su... |
src/Component/Item.js | toyang/react-contexify-ext | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import cssClasses from './../cssClasses';
class Item extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
leftIcon: PropTypes.node,
rightIcon: PropTypes.node,
disabled:... |
pages/arrange/index.js | southern-ground/stack-shellybrown.com | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import _ from '../../node_m... |
node_modules/reflexbox/src/Grid.js | HasanSa/hackathon |
import React from 'react'
import withReflex from './withReflex'
const Base = withReflex()('div')
const Grid = ({
align,
className,
style,
...props
}) => {
const cx = 'Grid' + (className ? ' ' + className : '')
const sx = {
verticalAlign: align,
...style
}
return <Base inlineBlock {...props} ... |
exercise-01/src/components/Pokedex.js | learnapollo/pokedex-react | import React from 'react'
import styled from 'styled-components'
const Title = styled.div`
color: #7F7F7F;
font-size: 32px;
font-weight: 300;
`
export default class Pokedex extends React.Component {
render () {
return (
<div className='w-100 bg-light-gray min-vh-100'>
<Title className='tc p... |
src/admin/client/app.js | cezerin/cezerin | import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Head from 'modules/head';
import Login from 'routes/login';
import Logout from 'routes/logout';
import Home from 'routes/home';
import NotFound from 'routes/notFound';
import Products from 'routes/products';
im... |
src/static/routes.js | SeaItRise/SeaItRise-webportal | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './app';
import { HomeView, LoginView, ProtectedView, NotFoundView } from './containers';
import requireAuthentication from './utils/requireAuthentication';
export default(
<Route path="/" component={App}>
<IndexRo... |
App/rideresults.js | adnanhemani/RideApp | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Navigator,
ScrollView,
ListView,
} from 'react-native'
import NavigationBar from 'react-native-navbar';
var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json';
class RidesResults ... |
docs/src/ComponentsPage.js | adampickeral/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import getOffset from 'dom-helpers/query/offset';
import css from 'dom-helpers/style';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import N... |
src/app/components/auth/groups/groups.js | rokbar/vivdchat | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FlatButton } from 'material-ui';
import CreateGroupIcon from 'material-ui/svg-icons/content/add-circle';
import GroupsList from './groupsList';
import CreateGroupDialog from './createGroupDialog';
import InviteUserDialog from './i... |
node_modules/react-bootstrap/src/NavItem.js | gitoneman/react-soc | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onSelect: React.PropTypes.func,
active: React.PropTypes.bool,
disabled: React.PropTypes.bool,
href: React.PropType... |
src/TokenCell.js | chenzihui/react-tokenizer | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
export default React.createClass({
propTypes: {
textContent: React.PropTypes.string
},
render() {
let textContent = this.props.textContent;
if (!textContent || !textContent.trim()) { return null; }
return (
<div... |
src/LabelNumberDisplay/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
function LabelNumberDisplay(props) {
return (
<div className={classNames(styles.outerWrapper, props.classNam... |
app/containers/Root.prod.js | pacmessica/hackathon-frontend | import PropTypes from 'prop-types';
import React from 'react';
import { Provider } from 'react-redux';
import { Route } from 'react-router-dom';
import { ConnectedRouter } from 'react-router-redux';
import App from '../components/App';
export default function Root({store, history}) {
return (
<Provider st... |
src/panel/PanelTitle.js | HarvestProfit/harvest-profit-ui | import React from 'react';
import PropTypes from 'prop-types';
/**
* Renders a panel title
*/
const PanelTitle = props => (
<div className={`title ${props.className}`} style={props.style}>
{props.children}
</div>
);
PanelTitle.propTypes = {
/** Additional class names to add to the panel title */
classNa... |
frontend/src/components/Landing/signin-button.js | googleinterns/SLURP | import React from 'react';
import { useHistory } from 'react-router-dom';
import Button from 'react-bootstrap/Button';
import { SIGN_IN } from '../../constants/routes.js';
/**
* SignInButton component used for the Landing page to redirect to the SignIn
* page.
*/
const SignInButton = () => {
const history = use... |
shared/routes.js | jdhuntington/chirpcircle | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PostContainer from './container/PostContainer/PostContainer';
import PostDetailView from './container/PostDetailView/PostDetailView';
const routes = (
<Route path="/" component={App} >
<IndexRou... |
src/routes/Group/components/admin/AdminView.js | PagerNation/Escalator-UI | import React from 'react'
import { Icon, Divider, Header, Grid, Segment, Button } from 'semantic-ui-react'
import _ from 'lodash'
import PropTypes from 'prop-types'
class AdminView extends React.Component {
constructor () {
super()
_.bindAll(this,
'handleProcessRequest',
'handleAddAdmin')
}
... |
src/client/pages/login.react.js | dfogas/baghira | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import LoginForm from '../auth/login.react';
import React from 'react';
import {msg} from '../intl/store';
class Login extends Component {
render() {
return (
<DocumentTitle title={msg('auth.title')}>
... |
src/components/ShareExperience/WorkExperiencesForm/WorkInfo/WeekWorkTime.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from 'common/form/TextInput';
import Unit from 'common/form/Unit';
import { P } from 'common/base';
import InputTitle from '../../common/InputTitle';
import dialogStyles from '../../common/Dialog.module.css';
const WeekWorkTime = ({ week... |
example/App.js | jdmunro/react-native-spotlight-search | import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
Button,
} from 'react-native';
import SpotlightSearch from 'react-native-spotlight-search';
const sampleFruits = [
{
name: 'Strawberry',
details: 'A sweet and juicy fruit.',
key: '1',
image: 'strawberry',
keywords: ['del... |
app/javascript/components/Carusel.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import PropTypes from 'prop-types';
class Carusel extends React.Component {
constructor(props) {
super(props);
// Make this dynamic when time
this.margin = 20;
this.width = 360;
this.inView = 3;
this.state = {
slides: null
};
}
componentWillMount() ... |
src/index.js | clessg/react-transform-boilerplate | import React from 'react';
import { App } from './App';
React.render(<App />, document.getElementById('root'));
|
app/javascript/mastodon/features/account_timeline/components/header.js | codl/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
blog/src/components/Bio.js | easybird/easybird.be | import React from 'react'
// Import typefaces
import 'typeface-montserrat'
import 'typeface-merriweather'
import profilePic from './profile-pic.jpg'
import { rhythm } from '../utils/typography'
class Bio extends React.Component {
render() {
return (
<div
style={{
display: 'flex',
... |
src/svg-icons/hardware/memory.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMemory = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 ... |
react-okta-idp/src/Home.js | hw-hello-world/okta-signin-widget | import React, { Component } from 'react';
import {Link} from 'react-router';
class User extends Component {
render() {
return (
<div>
<h1>Welcome {this.props.user.name}</h1>
<label>Email: </label><span>{this.props.user.email}</span>
</div>
);
}
}
class Home extends Comp... |
views/blocks/CommentList/CommentListContainer.js | dimastark/team5 | import React from 'react';
import CommentList from './CommentList';
import sender from './../Sender/Sender';
const CommentListWithSending = sender(CommentList);
export default class CommentListContainer extends React.Component {
constructor(props) {
super(props);
this.state = {
commen... |
website/src/CodeBlock.js | Steviey/win-react-navigation | import React from 'react';
import Prism from 'prismjs';
import 'prismjs/components/prism-jsx';
const CodeBlock = ({ code }) => (
<pre>
<code
dangerouslySetInnerHTML={{
__html: Prism.highlight(code, Prism.languages.jsx),
}}
/>
</pre>
);
export default CodeBlock;
|
src/app/components/Map/Map.js | xZarisx/react-rpg | import React from 'react';
import styles from './Map.css';
export default class Map extends React.Component {
constructor(props) {
super(props);
this.handleKeystrokes = this.handleKeystrokes.bind(this);
}
componentDidMount() {
if (typeof window ==="object"){
document.a... |
demo/component/CartesianAxis.js | scostaqb/recharts | import React from 'react';
import { Surface, CartesianAxis } from 'recharts';
export default React.createClass({
render () {
let ticks = [
{ value: 10, coord: 50 },
{ value: 1000, coord: 100 },
{ value: 20, coord: 150 },
{ value: 40, coord: 200 },
{ value: 90, coord: 250 }
];
... |
src/components/PaperAvatar.js | tallessa/tallessa-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Avatar from 'material-ui/Avatar';
import Paper from 'material-ui/Paper';
const PictureAvatar = ({src}) => (
// TODO make Paper circle again
<Paper
style={{
height: '40px',
display: 'inline-block',
position: 'relative',
... |
client/app/components/location-search.js | sirbrillig/voyageur-js | import React from 'react';
export default React.createClass( {
propTypes: {
onChange: React.PropTypes.func.isRequired,
onClearSearch: React.PropTypes.func.isRequired,
},
getInitialState() {
return {
searchString: ''
};
},
componentDidMount() {
if ( ! window ) return;
window.do... |
docs/src/components/MarkdownElement.js | tannerlinsley/react-move | // @flow
/* eslint no-div-regex: "off" */
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import marked from 'marked'
import prism from 'docs/src/utils/prism'
const renderer = new marked.Renderer()
renderer.heading... |
src/hoc/withTheme.js | JamieDixon/styled-components | // @flow
/* globals ReactClass */
import React from 'react'
import PropTypes from 'prop-types'
import hoistStatics from 'hoist-non-react-statics'
import {
CHANNEL,
CHANNEL_NEXT,
CONTEXT_CHANNEL_SHAPE,
} from '../models/ThemeProvider'
import _isStyledComponent from '../utils/isStyledComponent'
import determineThe... |
src/components/Form/FieldBoolean.js | ilxanlar/cathode | import React from 'react';
import styled, { css } from 'styled-components';
import { fieldBoolean as propTypes, fieldBooleanTrigger as triggerPropTypes } from '../../helpers/propTypes';
const HiddenCheckbox = styled.input.attrs({ type: 'checkbox' })`
filter: alpha(opacity=0);
opacity: 0;
position: absolute;
z-... |
example/examples/StaticMap.js | adamivancza/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_... |
tests/react_modules/es6class-proptypes-module.js | JonathanUsername/flow | /* @flow */
import React from 'react';
import type {Node} from 'react';
class Hello extends React.Component<{name: string}> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): Node {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
public/pages/HomePage.js | lugrugzo/node-mysql-admin | import React from 'react'
class HomePage extends React.Component {
constructor(props) {
super(props)
}
render() {
return (
<div>
homepage <br/>
homepage <br/>
homepage <br/>
homepage <br/>
homepage... |
app/addons/setup/components/SingleNodeController.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
docs/src/sections/DropdownSection.js | Sipree/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function DropdownSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
src/js/components/sections.js | sepro/React-Gallery | import React from 'react';
import styled from 'styled-components';
const Footer = styled.section`
padding: 15px 5px;
text-align: right;
position: relative;
z-index: 2;
background: #2D2C2F;
color: #221F21;
`;
const Content = styled.section`
position: relative;
z-index: 1;
padding: 1... |
src/Parser/AfflictionWarlock/Modules/Talents/Haunt.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Enemies from 'Parser/Core/Modules/Enemies';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
... |
app/components/NotFound.js | leckman/chapterbot | import React from 'react';
const NotFound = (props) => {
return (
<div className="container text-center">
<h1>404</h1>
<p>Page Not Found</p>
</div>
);
};
export default NotFound;
|
src/server.js | hdngr/mantenuto | import express from 'express';
import cookieParser from 'cookie-parser';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import cookie from 'react-cookie';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
i... |
js/components/loaders/Spinner.android.js | hz47/expensesApp |
import React from 'react';
import { ProgressBarAndroid } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
const typ... |
demo03/src/index.js | lxlneo/reactdemo | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
static/scripts/components/ProjectDetailInfo.js | minhuaF/bcb-koa2 | import React from 'react';
const PrjIntroduce = React.createClass({
render: function(){
return (
<div className="">
<div className="prj-detail">
<div className="prj-detail-item">
<h2 className="prj-item-title">用户信息</h2>
... |
app/javascript/mastodon/features/ui/components/zoomable_image.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' },
expand: { id: 'lightb... |
src/svg-icons/hardware/security.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSecurity = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
</SvgIcon>
);
Hardwa... |
app/jsx/external_apps/components/EditExternalToolButton.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
assets/jqwidgets/demos/react/app/tagcloud/addremoveupdatetags/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTagCloud from '../../../jqwidgets-react/react_jqxtagcloud.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.addItem.on('click', () => {
... |
src/svg-icons/editor/border-clear.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
ReactNative/node_modules/react-navigation/src/views/TouchableItem.js | tahashahid/cloud-computing-2017 | /**
* TouchableItem renders a touchable that looks native on both iOS and Android.
*
* It provides an abstraction on top of TouchableNativeFeedback and
* TouchableOpacity.
*
* On iOS you can pass the props of TouchableOpacity, on Android pass the props
* of TouchableNativeFeedback.
*/
import React from 'react';... |
src/svg-icons/action/view-headline.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewHeadline = (props) => (
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/>
</SvgIcon>
);
ActionViewHeadline = pure(ActionViewHeadline);
ActionViewHeadline.d... |
components/common/smallLabel.js | DarcyChan/darcychan.com | /*
Small Label Component.
A common component to render a small label.
*/
// External components
import React from 'react';
// Internal components
import { combineClassNames } from 'utils';
export default class SmallLabel extends React.Component {
render() {
const { className, children, ...props }... |
docs/src/app/components/pages/components/Drawer/ExampleSimple.js | mtsandeep/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handl... |
example/src/index.js | lokiuz/redraft | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
console.log('Welcome to redraft demo'); // eslint-disable-line no-console
|
app/components/production/gr/GRButton.js | robogroves/ebp | import ProgressButton from 'react-progress-button'
import React, { Component } from 'react';
const GRButton = React.createClass({
getInitialState () {
return {
buttonState: ''
}
},
render () {
if ('development'==process.env.NODE_ENV) {
console.log('button render =' + this.props.GenR.goBu... |
client/desktop/app/components/teacher/classes/students/Students.js | shanemcgraw/thumbroll | import React from 'react'
import StudentData from './StudentData'
class Students extends React.Component {
constructor(props){
super(props);
this.state = {
displayListener: this.props.displayListener,
className : this.props.className,
};
}
render(){
if(this.props.display[0] === ... |
src/app/views/statusUpdate.js | webcoding/reactui-starter | import moment from 'moment';
import React from 'react';
import Reflux from 'reflux';
import { Link, State, Navigation } from 'react-router';
import statusUpdateActions from 'actions/statusUpdate';
import statusUpdateStore from 'stores/statusUpdate';
import statusUpdateCommentStore from 'stores/statusUpdateComments';
... |
step5-forms/node_modules/react-router/modules/Redirect.js | jintoppy/react-training | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should
... |
src/server.js | maysale01/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | ONode/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
src/Parser/Hunter/BeastMastery/CHANGELOG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Putro } from 'MAINTAINERS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import ItemLink from 'common/ItemLink';
import ITEMS from 'common/ITEMS';
export default [
{
date: new Date('2018-01-08'),
chang... |
Test_ReactNative_NativeModules/js/apps/testApp/src/screens/ChatScreen.js | ksti/Test_react-native-nativeModules | /**
* Created by GJS on 2017/5/2.
*/
import React from 'react';
import {
View,
Text,
Button,
} from 'react-native';
export default class ChatScreen extends React.Component {
/*
static navigationOptions = ({ navigation }) => {
const {state, setParams} = navigation;
const isInfo = ... |
assets/javascripts/kitten/components/graphics/icons/ideal-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
export const IdealIcon = ({ className, ...props }) => (
<svg
width="33"
height="28"
viewBox="0 0 33 28"
xmlns="http://www.w3.org/2000/svg"
className={classNames('k-ColorSvg', className)}
{...props}
>
<title>Ideal</title>
... |
Realization/frontend/czechidm-core/src/components/basic/Badge/Badge.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
//
import Badge from '@material-ui/core/Badge';
import { makeStyles } from '@material-ui/core/styles';
//
import * as Utils from '../../../utils';
import AbstractComponent from '../AbstractComponent/AbstractComponent';
import Icon from '../Icon/Icon';
/**
... |
docs/src/app/components/pages/components/Drawer/ExampleOpenSecondary.js | w01fgang/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerOpenRightExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handle... |
src/jsx/components/Home.js | luckychain/lucky | import React from 'react';
import {Grid, Row, Col, Panel, PanelGroup, ListGroup, ButtonToolbar} from 'react-bootstrap';
import {withRouter} from 'react-router';
import InfiniteScroll from 'react-infinite-scroller';
import AppActions from '../actions/AppActions';
import Transaction from './Transaction';
class Home exte... |
app/javascript/mastodon/components/attachment_list.js | dunn/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Icon from 'mastodon/components/icon';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
export ... |
imports/ui/components/files/EditFileModal.js | hwillson/file-metadata-manager | import React from 'react';
import { Modal, Button, Tabs, Tab } from 'react-bootstrap';
import { css } from 'aphrodite';
import AutoForm from 'uniforms-bootstrap3/AutoForm';
import AutoField from 'uniforms-bootstrap3/AutoField';
import HiddenField from 'uniforms-bootstrap3/HiddenField';
import LongTextField from 'unifor... |
library/src/pivotal-ui-react/pagination/pagination.js | sjolicoeur/pivotal-ui | import React from 'react';
import PropTypes from 'prop-types';
import {mergeProps} from 'pui-react-helpers';
import 'pui-css-pagination';
class PaginationButton extends React.Component {
static propTypes = {
content: PropTypes.node,
active: PropTypes.bool,
onSelect: PropTypes.func,
eventKey: PropType... |
docs/src/pages/components/tables/DenseTable.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';
import TableHead from '@... |
latest/src/components/App.js | nathan-k/GamePainter | import React from 'react';
import ToolbarContainer from './ToolbarContainer';
import PaintableCanvas from './PaintableCanvas';
import ContextMenuContainer from './ContextMenuContainer';
import EventManagerContainer from './EventManagerContainer';
import DOMRendererContainer from './DOMRendererContainer';
/** Contains... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.