path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/views/SettingsView.js | andrewSRahn/pickban | import React from 'react'
import LanguageComponent from '../components/LanguageComponent.js'
import RegionComponent from '../components/RegionComponent.js'
export default function SettingsView(props){
return(
<div style={{display:'none'}} id='settings'>
<RegionComponent {...props}/>
<LanguageComponent... |
src/svg-icons/device/signal-cellular-0-bar.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar);
DeviceSignalCellular0Bar.displayN... |
app/components/Signin.js | mkamranhamid/react-Firebase-Playlist | import Radium from 'radium';
import React, { Component } from 'react';
import color from 'color';
import { Router, Route, Link, browserHistory } from 'react-router';
import Firebase from 'firebase';
import { fbDatabase, fbAuth} from '../util/fbService.js';
export class Signin extends Component {
constructor(prop... |
app/main.js | Pillar-Zhang/react-webpack | import React from 'react';
import ReactDOM from 'react-dom';
import Bootstrap from 'bootstrap'
//引入material-ui和React的配置文件
import $ from 'jquery';
import bootstrap from 'bootstrap'
//css
import 'bootstrap/dist/css/bootstrap.min.css';
import 'materialize/css/materialize.min.css';
import 'materialize-tags/dist/css/materia... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js | powerreviews/create-react-app | /**
* 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.
*/
import Rea... |
renderer/components/cropper/overlay.js | wulkano/kap | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import {
connect,
CursorContainer,
CropperContainer,
ActionBarContainer
} from '../../containers';
import {getResizingCursor} from './handles';
class Overlay extends React.Component {
static defaultProps = {... |
src/native/nativeBaseComponents/sidebar.js | naveedaheer/react-native-doctor-app | import React, { Component } from 'react';
import { Container, Text } from 'native-base';
export default class SideBar extends Component {
render() {
return (
<Container>
<Text>
Hello World
</Text>
</Container>
);
}
}
|
resources/assets/js/components/signup/PrimaryContactComponent.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
import PrimaryContactForm from './forms/PrimaryContactForm';
import { createContact, updateContact,
ERROR_CONTACT_CREATED, ERROR_CONTACT_UPDATED
} from '../../actions/signup/signupContactAct... |
src/Table.js | westonplatter/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/containers/Forms.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
// import ons from 'onsenui';
import {
Page,
List,
ListHeader,
ListItem,
Switch,
Input,
Radio,
Checkbox,
} from 'react-onsenui';
class Forms extends React.Component {
constructor(props) {
super(props);
this.state = {
switchEn... |
fixtures/attribute-behavior/src/App.js | kaushik94/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/routes/authority/account/Modal.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Input, Modal } from 'antd'
const FormItem = Form.Item
const formItemLayout = {
labelCol: { span: 6 },
wrapperCol: { span: 14 },
}
const modal = ({
item,
onOk,
form: {
getFieldDecorator,
validateFields,
getFieldValue,
... |
src/svg-icons/notification/wc.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWc = (props) => (
<SvgIcon {...props}>
<path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6... |
client/components/DetailUser.js | EstebanFuentealba/prueba2 | import React from 'react';
import Dropzone from 'react-dropzone';
import { Row, Col, Panel, Table, Thumbnail, Modal, Button } from 'react-bootstrap';
import moment from 'moment';
import appActions from './../actions';
import userStore from './../stores/userStore';
import reactMixin from 'react-mixin';
import Reflux fro... |
src/notes/Note.js | nikunjagarwal1/react-make-notes | import React, { Component } from 'react';
import $ from 'jquery';
import ReactDOM from 'react-dom';
class Note extends Component{
constructor(props){
super(props);
this.state={editMode:false,content:this.props.note.content};
this.handleTextChange = this.handleTextChange.bind(this);
}
handleDelete(){
... |
src/svg-icons/av/mic.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
js/jqwidgets/demos/react/app/chart/columnrange/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let data = [
{ 'month': 'Jan', 'min': -1.9, 'max': 3.7, 'avg': 0.2 },
{ 'month': 'Feb', 'min': -0.9, 'max... |
src/example/radial-chart/donut-chart.js | jameskraus/react-vis | // Copyright (c) 2016 Uber Technologies, Inc.
//
// 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... |
react-ui/src/MatchesPage.js | zwachtel11/q_pong | import React, { Component } from 'react';
import { ListGroup, ListGroupItem, Jumbotron, Table, Panel } from 'react-bootstrap';
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom';
const moment = require('moment');
import './index.css';
export default class MatchesPage extends Component {
... |
docs/app/Examples/collections/Table/Variations/TableExampleCollapsing.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCollapsing = () => {
return (
<Table collapsing>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Not... |
src/component/manager/userSignin.js | tech-dojo/React-Task-Manager | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import { browserHistory } from 'react-router';
import axios from 'axios';
import Paper from 'material-ui/Paper';
import {Link} from 'react-router';
export default class UserSignIn extends React.Co... |
src/parser/mage/arcane/modules/features/RuleOfThrees.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Analyzer from 'parser/core/Analyzer';
const debug = false;
class RuleOfThrees extends Ana... |
src/views/WidgetList/widgets/Domains/DomainsPage.js | GovReady/GovReady-Agent-Client | import React, { Component } from 'react';
import { PropTypes as PT } from 'prop-types';
import Accordion from 'react-bootstrap/lib/Accordion';
import Panel from 'react-bootstrap/lib/Panel';
import { Link } from 'react-router';
import BackButton from 'components/BackButton';
class DomainsPage extends Component {
ren... |
src/js/components/icons/base/Selection.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/SectionList.js | Root-App/react-native-mock-render | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import VirtualizedSectionList from './VirtualizedSectionList';
import ScrollView from './ScrollView';
import View from './View';
import {
SectionBase as _SectionBase,
} from './VirtualizedSectionList';
... |
examples/auth-with-shared-root/components/App.js | rdjpalmer/react-router | import React from 'react'
import { Link } from 'react-router'
import auth from '../utils/auth'
const App = React.createClass({
getInitialState() {
return {
loggedIn: auth.loggedIn()
}
},
updateAuth(loggedIn) {
this.setState({
loggedIn: !!loggedIn
})
},
componentWillMount() {
... |
samples/use-react/src/js/components/MainAppPage.js | umema4/electron-babel6 | import React from 'react';
class MainAppPage extends React.Component {
static get propTypes() {
return {
children: React.PropTypes.node,
};
}
static get defaultProps() {
return {
};
}
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
... |
pages/about.js | aabril/noodle | import React from 'react'
import LayoutMain from '../layouts/main'
import Link from 'next/link'
export default () => (
<LayoutMain>
<div >
<h3>About</h3>
<Link href="/">
<a>back to home</a>
</Link>
</div>
</LayoutMain>
) |
src/svg-icons/image/view-comfy.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
src/components/Calendar/DayNames.js | YanshuoH/youkonger-frontend | import React from 'react';
import './style.less';
class DayNames extends React.PureComponent {
render() {
return (
<div className="week names">
<span className="day name">日</span>
<span className="day name">一</span>
<span className="day name">二</span>
<span className="day na... |
src/components/FormNote/FormNote.react.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import { Directions } from 'lib/Constants';
import PropTypes from 'lib/PropTypes';
import React from 'react';
import Slide... |
app/javascript/mastodon/components/relative_timestamp.js | rekif/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' },
minutes: { id: 'relat... |
src/challenges/react/React_16.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
docs/components/Docs/Container/index.js | enjoylife/storybook | import PropTypes from 'prop-types';
import React from 'react';
import Nav from '../Nav';
import NavDropdown from '../Nav/dropdown';
import Content from '../Content';
import './style.css';
const getEditUrl = (selectedSectionId, selectedItemId) => {
const gitHubRepoUrl = 'https://github.com/storybooks/storybook';
co... |
src/give/Checkout/PersonalDetails.js | NewSpring/Apollos | import React from 'react';
import BackgroundView from '@ui/BackgroundView';
import PaddedView from '@ui/PaddedView';
import { PersonalDetailsForm } from '@ui/forms';
import { Title } from './styles';
const PersonalDetails = () => (
<BackgroundView>
<PaddedView>
<Title>Personal Details</Title>
</Padded... |
src/common/Dispatcher.js | coolshare/ReactReduxPattern | /*
Coolshare React PubSub - A package/service to provide
publish/subscribe pattern for communication in React
Copyright (C) 2017 Mark Qian <markqian@hotmail.com>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to de... |
src/test/helpers/helpers.js | Viestinta/viestinta | import React from 'react'
import { expect, assert } from 'chai'
import { sinon, spy } from 'sinon'
import { should } from 'should'
import { mount, render, shallow } from 'enzyme'
import { WebSocket, Server, SocketIO } from 'mock-socket'
import io from 'socket.io-client'
require('babel-core/register')()
/**
Creating ... |
src/components/exercises/HearWord.js | cognostics/serlo-abc | import React, { Component } from 'react';
import { View } from 'react-native';
import speakerImage from '../../assets/images/speaker.png';
import { PRIMARY } from '../../styles/colors';
import { RoundButton, RoundTextButton } from '../Components';
import { loadSound, play } from '../helpers/audio';
class HearWord ex... |
packages/react/src/components/FileUploader/FileUploader.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Filename from './Filename';
import... |
app/addons/replication/components/replicate-activity.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... |
src/index.js | mm4700/intern-demo | /*eslint-disable import/default*/
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Root from './containers/Root';
import configureStore from './store/configureStore';
const target = document.getElementById('root');
const store = configureStore(window.__INITIAL... |
admin/client/App/shared/Popout/PopoutBody.js | snowkeeper/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
src/components/PlaylistManager/SearchResults/NoSearchResults.js | u-wave/web | import React from 'react';
import { useTranslator } from '@u-wave/react-translate';
import Typography from '@mui/material/Typography';
import NoResultsIcon from '@mui/icons-material/Search';
function NoResults() {
const { t } = useTranslator();
return (
<div className="SearchResults-none">
<NoResultsIcon... |
src/components/BannerLanding.js | jbasdf/justinball | import React from 'react'
import PropTypes from 'prop-types'
const BannerLanding = props => {
const style = {}
if (props.post.frontmatter.image &&
props.post.frontmatter.image.childImageSharp &&
props.post.frontmatter.image.childImageSharp.sizes) {
style.backgroundImage = `url(${props.post.frontmatter.... |
app/components/shared/ShowMoreFooter.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import classNames from 'classnames';
import Button from './Button';
import Spinner from './Spinner';
class ShowMoreFooter extends React.PureComponent {
static propTypes = {
connection: PropTypes.shape({
... |
src/footer/footer.js | codehangar/react-redux-rockstarter | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push } from 'connected-react-router';
import { BottomNavigation, BottomNavigationItem } from 'material-ui/BottomNavigation';
import Paper from 'material-ui/Paper';
import FontIcon from 'material... |
packages/material-ui-icons/src/LocalHospital.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z" /></g>
, 'LocalHospital');
|
src/parser/deathknight/unholy/modules/features/Abilities.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import CoreAbilities from 'parser/core/modules/Abilities';
class Abilities extends CoreAbilities {
spellbook() {
const combatant = this.selectedCombatant;
return [
// roational
{
spe... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | michaelerobertsjr/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var CloudinaryImageFilter = React.createClass({
propTypes: {
filter: React.PropTyp... |
docs/app/Examples/elements/Rail/Variations/RailExampleCloseVery.js | ben174/Semantic-UI-React | import React from 'react'
import { Grid, Image, Rail, Segment } from 'semantic-ui-react'
const RailExampleCloseVery = () => (
<Grid centered columns={3}>
<Grid.Column>
<Segment>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail close='very' position='left'>
... |
src/client/containers/Root.dev.js | barretthafner/hafnerindustries | import React from 'react';
import { Provider } from 'react-redux';
import ProfileApp from './profileApp'
import DevTools from './DevTools';
export default class Root extends React.Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<div>
<ProfileApp... |
app/javascript/mastodon/features/community_timeline/index.js | clworld/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
index.android.js | chenvan/RoteVocabApp | /**
*app name:透析单词
*author:陈旺
*1.00 finish date:2016-10-20
*/
import React from 'react'
import { Provider } from 'react-redux'
import {
AppRegistry
} from 'react-native'
import { StackNavigator } from 'react-navigation'
import HomeScene from './lib/Components/HomeScene'
import SearchCoverImageScene from './lib/C... |
markbin/client/components/header.js | tpechacek/learn-react-native | import React, { Component } from 'react';
import Accounts from './accounts';
import { Link, browserHistory } from 'react-router';
class Header extends Component {
onBinClick() {
event.preventDefault();
Meteor.call('bins.insert', (error, binId) => {
browserHistory.push(`/bins/${binId}`);
});
}
... |
src/index.js | fhelwanger/bayesjs-editor | import 'normalize.css';
import 'font-awesome/css/font-awesome.css';
import App from 'components/App';
import Modal from 'react-modal';
import { Provider } from 'react-redux';
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import { loadState } from '.... |
docs/src/components/Document.js | Semantic-Org/Semantic-UI-React | import PropTypes from 'prop-types'
import React from 'react'
import siteData from '../utils/docTypes/siteData'
const Document = ({ Body, children, Head, Html, siteData: { dev, versions } }) => (
<Html lang='en-US'>
<Head>
<meta charSet='UTF-8' />
<meta name='viewport' content='width=device-width, in... |
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Alert from 'Components/Alert';
import FieldSet from 'Components/FieldSet';
import Button from 'Components/Link/Button';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ModalBody from 'Components/Modal/ModalBo... |
src/interface/report/Results/StatisticsSectionTitle.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
class StatisticsSectionTitle extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
rightAddon: PropTypes.node,
};
static defaultProps = {
premium: false,
};
render() {
const { children, rightAddon } = this.... |
src/routes/index.js | balintsoos/brickland | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import App from 'components/App'
import Main from 'components/Main'
import About from 'components/About'
import Projects from 'components/Projects'
const routes = (
<Router history={browserHistory}>
<Route path="/... |
frontend/src/components/Routes.js | pahomovda/victorious-pirate | import React from 'react';
import { Router, Route, IndexRedirect, IndexRoute } from 'react-router';
import UserManager from 'components/pages/users/UserManager';
import Terms from 'components/pages/journal/Terms';
import Courses from 'components/pages/journal/Courses';
import Journal from 'components/pages/journal/Jou... |
src/scenes/home/about/about.js | OperationCode/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import Section from 'shared/components/section/section';
import commonUrl from 'shared/constants/commonLinks';
import WhatWeDo from './whatWeDo/whatWeDo';
import ValueCard from './valueCard/valueCard';
import styles from './about.css';
const About = (... |
lens-ui/app/app.js | archanah24/lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
src/components/WhatIsLibertySoil.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
admin/client/App/components/Navigation/Secondary/index.js | joerter/keystone | /**
* The secondary navigation links to inidvidual lists of a section
*/
import React from 'react';
import { Container } from 'elemental';
import SecondaryNavItem from './NavItem';
var SecondaryNavigation = React.createClass({
displayName: 'SecondaryNavigation',
propTypes: {
currentListKey: React.PropTypes.str... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSection.js | ben174/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleSection = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section active>Search</Breadcrumb.Section>
</Breadcrumb>
)
export default BreadcrumbExamp... |
src/components/A.js | Hylozoic/hylo-redux | import React from 'react'
import { IndexLink, Link } from 'react-router'
export default function A (props) {
return <Link activeClassName='active' {...props}>{props.children}</Link>
}
export const IndexA = props =>
<IndexLink activeClassName='active' {...props}>{props.children}</IndexLink>
|
client/js/donate.js | charitycollective/charitytree | import React from 'react';
import { Link, History } from 'react-router';
import { DonateNeeds } from './needs.js';
exports.Donate = React.createClass({
getInitialState: function () {
return {
project: {},
needs_list: [],
quantityTotal: 0,
donationTotal: 0
};
},
updateNumberPurcha... |
src/components/Menu.js | taylord65/taylord65.github.io | import React from 'react'
import { CSSTransitionGroup } from 'react-transition-group'
import { animateCSS } from '../helpers/animateCSS'
import { goToRoute } from '../helpers/goToRoute'
class Menu extends React.Component {
constructor(props) {
super(props);
this.state = {
features: [
{... |
src/components/ButtonAddModule.js | dominic-blain/viper-visualizer | import React from 'react';
class ButtonAddModule extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(event) {
const type = event.target.value;
this.props.onChange(type);
}
render() {
const modulesSchema = this.props.schema;
va... |
src/svg-icons/action/restore-page.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
src/svg-icons/hardware/phonelink.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelink = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
... |
src/components/Comments/EmbeddedCommentForm.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Input, Icon } from 'antd';
import Dropzone from 'react-dropzone';
import Body, { remarkable } from '../Story/Body';
import './EmbeddedCommentForm.less';
@... |
mobile/App/Navigation/NavItems.js | JasonQSong/SoulDistance | // @flow
import React from 'react'
import { TouchableOpacity } from 'react-native'
import styles from './Styles/NavItemsStyle'
import { Actions as NavigationActions } from 'react-native-router-flux'
import Icon from 'react-native-vector-icons/FontAwesome'
import { Colors, Metrics } from '../Themes'
const openDrawer =... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | changjiashuai/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
app/entry/index.js | czy0729/react-alumni | /**
* 路由表
* @Date: 2017-01-20 15:58:37
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-31 08:38:59
*/
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
//import 'whatwg-fetch';
ReactDOM.render((
... |
docs/src/ButtonsPage.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import raisedButton from '../../examples/RaisedButton';
import fixedActionButto... |
src/pages/NewSensor/ScanRow.js | sussol/mobile | import React from 'react';
import { ActivityIndicator } from 'react-native';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import * as Animatable from 'react-native-animatable';
import { LightbulbIcon, ChevronRightIcon, FlexRow, IconButton, WifiIcon } from '../../widgets';
import { LIGHT_G... |
packages/bonde-admin/src/mobrender/components/widget.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import classnames from 'classnames'
import { intlShape } from 'react-intl'
import { Loading } from '@/components/await'
import WidgetOverlay from './widget-overlay.connected'
import widgets from '../widgets/config'
const Widget = ({ saving, mobilization, bl... |
Libraries/index.js | brainpoint/febs-react-web | /**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
* @providesModule ReactWeb
*/
'use strict';
import React from 'react';
import {extendCreateElement} from 'ReactStyleSheet';
// window.requestAnimationFrame / window.cancelAnimationFrame
var lastTime = 0;
window.requestAnima... |
src/containers/Asians/TabControls/_components/InstitutionsAddMany/EvaluateComponent/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Button from 'material-ui/Button'
import Instance from './Instance'
import onSubmit from './onSubmit'
import findRegisteredInstitutions from './findRegisteredInstitutions'
export default connect(mapStateToProps)(({
draft,
onChange,
institut... |
Libraries/Utilities/throwOnWrongReactAPI.js | Swaagie/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... |
src/components/signin.js | MrAbalogu/oversight | import React from 'react';
import FontIcon from 'material-ui/FontIcon';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
class SignIn extends React.Component {
constructor(props) {
super(props);
this.handleEmail = this.ha... |
src/components/DashboardDetector.js | PsychoLlama/luminary | import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import React from 'react';
import R from 'ramda';
// eslint-disable-next-line import/named
import { KeepAwake } from 'expo';
import { DASHBOARD_MODE } from '../reducers/switches';
import * as actions from '../actions/groups';
import { selector... |
src/server.js | WendellLiu/GoodJobShare | /* global webpackIsomorphicTools */
import Express from 'express';
import favicon from 'serve-favicon';
import path from 'path';
import ReactDOMServer from 'react-dom/server';
import { match, createMemoryHistory, RouterContext } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Pr... |
app/jsx/index.js | sfu/canvas_spaces | import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import MySpaces from './pages/MySpaces';
import CreateSpace from './pages/CreateSpace';
import NotFound from './pages/NotFound';
const App = () => (
<Router basename="/canvas_spaces">
<div>
<Switch>
... |
src/components/flash/flash_message.js | trihpham/flashcard-webapp | import React, { Component } from 'react';
import classnames from 'classnames';
import { Message } from 'semantic-ui-react';
class FlashMessage extends Component {
constructor(props) {
super(props);
this.onClick = this.onClick.bind(this);
}
onClick() {
this.props.deleteFlashMessage(t... |
src/Input.js | jontewks/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
src/svg-icons/content/text-format.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentTextFormat = (props) => (
<SvgIcon {...props}>
<path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/>
</SvgIcon>
);
ContentTextFormat = pure(C... |
src/client/post/Write/Drafts.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import _ from 'lodash';
import { Checkbox } from 'antd';
import Loading from '../../components/Icon/Loading';
import { reloa... |
app/components/Main.js | milankarunarathne/CouchDB-ReactJS-Patient-Dashboard | import React from 'react';
class TODO extends React.Component {
render() {
return (
<div><p>Hello Iswan!</p></div>
);
}
}
export default TODO;
|
packages/hello-world-example/pages/World.js | wangzuo/cxx | import React from 'react';
import Layout from '../components/layout';
export const query = graphql`query WorldQuery { world }`;
export default ({ props }) =>
<Layout title="World">
<h1>{props.world}</h1>
<img src={require('../images/react.svg')} width="100" height="100" />
</Layout>;
|
web/src/js/components/Settings/Profile/ProfileInviteFriendView.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import QueryRendererWithUser from 'js/components/General/QueryRendererWithUser'
import graphql from 'babel-plugin-relay/macro'
import SettingsChildWrapper from 'js/components/Settings/SettingsChildWrapperComponent'
import ProfileInviteFriend from 'js/compone... |
web/src/main/webapp_source/src/components/Home.js | mschvarc/PB138-Inventory-Management | import React, { Component } from 'react';
import {Link} from 'react-router';
class Home extends Component {
render() {
var items = this.props.items;
var categories = this.props.categories;
return <div className="page-home row">
<div className="small-12 columns">
<h2>Welcome to Inventory Managem... |
src/containers/ShowCollection/ShowCollection.js | stphnem/NBCUniversal_Assessment | import React, { Component } from 'react';
import Show from 'components/Show/Show';
import './ShowCollection.css';
import axios from 'axios';
class ShowCollection extends Component {
constructor(props) {
super();
this.state = {
apiUrl: `https://api.nbc.com/v3.11.2/shows?derivatives=landscape.widescree... |
app/javascript/mastodon/features/public_timeline/index.js | tateisu/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
src/svg-icons/action/lightbulb-outline.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
client/src/index.js | dagobahtech/acit2910 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/index.js | jozanza/pixels | import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { injectGlobal } from 'styled-components';
import fastclick from 'react-fastclick';
import reducer from './reducers';
import initKeyboard from './keyboard';
import createInitialState from './store/state';
import A... |
src/interface/icons/People.js | yajinni/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=people&i=1458757
// people by Manohara from the Noun Project
const Icon = ({ ...others }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...others}>
<path d="M47.7,36.5A14.5,14.5,0,1,0,33.2,51,14.5,14.5,0,0,0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.