path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/px-key-value-pair/index.js | jonniespratley/px-components-react | import React from 'react';
import classnames from 'classnames';
import style from './style.scss';
/**
* px-key-value-pair component
*/
export default ({
label = 'px-key-value-pair',
value,
size,
uom,
children
}) => {
const _getAdjustedSize = (s) => {
return (
s === 'alpha' ? 'delta' :
s === 'be... |
app.js | nick/react-skeleton | import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
render() {
return <div>React Loaded OK!</div>;
}
}
ReactDOM.render(<App />, document.getElementById('react'));
|
app/Resources/js/containers/home.js | ryota-murakami/tweet-pick | import React from 'react'
import { connect } from 'react-redux'
import ImportModal from '../components/import/importModal'
import Timeline from '../components/timeline'
import Header from '../components/header'
import '../../sass/common/common.scss'
import '../../sass/page/home.scss'
class App extends React.Component... |
src/components/about-ipfs/AboutIpfs.js | ipfs/webui | import React from 'react'
import { withTranslation, Trans } from 'react-i18next'
import Box from '../box/Box'
export const AboutIpfs = ({ t }) => {
return (
<Box>
<h2 className='mt0 mb3 montserrat fw2 f3 charcoal'>{t('aboutIpfs.header')}</h2>
<ul className='pl3'>
<Trans i18nKey='aboutIpfs.par... |
src/components/SearchInput/index.js | yiweimatou/admin-antd | import React from 'react'
import { Input, Button } from 'antd';
import classNames from 'classnames';
const InputGroup = Input.Group;
class SearchInput extends React.Component {
constructor(props) {
super(props)
this.state = {
value: '',
focus: false,
}
}
handleInputChange = (e)... |
node_modules/react-icons/md/pie-chart-outlined.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdPieChartOutlined = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.6 33.2c6.1-0.8 10.8-5.5 11.6-11.6h-11.6v11.6z m-15-13.2c0 6.8 5.2 12.3 11.8 13.2v-26.4c-6.6 0.8-11.8 6.4-11.8 13.2z m15-13.2v11.6h11.6c-0.8-6.1-5.5-10.8-... |
app/components/PropertyMap/GoogleApiComponent.js | koofka/singleproperty_redux | import React from 'react';
import cache from 'utils/ScriptCache';
import GoogleApi from 'utils/GoogleApi';
const GoogleApiComponent = (options) => (WrappedComponent) => {
const apiKey = options.apiKey;
const libraries = options.libraries || ['places'];
class Wrapper extends React.Component {
constructor(pro... |
client/src/bundles/ConfirmFolder.js | silverstripe/silverstripe-userforms | /* global window */
import i18n from 'i18n';
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { loadComponent } from 'lib/Injector';
import url from 'url';
import qs from 'qs';
const FormBuilderModal = loadComponent('FormBuilderModal');
jQuery.entwine('ss', ($) => {
/... |
docs/src/app/components/pages/components/TextField/ExampleCustomize.js | lawrence-yu/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
import {orange500, blue500} from 'material-ui/styles/colors';
const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocu... |
fields/types/location/LocationFilter.js | davibe/keystone | import _ from 'underscore';
import classNames from 'classnames';
import React from 'react';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'exactly' },
{ label: 'Contains', value: 'contains' }
];
const TOGGLE_OPTIONS = [
{ labe... |
ajax/libs/forerunnerdb/1.3.709/fdb-core.min.js | redmunds/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... |
admin/client/App/shared/Popout/PopoutList.js | trentmillar/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... |
react-flux-mui/js/material-ui/src/svg-icons/action/assignment-late.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0... |
src/_common/__tests__/Direction-test.js | qingweibinary/binary-next-gen | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import Direction from '../Direction';
describe('<Direction />', () => {
it('renders without any properties', () => {
const wrapper = shallow(<Direction />);
expect(wrapper.type()).to.equal('svg');
});
... |
spec/javascripts/jsx/conditional_release_stats/components/studentRangeSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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/CurrencyConverter.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { action, computed, observable } from 'mobx'
import { inject, observer } from 'mobx-react'
import { Input, Tooltip } from 'antd'
import { decimalSeparator } from '../utilities/common'
import moment from 'moment'
@translate(['wallet'], { wait: t... |
Libraries/Components/TextInput/TextInput.js | Guardiannw/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... |
ajax/libs/yui/3.4.1/event-focus/event-focus.js | hcxiong/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
ajax/libs/angular.js/1.2.0/angular-scenario.js | ajoslin/cdnjs | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {'use ... |
packages/material-ui-icons/src/NfcRounded.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="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V5c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v14c... |
ajax/libs/react/0.12.0-rc1/react-with-addons.js | ekeneijeoma/cdnjs | /**
* React (with addons) v0.12.0-rc1
*/
!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()}... |
ajax/libs/mobx-react/4.0.0-rc.4/custom.min.js | emmy41124/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx"),require("react")):"function"==typeof define&&define.amd?define(["mobx","react"],t):"object"==typeof exports?exports.mobxReact=t(require("mobx"),require("react")):e.mobxReact=t(e.mobx,e.React)}(this,function(e,t){return fun... |
Examples/UIExplorer/ProgressViewIOSExample.js | hzgnpu/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,
... |
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/resources/static/js/jquery-1.7.2.js | hehuabing/spring-boot | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
packages/material-ui-icons/src/CheckCircleOutlineSharp.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="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><path d="M16.... |
src/components/Contact/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import * as helper from 'constants/HelperFunctions'
const Contact = (props) => {
let name
if (props.name) {
name = <p itemProp='name' className='name'>{props.name.trim()}</p>
}
let title
if (props.title) {
title = (<p itemProp='jobTitle' c... |
src/StyleContext.js | kriasoft/isomorphic-style-loader | /**
* Isomorphic CSS style loader for Webpack
*
* Copyright © 2015-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'
const StyleContext = React.createContext(... |
packages/components/src/ResourceList/ResourceList.stories.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';
import { action } from '@storybook/addon-actions';
import ResourceList from './ResourceList.component';
import Icon from '../Icon';
const collection = [
{
id: 0,
name: 'Title with few actions',
modifi... |
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | bobangajicsm/fut-scores | 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/containers/app/CreateAppType.js | kryptnostic/gallery | import React from 'react';
import PropTypes from 'prop-types';
import Immutable from 'immutable';
import Select from 'react-select';
import { Models } from 'lattice';
import { FormControl, FormGroup, ControlLabel, Button, Alert } from 'react-bootstrap';
import { connect } from 'react-redux';
import { bindActionCreator... |
node_modules/react-dom/lib/ReactChildReconciler.js | bengimbel/Solstice-React-Contacts-Project | /**
* Copyright 2014-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 strict... |
assets/jquery Validation/lib/jquery-1.7.2.js | nasirkhan/dghs-hrm | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
web/public/js/jquery.min.js | sonots/haikanko | /*! 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... |
app/javascript/mastodon/features/follow_requests/index.js | theoria24/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
docs/app/Examples/elements/Container/Types/ContainerExampleText.js | aabustamante/Semantic-UI-React | /* eslint-disable max-len */
import React from 'react'
import { Container, Header } from 'semantic-ui-react'
const ContainerExampleText = () => (
<Container text>
<Header as='h2'>Header</Header>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa stron... |
ajax/libs/intl-tel-input/3.8.5/js/intlTelInput.js | BenjaminVanRyseghem/cdnjs | /*
International Telephone Input v3.8.5
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
examples/exoskeleton/node_modules/exoskeleton/exoskeleton.js | nitish1125/todomvc | /*!
* Exoskeleton.js 0.7.0
* (c) 2013 Paul Miller <http://paulmillr.com>
* Based on Backbone.js
* (c) 2010-2013 Jeremy Ashkenas, DocumentCloud
* Exoskeleton may be freely distributed under the MIT license.
* For all details and documentation: <http://exosjs.com>
*/
(function(root, factory) {
// Set up Backbon... |
app/javascript/mastodon/features/generic_not_found/index.js | nonoz/mastodon | import React from 'react';
import Column from '../ui/components/column';
import MissingIndicator from '../../components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator />
</Column>
);
export default GenericNotFound;
|
app/jsx/due_dates/DueDateAddRowButton.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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... |
ajax/libs/material-ui/4.9.3/esm/NativeSelect/NativeSelect.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import NativeSelectInput from './NativeSelectInput';
import withStyles from '../styles/withStyles';
import ... |
packages/material-ui-icons/src/DoneOutline.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="M19.77 5.03l1.4 1.4L8.43 19.17l-5.6-5.6 1.4-1.4 4.2 4.2L19.77 5.03m0-2.83L8.43 13.54l-4.2-4.2L0 13.57 8.43 22 24 6.43 19.77 2.2z" /></React.Frag... |
packages/material-ui-icons/src/TabletMacSharp.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="M21 0H2v24h19V0zm-9.5 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7.5-4H4V3h15v16z" /></g></React.Fragment>
, '... |
ajax/libs/6to5/2.4.1/browser.js | jackdoyle/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.to5=e()}}(function(){var define,module,exports;return... |
packages/ringcentral-widgets/components/Eula/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import i18n from './i18n';
function Eula(props) {
const {
currentLocale,
className,
onLinkClicked,
brandId,
useEulaAbbreviation,
dataSign,
} = props;
let labelId = useEulaAbbreviation ? 'eulaAbbr' : 'eula';
let link;
const... |
ajax/libs/yasqe/2.3.9/yasqe.bundled.min.js | rileyjshaw/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
pathfinder/architecturestack/src/Checkbox.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Checkbox extends Component {
constructor(props) {
super(props);
this._onChange = this._onChange.bind(this);
}
_onChange(event) {
let val = event.target.checked;
if (typeof val === 'string') {
val = val === 'true';
}
... |
webpack.config.dev.babel.js | Hovakimyan/Drag-and-drop-tree-react | import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import webpack from 'webpack';
import autoprefixer from 'autoprefixer';
module.exports = {
devtool: 'source-map',
entry: {
demo: './src/examples/basicExample/app',
},
output: {
path: 'build',
filename:... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/CloseButton.js | brett-harvey/Smart-Contracts | import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import React from 'react';
var defaultProps = {
label: 'Close'
};
var CloseButton =
/*#__PURE__*/
function (_React$Component) {
_inheritsLoose(CloseButton, _React$Component);
function CloseButton() {
return _React$Component.apply(this, a... |
ajax/libs/styled-components/3.2.6/styled-components-primitives.es.js | sashberd/cdnjs | import reactPrimitives from 'react-primitives';
import transformDeclPairs from 'css-to-react-native';
import isPlainObject from 'is-plain-object';
import supportsColor from 'supports-color';
import React, { Component, createElement } from 'react';
import PropTypes from 'prop-types';
import { isValidElementType } from '... |
test/components/ItemSelectionPanel.spec.js | CodeHubOrg/organisations-database | // import expect from 'expect'
// import React from 'react'
// import { shallow } from 'enzyme'
// import ItemSelectionPanel from '../../src/components/ItemSelectionPanel'
// function setup(selected = null){
// const props = {
// selectedItem: selected
// }
// const component = shallow(
// ... |
src/svg-icons/notification/ondemand-video.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationOndemandVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIc... |
test/regressions/tests/List/SecondaryActionCheckboxListItem.js | Kagami/material-ui | import React from 'react';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
import Checkbox from '@material-ui/core/Checkbox';
export ... |
js/jquery-1.11.0.js | dmleong/wedding-website | /*! 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... |
sites/all/libraries/syntaxhighlighter_3.0.83/tests/js/jquery-1.4.2.js | zilverdistel/zdbe | /*!
* 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.
... |
ajax/libs/6to5/1.14.4/browser-polyfill.js | aashish24/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... |
ui/src/main/frontend/src/components/EmployeeModal.js | Dokuro-YH/alice-projects | import React, { Component } from 'react';
import {
Modal,
Form,
FormGroup,
Col,
FormControl,
ControlLabel,
Button
} from 'react-bootstrap';
class EmployeeModal extends Component {
constructor(props) {
super(props);
this.state = {
data: props.data || {}
}
}
componentWillReceivePro... |
examples/using-remark-copy-linked-files/src/pages/index.js | fk/gatsby | import React from "react"
import { Link } from "gatsby"
import get from "lodash/get"
import Helmet from "react-helmet"
import Layout from "../components/layout"
import Bio from "../components/Bio"
import typography from "../utils/typography"
const { rhythm } = typography
class BlogIndex extends React.Component {
r... |
packages/material-ui-icons/src/StarSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><g fill="none"><path d="M0 0h24v24H0V0z" /><path d="M0 0h24v24H0V0z" /></g><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z" /></React.... |
src/main.js | bumbu/trainline-test | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
tests/react_custom_funs/create_factory.js | claudiopro/flow | // @flow
import React from 'react';
declare var any: any;
React.createFactory(any)(); // OK
React.createFactory(any)({}); // OK
React.createFactory(any)(undefined); // OK
React.createFactory(any)(null); // OK
class A extends React.Component<{foo: number, bar: number}, void> {}
function B(props: {foo: number, bar: n... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | kelong/react-native-with-amazon-s3 | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
js/settings/StatusBarItem.js | sotayamashita/wizardsLifeCounter | // @flow
import React from 'react';
import { View, Text, TouchableOpacity, Switch, StyleSheet } from 'react-native';
import { StyledItem, StyledItemIcon, StyledItemIconImage, StyledItemContent } from './StyledItem';
const StatusBarItem = ({ isStatusBarEnabled, onUserChangeStatusBar }) => {
return (
<StyledItem>... |
packages/benchmarks/react-jss/client/Table.js | A-gambit/CSS-IN-JS-Benchmarks | import React from 'react';
import injectSheet from 'react-jss';
const styles = {
table: {
display: 'table',
marginTop: 10,
},
row: {
display: 'table-row',
},
};
const stylesCell = {
cell: {
display: 'table-cell',
padding: 10,
background: props => `rgba(74, 174, 53, ${props.value})`,
... |
packages/material-ui-icons/src/Accessibility.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z" />
, 'Accessibility');
|
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | arthurchan1111/EventPlanner | 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'));
|
mobile/src/PosterCardList/presenter.js | TailorDev/pauling | /* @flow */
import React from 'react';
import { FlatList } from 'react-native';
import { Toast } from 'native-base';
import LoadingMessage from 'app/LoadingMessage';
import PosterCard from 'app/PosterCard';
import Empty from './Empty';
import type { Poster } from 'app/types';
import type { State as NavigationState } f... |
examples/dev.js | ericbiewener/react-global-events | import React from 'react'
import {render} from 'react-dom'
import GlobalEvents, {listenFor} from '../src/index.js'
const RootComponent = () => (
<div id="app-root" {...listenFor('mouseUp', 'mouseDown')}>
<MySubComponent />
</div>
)
const MySubComponent = React.createClass({
getInitialState: function() {
return... |
jquery-1.7.0.min.js | tkrmnz/WebMSO19fcgi | /*! jQuery v1.7 jquery.com | jquery.org/license */
(function(a,b){function cA(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"),cn.frameBorder=... |
src/routes/error/ErrorPage.js | devcharleneg/twitter-react-app | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
ajax/libs/forerunnerdb/1.3.412/fdb-legacy.js | menuka94/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... |
client/src/index.js | ahorrocks2/what_sounds_good_to_you | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'semantic-ui-css/semantic.min.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
registerServiceWorker();
const rootEl = document.getElementById('root')
ReactDOM.render(
<App />,
roo... |
node_modules/react-bootstrap/es/NavbarCollapse.js | yeshdev1/Everydays-project | 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/svg-icons/image/brightness-4.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness4 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13... |
Web Development/JS_frameworks/02. Mustache/02. Students/StudentsDatabase/Scripts/jquery-1.8.2.min.js | niki-funky/Telerik_Academy | /*! jQuery v1.8.2 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===... |
src/Parts/DetailPart/index.js | sqhtiamo/zaro | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './style';
import filter from '../../utils/filter';
class DetailPart extends Component {
constructor(props) {
super(props);
this.state = {};
}
getValue(detail) {
this.detail = detail;
if (detail.form... |
src/client/pages/project/TaskList.js | callmeJozo/MKRN | import React from 'react';
import { Link } from 'react-router';
import { Button, Icon, Menu, Dropdown, Modal, message } from 'antd';
import ProjectStore from '../../stores/project';
class ProjectDetailApi extends React.Component {
constructor(props) {
super(props);
this.state = {
projec... |
packages/material-ui-icons/src/HeightSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z" />
, 'HeightSharp');
|
ajax/libs/rxjs/2.3.25/rx.all.compat.js | Olical/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/material-ui/svg-icons/communication/import-export.js | Rabbit884/reactapp | '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... |
node_modules/semantic-ui-react/src/modules/Sidebar/SidebarPushable.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A pushable sub-component for Sidebar.
*/
function SidebarPushable(props) {
const { className, children } = props
const clas... |
server/routers/main.js | ShpuntiK/AnimeStorage | var React = require('react');
var Router = require('react-router');
var DocumentTitle = require('react-document-title');
var api = require('../services/api');
var getInitialData = require('../services/get-initial-data');
var routes = require('../../assets/js/router/routes');
var Layout = require('../views/layout');
fu... |
examples/browserify-gulp-example/src/app/Main.js | ngbrown/material-ui | /**
* In this file, we create a React component
* which incorporates components providedby material-ui.
*/
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Dialog from 'material-ui/Dialog';
import {deepOrange500} from 'material-ui/styles/colors';
import FlatButton from 'materia... |
src/js/components/Article.js | primozs/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes, Children } from 'react';
import {findDOMNode} from 'react-dom';
import Box from './Box';
import KeyboardAccelerators from '../utils/KeyboardAccelerators';
import DOMUtils from '../utils/DOM';
import Props from '.... |
src/App.js | battaile/time-tracking | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Project from './Project';
import AddProject from './AddProject';
import Footer from './Footer';
import ErrorBoundary from './ErrorBoundary';
import * as db from './database';
import { appName } from './constants';
import './App.css';
ex... |
desktop-site/components/ServiceStopped.js | goominc/goommerce-react | // Copyright (C) 2016 Goom Inc. All rights reserved.
import React from 'react';
import { constants } from 'commons/utils/constants';
export default React.createClass({
render() {
return (
<div className="service-stopped-container">
<img src={`${constants.resourceRoot}/banner/service_stopped_16042... |
src/views/hr-view/components/experience-section.js | vynogradskyi/resume | import React from 'react';
import classnames from 'classnames';
import styles from 'css-modules/hr-view/experience-section.scss';
//components
import Ul from './ul';
export default ({item}) => {
return (
<div className={styles.item}>
<div className={styles.vertical}/>
<div class... |
src/components/Dna-Strand.js | justrdk/glowing-bassoon | import React from 'react';
const DnaStrand = ({ dnas, addDna, validateDna, clearDnas }) => {
let input;
const validateDnas = () => {
dnas.forEach((dna, index) => {
validateDna(dna, index);
});
}
return (
<div style={{marginTop: 10}}>
<div className="ui form">
<div className="two fields">
<div ... |
examples/todos-with-undo/src/components/Footer.js | bvasko/redux | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
src/NavItem.js | cgvarela/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
client/app/components/Layout/Header.js | ngenerio/unredis | import React, { Component } from 'react';
export default class Header extends Component {
render () {
return (
<nav className="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div className="container-fluid">
<div className="navbar-header">
<button type="button" cla... |
client/components/bulk-select/test/index.js | allendav/wp-calypso | /**
* External dependencies
*/
import { assert } from 'chai';
import React from 'react';
import { shallow } from 'enzyme';
import noop from 'lodash/noop';
/**
* Internal dependencies
*/
import BulkSelect from '../index';
describe( 'index', function() {
require( 'test/helpers/use-fake-dom' )();
it( 'should have ... |
app/renderer/containers/OutfittingPage/index.js | project-sothis/project-sothis | import React, { Component } from 'react'
// import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import autoBind from 'react-autobind'
import { Link } from 'react-router'
// import styles from './styles.scss'
class OutfittingPage extends Component {
constructor (props) {
super(props)... |
ajax/libs/bla/1.1.0/bla.js | maruilian11/cdnjs | /**
* @module vow
* @author Filatov Dmitry <dfilatov@yandex-team.ru>
* @version 0.4.6
* @license
* Dual licensed under the MIT and GPL licenses:
* * http://www.opensource.org/licenses/mit-license.php
* * http://www.gnu.org/licenses/gpl.html
*/
(function(global) {
/**
* @class Deferred
* @exports vow:Def... |
src/examples/button.js | JiaoJian1221/react-mdc-web | import React from 'react';
import {
Checkbox,
Button,
FormField,
FAButton,
ITButton,
} from '../components'
export class ButtonTest extends React.Component {
state = {
dense: false,
primary: false,
compact: false,
accent: false,
raised: true,
}
render() {
let {dense, primary, co... |
client/scripts/components/user/currency-field/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
ajax/libs/rxjs/2.3.10/rx.all.compat.js | mival/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/ui/src/index.js | she-smashes/thehub | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { applyMiddleware, combineReducers, compose, createStore } from 'redux';
import promis... |
pages/decal/lesson-10/index.js | jubearsun/innovative-design | import React from 'react';
import DocumentTitle from 'react-document-title';
import { prefixLink } from 'gatsby-helpers';
import $ from 'jquery';
import _ from 'lodash';
export default class Index extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {}
render () {
retur... |
src/routes.js | lvyuanjiao/isomorphic | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Home from './containers/Home';
import User from './containers/User';
import About from './containers/About';
import { loadUser } from 'store/reducers/user';
export default (store) => {
const enter... |
src/ModalFooter.js | Terminux/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import tbsUtils, { bsClass } from './utils/bootstrapUtils';
class ModalFooter extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, tbsUtils.prefix(this.props, 'footer'))... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.