path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
packages/icons/src/md/action/SpeakerNotes.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSpeakerNotes(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 4c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H12l-8 8 .02-36c0-2.21 1.77-4 3.98-4h32zM16 28v-4h-4v4h4zm0-6v-4h-4v4h4zm0-6v-4h-4v4h4zm14 12v-4H20v... |
src/containers/businessRegistration.js | ilamarang/10Cents | import React from 'react'
import PlacesAutocomplete , { geocodeByAddress, getLatLng } from 'react-places-autocomplete'
import { connect } from "react-redux";
import { createBusiness,displayNotification,validateShop } from "../actions";
import { Link,withRouter } from "react-router-dom";
import ReactDOM from 'react-dom'... |
src/components/Tabset/AccountEntry.js | xander-salesforce/lcc-react-quickstart-app | import React, { Component } from 'react';
import * as LCC from 'lightning-container';
import ButtonIcon from './ButtonIcon';
import PropTypes from 'prop-types';
class AccountEntry extends Component {
static propTypes = {
isActive: PropTypes.string.isRequired,
accountId: PropTypes.string.isRequired,
accou... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-progress-bar.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from '../common/common.js';
import Cover from './progress-bar-cover.js';
import Item from './progress-bar-item.js';
import './progress-bar.less';
export const ProgressBar = React.createClass({
//@@viewOn:mixins
... |
src/views/AccountsListing/AccountsListing.js | folio-org/ui-users | import _ from 'lodash';
import React from 'react';
import {
FormattedMessage,
injectIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import {
Button,
ButtonGroup,
Checkbox,
Col,
Dropdown,
DropdownMenu,
filterState,
Pane,
PaneHeader,
PaneHead... |
client-app/views/header.js | dgaisan/polling | import React, {Component} from 'react';
export default class Header extends Component {
constructor(props) {
super(props);
}
render() {
return (
<header className="row">
<div className="col-xs-10">
<h1>{this.props.title}</h1>
</div>
<div className="col-xs-2">
<span id="connection-statu... |
docs/src/app/components/pages/components/Slider/ExampleSimple.js | tan-jerene/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleSimple = () => (
<div>
<Slider />
<Slider defaultValue={0.5} />
<Slider defaultValue={1} />
</div>
);
export default SliderExampleSimple;
|
ajax/libs/F2/1.2.1/f2.min.js | jackdoyle/cdnjs | /*! F2 - v1.2.1 - 08-08-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
src/renderers/dom/shared/ReactDOMComponent.js | Datahero/react | /**
* 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.
*
* @providesModule ... |
ajax/libs/react/18.0.0-rc.0-next-fe905f152-20220107/cjs/react.production.min.js | cdnjs/cdnjs | /**
* @license React
* react.production.min.js
*
* 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.
*/
'use strict';var l=require("object-assign"),m=60103,p=60106;exports.Fragment=60107;... |
integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/components/WorkflowGenProfileComponent.js | advantys/workflowgen-templates | import React, { Component } from 'react';
import {
ActivityIndicator,
Text,
Button,
SectionList,
View
} from 'react-native';
import gql from 'graphql-tag';
import { Query, withApollo } from 'react-apollo';
import { CommonStyles } from './styles';
import { Container, Separator } from '.';
const GET_VIEWER_IN... |
003 - Dynamic Forms with Redux Form/src/components/app.js | StephenGrider/RallyCodingWeekly | import React from 'react';
import { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
ajax/libs/react-instantsearch/4.1.0-beta.3/Connectors.js | sashberd/cdnjs | /*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
ajax/libs/material-ui/5.0.0-beta.2/modern/TextareaAutosize/TextareaAutosize.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["onChange", "maxRows", "minRows", "style", "value"];
import * as React from 'react';
import PropTypes from 'prop-types';
import debounce from... |
src/index.js | chanddu/video_browser | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
//Yotube API_KEY
const API... |
docs/swagger/lib/jquery-1.8.0.min.js | mys3lf/recalot.com | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
frontend/src/containers/AttackListDetails.js | dimriou/rupture | import React from 'react';
import AttackItem from './AttackItem';
import _ from 'lodash';
export default class AttackListDetails extends React.Component {
constructor() {
super();
this.state = {
completed: [],
runpaused: []
}
}
deleted = () => {
t... |
ajax/libs/styled-components/3.3.1/styled-components-no-parser.browser.es.js | sashberd/cdnjs | import isPlainObject from 'is-plain-object';
import Stylis from 'stylis';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { Component, cloneElement, createElement } from 'react';
import PropTypes from 'prop-types';
import hoist from 'hoist-non-react-statics';
import { isValidElementType } from 'react-i... |
packages/cf-component-card/test/Card.js | mdno/mdno.github.io | import React from 'react';
import renderer from 'react-test-renderer';
import { Card } from '../../cf-component-card/src/index';
test('should render', () => {
const component = renderer.create(<Card>Card</Card>);
expect(component.toJSON()).toMatchSnapshot();
});
|
app/javascript/mastodon/features/pinned_statuses/index.js | h3zjp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
app/javascript/mastodon/features/ui/components/column_header.js | h-izumi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
hideOnMobile: PropTypes.bool,
columnHeaderId: PropTypes.string... |
Meteor_React_Udemy_Tut/images/client/components/image_detail.js | illuminos/Practice | import React from 'react';
import ImageScore from './image_score';
const ImageDetail = (props)=>{
return(
<li className="media list-group-item">
<div className="media-left">
<img src={props.link} />
</div>
<div className="media-body">
<h4 className="media-he... |
node_modules/react-deep-force-update/src/index.js | martincochran/score-minion-react-native | function traverseRenderedChildren(internalInstance, callback, argument) {
callback(internalInstance, argument);
if (internalInstance._renderedComponent) {
traverseRenderedChildren(
internalInstance._renderedComponent,
callback,
argument
);
} else {
for (let key in internalInstance._... |
src/Parser/DeathKnight/Shared/RuneTracker.js | hasseboulen/WoWAnalyzer | import React from 'react';
import RESOURCE_TYPES from 'common/RESOURCE_TYPES';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage, formatDuration } from 'common/format';
import Wrapper from 'common/Wrapper';
import SpellIcon from 'common/SpellIcon';
import { STATISTIC_ORDER } from 'Main/Stati... |
client/admin/settings/inputs/RelativeUrlSettingInput.stories.js | iiet/iiet-chat | import { Field } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import React from 'react';
import { RelativeUrlSettingInput } from './RelativeUrlSettingInput';
export default {
title: 'admin/settings/inputs/RelativeUrlSettingInput',
component: RelativeUrlSettingInput,
decorators: ... |
src/js/components/header.js | cheriejiajia/react-seed | import React from 'react';
export default class Header extends React.Component{
render() {
return (
<div className="header">
Header
</div>
);
}
} |
ajax/libs/forerunnerdb/1.3.337/fdb-core+views.min.js | humbletim/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ajax/libs/rxjs/2.4.7/rx.compat.js | menuka94/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
packages/demos/demo/src/components/ProjectSelectorTag/index.js | garth/cerebral | import React from 'react'
import { connect } from '@cerebral/react'
import { props, signal, state } from 'cerebral/tags'
import ProjectSelector from '../ProjectSelector'
export default connect(
{
item: state`projects.all.${props`itemKey`}`,
onClick: signal`projects.projectTagClicked`,
showSelector: state... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | SpainTrain/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
vertex_ui/src/components/RightSidebar/components/OverlayContent/OverlayContent.js | zapcoop/vertex | import React from 'react';
import { PropTypes } from 'prop-types';
import classNames from 'classnames';
const OverlayContent = props => {
const { active, children, className, style, ...otherProps } = props;
const contentClass = classNames(
{
active: active,
},
'right-sidebar-extra-content',
... |
src/containers/__tests__/views/authenticate-view-test.js | yursky/recommend | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import AuthenticateView from '@containers/auth/AuthenticateView';
it('AuthenticateView renders correctly', () => {
const tree = renderer.cr... |
docs/app/Examples/collections/Grid/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
import ResponsiveVariations from './ResponsiveVariations'
const GridExamples = () => (
<div>
<Types />
<Content />
<Variations />
<ResponsiveVariations />
</div>
)
export de... |
examples/js/column-filter/number-options-filter.js | pvoznyuk/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,
... |
app/components/location-search.js | sirbrillig/voyageur-js-client | import React from 'react';
class LocationSearch extends React.Component {
componentDidMount() {
if ( ! window ) return;
window.document.body.addEventListener( 'keyup', this.searchKeyListener );
}
componentWillUnmount() {
if ( ! window ) return;
window.document.body.removeEventListener( 'keyup', ... |
example/__tests__/index.android.js | mmiani/react-native-google-analytics-bridge | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
my/wp-content/themes/ppmlayout/assets/plugins/fullcalendar/jquery/jquery-1.9.1.min.js | kuldeep89/160515 | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/widgets/PaperModal/PaperModalContainer.js | sussol/mobile | import React from 'react';
import PropTypes from 'prop-types';
import {
TouchableWithoutFeedback,
useWindowDimensions,
Modal,
KeyboardAvoidingView,
View,
Pressable,
} from 'react-native';
import { FlexView } from '../FlexView';
import { Paper } from '../Paper';
import { TRANSPARENT_GREY } from '../../globa... |
src/svg-icons/editor/border-clear.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
modules/__tests__/RouteComponent-test.js | davertron/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
describe('a Route Component', function () {
let node
beforeEach(function () {
node = document.createElement('div')
})
afterEach(function (... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | andrewmaudsley/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... |
packages/@lyra/components/src/edititem/story.js | VegaPublish/vega-studio | /* eslint-disable react/no-multi-comp */
import React from 'react'
import {storiesOf, action} from 'part:@lyra/storybook'
import EditItemFold from 'part:@lyra/components/edititem/fold'
import Lyra from 'part:@lyra/storybook/addons/lyra'
import Chance from 'chance'
import {
withKnobs,
boolean,
text,
number
} fro... |
build/config.js | JavascriptTips/element | var path = require('path');
var fs = require('fs');
var nodeExternals = require('webpack-node-externals');
var Components = require('../components.json');
var saladConfig = require('../packages/theme-default/salad.config.json');
var utilsList = fs.readdirSync(path.resolve(__dirname, '../src/utils'));
var mixinsList = ... |
ajax/libs/react-router/0.11.1/react-router.min.js | r3x/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
src/svg-icons/action/perm-scan-wifi.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleMenuDirectionLeft.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleMenuDirectionLeft = () => (
<Dropdown text='Menu' floating labeled button className='icon'>
{/* <i class="dropdown icon"></i> */}
<Dropdown.Menu className='left'>
<Dropdown.Item>
<i className='dropdown i... |
src/svg-icons/communication/clear-all.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationClearAll = (props) => (
<SvgIcon {...props}>
<path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
CommunicationClearAll = pure(CommunicationClearAll);
CommunicationClearAll.di... |
src/components/ToolbarSearchBox.js | juanda99/arasaac | import React from 'react'
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from ... |
ajax/libs/react/0.12.1/react-with-addons.js | ericelliott/cdnjs | /**
* React (with addons) v0.12.1
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(fu... |
src/Panel.js | crhain/freeCodeCamp-Simon | /*renders a colored panel*/
import React from 'react';
import Sound from 'react-sound';
class Panel extends React.Component{
render(){
let panelIsOnClass = "";
let soundUrl = "media/simonSound1.mp3";
if(this.props.panelClicked.id === this.props.id){
if(this.props.panelClicked.error){
panel... |
src/components/Feedback/Feedback.js | Baracuda84/tuntab-1 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
node_modules/react-icons/md/subway.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdSubway = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30 26.5v-11.5c0-4.4-4.5-5-10-5-5 0-10 0.6-10 5v11.5c0 2.4 2 4.4 4.4 4.4l-1.9 1.8v0.7h2.8l2.5-2.5h4.7l2.5 2.5h2.5v-0.7l-1.9-1.8c2.4 0 4.4-2 4.4-4.4z m-0.3-21.8c4.4 1.7... |
src/routes/error/index.js | joaquingatica/git-demo | /**
* 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 ErrorPage from './Err... |
app/views/project/loading.js | muzhack/musitechhub | 'use strict'
let component = require('omniscient')
let h = require('react-hyperscript')
let logger = require('@arve.knudsen/js-logger').get('project.loading')
if (__IS_BROWSER__) {
require('../loading.styl')
}
let Loading = component('Loading', (cursor) => {
let status = cursor.get('isLoading')
logger.debug(`Re... |
src/components/App.js | yingray/create-react-redux-app | import React from 'react'
import Header from './Header'
const App = ({ children }) =>
<div>
<Header />
<div>
{children}
</div>
</div>
export default App
|
src/svg-icons/device/signal-wifi-2-bar.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M4.79 12.52l7.2 8.98H12l... |
packages/node_modules/@webex/widget-roster/src/components/add-participant/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import isEmail from 'validator/lib/isEmail';
import classNames from 'classnames';
import PeopleList from '@webex/react-component-people-list';
import {Button, Icon, Input, Spinner} from '@momentum-ui/react';
import styles from './styles.css';
const propT... |
ajax/libs/muicss/0.9.5/react/mui-react.js | jdh8/cdnjs | (function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function define... |
src/pages/NotFound/index.js | bharani91/react-redux-express | import React from 'react'
const NotFound = () => {
return (
<div>
Not Found
</div>
)
}
export default NotFound
|
src/svg-icons/content/inbox.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/>
<... |
ajax/libs/mediaelement/2.3.0/jquery.js | peteygao/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
components/text-input/keyboard.js | Centroida/CentroUI | import React from 'react';
import { View, VrButton, StyleSheet, Text } from 'react-vr';
import KeyboardButton from './keyboard-button';
import layout from './keyboard-layout';
const styles = StyleSheet.create({
container : {
},
numbers : {
},
row1 : {
},
row2 : {
},
row3 : {
},... |
app/components/Typing.js | nesfe/electron-LAN-chat | import React, { Component } from 'react';
import $ from 'jquery';
export default class Typing extends Component {
constructor(props) {
super(props);
this.state = {
expr: 'expr'
}
}
choiceBq(va) {
this.refs.text.value += va;
$('.exprMain').hide();
this.setState({
expr: 'expr'
... |
ajax/libs/forerunnerdb/1.3.486/fdb-core+persist.js | amoyeh/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... |
Libraries/ReactIOS/ReactIOSDOMIDOperations.js | pj4533/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/client/layouts/CoreLayout/CoreLayout.js | jancarloviray/graphql-react-starter | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className='core-layout__viewport'>
{children}
</div>
</div>
)
Co... |
src/app/home/index.js | drivesense/server | 'use strict';
import React from 'react';
import {Route, IndexRoute} from 'react-router';
import Home from './Home';
import Profile from './Profile/redux';
export default function () {
return (
<Route>
<IndexRoute component={Home}/>
<Route path='profile' component={Profile}/>
</Route>
)
} |
src/App.js | jaredlunde/webpack2-react-sass-es7-boilerplate | import React from 'react'
export default class App extends React.Component {
render () {
return <div>Hello, world!</div>
}
}
|
Libraries/CustomComponents/ListView/ListView.js | ljhsai/react-native | /**
* Copyright (c) 2015, Facebook, Inc. All rights reserved.
*
* Facebook, Inc. ("Facebook") owns all right, title and interest, including
* all intellectual property and other proprietary rights, in and to the React
* Native CustomComponents software (the "Software"). Subject to your
* compliance with these t... |
docs/v0.1/_static/js/jquery-1.11.0.min.js | gwpy/gwpy.github.io | /*! jQuery v1.11.0 | (c) 2005, 2014 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... |
node_modules/rebass/src/DotIndicator.js | HasanSa/hackathon |
import React from 'react'
import Base from './Base'
import config from './config'
/**
* Dot indicator buttons for use in carousels
*/
const DotIndicator = ({
length,
active,
onClick,
children,
...props
}, { rebass }) => {
const { scale } = { ...config, ...rebass }
const sx = {
root: {
disp... |
src/components/Toolbar/index.js | cantonjs/re-admin | import styles from './styles';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { TOOLBAR } from 'utils/Issuers';
import withIssuer from 'hocs/withIssuer';
import { Row, Col, Button } from 'antd';
import RemoveButton from 'components/RemoveButton';
import UpdateButton from 'component... |
ajax/libs/babel-core/5.1.6/browser-polyfill.js | ahocevar/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... |
ajax/libs/clappr/0.0.91/clappr.js | schoren/cdnjs | require=(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)... |
src/main/app/scripts/views/Logout.js | ondrejhudek/pinboard | import React from 'react'
import { Link } from 'react-router'
import { Card, RaisedButton } from 'material-ui'
import BackIcon from 'material-ui/lib/svg-icons/navigation/arrow-back'
import auth from '../services/auth/login'
class Logout extends React.Component {
componentDidMount() {
auth.logout()
}
... |
src/components/About/About.js | matthewgallo/portfolio | import React, { useEffect } from 'react';
import { Styled } from './About.styles';
const About = () => {
const moveImage = () => {
const root = document.getElementById('portrait');
const rect = root.getBoundingClientRect();
const mouseMonitor = e => {
const leftOfMiddle = e.clientX < rect.left + rect.width /... |
modules/components/MenuButton.js | devrieda/arc-reactor | import React from 'react';
import Immutable from 'immutable';
import cx from 'classnames';
import History from '../helpers/History';
import SelectedContent from '../helpers/SelectedContent';
import EditorStore from '../stores/EditorStore';
const { string, bool, object, instanceOf, func } = React.PropTypes;
const Menu... |
src/toolbar/ExportCSVButton.js | AllenFang/react-bootstrap-table | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Const from '../Const';
const exportCsvBtnDefaultClass = 'react-bs-table-csv-btn';
class ExportCSVButton extends Component {
render() {
const {
btnContextual,
className,
onClick,
btnGlyphicon,
btnTe... |
ajax/libs/angular-data/0.7.0/angular-data.js | jacoborus/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.7.0 - Homepage <http://jmdobry.github.io/angular-data/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/angular-data>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Dat... |
src/components/Footer.js | jansplichal2/reactnd-project-readable-starter | import React from 'react';
const Footer = () => {
return (
<footer className="footer">
<p>© Jan Splichal 2017</p>
</footer>
);
};
export default Footer; |
src/components/UIShell/__tests__/SideNavSwitcher-test.js | carbon-design-system/carbon-components-react | /**
* 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 React from 'react';
import { mount } from 'enzyme';
import SideNavSwitcher from '../SideNavSwitcher';
describe('SideNavSwitcher', () ... |
ajax/libs/yui/3.9.0pr3/event-custom-base/event-custom-base.js | BobbieBel/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
ajax/libs/react-slick/0.9.0-rc2/react-slick.min.js | dc-js/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Slider=t(require("react")):e.Slider=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var... |
node_modules/react-icons/go/gear.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoGear = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 13.7c-3.5 0-6.3 2.8-6.3 6.3 0 3.5 2.8 6.3 6.3 6.3 3.5 0 6.3-2.8 6.3-6.3 0-3.5-2.8-6.3-6.3-6.3z m12.7 9.9l-1.2 2.8 2.3 4.5-2.8 2.8-4.6-2.2-2.7 1.2-1.4 4.2-0.2 0.6h-4l... |
src/renderers/shared/reconciler/__tests__/ReactMultiChild-test.js | Furzikov/react | /**
* 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... |
src/icons/font/ArrowDropDownIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
const ArrowDropDownIcon = (props, context) => {
let theme =
context.chamelTheme && context.chamelTheme.fontIcon
? context.chamelTheme.fontIcon
... |
ajax/libs/yui/3.18.1/event-custom-base/event-custom-base.js | magoni/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mod... |
src/containers/Home/Home.js | Shenseye/fccpinterest | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
src/containers/shared-assets/class-selection-wrapper/deck-import/deck-import.js | vFujin/HearthLounge | import React, { Component } from 'react';
import { connect } from 'react-redux';
import DeckstringInput from "../../../pages/create-deck/after-class-selection/right-container/topbar-assets/import-deck";
import {createDeckFromDeckstringObj} from "../../../../utils/deck/deckstring/index";
import {
editDeck,
simplifyD... |
ajax/libs/rxjs/2.3.10/rx.lite.compat.js | narikei/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | errisy/ng2ts | 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/features/pinned_statuses/index.js | PlantsNetwork/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
imports/ui/components/sa-collections/sa-collections.js | gagpmr/app-met | import React from 'react';
import { Link } from 'react-router';
import { Pagination } from 'react-bootstrap';
import { Loading } from '/imports/ui/components/loading.js';
import Blaze from 'meteor/gadicc:blaze-react-component';
import '/imports/ui/templates/sa-details.html'
export const SaCollections = React.createCla... |
src/js/components/acl/update_permission_button.js | rafaelfbs/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { Button } from '../../components';
export default class UpdatePermissionButton extends Component {
static propTypes = {
name: PropTypes.string,
className: PropTypes.string,
clearTheme: PropTypes.bool,
element... |
packages/material-ui-icons/src/BorderColorRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17.75 7L14 3.25 4.15 13.1c-.1.1-.15.22-.15.36v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.75 7zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29a.9959.9959 0 0 0-1.41 0L15 2.25 18.75 6l... |
spec/javascripts/jsx/external_apps/components/DuplicateConfirmationFormSpec.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... |
src/components/Header.js | paramadeep/chit | import React from 'react';
import {View, Text, StyleSheet} from 'react-native';
const Header = () => {
return (
<View style={style.headerContainer}>
<Text style={style.headerText}>Chits</Text>
</View>
);
};
const style = StyleSheet.create({
headerContainer: {
alignItems: 'center',
},
heade... |
modules/__tests__/matchRoutes-test.js | upraised/react-router | /*eslint-env mocha */
import React from 'react'
import Route from '../Route'
import assert from 'assert'
import expect from 'expect'
import { createLocation } from 'history'
import { createRoutes } from '../RouteUtils'
import matchRoutes from '../matchRoutes'
describe('matchRoutes', function () {
let routes, RootR... |
ajax/libs/react-table/6.8.0/react-table.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.ReactTable = {}),global.React));
}(this, (function (exports,React) { 'use strict';
v... |
public/javascripts/components/topic-pane.js | JetChat/JetChat | import React from 'react';
import Reflux from 'reflux';
import TopicItem from './topic-item';
import UserTopicItem from './user-topic-item';
import IntegrationTopicItem from './integration-topic-item';
import ChatStore from '../events/chat-store';
var TopicPane = React.createClass({
mixins: [Reflux.connect(ChatSto... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.