path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/Dialog.js | janrybka/lawendowe | import React, { Component } from 'react';
import dialogPolyfill from 'dialog-polyfill';
export default class Dialog extends Component {
componentDidMount() {
let dialogDiv = document.querySelector('#galleryView');
if (!dialogDiv.showModal) {
dialogPolyfill.registerDialog(dialogDiv);
}
... |
web/src/templates/review-list.js | ajmalafif/ajmalafif.com | import React from 'react'
import { graphql } from 'gatsby'
import { mapEdgesToNodes,
filterOutDocsWithoutSlugs,
filterOutDocsPublishedInTheFuture,
} from '../lib/helpers'
import ReviewPostPreviewGrid from '../components/review-post-preview-grid'
import GraphQLErrorList from '../components/graphql-error... |
src/App.js | akashrajkn/akashrajkn.github.io | import React from 'react';
import {
ChakraProvider,
Box,
Text,
Link,
VStack,
Code,
Grid,
theme,
} from '@chakra-ui/react';
import { ColorModeSwitcher } from './ColorModeSwitcher';
import { Logo } from './Logo';
function App() {
return (
<ChakraProvider theme={theme}>
<Box textAlign="center"... |
node_modules/react-icons/go/jump-right.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoJumpRight = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m7.5 35l15-15-15-15v30z m20-30v30h5v-30h-5z"/></g>
</Icon>
)
export default GoJumpRight
|
packages/material-ui-icons/src/SurroundSoundRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.11 16.89c-.43.43-1.14.39-1.51-.09C4.53 15.39 4 13.69 4 12s.53-3.38 1.59-4.8c.37-.48 1.08-.53 1.51-.1.35.3... |
client/components/Track.js | dralletje/Tonlist | import React from 'react'
import Player from '../components/Player'
import {View} from '../components'
let Track = ({track, time, URL}) => {
if (!track) {
return (
<View>
Geen liedje op het moment :(
</View>
)
}
return (
<View>
<View style={{ display: 'flex' }}>
<V... |
screens/ProductChildCategoriesScreen/Categories.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native'
import PropTypes from 'prop-types'
import { object, url } from 'utilities'
import Category from './Category'
const styles = StyleSheet.create( {
container: {
marginTop: 0,
},
textStyle: {
fontSize: 20... |
spec/components/github_icon.js | jasonleibowitz/react-toolbox | import React from 'react';
const GithubIcon = () => (
<svg viewBox="0 0 284 277">
<g><path d="M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,204.6023 40.6554239,257.788232 97.0321356,276.549924 C104.12328,277.86336 106.726656,273.471926 106.726656,269.724287 C106.726656,266.340838... |
src/smif/app/test/components/ConfigForm/SosModelConfigForm.js | willu47/smif | import React from 'react'
import {expect} from 'chai'
import {shallow, mount} from 'enzyme'
import {describe, it} from 'mocha'
import ReactModal from 'react-modal'
import SosModelConfigForm from '../../../src/components/ConfigForm/SosModelConfigForm.js'
import {sos_model, sector_models, scenario_sets, narrative_sets}... |
content/theme/components/Pipelines/SegmentDetailGenerator.js | typesettin/NativeCMS | import React, { Component } from 'react';
import { StyleSheet, ScrollView, View, Platform, ListView, Image, Dimensions, Text, TextInput, } from 'react-native';
import styles from '../../../../app/components/Styles/shared';
import layoutStyles from '../../../../app/components/Styles/layout';
import { HR, H1, H2, GRID_IT... |
ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.Core.js | emmansun/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2009-2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.2.0
*/
(function(window, undefined) {
"use str... |
src/NeoCypher.js | dunnock/react-sigma | // @flow
import React from 'react'
import '../sigma/parsers.json.js'
import '../sigma/neo4j.cypher'
import NeoGraphItemsProducers from './NeoGraphItemsProducers'
import { embedProps } from './tools'
type State = {
loaded: boolean
};
interface ProducersInterface {
node(node: Neo4j$Node): Sigma$Node,
edge(node: Neo4... |
files/react/0.13.2/react.min.js | alexmojaki/jsdelivr | /**
* React v0.13.2
*
* 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.
*... |
test/test_helper.js | frostyKode/FirstReactProject | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/svg-icons/action/android.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
js/App/Components/TabViews/SensorsTab.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/svg-icons/navigation/more-horiz.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
src/routes/login/Login.js | labzero/lunch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Button from 'react-bootstrap/lib/Button';
import Col from 'react-bootstrap/lib/Col';
import ControlLabel from 'react-bootstrap/lib... |
HOL/creating-web-app/EndSolution/ContactManager/ContactManager/Scripts/jquery-1.10.2.min.js | Azure-Readiness/AppServiceCamp | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
ajax/libs/rxjs/2.3.22/rx.all.compat.js | sreym/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
};
... |
examples/counter/index.js | davidmarkclements/redux | 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.getElementById('root')
);
|
fields/types/datetime/DatetimeField.js | ONode/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import {
Button,
FormField,
FormInput,
FormNote,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.crea... |
CompositeUi/src/api/graphql/query/OrganizationsQueryRequest.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import Relay from 'react-relay';
import R... |
node_modules/react-icons/md/hd.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdHd = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m24.1 22.5v-5h3.4v5h-3.4z m-2.5-7.5v10h6.8c0.9 0 1.6-0.7 1.6-1.6v-6.8c0-0.9-0.7-1.6-1.6-1.6h-6.8z m-3.2 10v-10h-2.5v4.1h-3.4v-4.1h-2.5v10h2.5v-3.4h3.4v3.4h2.5z m13.2-20c1.... |
components/UI/Header/MainMenu.js | Dadidam/gladiator | import React from 'react';
import { Menu, Icon } from 'antd';
import { connect } from 'react-redux';
import { setActiveTab } from '../../../actions';
const menu = [{
key: 1,
icon: 'key',
title: 'Quests'
},{
key: 2,
icon: 'flag',
title: 'Arena'
},{
key: 3,
icon: 'shop',
title: 'Shop'... |
ajax/libs/cignium-hypermedia-client/1.27.2/client.min.js | sufuf3/cdnjs | var Cignium=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default... |
project/LearnReact/node_modules/react-router/lib/Redirect.js | xzzw9987/Memos | 'use strict';
exports.__esModule = true;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writab... |
index.ios.js | njxiaohan/TransPal | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
Text,
View
} from 'react-native';
console.disableYellowBox = true;
console.warn('YellowBox is disabled.');
console.log("My first app....")
import {Entry} fro... |
ajax/libs/orb/1.0.3/orb.min.js | emijrp/cdnjs | /**
* orb v1.0.3, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.3
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof... |
ajax/libs/preact/2.7.3/preact.js | pvnr0082t/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.preact = {})));
}(this, function (exports) { 'use strict';
var babelHelpers = {};
babelHelpers.classCallChec... |
webui/src/routes/containers/containers/page.js | DroneEmployee/drone-employee-connect | import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router';
import { Menu } from '../components/common';
import { load } from '../../../modules/interfaces/actions';
const ContainerPage = props => (
<div>
<h1>
... |
src/pages/screencasts.js | dstrunk/dstrunk.github.io | import React from 'react'
import Layout from '../components/layout'
import SEO from '../components/seo'
const ScreencastsPage = () => (
<Layout>
<SEO title="Screencasts" keywords={[`gatsby`, `application`, `react`]} />
<p>
Watch this space for more curated videos. For now, check out my{' '}
<a ... |
modules/__tests__/serverRendering-test.js | okcoker/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createLocation from 'history/lib/createLocation'
import RoutingContext from '../RoutingContext'
import match from '../match'
import Link from '../Link'
describe('server rendering', function () {
let App... |
src/svg-icons/av/mic.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
src/routes/add-state/AddState.js | ynu/res-track-wxe | import React, { PropTypes } from 'react';
import { reduxForm, formValueSelector } from 'redux-form';
import { connect } from 'react-redux';
import weui from '../../components/Weui';
import NewState from '../add/NewState';
import PageHeader from '../detail/PageHeader';
import EnsureSingup from '../common/EnsureSignupWxe... |
admin/client/App/shared/Popout/PopoutList.js | danielmahon/keystone | /**
* Render a popout list. Can also use PopoutListItem and PopoutListHeading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
const PopoutList = React.createClass({
displayName: 'PopoutList',
propTypes: {
children: React.PropTypes.node.isRequired,
classNam... |
client/src/components/Logout.js | jeffersonsteelflex69/mytv | import React, { Component } from 'react';
import { Link } from 'react-router';
import { logoutUser } from '../utils/auth';
class Logout extends Component {
componentDidMount(){
logoutUser();
}
render(){
return (
<div id="logout">Logging Out</div>
);
}
}
export default Logout;
|
src/PollRows.js | scottapow/pollresults | import React from 'react';
import PollRow from './PollRow.js';
const PollRows = (props) => {
let title = props.data.title;
let questions = props.data.questions.map((q, index) =>
<PollRow key={q.id} color={props.data.colors[index]} number={q.id} response={q.response} percentage={q.percentage} />
);
return (... |
example/pages/picker/index.js | n7best/react-weui | import React from 'react';
import { Popup, Picker, CityPicker, Form, FormCell, CellBody, CellHeader, Label, Input } from '../../../build/packages';
import Page from '../../component/page';
import cnCity from './cnCity';
class PickerDemo extends React.Component {
state = {
picker_show: false,
picke... |
ajax/libs/jquery/1.8.0/jquery.js | tengyifei/cdnjs | /*!
* jQuery JavaScript Library v1.8.0
* 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: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
app/javascript/mastodon/features/home_timeline/containers/column_settings_container.js | pixiv/mastodon | import { connect } from 'react-redux';
import ColumnSettings from '../components/column_settings';
import { changeSetting, saveSettings } from '../../../actions/settings';
const mapStateToProps = state => ({
settings: state.getIn(['settings', 'home']),
});
const mapDispatchToProps = dispatch => ({
onChange (key,... |
client/index.js | ilijabradas/react_app | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
render(<Router history={browserHistory} routes={routes}/>, document.getElementById('app')); |
src/index.js | polinazolotukhina/redux-movieDB | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tel... |
ajax/libs/onsen/2.0.0-alpha.15/js/onsenui.min.js | dhenson02/cdnjs | /*! onsenui v2.0.0-alpha.15 - 2015-11-10 */
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a fun... |
src/intraface.dk/core/javascript/yui/container/container-debug.js | intraface/intraface.dk | /*
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
Version 0.11.4
*/
/**
* Config is a utility used within an object to allow the implementer to maintain a list of local configuration properties and listen for changes to those... |
src/index.js | mcn-team/mc-webapp | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers } from 'redux'
import { Provider } from 'react-redux'
import { Router, Route, hashHistory } from 'react-router'
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
import App from './App';
import '.... |
node_modules/material-ui/src/utils/children.js | aykutyaman/meteor1.3-react-flowrouter-demo | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export default {
create(fragments) {
let newFragments = {};
let validChildrenCount = 0;
let firstKey;
//Only create non-empty key fragments
for (let key in fragments) {
const currentChild = fragments[key... |
templates/rubix/laravel/laravel-seed/src/common/footer.js | jeffthemaximum/jeffline | import React from 'react';
import {
Row,
Col,
Grid,
} from '@sketchpixy/rubix';
export default class Footer extends React.Component {
state = {
version: 0
};
componentDidMount() {
this.setState({
version: document.body.getAttribute('data-version')
});
}
render() {
var year = ne... |
django/webcode/webcode/frontend/node_modules/react-router-dom/es/HashRouter.js | OpenKGB/webcode | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
node_modules/node_modules/material-ui/svg-icons/editor/format-bold.js | SerendpityZOEY/Fixr-RelevantCodeSearch | '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... |
app/components/GroupListDetail/ConfirmModal.js | typesettin/NativeCMS | import React, { Component } from 'react';
import { StyleSheet, ScrollView, View, } from 'react-native';
import * as Animatable from 'react-native-animatable';
import layoutStyles from '../Styles/layout';
import styles from '../Styles/shared';
import { HR, H1, H2, GRID_ITEM, RESPONSIVE_GRID, RESPONSIVE_TWO_COLUMN, } fr... |
node_modules/react-icons/io/arrow-graph-down-left.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoArrowGraphDownLeft = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m0 30v-12.5l4.8 4.8 10.2-11 8.4 8.7 11.6-10-11.6 15.9-8.4-8.4-7.3 7.7 4.8 4.8h-12.5z"/></g>
</Icon>
)
export default IoArrowGraphDownLeft
|
src/svg-icons/image/brightness-5.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness5 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6... |
src/components/Forms/UploadImage.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
import classNames from 'classnames';
const MB = 1024 * 1024;
const MAX_SIZE = 3 * MB;
class UploadImage extends React.Component {
constructor() {
super();
this.state = {
accepted: [],... |
client/canx-client/src/views/Footer.js | uros-stegic/canx | import React from 'react'
import {Link} from 'react-router'
function Footer(props) {
return (
<div className="control-nav container-fluid">
<div className="row">
<Link to={props.args.left} onClick={props.args.onClick}> <div className="col-xs-2 col-sm-2 "> </div> </Link>
<Link to={... |
ajax/libs/analytics.js/1.5.0/analytics.min.js | neveldo/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
node_modules/react-router/es6/Lifecycle.js | mattrusso/mattrusso.github.io | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
app/components/AlbumArt/index.js | scampersand/sonos-front | import React from 'react';
import styles from './styles.css';
export default function AlbumArt(props) {
return (
<div>
<img src={props.album_art} className={styles[props.size]} />
</div>
);
}
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | mangomint/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return {
users: [
{ i... |
src/svg-icons/device/location-searching.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationSearching = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-... |
frontend/app_v2/src/common/icons/Jigsaw.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Jigsaw
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Jigsaw({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" className={styling}>
<title>Jigsaw</title>
... |
src/components/SelectItemGroup/SelectItemGroup-test.js | joshblack/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 SelectItemGroup from '../SelectItemGroup';
import { shallow } from 'enzyme';
describe('SelectItemGroup', (... |
packages/material-ui-icons/src/ExposureNeg1Sharp.js | allanalexandre/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="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z" /></g></React.Fragment>
, 'ExposureNeg1Sharp');
|
app/containers/HomePage/messages.js | josh-butler/react-bp-demo | /*
* HomePage Messages
*
* This contains all the text for the HomePage component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
startProjectHeader: {
id: 'boilerplate.containers.HomePage.start_project.header',
defaultMessage: 'Start your next react project in seconds',
... |
fields/types/text/TextFilter.js | creynders/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contai... |
js/AsyncRoute.js | daninmotion/react-02 | import React from 'react'
const {object} = React.PropTypes
const AsyncRoute = React.createClass({
propTypes: {
props: object,
loadingPromise: object
},
getInitialState () {
return {
loaded: false
}
},
componentDidMount () {
this.props.loadingPromise.then((module) => {
this.component = module.defau... |
ajax/libs/primereact/7.0.0-rc.2/avatargroup/avatargroup.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < pr... |
src/js/components/Snackbar/index.js | trazyn/weweChat |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './style.global.css';
import TransitionPortal from '../TransitionPortal';
export default class Snackbar extends Component {
static propTypes = {
show: PropTypes.bool.isRequired,
text: PropTypes.string.isRequired,... |
src/Parser/Druid/Restoration/Modules/Items/EssenceOfInfusion.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import ItemHealingDone from 'Main/ItemHea... |
user_guide/searchindex.js | oranta-dev/oranta | Search.setIndex({envversion:42,terms:{represent:[25,118,13,80],mybackup:76,yellow:[6,132],poorli:93,four:[152,89,54,138,55,128,124,133,127],prefix:[89,97,2,29],oldest:133,hate:134,optimize_databas:76,forget:[51,106],whose:29,choos:[44,88,12,152,29,54,80,47,82,112,106,51,149],accur:[0,29,117,154,42,96],aug:93,emailaddre... |
docs/app/Examples/elements/Image/Variations/ImageExampleVerticallyAligned.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Divider, Image } from 'semantic-ui-react'
const src = '/assets/images/wireframe/image.png'
const ImageExampleVerticallyAligned = () => (
<div>
<Image src={src} size='tiny' verticalAlign='top' /> <span>Top Aligned</span>
<Divider />
<Image src={src} size='tiny' vertic... |
app/src/modules/shared/components/NavigationBar/NavigationBar.js | betofigueiredo/homelibraries.org | import React from 'react';
import PropTypes from 'prop-types';
// import { useSelector } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
// CSS
import CSSModules from 'react-css-modules';
import styles from './style.module.scss';
// Language
// import { translate } from '../../languages/trans... |
NativeApp/src/modules/tasks/components/index.js | CapsuleCat/ReactNativeMeteorBoilerplate | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Meteor, { createContainer } from 'react-native-meteor';
import { View, Text } from 'react-native';
import styles from '../../app/styles';
import Filters from './Filters';
import Form from './Form';
import { default as Ta... |
renderer/components/editor/controls/left.js | wulkano/kap | import PropTypes from 'prop-types';
import React from 'react';
import {PlayIcon, PauseIcon} from '../../../vectors';
import {connect, VideoContainer} from '../../../containers';
import formatTime from '../../../utils/format-time';
class LeftControls extends React.Component {
render() {
const {play, pause, isPau... |
ajax/libs/angular.js/0.9.0/angular-scenario.js | joseluisq/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/client/chat/Chat.js | vacuumlabs/todolist | import React from 'react';
import {Link} from 'react-router';
import {syncStartTodo, syncStopTodo, onEditItemText, onTodoInputKeyDown, onFocus} from './actions';
import {getNewTodo, getItems, getFocus, getOrderedItems, getPendingActions} from './store_get';
class TodoItem extends React.Component {
componentDidUpd... |
ajax/libs/6to5/1.13.11/browser-polyfill.js | JacquesMarais/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... |
admin/static/js/reql_docs.js | lenstr/rethinkdb | // The contents of reql_docs were generated by _scripts/dataexplorer.py from the rethinkdb documentation in http://github.com/rethinkdb/docs
// hash: "010768c8107d161d10b790bd0e9d5a675d24f223"
reql_docs = {
"api/javascript/add/": {
"body": "number.add(number) → numberstring.add(string) → stringarray.add... |
IntegrationTests/AsyncStorageTest.js | eduardinni/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.
*
* @flow
*/... |
ajax/libs/core-js/0.9.15/shim.js | vfonic/cdnjs | /**
* core-js 0.9.15
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
wp-includes/js/jquery/jquery.js | JavaTheHub/JavaTheHub | /*! 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/components/Heading/Heading.js | jmlweb/paskman | import React from 'react';
import PT from 'prop-types';
import styled from 'styled-components';
import styledMap from 'styled-map';
import colors from '../../styles/colors';
import spacing from '../../styles/spacing';
const StyledHeadingMaster = styled.h1`
color: ${props => colors[props.colorScheme]};
font-size: $... |
packages/material-ui-icons/src/KeyboardReturn.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z" /></React.Fragment>
, 'KeyboardReturn');
|
admin/client/components/AltText.js | stunjiturner/keystone | import React from 'react';
import blacklist from 'blacklist';
import vkey from 'vkey';
var AltText = React.createClass({
getDefaultProps () {
return {
component: 'span',
modifier: '<alt>',
normal: '',
modified: ''
};
},
getInitialState () {
return {
modified: false
};
},
componentDidMount (... |
examples/loading-list/src/index.js | vtaits/redux-filterlist | import 'url-search-params-polyfill'
import 'whatwg-fetch'
import './mockApi'
import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import store from './store'
import List from './List'
render(
<Provider store={ store }>
<List />
</Provider>,
document.getElementBy... |
react/TwitterIcon/TwitterIcon.sketch.js | seek-oss/seek-style-guide | import React from 'react';
import TwitterIcon from './TwitterIcon';
import generateSketchIconSizes from '../private/generateSketchIconSizes';
export const symbols = {
...generateSketchIconSizes('Twitter/1. Unfilled', <TwitterIcon />),
...generateSketchIconSizes('Twitter/2. Filled', <TwitterIcon filled />)
};
|
node_modules/core-js/client/library.js | Shruti9520/Project | /**
* core-js 2.4.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
ajax/libs/webshim/1.14.5-RC2/dev/shims/es6.js | kentcdodds/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
server/static/lib/js/bokeh-widgets-0.12.4.min.js | nulman/REM | !function(){var define=void 0;return function(t,e,i){if(null==Bokeh)throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.");for(var n in t)Bokeh.require.modules[n]=t[n];for(var o=0;o<i.length;o++){var r=Bokeh.require(i[0]);Bokeh.Models.register_models(r.models);for(var n in r)"models"!==n&&(... |
src/svg-icons/communication/clear-all.js | hai-cea/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/svg-icons/device/access-time.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1... |
pages/404.js | Tgy31/welcom-react | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Not Found</h1>
<p>The pag... |
packages/p2p-chat/src/layouts/App.js | dgeibi/p2p-chat | import React from 'react'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
import { Row, Col } from 'antd'
import { Route } from 'react-router-dom'
import { ConnectedRouter as Router } from 'connected-react-router'
import { hot } from 'react-hot-loader'
import SettingNav from '../views/Setting... |
app/javascript/mastodon/features/ui/components/column_header.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
examples/real-world/src/containers/DevTools.js | gaearon/redux | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
components/Box.js | nikhilsaraf/react-native-todo-app | /**
* @flow
*/
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import PropTypes from 'prop-types';
class Box extends React.Component {
render() {
// each additional line has a smaller height
const height = this.props.numberOfLines == 1 ? 32 : 32 + (this.props.numberOfLine... |
test/ModalSpec.js | brynjagr/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Modal from '../src/Modal';
import { render, shouldWarn } from './helpers';
describe('Modal', function () {
let mountPoint;
beforeEach(() => {
mountPoint = document.createElement('div');
document.body.appendChild(mount... |
src/common/Icon.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import BAD_ICONS from 'common/BAD_ICONS';
const Icon = ({ icon, alt, ...others }) => {
if (!icon) {
return null;
}
icon = icon.replace('.jpg', '').replace(/-/g, '');
if (icon === 'petbattle_healthdown') {
// Blizzard seems to have forgotte... |
src/svg-icons/hardware/keyboard-hide.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
src/files/file-input/FileInput.js | ipfs/webui | import React from 'react'
import { connect } from 'redux-bundler-react'
import PropTypes from 'prop-types'
import { withTranslation } from 'react-i18next'
import { normalizeFiles } from '../../lib/files'
// Icons
import DocumentIcon from '../../icons/StrokeDocument'
import FolderIcon from '../../icons/StrokeFolder'
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.