path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/exercises/VideoQuestion.js | cognostics/serlo-abc | import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { addIndex, map } from 'ramda';
import { PRIMARY, GREEN } from '../../styles/colors';
import { DEFAULT } from '../../styles/text';
import { RoundTextButton } from '../Components';
import Video from '../common/Video';
const mapI... |
src/svg-icons/communication/portable-wifi-off.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPortableWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02.... |
Libraries/Animated/src/AnimatedImplementation.js | thstarshine/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/static/containers/NotFound/index.js | qwertypomy/rental | import React from 'react';
export default class NotFoundView extends React.Component {
render() {
return (
<div>
<h1>NOT FOUND</h1>
</div>
);
}
}
|
src/components/shared/Footer/index.js | goopscoop/awayandaway | import React from 'react';
const Footer = () => (
<div className="row">
<div className="col-md-8 col-md-offset-2 footer">
<footer >
<a href="#">Contact</a>
<a href="#">Acknowledgements</a>
</footer>
</div>
</div>
)
export default Footer; |
ajax/libs/asynquence-contrib/0.1.8-a/contrib.js | Piicksarn/cdnjs | /*! asynquence-contrib
v0.1.8-a (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/
!function(n,e){"undefined"!=typeof module&&module.exports?module.exports=e(require(n)):"function"==typeof define&&define.amd?define([n],e):e(n)}(this.ASQ||"asynquence",function(n){"use strict";var e=Array.prototype.sl... |
app/components/ChargesModal/index.js | seanng/web-server | /**
*
* ChargesModal
*
*/
import React from 'react';
import { Modal, Form, FormControl } from 'react-bootstrap';
import Button from '../Button';
import ChargesList from '../ChargesList';
import styled from 'styled-components';
import { FormattedMessage, injectIntl } from 'react-intl';
import messages from './messages... |
Libraries/Components/StaticContainer.js | jaredly/react-native | /**
* @generated SignedSource<<2a163cdb088fb963f941e627fd89ce11>>
*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !! This file is a check-in of a static_upstream project! !!
* !! !!
* !! You should not modify this file directly... |
first-words-research-web/test/Category.spec.js | PatKayongo/first-words-research | import React from 'react';
import Category from '../src/Category.jsx';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import 'sinon-as-promised';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import categoryBuilder from './builders/category-builder';
chai.use(chaiAsPromised);
... |
drupal/sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js | g-raph/ieder1beroemd | /*!
* jQuery JavaScript Library v1.5.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.
... |
node_modules/react-native/Libraries/Lists/__tests__/SectionList-test.js | kssujithcj/TestMobileCenter | /**
* 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.
*
*/
'use str... |
components/Quiz/Quiz.js | roslaneshellanoo/gatsby-starter-clean | import React from 'react'
import PropTypes from 'prop-types'
import { List, ListItem, makeSelectable } from 'material-ui/List'
import Avatar from 'material-ui/Avatar'
import RaisedButton from 'material-ui/RaisedButton'
import LinearProgress from 'material-ui/LinearProgress'
import { Card, CardActions, CardTitle } from ... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.7/jquery.min.js | chrisatwebis/aim | /*! 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... |
ajax/libs/vue-material/1.0.0-beta-1/components/MdSwitch/index.js | BenjaminVanRyseghem/cdnjs | module.exports=(function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esMod... |
src/components/d3components/Line.js | nbuechler/friendly-finder | import React from 'react';
import d3 from 'd3';
import _ from 'underscore';
export default class Line extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
render () {
return (
<line fill={this.props.fillColor}
width={this.props.width} height={this.props.heig... |
src/components/ContactUs.js | arthur-cen/arthur-cen.github.io | import React, { Component } from 'react';
export default class ContactUs extends Component {
render() {
let resumeData = this.props.resumeData;
return (
<section id="contact">
<div className="row section-head">
<div className="ten columns">
<p className="lead">
... |
files/babel/5.3.2/browser-polyfill.js | afghanistanyn/jsdelivr | (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... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/NavbarContext.js | brett-harvey/Smart-Contracts | import React from 'react';
export default React.createContext(null); |
client/components/Todo/TodoComponent.js | reactexcel/todo-relay-graphql-mongo | import React from 'react';
import Relay from 'react-relay';
import PropTypes from 'prop-types';
import AddTodoMutation from './mutations/AddTodo';
import DeleteTodoMutation from './mutations/DeleteTodo';
import UpdateTodoMutation from './mutations/UpdateTodo';
export default class Todo extends React.Component {
stat... |
ajax/libs/angular.js/1.1.1/angular-scenario.min.js | whardier/cdnjs | (function(e,t){"use strict";function n(e){var t=gt[e]={};return Z.each(e.split(tt),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(mt,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ft.test(r)?Z... |
src/components/Quiz/Question.js | SirWinn3r/gauche-ou-droite-client | import React from 'react'
import CongressmanCard from './CongressmanCard'
import QuizProgress from './QuizProgress'
const Question = ({ apiUrl, congressman, currentQuestionIndex, questionCount, selectAnswerFn }) => (
<div className="question-container">
<div className="logo animated fadeInUp">
<img src="i... |
src/index.js | cristo-rabani/rc-scroll-pagination | import React from 'react';
import {List, ListItem} from 'material-ui/List';
import _ from 'lodash';
import ScrollProvider from './ScrollProvider';
import PropTypes from 'prop-types';
const ONE_PART = 25;
const EXCLUSIVE_PROPS = [
'children', 'step', 'Loader', 'onSubscribe', 'onFetchData', 'eventName', 'ContainerCo... |
src/components/IPScan/DownloadTable/index.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import { dataPropType } from 'higherOrder/loadData/dataPropTypes';
import Link from 'components/generic/Link';
import { foundationPartial } from 'styles/foundation';
import ipro from 'styles/interpro-new.css';
import ebiGlobalStyles from 'ebi-framework/css/ebi-global.css';
import ... |
js/components/pages/NotFound.react.js | Kielan/kielan-com | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return (
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
src/component/test/list_view_basics.js | CaiHuan/react_native_zhihu_demo | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
ListView,
Navigator
} from 'react-native';
export default class ListViewBasics extends Component {
constructor(props) {
super(props);
const dataSource = new ListView.DataSource({rowHasChanged: (r1, r2... |
src/app/main/page-content-editor/index.js | jl-/bronote | import React, { Component } from 'react';
import cx from 'classnames';
import styles from './style.scss';
import CodeMirror from 'codemirror';
import CodeMirrorGFM from 'codemirror/mode/gfm/gfm';
import CodeMirrorJavaScript from 'codemirror/mode/javascript/javascript';
import CodeMirrorMarkdown from 'codemirror/mode/ma... |
ajax/libs/yui/3.10.1/datatable-body/datatable-body.js | Mrkebubun/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
packages/material-ui-icons/src/ForwardTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M14 14v1.17L17.17 12 14 8.83V10H6v4z" opacity=".3" /><path d="M20 12l-8-8v4H4v8h8v4l8-8zM6 14v-4h8V8.83L17.17 12 14 15.17V14H6z" /></React.Fragm... |
docs/app/index.js | KerenChandran/react-toolbox | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, useRouterHistory } from 'react-router';
import createHashHistory from 'history/lib/createHashHistory';
import 'react-toolbox/commons';
import Home from './components/layout/home';
import Install from './components/layout/install';
im... |
src/helpers/__tests__/connectData-test.js | RomanovRoman/react-redux-universal-hot-example | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import connectData from '../connectData';
describe('connectData', () => {
let fetchData;
let fetchDataDeferred;
let WrappedComponent;
let DataComponent;
beforeEach(() => {
fetchData = 'fetchDataFunction';
fetc... |
app/javascript/flavours/glitch/components/column_back_button.js | glitch-soc/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import Icon from 'flavours/glitch/components/icon';
import { createPortal } from 'react-dom';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropType... |
mobile/src/ActionMenu/index.js | TailorDev/pauling | /* @flow */
import React, { Component } from 'react';
import { Icon, Fab } from 'native-base';
import styles from './styles';
import type { State as NavigationState } from 'app/reducers/navigation';
type Props = {|
navigation: NavigationState,
|};
class ActionMenu extends Component {
props: Props;
onPress = (... |
ajax/libs/babel-core/5.5.3/browser-polyfill.js | humbletim/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/components/flashcard/mode/standard/flashcard_progress.js | trihpham/flashcard-webapp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Progress } from 'semantic-ui-react';
class FlashcardProgress extends Component {
render() {
return (<div className="ui one column stackable center aligned page grid">
<div className="column twelve wide">
<Progr... |
src/routes/lockScreen/components/LockScreen.js | ahthamrin/kbri-admin2 | import React from 'react';
import APPCONFIG from 'constants/Config';
import QueueAnim from 'rc-queue-anim';
class LockScreen extends React.Component {
constructor() {
super();
this.state = {
user: APPCONFIG.user
};
}
render() {
return (
<div className="lock-container">
<secti... |
app/components/HashLink/index.js | waagsociety/tnl-relationizer | import React from 'react';
import { Link } from 'react-router';
const HashLink = ({ hash, children }) =>
<Link
to={window.location.pathname}
hash={'#' + hash}
state={{ hash }}
>
{children}
</Link>;
HashLink.propTypes = {
hash: React.PropTypes.string.isRequired,
children: React.PropTypes.node... |
flow-typed/npm/react-hot-loader_vx.x.x.js | ConnectHealth/ch-app | // flow-typed signature: 8dfd071255ebe44acb66375af45f2c7d
// flow-typed version: <<STUB>>/react-hot-loader_vnext/flow_v0.44.2
/**
* This is an autogenerated libdef stub for:
*
* 'react-hot-loader'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work... |
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/hoc/warningWrapper.js | zrusev/SoftUni_2016 | import React from 'react';
function warningWrapper (WrappedComponent) {
return function WarningWrapper (props) {
return (
<div className="alert">
<span className="alert-symbol">⚠</span>
<WrappedComponent {...props} />
</div>
)
}
}
e... |
public/js/components/trends/TrendContainer.react.js | IsuruDilhan/Coupley | import React from 'react';
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import TextField from 'material-ui/lib/text-field';
import TrendsStore from '../../stores/TrendsStore';
import TrendsAction from '../../actions/TrendsAction';
import Trend from './trendbox.react';
im... |
01_webstack/03Wk02/conFusion_Gulp/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | allenmodroid/webstack | 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'));
|
src/js/components/icons/base/Elevator.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/client.js | zebapy/react-redux-parse-server | import 'babel-polyfill'; // import polyfil for ie browsers
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import createRoutes from './routes';
const store = ... |
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js | tan-jerene/material-ui | import React from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
const style = {
marginRight: 20,
};
const FloatingActionButtonExampleSimple = () => (
<div>
<FloatingActionButton style={style}>
<ContentAdd />
... |
public/node_modules/weinre/web/client/BreakpointsSidebarPane.js | gFelicio/agenda | /*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
example/src/tabs/forms.js | kosiakMD/react-native-elements | import Expo from 'expo';
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { StackNavigator } from 'react-navigation';
import FormsHome from '../views/forms_home';
import FormsDetails from '../views/forms_details';
const FormsTabView = ({ navigation }) => <FormsH... |
app/components/wikidata-search-list.js | BrackCurly/qwery-me | import _ from 'lodash';
import React from 'react';
import Deferred from '../containers/deferred';
import MatchList from './match-list';
import api from '../api';
import {TOKEN} from '../types';
export default class WikidataSearchList extends React.Component {
render () {
const {type, search, onSelect} = this.pro... |
src/pages/art.js | thevangelist/esajuhana-2018 | import React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import MediaQuery from 'react-responsive';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import botanics1 from './art/botanics.jpg'
import abstract0 from './art/abstract0.jpg'
import abstract1 from './art/ab... |
src/icons/FlashOnIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FlashOnIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M14 4v22h6v18l14-24h-8l8-16z"/></svg>;}
}; |
assets/javascripts/kitten/components/typography/sup-title/stories.js | KissKissBankBank/kitten | import React from 'react'
import { SupTitle } from './index'
import { DocsPage } from 'storybook/docs-page'
export default {
component: SupTitle,
title: 'Typography/SupTitle',
parameters: {
docs: {
page: () => <DocsPage filepath={__filename} importString="SupTitle" />,
},
},
decorators: [story ... |
src/components/Move.js | tobice/flux-lumines | import React from 'react';
import PureComponent from './PureComponent.js';
export default class Move extends PureComponent {
render() {
return (
<g transform={'translate(' + this.props.x + ' ' + this.props.y + ')'}>
{this.props.children}
</g>
);
}
} |
doc/js/jquery.js | jacob-mf/dni_nie | /*! 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... |
ajax/libs/rxjs/2.3.22/rx.all.compat.js | vdurmont/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/expo-dev-menu/vendored/react-native-gesture-handler/src/gestureHandlerRootHOC.js | exponentjs/exponent | import React from 'react';
import { StyleSheet } from 'react-native';
import hoistNonReactStatics from 'hoist-non-react-statics';
import GestureHandlerRootView from './GestureHandlerRootView';
export default function gestureHandlerRootHOC(
Component,
containerStyles = undefined
) {
function Wrapper(props) {
... |
packages/playground/src/createDevModeAttachmentMiddleware.js | billba/botchat | import React from 'react';
import DebugAdaptiveCardAttachment from './DebugAdaptiveCardAttachment';
import JSONDebugView from './JSONDebugView';
export default function () {
return () => next => ({ activity, attachment }) =>
attachment.contentType === 'application/vnd.microsoft.card.adaptive' ? (
<DebugAda... |
js/App.js | kwoumn3/khemet |
import React, { Component } from 'react';
import { StyleSheet, Dimensions, Image } from 'react-native';
import CodePush from 'react-native-code-push';
import Modal from 'react-native-modalbox';
import { Container, Text, View } from 'native-base';
import AppNavigator from './AppNavigator';
import ProgressBar from './c... |
node_modules/react-bootstrap/es/Checkbox.js | WatkinsSoftwareDevelopment/HowardsBarberShop | 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 ... |
src/components/Row/Row.spec.js | aaronvanston/react-flexa | import React from 'react';
import { shallow, mount } from 'enzyme';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import Row from './Row';
describe('style rendering', () => {
test('renders corrects', () => {
const wrapper = mount(<Row />);
expect(wrapper).toMatchSnapshot();
... |
app/components/GridView.js | NLebedev/momento | import React, { Component } from 'react';
import {
View,
Text,
Image,
StatusBar,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import VideoList from './VideoList';
import coverImage from '../assets/images/momento.jpg';
import redHeart from '../assets/images/btnRedHeart.png';
import Icon from 'react-... |
sites/all/modules/_contrib/jquery_update/replace/jquery/1.11/jquery.min.js | udayakumarswamy/nswala | /*! jQuery v1.11.2 | (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... |
src/svg-icons/image/palette.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePalette = (props) => (
<SvgIcon {...props}>
<path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.4... |
app/app.js | shafeeqonline/xt-quiz-app | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
bower_components/jquery-backstretch/libs/jquery/jquery.js | MichaelFBA/supply-v2 | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/components/StyledInputField.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Box } from '@rebass/grid';
import { P, Span } from './Text';
/**
* Form field to display an input element with a label and errors. Uses [renderProps](https://reactjs.org/docs/render-props.html#using-props-other-than-render) to pass field props li... |
lib/riemann/dash/public/vendor/backbone.js | ociule/riemann-dash | // Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){
// Initial Setup
// -------------
// Save a reference to the global object (`wi... |
ajax/libs/react/0.4.2/JSXTransformer.js | tonytomov/cdnjs | /**
* JSXTransformer v0.4.2
*/
(function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi... |
client/modules/modals/components/language_modal/language_modal.js | bompi88/grand-view | import React from 'react';
import ReactDOM from 'react-dom';
import { Modal, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
class LanguageModal extends React.Component {
constructor(props) {
super(props);
}
renderSelectOptions() {
const { selectOptions } = this.props;
retur... |
packages/idyll-components/src/generateHeaders.js | idyll-lang/idyll | import React from 'react';
const generateId = (headerText = '') => {
return headerText
.toString()
.trim()
.replace(/\s+/g, '-')
.toLowerCase();
};
const GenerateHeaders = props => {
const {
idyll,
hasError,
updateProps,
size,
children = [],
...attributeProps
} = props;
... |
stories/widgets/SidebarList.js | Bandwidth/shared-components | import React from 'react';
import { SplitContentLayout } from 'layouts';
export default ({ count = 20, activeIndex = 5 }) => (
<SplitContentLayout.SecondaryContent.SidebarList>
{new Array(count).fill(null).map((_, idx) => (
<SplitContentLayout.SecondaryContent.SidebarList.Item
key={idx}
act... |
src/components/health/sidebar-layers/legend/index.js | impact-initiatives/reach-jor-zaatari-webmap | import React from 'react';
import messages from '../../../../translations/health.js';
import styles from '../../../../styles/index.js';
import * as colors from '../../../../constants/colors.js';
import LegendItem from '../../../common/legend/legend-item.js';
export default ({ state }) => (
<div>
<div className={... |
examples/helpers/HOC.js | KamranAsif/fixed-data-table-2 | "use strict";
import React from 'react';
import PropTypes from 'prop-types';
import except from 'except';
import examplePropTypes from './examplePropTypes';
function DataCtxt(Wrapped) {
class ContextClass extends React.Component {
constructor(props) {
super(props);
this.refresh = this.refresh.bind(... |
ajax/libs/redux-form/4.1.15/redux-form.min.js | kiwi89/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
src/app.js | Vizzuality/iadb | 'use strict';
import './app.css';
import _ from 'lodash';
import React from 'react';
import ReactDOM from 'react-dom';
import Map from './components/Map';
import Layers from './components/Layers';
import Timeline from './components/Timeline';
import Average from './components/Average';
import Chart from './components/... |
node_modules/react-bootstrap/es/FormControlStatic.js | premcool/getmydeal | 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 ... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | UnSpiraTive/radio | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/feed/PathMatching.js | ryanbaer/busy | import React from 'react';
import Page from './Page';
import { getFeedContent } from './feedActions';
// These components are only used as a temporarily hack to make-
// activeClassName on React Router <Link /> components work.
export const Trending = props => <Page {...props} />;
export const Hot = props => <Page {..... |
node_modules/react-icons/io/tshirt.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoTshirt = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35 7.5l-2.5 6.9-5-0.6 1.3 22.5h-22.5l1.2-22.5-5 0.6-2.5-6.9 12.5-3.7c1.1 2.1 2.4 3 5 3.1 2.6 0 3.9-1 5-3.1z"/></g>
</Icon>
)
export default IoTshirt
|
src/svg-icons/action/dns.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDns = (props) => (
<SvgIcon {...props}>
<path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v... |
src/components/FeaturedGear.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import styled from 'styled-components'
import Img from 'gatsby-image'
import useFeaturedGear from '../hooks/use-featured-gear'
const StyledFeaturedGear = styled.div`
.featured-gear-grid {
display: grid;
}
a.featured-gear-image-link {
display: inline-block;
box-shadow: none... |
frontend/js/components/send/component.js | roman901/Overheard | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import UITextarea from 'js/ui/textarea/component';
import UIButton from 'js/ui/button/component';
export default class SendComponent extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
... |
client/src/components/Header/Logout.js | tkt-akat/tkt-akat-events | import React, { Component } from "react";
import "./Logout.css";
import Auth from "../modules/Auth";
class Logout extends Component {
constructor(props) {
super(props);
this.logout = this.logout.bind(this);
}
logout() {
this.props.logout();
};
render() {
return (
... |
node_modules/semantic-ui-react/dist/es/modules/Modal/ModalHeader.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A modal can have a ... |
src/components/layout/page/index.js | clucasalcantara/clucasalcantara.github.io | import React from 'react'
import styled from '@emotion/styled'
const Page = styled.div({
flex: 1,
padding: '1rem',
fontFamily: 'Quicksand'
})
export default ({ children, theme }) => {
const childrenWithInjectedTheme = React.Children.map(children, child =>
child
? React.cloneElement(child, {
... |
client/omnichannel/realTimeMonitoring/counter/CounterRow.stories.js | iiet/iiet-chat | import React from 'react';
import CounterRow from './CounterRow';
import CounterItem from './CounterItem';
export default {
title: 'omnichannel/RealtimeMonitoring/Counter',
component: CounterRow,
};
export const Default = () => <CounterRow>
<CounterItem title='total conversations' count={10}/>
<CounterItem title... |
src/index.js | egurin/kiken | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/App.js | mdanie2/stanford-prereq-graph | import React, { Component } from 'react';
import Selection from './Selection';
export default class App extends Component {
render() {
return (
<Selection show={true} specName={null} />
);
}
}
|
packages/material-ui-icons/src/SignalCellular4BarSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M2 22h20V2L2 22z" /></g></React.Fragment>
, 'SignalCellular4BarSharp');
|
Examples/UIExplorer/UIExplorerApp.ios.js | Intellicode/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
assets/js/components/Footer.js | nicksergeant/leather | import React from 'react';
import { Link } from 'react-router';
const Footer = () => {
return (
<footer className="footer" style={{ paddingBottom: '3rem' }}>
<div className="container">
<div className="content has-text-centered">
<Link to="/">
<img src="/favicon.ico" />
... |
definitions/npm/expo-camera_v5.x.x/flow_v0.69.0-v0.103.x/test_expo-camera.js | splodingsocks/FlowTyped | // @flow
import React from 'react';
import { it, describe } from 'flow-typed-test';
import { Camera, Constants } from 'expo-camera';
describe('opaque props', () => {
it('should passes when used properly', () => {
<Camera
type={Constants.Type.front}
flashMode={Constants.FlashMode.off}
autoFocus... |
examples/async/index.js | swashcap/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
src/components/skills/Skill.js | WillMayger/CV | import React from 'react';
import PropTypes from 'prop-types';
const Skill = props => (
<div className="skill">
<img
alt={props.name}
onMouseOver={e => props.onHover(e, props.name)}
title={props.name}
src={`/images/icon/${props.icon}`}
/>
</div>
);
Skill.propTypes = {
name: PropT... |
入门demo/build/react.min.js | MingXingTeam/React-Demo | /**
* React v0.14.3
*
* 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.
*... |
server/www/scripts/management/components/LabeledInput.js | lemack/FootGame | define(["react", "libs/Emitter"], function(React, Emitter) {
function LabeledInput() {
};
Emitter.mixInto(LabeledInput);
LabeledInput.prototype.getComponent = function() {
var self = this;
var input = React.createClass({
getInitialState: function() {
return {
value: "",
isValid: false,
e... |
packages/mineral-ui-icons/src/IconToll.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconToll(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
app/m_components/TimeAxis.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
class TimeAxis extends React.Component {
constructor(props) {
super(props);
this.data = props.data;
}
componentDidMount(){
$(".main .year h2 a").click(function (e) {
e.preventDefault();
... |
misc/tabledrag.js | tarebibi/tsadmin | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
hotel_athens_ga/js/js_bJin9Yq2aARlI97UBcbJNi_s0a1pXPJaz3c4Qci497c.js | mikeusry/HolidayInnAthens | (function ($) {
Drupal.viewsSlideshow = Drupal.viewsSlideshow || {};
/**
* Views Slideshow Controls
*/
Drupal.viewsSlideshowControls = Drupal.viewsSlideshowControls || {};
/**
* Implement the play hook for controls.
*/
Drupal.viewsSlideshowControls.play = function (options) {
// Route the co... |
tests/lib/rules/indent.js | moander/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
* @copyright 2014 Dmitriy Shekhovtsov. All rights reserved.
* @copyright 2015 Gyandeep Singh. All rights reserved.
*/
"use strict";
//----------------------------------------------------... |
packages/material-ui-icons/src/ListAltSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7zM3 3v18h18V3H3zm16 16H5V5h14v14z" />
, 'ListAltSharp');
|
ajax/libs/react-autosuggest/7.0.2/autosuggest.js | him2him2/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"));
else if(typeof define === 'function' && define.amd)
define(["React"], factory);
else if(typeof exports === 'object')
exports["Autosuggest"] = fac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.