path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
community-modules/client-side-row-model/dist/client-side-row-model.esm.min.js | ceolter/ag-grid | /**
* @ag-grid-community/client-side-row-model - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.1.0
* @link http://www.ag-grid.com/
' * @license MIT
*/
/**
* @ag-grid-community/client-side-row-model - Advanced Data Grid / Data Table supporting Javascript /... |
ajax/libs/6to5/3.3.10/browser-polyfill.js | jozefizso/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/stories/mobile/addCityForm.js | Cirych/WeatherApp | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MobileTearSheet from './MobileTearSheet';
const MobileDecorator = story => (
<MuiThemeProvider>
<MobileTearSheet customColor="lightgreen">
{story()}... |
resources/assets/js/components/admin/ListItemArchivedGroup.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
class ListItemArchivedGroup extends Component {
constructor(props) {
super(props);
this.state = {
hovering: false
};
}
render() {
const { id, name, nickname, grade, teacher, students } = this.props.group;
const teacherContent = (teacher != nul... |
client.js | restful-open-annotation/ACID-RESTful-OA | "use strict";
var $ = require('jquery');
window.$ = window.jQuery = $;
//var bootstrap =
require('bootstrap');
//var assert = require('assert');
//var _ = require("lodash");
var React = require("react");
var Main = require("./views/Main.jsx");
React.render(
React.createElement(Main, {
}),
document.getElementB... |
src/components/icons/facebook.js | JovaniPink/measuredstudios | import React from 'react';
import PropTypes from 'prop-types';
const Facebook = ({ color }) => {
return (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill={color}
xmlns="http://www.w3.org/2000/svg"
>
<g clipPath="url(#clip0)">
<path
d="M22.675 0H1.325... |
web/portal/src/components/EditPanel/EditMultiOptions/index.js | trendmicro/serverless-survey-forms |
// CSS
import styles from './style.css';
import React from 'react';
import PureComponent from 'react-pure-render/component';
import classNames from 'classnames';
import * as values from '../../../constants/DefaultValues';
import Mixins from '../../../mixins/global';
import EditItem from '../EditItem';
class EditMul... |
ajax/libs/material-ui/5.0.0-beta.5/node/SvgIcon/SvgIcon.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _inte... |
src/TextInput/index.js | narqo/react-islands | import React from 'react';
import Control from '../Control';
class TextInput extends Control {
constructor(props) {
super(props);
this.onClearClick = this.onClearClick.bind(this);
this.onInputChange = this.onInputChange.bind(this);
}
render() {
const { value } = this.props... |
docs/src/pages/components/lists/SwitchListSecondary.js | allanalexandre/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
impo... |
ui/src/app/components/Foods.js | kuppuswamy/foodie | import React from 'react';
import AddFoodMutation from '../mutations/AddFoodMutation';
import EditFoodMutation from '../mutations/EditFoodMutation';
import DeleteFoodMutation from '../mutations/DeleteFoodMutation';
export default class Foods extends React.Component {
state = {
text: '',
editID: null,
typ... |
v21/v21.0.0/introduction/project-lifecycle.js | ccheever/expo-docs | import markdown from 'markdown-in-js'
import withDoc, { components } from '~/lib/with-doc'
import { expoteam } from '~/data/team'
// import { InternalLink, ExternalLink } from "~/components/text/link";
// import { P } from "~/components/text/paragraph";
import Image from '~/components/base/image'
// import { InlineCod... |
actor-apps/app-web/src/app/components/Deactivated.react.js | fhchina/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
src/components/file-list/file-icon.js | Storj/metadisk-gui | import React from 'react';
const FileIcon = (props) => {
var mimeTypeArr = props.mimetype.split('/')
if (/[_a-zA-Z]+[_a-zA-Z0-9-]*/.test(mimeTypeArr[0]) && /[_a-zA-Z]+[_a-zA-Z0-9-]*/.test(mimeTypeArr[0])) {
return (
<i className={'mimetype glyphicon ' + mimeTypeArr[0] + ' ' + mimeTypeArr[1]}></i>
);
... |
src/app/ResponsivePropsNav.react.js | blueberryapps/react-bluekit | import Component from './PureRenderComponent.react';
import font from './styles/Font';
import Icon from './atoms/Icon.react';
import Radium from 'radium';
import React from 'react';
import RPT from 'prop-types';
import spaces from './styles/Spaces';
import * as colors from './styles/Colors';
@Radium
export default cla... |
src/components/TableBody.js | joellanciaux/Griddle | import React from 'react';
const TableBody = ({ rowIds, Row, style, className }) => (
<tbody style={style} className={className}>
{ rowIds && rowIds.map((k, i) => <Row key={k} griddleKey={k} index={i} />) }
</tbody>
);
export default TableBody;
|
src/svg-icons/action/rowing.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRowing = (props) => (
<SvgIcon {...props}>
<path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-... |
src/svg-icons/maps/local-gas-station.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGasStation = (props) => (
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4... |
client/src/js/lib/fields.js | Dans-labs/dariah | import pickBy from 'lodash/pickby'
import React from 'react'
import { memoize } from 'memo'
import { emptyS, emptyO } from 'utils'
export const itemReadField = (field, label, fvalue, key) => (
<div {...(key == null ? emptyO : { key })} className={'grid-row form'}>
<div className={'grid-head-cell label-col'}>
... |
good-old-react-authentication-flow/src/components/InputEmailWithErrors/index.js | strapi/strapi-examples | /**
*
* InputEmailWithErrors
*
*/
/* eslint-disable no-mixed-operators */
import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty, isFunction } from 'lodash';
import cn from 'classnames';
// Design
import Label from '../../components/Label';
import InputDescription from '../../components/... |
react/node_modules/reactify/node_modules/react-tools/src/browser/__tests__/findDOMNode-test.js | luciana02/pentagram_project | /**
* 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.
*
* @emails react-co... |
lib/components/MapPolyline.js | parkling/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* An array of coordinates to describe the polygon... |
src/components/Icon/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './icon.scss';
const getClassname = (size, modifier, inline) => {
return [
styles[size || 'default'],
styles[modifier || 'default'],
styles[inline ? 'inline' : '']
].join(' ');
};
const Icon = ({ id, size, modifier, inline }) => {
const useEl = `<use cla... |
test/regressions/tests/List/SecondaryActionCheckboxListItem.js | Kagami/material-ui | import React from 'react';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
import Checkbox from '@material-ui/core/Checkbox';
export ... |
lib/MultiSelection/tests/MultiSelectionHarness.js | folio-org/stripes-components | import React from 'react';
import MultiSelection from '../MultiSelection';
class MultiSelectionHarness extends React.Component {
state = { msVal: this.props.value }
handleChange = (value) => {
this.setState({ msVal: value });
if (this.props.onChange) {
this.props.onChange(value);
}
}
render... |
src/website/app/demos/Table/Table/examples/customHeaderCell.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import styled from '@emotion/styled';
import withProps from 'recompose/withProps';
import { pxToEm } from '../../../../../../library/styles';
import Table from '../../../../../../library/Table';
import data from '../../common/data';
import renderPropsDescription from '../../../com... |
demo/src/with-close.js | bisudev/bisu-react-modal | import React from 'react'
import Modal from '../../src'
const WithClose = ({ isOpen, onClose }) =>
<Modal
header="With Close"
isOpen={isOpen}
onClose={onClose}
overlayClassName="dark"
withClose
draggable
>
WithClose Modal
<div className="modal-footer">
<button className="btn ... |
modules/IndexRoute.js | buddhike/react-router | import React from 'react'
import invariant from 'invariant'
import warning from 'warning'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { bool, func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRout... |
src/components/AppLaunchpad.js | leanix/leanix-app-launchpad | import React from 'react'
import Search from './Search' // eslint-disable-line no-unused-vars
import AppRow from './AppRow' // eslint-disable-line no-unused-vars
import store from '../services/Store'
export default class AppLaunchpad extends React.Component {
constructor (props, context) {
super(props, context)
... |
src/utils/fieldUtils/renderTooltip.js | policygenius/athenaeum | import React from 'react';
import Icon from 'atoms/Icon';
import Tooltip from 'atoms/Tooltip';
export default function renderTooltip(tooltip, className, iconClassName) {
if (typeof tooltip === 'function') {
return tooltip({
tooltipPropGetter: (overrides = {}) => ({
className,
right: true,
... |
client/src/components/SignUpScreen.js | wapjude/labify | import React from 'react';
import PropTypes from 'prop-types';
import LinearGradient from 'react-native-linear-gradient';
import { connect } from 'react-redux';
import faker from 'faker';
import Button from 'apsl-react-native-button'
import FontAwesomeIcon from 'react-native-vector-icons/MaterialIcons';
import {
Styl... |
assets/jqwidgets/demos/react/app/grid/columnsresize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
componentDidMount() {
this.refs.myGrid.on('columnresized', (event) => {
let column = event.args.columntext;
let newwidth... |
ajax/libs/inferno-redux/1.0.0-beta20/inferno-redux.js | jdh8/cdnjs | /*!
* inferno-redux v1.0.0-beta20
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('./inferno-create-element')) :
typeof define === 'functio... |
server/src/main/webapp/js/jquery-1.11.3.js | terma/logb | /*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:19Z
*/
(function( global, factory ) {
... |
sites/all/libraries/composer/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js | vuhoanglinh2002/drupal | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/jsx/components/ResponsivenessTable.js | instructure/analytics | import React from 'react'
import ReactBootstrapTable from '../../../public/javascripts/react-bootstrap-table'
import { useScope as useI18nScope } from '@canvas/i18n';
import helpers from '../helpers'
const I18n = useI18nScope('analytics');
const {BootstrapTable, TableHeaderColumn} = ReactBootstrapTable
const tableOp... |
src/app/AppWithSideBar.js | VasilyShelkov/ClientRelationshipManagerUI | import React from 'react';
import { Switch, Route } from 'react-router';
import { connect } from 'react-redux';
import ReduxSweetAlert from 'react-redux-sweetalert';
import Snackbar from 'material-ui/Snackbar';
import ProfileWithData from '../profile/ProfileWithData';
import AddUserFormWithData from '../users/AddUserF... |
templates/re-dux/src/App.js | amoghbanta/react-native-everywhere | import React from 'react';
import {Provider} from "react-redux";
import EntryScreen from './screens/EntryScreen';
import store from "./utilities/storage/store";
class App extends React.Component {
render() {
return (
<Provider store={store}>
<EntryScreen/>
</Provid... |
client/src/components/svg/BranchIcon.js | Wiredcraft/jekyllpro-cms | import React from 'react';
export default props => {
return (
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeWidth="0.2"
strokeLinejoin="round"
d="M 13,14C 9.64431,14 8.54075,15.3513 8.17783,16.24C 9.2492,... |
actor-apps/app-web/src/app/components/Install.react.js | Ajunboys/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
src/parser/druid/restoration/modules/items/azeritetraits/AutumnLeaves.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import {formatPercentage, formatNumber} from 'common/format';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import StatWeights from '../../features/StatWeights';
import ... |
src/Pagination.js | reactstrap/reactstrap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
listClassName: PropTypes.string,
cssModule: PropTypes.object,
size: PropTypes.... |
tictactoe/src/components/AuthButton.js | gethub102/full_stack_web_app | import React from 'react'
import RaisedButton from 'material-ui/RaisedButton'
const AuthButton = (props) => {
if (props.authenticated) {
return (
<RaisedButton
label='Logout'
onTouchTap={props.auth.logout}
fullWidth={true}
secondary
/>
)
} else {
return (
<RaisedButton
label={'Logi... |
docs/src/pages/ReactPlayground.js | mattBlackDesign/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
import {
LiveProvider,
LiveEditor,
LiveError,
LivePreview
} from 'react-live';
import * as RM from '../../../src/';
const trimmer = (code) =>
code.substring(code.indexOf('<') - 1).replace(/;/, '').trim();
const ReactPlayground = ({ code, trim =... |
front-end/src/index.js | mkalpana/km-react-reddit-clone | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import './index.css';
import { App } from './views';
import reducer from './reducers';
import registerServiceWorker from '.... |
docs/src/pages/components/steppers/HorizontalLinearStepper.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typo... |
modules/field_ui/field_ui.js | DuaelFr/chenes | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
frontend/src/Movie/Details/MovieDetails.js | geogolem/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Tab, TabList, TabPanel, Tabs } from 'react-tabs';
import TextTruncate from 'react-text-truncate';
import Icon from 'Components/Icon';
import ImdbRating from 'Components/ImdbRating';
import InfoLabel from 'Comp... |
js-weird-part-mini-framework/jquery-1.11.2.js | totoro72/pt1 | /*!
* jQuery JavaScript Library v1.11.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-17T15:27Z
*/
(function( global, factory ) {
if ... |
src/javascripts/__tests__/componentSpec.js | voodee/funny_points | "use strict";
import { expect } from 'chai'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import * as ShallowTestUtils from 'react-shallow-testutils'
import testTree from 'react-test-tree'
import SimpleEditor from 'component/SimpleEditor'
import Graph from 'component/Graph'
import ColorPic... |
blueocean-dashboard/src/main/js/components/stories/icons.js | tfennelly/blueocean-plugin | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { Icon, shapes } from 'react-material-icons-blue';
const custom = `<path
d="m 19,12.473273 -4,0 L 15,3 9,3 l 0,9.473273 -4,0 7,11.052151 7,-11.052151 z"
id="path3541" />
<path
d="m 5,6.4799998 0,2.0000001 14,0 0,-2.00000... |
packages/icons/src/dv/Angular.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvAngular(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M4.176 9.954L23.936 3l19.888 6.831L40.7 35.72 23.957 45 7.3 35.844 4.176 9.954zm28.137 23.772h4.22L23.89 6.567 11.673 33.726h4.558l2.449-6.19h10.95l2... |
example/src/reduxUsageApp.js | lapanoid/redux-cropper | import React from 'react';
import PureComponent from 'react-pure-render/component';
import { getBlob, reduxApp as Cropper, CropperPreview, imageUtils } from 'redux-cropper';
const imgPath = require("../img/watson.jpg");
const { getBlobFromUrl } = imageUtils;
const options = {
viewMode: 1,
wheelZoomRatio: 0.5,
aspe... |
src/index.js | CollinPerkins/hslClient | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import App from './components/app';
import reducers from './reducers';
ReactDOM.render(
<Provider store={createStore(reducers)}>
<App />
</Provider>
, document.querySelec... |
src/components/Schedule/Schedule.js | hack-duke/hackduke-ideate-website |
import React from 'react'
import classes from './Schedule.scss'
const title = 'Schedule'
export const Schedule = (props) => (
<div className={classes.schedule}>
<h1 className={classes.header}>{title}</h1>
<div className={classes.schedule}>
<img className={classes.image} src={'schedule.png'} alt={'pla... |
demo/loading/loading.js | timkrins/react-mdl | import React from 'react';
import ProgressBar from '../../src/ProgressBar';
import Spinner from '../../src/Spinner';
class Demo extends React.Component {
render() {
return (
<div>
<p>Simple MDL Progress Bar</p>
<ProgressBar progress={44} />
<p>MD... |
node_modules/material-ui/svg-icons/hardware/watch.js | GregSantulli/react-drum-sequencer | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
sites/all/themes/receiptzen/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | mollyklecompte/receipt | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
app/javascript/mastodon/components/gifv.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class GIFV extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
onClick: PropTypes.func,
};
state = {
l... |
node_modules/react-icons/md/android.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdAndroid = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 8.4v-1.8h-1.6v1.8h1.6z m-8.4 0v-1.8h-1.6v1.8h1.6z m9.3-4.8c2.5 1.8 4.1 4.8 4.1 8h-20c0-3.2 1.6-6.2 4.1-8l-2.2-2.2c-0.3-0.3-0.3-0.9 0-1.2s0.8-0.3 1.1 0l2.5 2.5c1.4... |
clients/components/Catdera/Catdera.js | CalderaWP/Caldera-Forms | import React from 'react';
import Image from '../RemotePost/Image';
export class Catdera extends React.Component {
constructor(props){
super(props);
this.state = {
width: props.hasOwnProperty('width' ) ? props.width : '50px',
height: props.hasOwnProperty('height' ) ? props.he... |
src/svg-icons/hardware/watch.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
src/login/login.js | codehangar/react-redux-rockstarter | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import { login } from './login.actions';
class Login extends Co... |
ajax/libs/react/0.13.0-rc1/JSXTransformer.js | ZDroid/cdnjs | /**
* JSXTransformer v0.13.0-rc1
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined... |
src/components/Navigation/index.js | uppermanis/react-course | import React from 'react';
import { Link } from 'react-router-dom';
import Search from '../Search';
import s from './styles';
// Navigation
export default () => (
<nav className={s.navigationContainer()}>
<ul>
<li className={s.navItem()}><Link className={s.navLink()} to="/">Home</Link></li>
<li class... |
src/svg-icons/image/crop-rotate.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81... |
pootle/static/js/auth/components/AccountActivation.js | Yelp/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
client/aframe/components/MoonScene.js | PhoneThrone/PoopVR | import React from 'react';
class MoonScene extends React.Component {
constructor(props) {
super(props);
}
render () {
return (
<a-scene>
<a-assets>
<a-asset-item id='fighterDae' src='/assets/tiefighter.dae' />
<a-asset-item id='stall' src='/assets/Toilet_Stall.dae' />
... |
wrappers/json.js | alonsogodinez/AlamedaWebPageGatsby | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
<Helmet
tit... |
components/animals/urzonKanadsky.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/urzonKanadsky/01.j... |
examples/server-rendering/reactserver/server.js | 10fish/react | var React = require('react');
var express = require('express');
var path = require('path');
// Transparently support JSX
require('node-jsx').install();
var app = express();
// All the render server does is take a CommonJS module ID and some JSON props
// in the querystring and return a static HTML representation of ... |
packages/material-ui-icons/src/SettingsBrightness.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4... |
src/utils/ValidComponentChildren.js | deerawan/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
dist/1.10.0/jquery-ajax-css-effects-offset.min.js | michaelBenin/jquery-builder | /*! jQuery v1.10.0 -css,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],d="1.10.0 -css,-aj... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupIconShorthand.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupIconShorthand = () => (
<Button.Group>
<Button icon='play' />
<Button icon='pause' />
<Button icon='shuffle' />
</Button.Group>
)
export default ButtonExampleGroupIconShorthand
|
App/ui/views/place/Place.preview.js | neytz/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. 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, or (at your option) any later version.
... |
client-react/src/pwa.js | diman84/Welthperk | import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from './helpers/Html';
export default function () {
return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`;
}
|
components/Pagination/Pagination.story.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import { storiesOf, action } from '@storybook/react';
import { withKnobs, number } from '@storybook/addon-knobs';
import Pagination from './Pagination';
import PaginationTrack from './PaginationTrack';
const SimplePagination = props => (
<Pagination { .... |
ajax/libs/react-select/2.0.0-beta.6/react-select.min.js | sashberd/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("emotion"),require("react"),require("react-dom"),require("react-input-autosize"),require("prop-types")):"function"==typeof define&&define.amd?define(["emotion","react","react-dom","react-input-autosize","prop-types"],t):e.Selec... |
frontend/src/helpers/formHelper.js | unicef/un-partner-portal | /* eslint-disable react/prop-types */
import R from 'ramda';
import React, { Component } from 'react';
import Select from 'material-ui/Select';
import TextField from 'material-ui/TextField';
import Input from 'material-ui/Input';
import Checkbox from 'material-ui/Checkbox';
import Autosuggest from 'react-autosuggest';
... |
ajax/libs/react-dom/15.5.1/react-dom-server.js | tholu/cdnjs | /**
* ReactDOMServer v15.5.1
*/
;(function(f) {
// CommonJS
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f(require('react'));
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(['react'], f);
// <script>
} else {
var g;
... |
resources/js/components/artifacts/ReviewIcon/ReviewIcon.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const ReviewIcon = ({ className }) => (
<svg
className={classnames('fill-color', className)}
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
... |
src/client/formHelpers/textField.js | r3dDoX/geekplanet | import React from 'react';
import TextField from '@material-ui/core/TextField';
import styled from 'styled-components';
const StyledTextField = styled(TextField)`
margin-top: 10px !important;
margin-bottom: 10px !important;
`;
// eslint-disable-next-line
export default ({ input, label, meta: { touched, error }, .... |
packages/react-devtools-shared/src/backend/legacy/renderer.js | TheBlasfem/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {
ElementTypeClass,
ElementTypeFunction,
ElementTypeRoot,
ElementTypeHostComponent,
ElementTypeOtherO... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | albertolacework/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
public-src/components/bumpChart.js | evantahler/ah-resque-ui | import React from 'react'
import { ResponsiveAreaBump } from '@nivo/Bump'
import { Spinner, Row, Col } from 'react-bootstrap'
function BumpChart ({ data }) {
if (!data[0] || data[0].data.length < 2) {
return (
<Row>
<Col md={12} style={{ textAlign: 'center', paddingTop: 100 }}>
<Spinner a... |
bower_components/bootstrap-datepicker/tests/assets/jquery-1.7.1.min.js | Dhananjana/Driving-Training-School | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/svg-icons/maps/rate-review.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
admin/client/App/shared/Portal.js | creynders/keystone | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
test/deprecate-Link-location-props-test.output.js | rackt/rackt-codemod | import React from 'react';
const ACTIVE = { color: 'red' };
class App extends React.Component {
render() {
return (
<div>
<h1>APP!</h1>
<ul>
<li><Link to="/" activeStyle={ACTIVE}>/</Link></li>
<li><IndexLink to="/" activeStyle={ACTIVE}>/ IndexLink</IndexLink></li>
... |
packages/gatsby-codemods/src/transforms/__testfixtures__/navigate-calls/existing-esm-import.output.js | ChristopherBiscardi/gatsby | /* eslint-disable */
import React from 'react';
import { graphql, navigate } from 'gatsby';
export default function Example() {
return <button onClick={() => navigate('/sample')}>waddup</button>;
}
export const pageQuery = graphql`
query {
allSitePages {
prefix
}
}
`;
|
ajax/libs/redux-form/7.0.0-alpha.8/redux-form.js | wout/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-redux"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-redux", "redux"], factory);
e... |
ajax/libs/js-data/2.0.0-rc.3/js-data-debug.min.js | melvinsembrano/cdnjs | /*!
* js-data
* @version 2.0.0-rc.3 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversal... |
modules/Redirect.js | whouses/react-router | 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 b... |
containers/App.js | sectore/pragmaticstudio-bingo-redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {
PageHeader
, EntryList
, EntryForm
, PageFooter
} from '../components';
import * as Actions from '../actions/';
@connect(
(state) => state,
(dispatch) => bindActionCreators(... |
client/modules/User/components/UserNavBar/UserNavBar.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Navbar, Nav, NavItem, MenuItem, Pagination, FormControl, Button } from 'react-bootstrap';
import { setSearch, setMaxPage, setCurrentPage, fetchUserSearch } from '../../UserActions';
import { get... |
client/components/SizeButton.js | orballo/gorgonzola | 'use strict'
import React from 'react'
const selectedStyle = color => ({
backgroundColor: `rgba(${color[0]}, ${color[1]}, ${color[2]}, 1)`
})
const SizeButton = props => (
<div className='sizes-menu'>
<div
className='size-button'
data-tool={props.tool}
data-size='1'
onClick={props.han... |
client/scripts/components/admin/detail-view/rejection-confirmation/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
ajax/libs/material-ui/5.0.0-alpha.19/internal/svg-icons/Close.min.js | cdnjs/cdnjs | import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"); |
user_guide/searchindex.js | rahmat1996/adb | Search.setIndex({envversion:42,terms:{represent:[26,119,14,81],mybackup:77,yellow:[6,133],poorli:94,four:[153,90,55,139,56,129,125,134,128],prefix:[98,2],oldest:134,hate:135,optimize_databas:77,consider:[55,30],whose:30,accur:[0,30,118,155,43,97],aug:94,my_control:[105,114],site_url:[83,100,22,7,30],illustr:[137,100,15... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.