path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/pages/suggestions.js | voidxnull/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... |
life3/static/react/src/Home.js | BoraDowon/Life3.0 | import React from 'react';
import ReactDOM from 'react-dom';
import 'whatwg-fetch'
import ApiUtils from "./ApiUtils";
import LifeCardCreator from "./LifeCardCreator";
import LifeCardListItem from "./LifeCardListItem";
class Home extends React.Component {
constructor(props) {
super(props);
this.st... |
server/sonar-web/src/main/js/apps/projects-admin/routes.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact 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... |
node_modules/_antd@2.13.4@antd/es/table/Column.js | ligangwolai/blog | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
var Column = function (_React$Component) {
_inherits(Column, _React$Componen... |
node_modules/@material-ui/core/es/useMediaQuery/useMediaQuery.js | pcclarke/civ-techs | import React from 'react'; // This variable will be true once the server-side hydration is completed.
let hydrationCompleted = false;
function useMediaQuery(queryInput, options = {}) {
const query = queryInput.replace('@media ', '');
const {
defaultMatches = false,
noSsr = false,
ssrMatchMedia = null
... |
src/index.js | guykr-stratoscale/react-data-tables-playground | import './css/style.css';
import '../node_modules/react-datagrid/dist/index.css';
import React from 'react';
import ReactDom from 'react-dom';
import Hello from './components/hello';
ReactDom.render(<Hello />, document.getElementById('root'));
|
src/components/simple_list.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
import SimpleItem from './simple_item';
import _ from 'lodash';
import { firebaseConnect } from 'react-redux-firebase';
/**
SimpleList list of Simple elements
Params:
elements: The elements that the list will contain
itemClass: The class of the elements that the l... |
app/app.js | GeertHuls/react-async-saga-example | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
demo/src/CodeExample1.js | Sharlaan/material-ui-superselectfield | import React, { Component } from 'react';
import SuperSelectField from 'material-ui-superselectfield';
import Toggle from 'material-ui/Toggle';
const containerStyle = {
padding: 40,
paddingBottom: 0,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
height: 'calc(100% - 40px)',
};
const disp... |
app/javascript/mastodon/features/ui/components/boost_modal.js | palon7/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
03-auth-redirect/components/AuthButton.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
import { withRouter } from 'react-router-dom';
import fakeAuth from '../utils/fakeAuth';
class AuthButton extends React.Component {
signout() {
fakeAuth.signout(() => {
this.props.history.push('/');
})
}
render() {
if(fakeAuth.isLogged){
... |
src/routes/CrimeAgainstWomen/components/CrimeAgainstWomen.js | harishuideveloper/My-India-Redux | import React from 'react'
import CircularProgress from 'material-ui/CircularProgress'
import formatChartData from '../../../utils/formatChartData.js'
import Chart from '../../../components/Chart'
import Filter from '../../../components/Filter'
export default class CrimeAgainstWomen extends React.Component {
compone... |
src/parser/shared/modules/resources/mana/ManaUsageGraph.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import {
FlexibleWidthXYPlot as XYPlot,
DiscreteColorLegend,
XAxis,
YAxis,
VerticalGridLines,
HorizontalGridLines,
AreaSeries,
LineSeries,
} from 'react-vis';
import { formatDuration, formatThousands } from 'common/format';
import './ManaU... |
src/decorators/withViewport.js | jackgardner/tactics | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = { width: 1366, height: 768 }; // Default ... |
src/ChangeCheckResults.js | ddddm/item-images-frontend | /**
* Created by dima on 10.11.16.
*/
import React from 'react';
import { Table } from 'elemental';
const ChangeCheckResults = (props) => {
const { checkResults } = props;
return (
<div>
<h3>Results for this change</h3>
<Table>
<tbody>
{
... |
node_modules/react-router/es/RouterContext.js | firdiansyah/crud-req | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
system/src/routes/CashFlow/containers/EditCashFlowViewContainer/index.js | axmatthew/react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import cashFlowModule from '../../../../modules/cash-flows';
import EditCashFlowView from '../../components/EditCashFlowView';
import { baseMapStateToProps } from '../../../../common/container-helpers';
class EditCashFlowViewContainer ext... |
assets/jqwidgets/demos/react/app/splitter/multiplesplitpanelswithjqxtabs/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSplitter from '../../../jqwidgets-react/react_jqxsplitter.js';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
class App extends React.Component {
render() {
return (
<JqxSplitter ref='splitContainer'
... |
spec/components/navigation.js | rahultaglr/taglr-toolbox | import React from 'react';
import Navigation from '../../components/navigation';
import Link from '../../components/link';
const actions = [
{ label: 'Alarm', raised: true, icon: 'access_alarm'},
{ label: 'Location', raised: true, accent: true, icon: 'room'}
];
const NavigationTest = () => (
<section>
<h5>N... |
app/components/atoms/TwoColumns/TwoColumns.js | altiore/webpack_config_example | import React from 'react'
import PropTypes from 'prop-types'
import Content from 'components/atoms/Content'
const TwoColumns = ({children, styles}) => (
<Content className={styles.row}>
{children[0]}
{children[1]}
</Content>
)
TwoColumns.propTypes = {
children: PropTypes.arrayOf(PropTypes.node).isRequi... |
classic/src/scenes/mailboxes/src/Components/Tray/TrayPreview.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import TrayRenderer from './TrayRenderer'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import classNames from 'classnames'
const styles = {
preview: {
backgroundImage: 'linear-gradient(... |
src/questions.js | connameng/router-survey-project | // aggregates all question components and pulls them in on the right hand side of the page.
import React, { Component } from 'react';
import {
BrowserRouter,
Route,
history
} from 'react-router-dom'
import RoomQuestion from './room_question';
import Routers from './routers';
import PriceQuestion from './price_q... |
src/components/views/elements/LanguageDropdown.js | aperezdc/matrix-react-sdk | /*
Copyright 2017 Marcel Radzio (MTRNord)
Copyright 2017 Vector Creations Ltd.
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 app... |
src/UserProfile.js | budasuyasa/warungapp | /* @flow */
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
} from 'react-native';
import { Button, Icon } from 'react-native-elements'
export default class UserProfile extends Component {
//Set setting untuk navigasi
static navigationOptions = {
title: 'Profil',
tabBar: ... |
admin/client/App/screens/Home/components/Lists.js | rafmsou/keystone | import React from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import { plural } from '../../../../utils/string';
import ListTile from './ListTile';
export class Lists extends React.Component {
render () {
return (
<div className="dashboard-group__lists">
{_.map(this.props.lists, ... |
client/src/components/Listing/AddListing/AddListing.js | Velocies/raptor-ads | import React, { Component } from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { Form, Grid, Icon, Header } from 'semantic-ui-react';
import { changeListingField, uploadListingImage, uploadListing, deleteImage, clearErrors } from '../../../actions/listingActions';
import Li... |
app/javascript/components/carbon-charts/stackedAreaChart.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import PropTypes from 'prop-types';
import { StackedAreaChart } from '@carbon/charts-react';
const StackAreaChart = ({ data, title }) => {
const options = {
title,
axes: {
left: {
stacked: true,
scaleType: 'linear',
mapsTo: 'value',
},
bott... |
src/interface/others/TalentStatisticBox.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import STATISTIC_CATEGORY from './STATISTIC_CATEGORY';
import StatisticBox from './StatisticBox';
export { default as STATISTIC_ORDER } from './STATISTIC_ORDER';
/**
* ... |
samples/react-redux-patient-demographics-example/src/common/FormsyHiddenInput.js | GoTeamEpsilon/angular-to-react-redux | import React from 'react'
import Formsy from 'formsy-react'
export const FormsyHiddenInput = React.createClass({
mixins: [Formsy.Mixin],
changeValue(event) {
let value = ''
if (event && event.currentTarget && event.currentTarget.value) {
value = event.currentTarget.value
event.currentTarget.v... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | Havi4/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
client/app/components/Users/Users.js | Zuehlke/poinz | import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import User from './User';
import {getSortedUserArray} from '../../state/users/usersSelectors';
import {StyledUsers} from './_styled';
/**
* The list of users (avatars) and their estimations.
*/
const Users = ({user... |
node_modules/react-bootstrap/es/Thumbnail.js | darklilium/Factigis_2 | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
public/client/routes/passReset/containers/passReset.js | Concorda/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {reduxForm} from 'redux-form'
import {pushPath} from 'redux-simple-router'
import {getPasswordReset} from '../../../modules/user/actions/index'
import {validateGetPassReset} from '../../../lib/validations'
export let PasswordReset = ... |
spec/javascripts/jsx/external_apps/components/ConfigurationFormXmlSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - 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... |
actor-apps/app-web/src/app/components/ToolbarSection.react.js | suxinde2009/actor-platform | import React from 'react';
import DialogStore from 'stores/DialogStore';
import ActivityActionCreators from 'actions/ActivityActionCreators';
//import AvatarItem from 'components/common/AvatarItem.react';
var getStateFromStores = () => {
return {dialogInfo: null};
};
class ToolbarSection extends React.Component ... |
src/components/Services/ServiceItem.js | robabby/robabby | import React from 'react'
import '../../assets/scss/components/Services/ServiceItem.scss'
class ServiceItem extends React.Component {
constructor(props) {
super(props)
this.state = {
isActive: false
}
}
render() {
return (
<div className={this.state.isActive ? "ra-service ra-service... |
frontend/src/components/AddPoint/AddPointButton.js | temaptz/life-analytics | import React from 'react';
import Modal from '../Modal/Modal';
import AddPointForm from './AddPointForm';
class AddPointButton extends React.Component {
constructor(props) {
super(props);
this.state = {
newPointValue : '',
newPointRemark : '',
modalIs... |
src/components/Footer/PdfFooter/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import Link from 'react-router/lib/Link';
const PdfFooter = () => (
<footer>
<div className="container">
<div className="row">
<div className="col-md-12">
<p className="text-center">
This PDF is exported from {' '}
<Link to="https://quran... |
src/svg-icons/editor/border-top.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
client/src/components/SideBar.js | ccwukong/lfcommerce-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import { Container, Collapse } from 'reactstrap';
import { FormattedMessage } from 'react-intl';
import {
MdDashboard,
MdViewList,
MdChevronLeft... |
examples/src/components/SelectedValuesField.js | katienreed/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
src/routes/RetailerDetails/components/RetailerDetails.js | TheModevShop/craft-app | import React from 'react';
import _ from 'lodash';
import {Link} from 'react-router';
import './retailer-details.less';
class Retailer extends React.Component {
constructor(...args) {
super(...args);
this.state = {
};
}
componentDidMount() {
const resourceId = _.get(this.props.membership, 'membe... |
fields/types/number/NumberFilter.js | everisARQ/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between' },
];
... |
src/index.js | webpack-cn/react-webpack-starter | import React from 'react';
import Component from './Component';
window.onload = () => {
React.render(
<Component />,
document.querySelector('#container')
);
};
|
definitions/npm/react-toastify_v3.2.x/test_react-toastify_v3.2.x.js | orlandoc01/flow-typed | import React from 'react'
import { ToastContainer, toast, style } from 'react-toastify'
const toastContent = <div>Toast!</div>
// $ExpectError
toast(toastContent, { type: toast.TYPE.SUCCES })
toast(toastContent, { type: toast.TYPE.SUCCESS })
// $ExpectError
toast.success(toastContent, { onOpen: false })
toast.succes... |
examples/huge-apps/routes/Grades/components/Grades.js | brandonlilly/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
client/modules/App/__tests__/Components/Footer.spec.js | zivkaziv/MazorTech | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
// t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').length, wrapper.find(... |
app/components/Data/index.js | stutrek/data-viz | import React from 'react';
import styles from './data.css';
class DataSet extends React.PureComponent {
render () {
return (<div className={styles.container}>
<div className={styles.title}>{this.props.dataSet.title}</div>
<table>
<thead>
<tr>{this.props.dataSet.fields.map((field, i) => (<td key={i}>... |
plugins/Hosting/js/components/resizeDialog.js | NebulousLabs/New-Sia-UI | import React from 'react'
import { Map } from 'immutable'
import Path from 'path'
const ResizeDialogModal = ({
resizePath,
resizeSize,
initialSize,
actions
}) => {
const handleSettingInput = e =>
actions.updateModal('resizeSize', e.target.value)
const hideResizeDialog = newSize =>
actions.hideResiz... |
examples/js/cell-edit/blur-to-save-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/textResizeAndWordWrap.js | MrCheater/text-resize-and-word-wrap-provider | import React from 'react';
import { TextResizeAndWordWrapProvider } from './TextResizeAndWordWrapProvider';
export const textResizeAndWordWrap = (Component) => (props) => (
<TextResizeAndWordWrapProvider>
<Component {...props}/>
</TextResizeAndWordWrapProvider>
);
|
packages/television/src/components/Portal/index.js | accosine/poltergeist | import React from 'react';
import Body from '../Body';
import Articles from './Articles';
import Pager from '../Pager';
import Analytics from '../Analytics';
import SvgSpritemap from '../SvgSpritemap';
import SvgLogos from '../SvgLogos';
import Header from '../Header';
import Menu from '../Menu';
import Footer from '.... |
src/routes.js | robertSahm/port | import React from 'react';
import { IndexRoute, Route } from 'react-router'
import Signin from 'containers/Auth/Signin'
import Signout from 'containers/Auth/Signout'
import Signup from 'containers/Auth/Signup'
import UserProfile from 'containers/UserProfile/UserProfile'
import RequireAuth from 'containers/Auth/RequireA... |
src/routes.js | JimiHFord/web-based-card-game-engine | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/components/groups/DivListGroup.js | nbuechler/ample-affect-exhibit | import React from 'react';
import DivList from '../lists/DivList'
export default class DivListGroup extends React.Component {
constructor (props) {
super(props);
}
render () {
let data = this.props.data;
function renderLists() {
return (
<div>
<div>
<span><stro... |
src/svg-icons/image/panorama-vertical.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
node_modules/react-web/Libraries/index.js | typesettin/NativeCMS | /**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
* @providesModule ReactWeb
*/
'use strict';
import React from 'react';
import {extendCreateElement} from 'ReactStyleSheet';
// proxy origin react createElement
extendCreateElement(React);
// React
export * from 'react';
/... |
submissions/arqex/src/components/App.js | gterzian/flux-challenge | import React from 'react';
import State from '../State';
import SithList from './SithList';
export default class App extends React.Component {
render(){
var state = this.props.appState,
upClass = 'css-button-up',
downClass = 'css-button-down'
;
if( state.sithAtHome || state.upDisabled )
upClass += ' c... |
client/common/components/guide/index.js | Haaarp/geo | import React from 'react';
import Buttons from './Buttons';
import TextSection from './Text';
import FormSection from './forms';
import CheckBoxSection from './checkbox';
import SwitchTile from './../../../analytics/components/partials/SwitchTile.js';
import FormGroup from './../FormGroup';
class ComponentsApp extends... |
tnoodle-ui/src/SelectCompetition.js | cubing/tnoodle | import { toWcaUrl } from 'WcaApi';
import * as actions from 'actions';
import { connect } from 'react-redux';
import React, { Component } from 'react';
import PreserveSearchLink from 'PreserveSearchLink';
export default connect(
state => {
return {
competitions: state.upcomingManageableCompetitions,
};... |
react/gameday2/components/GamedayFrame.js | bdaroz/the-blue-alliance | import React from 'react'
import AppBarContainer from '../containers/AppBarContainer'
import MainContentContainer from '../containers/MainContentContainer'
import ChatSidebarContainer from '../containers/ChatSidebarContainer'
import HashtagSidebarContainer from '../containers/HashtagSidebarContainer'
const GamedayFram... |
plugins/subschema-plugin-template-checkbox/src/index.js | jspears/subschema-devel | import React, { Component } from 'react';
import PropTypes from 'subschema-prop-types';
export class CheckboxTemplate extends Component {
static propTypes = {
label : PropTypes.node,
style : PropTypes.style,
checked: PropTypes.bool
};
static defaultProps = {
style ... |
samples/06.recomposing-ui/d.plain-ui/src/SuggestedActions.js | billba/botchat | import { hooks } from 'botframework-webchat-component';
import React from 'react';
import CardActionButton from './CardActionButton';
const { useSuggestedActions } = hooks;
// Web Chat cleaned up the suggestedActions for us.
// If the last activity is from the bot and contains "suggestedActions", Web Chat will send ... |
src/svg-icons/maps/local-see.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
resources/_model/NavLinkThought.js | AndrewTJohnston/andrewtjohnston.com | import React from 'react'
import { Link } from 'react-router'
export default React.createClass({
render() {
return (
<Link {...this.props} className="nav-link-thought">
<span className="nav-link-thought-date nav-link-post-content">{ this.props.date }</span>
<div className="nav-link-post-cont... |
index.js | jeremyxgo/react-component-boilerplate | import React from 'react';
import ReactDom from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Component from './src/Component.js';
const render = (RootComponent) => {
ReactDom.render(
<AppContainer>
<RootComponent/>
</AppContainer>,
document.getElementById('root')
)
};
ren... |
node_modules/semantic-ui-react/src/elements/List/ListIcon.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
getUnhandledProps,
META,
SUI,
useVerticalAlignProp,
} from '../../lib'
import Icon from '../Icon/Icon'
/**
* A list item can contain an icon.
*/
function ListIcon(props) {
const { cl... |
src/svg-icons/action/accessible.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19... |
src/components/status-button.js | ProjectSunday/rooibus | import React from 'react'
import { connect } from 'react-redux'
import * as Actions from '../actions/actions'
import './status-button.sass'
import offline from '../images/offline.png'
import online from '../images/online.png'
const mapStateToProps = (state, ownProps) => {
return {
online: state.user.onl... |
src/Tab.js | Lucifier129/react-bootstrap | import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import tbsUtils from './utils/bootstrapUtils';
import TransitionEvents from './utils/TransitionEvents';
const Tab = React.createClass({
propTypes: {
/**
* @private
*/
active: React.PropTypes.bool,
... |
src/js/components/pages/items/ContainerForm.js | athill/wimf | import React from 'react';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import { connect } from 'react-redux';
import { addContainer, CONTAINER_FORM_NAME, hideContainerForm, removeContainer, editContainer } from '../../../modules/containers';
import { ModalTypes } from '../../../modules/utils';
impo... |
packages/material-ui/src/Icon/Icon.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { capitalize } from '../utils/helpers';
export const styles = theme => ({
root: {
userSelect: 'none',
fontSize: 24,
width: '1em',
height: '1em',
... |
packages/stockflux-container/src/App.js | owennw/OpenFinD3FC | import React from 'react';
import * as fdc3 from 'openfin-fdc3';
import { useOptions } from 'openfin-react-hooks';
import { OpenfinApiHelpers } from 'stockflux-core';
let latestChartListener;
let latestNewsListener;
let windows = [];
function App() {
const { InterApplicationBus } = OpenfinApiHelpers.getWindow();
... |
smsgw/static/js/tags/add.react.js | VojtechBartos/smsgw | 'use strict';
import React from 'react';
import Immutable from 'immutable';
import {create} from './actions';
import Component from '../components/component.react';
import FlashMessages from '../components/flashmessages.react';
import Subheader from '../components/subheader.react';
import Form from './form.react';
cl... |
src/components/Breadcrumb/Breadcrumb.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const Breadcrumb = (props) => {
const { children, className, ...rest } = props;
let filtered = children;
if (!Array.isArray(children)) {
filtered = [children];
}
const sldsClasses = [
'slds-breadcrumb',
... |
js/components/Links.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import Relay from 'react-relay';
import LocalizedText from './LocalizedText';
import {createContainer} from 'recompose-relay';
import {compose} from 'recompose';
import {Link} from 'react-router';
import Tabs from 'material-ui/lib/tabs/tabs';
import Tab from 'material... |
src/svg-icons/image/edit.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>
... |
app/components/BranchListItem.js | bjyoungblood/chrome-github-toolkit | import React from 'react';
class BranchListItem extends React.Component {
static propTypes = {
name: React.PropTypes.string.isRequired,
onClick: React.PropTypes.func.isRequired,
}
render() {
return (
<li
className="branch-list--item"
key={this.props.name}
onClick={this.... |
test/helpers/shallowRenderHelper.js | westke/gallery-by-react-study | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/common/DataCard.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
/**
* The primary unit of our interface. Any self-contained piece of a larger report page should
* be inside of a DataCard.
*/
const DataCard = (props) => {
const { children, border, disabled, className, inline, leftBorder } = props;
const unbordere... |
src/index.js | Marcoga/react-dnd-test | import React from 'react';
import App from './App';
const items = [{
type: 'PERSON',
name: 'Marco'
},{
type: 'PERSON',
name: 'Test'
},{
type: 'PERSON',
name: 'Not Marco'
},{
type: 'PERSON',
name: 'Andrew'
}]
React.render(
<App items={items} />,
document.getElementById('root')
);
|
app/components/Accordion.js | jcbel/jcbel-weixin | import React from 'react';
import AccordionItem from './AccordionItem';
import classPrefix from '../decorators/classPrefix';
import classNames from 'classnames';
/*
* react component Accordion
* */
@classPrefix('accordion') class Accordion extends React.Component {
constructor(props) {
super(props);
... |
src/client/songs/edit.react.js | steida/songary | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import Loading from '../components/loading.react';
import React from 'react';
import SongForm from './songform.react';
import listenSong from './listensong';
import requireAuth from '../auth/requireauth';
@listenSo... |
frontend/src/components/frame/components/AppFrame/components/AppBar.js | jf248/scrape-the-plate | import React from 'react';
import classNames from 'classnames';
import * as Mui from '@material-ui/core';
import ArrowBack from '@material-ui/icons/ArrowBack';
import Menu from '@material-ui/icons/Menu';
const styles = {
wrapper: {
position: 'relative',
},
root: {
position: 'relative',
'@media print'... |
src/universal/components/LoggedInContainer/index.js | sanchitgangwar/remind-plus | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link, Route, Switch } from 'react-router-dom';
import moment from 'moment';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui... |
stories/MenuSelect.stories.js | algolia/react-instantsearch | import React from 'react';
import orderBy from 'lodash.orderby';
import { storiesOf } from '@storybook/react';
import { text } from '@storybook/addon-knobs';
import { MenuSelect, Panel, SearchBox } from 'react-instantsearch-dom';
import { WrapWithHits } from './util';
const stories = storiesOf('MenuSelect', module);
... |
src/routes/home/Home.js | edgarallanglez/foxacademia_frontend | /**
* 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 PropTypes from 'prop-... |
website-prototyping-tools/playground.js | tmitchel2/relay | /**
* Copyright 2013-2015, 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 'babel/pol... |
src/components/Feedback/Feedback.js | kumarrus/MuffinMan | /**
* 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 withStyles from 'isom... |
blueocean-material-icons/src/js/components/svg-icons/action/launch.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionLaunch = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);
ActionLaunch.displayName = 'ActionL... |
jqwidgets/jqwidgets-react/react_jqxrangeselector.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxRangeSelector extends React.Component {
componentDidMount() {
let options = this.... |
docs/src/app/components/pages/components/TextField/ExampleCustomize.js | tan-jerene/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
import {orange500, blue500} from 'material-ui/styles/colors';
const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocu... |
src/components/common/svg-icons/image/grain.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGrain = (props) => (
<SvgIcon {...props}>
<path d="M10 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.... |
src/components/LogView/LogViewEntry.example.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 React from 'react';
import LogViewEntry from 'components/LogView/LogViewEntry.react';
export const component = Log... |
app/jsx/gradebook/default_gradebook/components/ActionMenu.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - 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... |
packages/react-scripts/template/src/index.js | dsopel94/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Route, Switch } from 'react-router';
import SignUpPage from './SignUpPage/SignUpPage';
import LoginPage from './LoginPage/LoginPage';
import DashboardPage from './DashboardPage/DashboardPage';
import registerServiceWorker fro... |
packages/icons/src/md/maps/LocalDining.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLocalDining(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M15.71 26.417l5.66-5.66L7.34 6.727c-3.12 3.12-3.12 8.19 0 11.31l8.37 8.38zm13.57-3.63c3.05 1.43 7.36.42 10.54-2.76 3.83-3.83 4.56-9.3 1.63-12.23-... |
webapp/src/containers/search/multiTable.js | nathandunn/agr | /*eslint-disable react/sort-prop-types */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createMemoryHistory } from 'react-router';
import _ from 'underscore';
import style from './style.css';
import ResultsTable from './resultsTable';
import CategoryLabel from './categoryLab... |
modules/Route.js | kelsadita/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
var { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to the... |
app/Container.js | yanxyans/dominion | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.