target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/components/Main.js | Aikk/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
let imageDatas = require('json!../data/images.json');
imageDatas = (function genImageURL(imageDatasArr) {
for (let i = 0, n = imageDatasArr.length; i < n; i++) {
let singleImageData ... |
logspace-frontend-new/src/main/time-series/components/suggestions/Suggestions.react.js | Indoqa/logspace | /*
* Logspace
* Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
* This program and the accompanying materials are made available under the terms of
* the Eclipse Public License Version 1.0, which accompanies this distribution and
* is available at http://www.eclipse.org/legal/epl-... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSelection.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { friendOptions } from '../common'
const DropdownExampleSelection = () => (
<Dropdown placeholder='Select Friend' fluid selection options={friendOptions} />
)
export default DropdownExampleSelection
|
fields/components/columns/IdColumn.js | belafontestudio/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
... |
src/js/view/stats.js | chemdemo/react-webpack-todos | /*
* @Author: dmyang
* @Date: 2015-07-31 18:39:12
* @Last Modified by: dmyang
* @Last Modified time: 2015-08-18 21:47:16
*/
'use strict';
import React from 'react';
let Stats = React.createClass({
render() {
let props = this.props;
let filter = props.filter;
return (
<sec... |
src/App.js | mdkalish/json_selector | import React, { Component } from 'react';
import SocialProfiles from './components/social_profiles.js'
var App = React.createClass({
render: function() {
return (
<div>
<h1>Diff Tables</h1>
<div className="socialProfiles">
<SocialProfiles
fullcontactData={this.props.fu... |
src/components/editor/TempoButton.js | calesce/tab-editor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Popover from 'react-popover';
import { StyleSheet, css } from 'aphrodite';
import { changeTempo } from '../../actions/track';
const styles = StyleSheet.create({
hover: {
':hover': {
MozUserSelect: 'none',
WebkitU... |
RNTester/js/XHRExampleOnTimeOut.js | negativetwelve/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
* ... |
node_modules/react-icons/fa/cc-mastercard.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaCcMastercard = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.7 20.6h-0.2q-0.8 0-0.8 0.6 0 0.4 0.3 0.4 0.3 0 0.5-0.3t0.2-0.7z m7-0.6h1v0q0.1-0.1 0.1-0.1t-0.1-0.2 0-0.1-0.1-0.1-0.1-0.1-0.2 0q-0.5 0-0.6 0.6z m9.4 0.6h-0.2... |
src/components/ChooseBusiness/ChooseBusiness.js | TheModevShop/craft-app | import React from 'react';
import {Link} from 'react-router';
import _ from 'lodash';
import './choose-business.less';
class ChooseBusiness extends React.Component {
constructor(...args) {
super(...args);
this.state = {
};
}
render() {
return (
<div className="choose-business">
... |
node_modules/node_modules/recharts/lib/chart/PieChart.js | SerendpityZOEY/Fixr-RelevantCodeSearch | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
packages/material-ui-icons/src/ControlPointRounded.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 7c-.55 0-1 .45-1 1v3H8c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V8c0-.55-.45-1-1-1zm0-5C... |
server/sonar-web/src/main/js/apps/project-permissions/main.js | abbeyj/sonarqube | import $ from 'jquery';
import _ from 'underscore';
import React from 'react';
import Permissions from './permissions';
import PermissionsFooter from './permissions-footer';
import Search from './search';
import ApplyTemplateView from './apply-template-view';
const PERMISSIONS_ORDER = ['user', 'codeviewer', 'issueadmi... |
node_modules/bower/lib/node_modules/rx-lite/rx.lite.js | bdhoff/angular-playground | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exp... |
test/specs/form/form.spec.js | rafaelfbs/realizejs | import React from 'react'
import $ from 'jquery'
import Realize from 'realize'
import { Form } from 'components/form'
import { assert } from 'chai';
import { shallow } from 'enzyme';
describe('<Form/>', () => {
it('exists', () => {
assert(Form);
});
it('renders with the default props', () => {
const cont... |
src/components/web/Input.js | Manuelandro/Universal-Commerce | import React from 'react'
import styled from 'styled-components'
const { View, Text, TextInput } = {
View: styled.div`
display: flex;
flex: 1;
flex-direction: row;
align-items: center;
border-width: 1px;
border-color: #ccc;
margin-left: 5px;
margin-ri... |
packages/material-ui-icons/src/TouchAppRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm5... |
__tests__/components/List.spec.js | zupzup/reactgym | 'use strict';
jest.dontMock('../../scripts/components/List.js');
let React = require('react/addons'),
ListItem = require('../../scripts/components/ListItem.js'),
List = require('../../scripts/components/List.js');
let TestUtils = React.addons.TestUtils;
describe("List", () => {
it("renders a List", () =>... |
src/components/WelcomeHeader.js | hansenjl/circuit-builder-client | import React from 'react';
import NavBar from '../components/NavBar';
const WelcomeHeader = () => (
<div>
<header className="App-header">
<h1 className="App-title">Welcome to Circuit Builder</h1>
</header>
<NavBar />
</div>
)
export default WelcomeHeader; |
packages/material-ui-icons/src/PhoneIphone.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.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.5zm4.5-4H7V4... |
react-router-training/src/index.js | wefine/reactjs-guide | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory, IndexRoute, Route, Router } from 'react-router'
import App from './App';
import './index.css';
import About from './modules/About'
import Home from './modules/Home'
import NotFound from './modules/NotFound'
import Repo from './module... |
src/app.js | adamw523/ssh-tunnel-manager | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { ipcRenderer } from 'electron';
import sshTunnelApp from './reducers'
import App from './components/app'
import * as actions from './actions'
import manager from './manager'... |
tests/components/Counter/Counter.spec.js | dunglas/calavera-react-client | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
ajax/libs/survey-jquery/0.12.24/survey.jquery.min.js | wout/cdnjs | /*!
* surveyjs - Survey JavaScript library v0.12.24
* Copyright (c) 2015-2017 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define... |
ajax/libs/zeroclipboard/2.1.2/ZeroClipboard.Core.js | viskin/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) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.2
*/
(function(window, undefined) {
"use strict";... |
volunteer_planner/static/js/jquery1.11.3.min.js | juliabiro/volunteer_planner | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/front/js/routes.js | raccoon-app/ui-kit | import React from 'react';
import { Route } from 'react-router';
import { IndexRoute } from 'react-router';
import Auth from './containers/Auth';
import ProjectSelection from './containers/ProjectSelection';
import Project from './containers/Project';
export default () => (
<Route path="/" >
<IndexRoute c... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | jessiegacula/jessiegacula.github.io | 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'));
|
packages/material-ui-icons/src/FilterDramaRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6.17c-2.09 0-3.95-1.53-4.15-3.61C1.79 12.... |
server/sonar-web/src/main/js/apps/code/components/App.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/app.js | devgeniem/silverbullet-kitchensink | /*
Here is the main react application used in react-based views.
This is used in urls defined by routes.js and initialized in
config/http.js middleware.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory, createMemoryHistory } from 'react-router';
import { createStore... |
Code_Examples/801Ugly/libraries/p5.sound.js | bensk/SE8_p5js | /*! p5.sound.js v0.3.0 2016-01-31 */
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define('p5.sound', ['p5'], function (p5) { (factory(p5));});
else if (typeof exports === 'object')
factory(require('../p5'));
else
factory(root['p5']);
}(this, function (p5) {
/**
* p5.... |
react-flux-mui/js/material-ui/src/IconMenu/IconMenu.spec.js | pbogdan/react-flux-mui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from '../styles/getMuiTheme';
import IconMenu from './IconMenu';
describe('<IconMenu />', function() {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node,... |
src/containers/verification/joblist/BrowseView.js | shojil/bifapp | /**
* Receipe Tabs Screen
* - Shows tabs, which contain receipe listings
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
InteractionManager,
ScrollView,
Image,
... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | Just-D/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
packages/react-scripts/template/src/index.js | CodingZeal/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | natorojr/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
app/javascript/mastodon/components/modal_root.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
export default class ModalRoot extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
onClose: PropTypes.func.isRequired,
};
state = {
revealed: !!this.props.children,
};
activeElement = t... |
source/src/containers/footer.js | vgudzhev/DiagramTool | import React from 'react';
class Footer extends React.Component {
render() {
return (
<div className="footer">
<p>React-redux Diagram tool 2016 ©</p>
</div>
);
}
}
export default Footer;
|
docs/src/examples/collections/Message/Variations/MessageExampleCompact.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleCompact = () => (
<Message compact>
Get all the best inventions in your e-mail every day. Sign up now!
</Message>
)
export default MessageExampleCompact
|
ajax/libs/rxjs/2.3.16/rx.lite.js | calvinf/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... |
react-starter/examples/UnigridExamples.js | yoonka/unigrid | /*
Copyright (c) 2018, Grzegorz Junka
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following... |
src/react-gauge.js | michigan-com/react-gauge | 'use strict';
import React from 'react';
// http://stackoverflow.com/a/11832950/1337683
function roundTwoDecimals(number) {
return Math.round(number * 100) / 100;
}
const _colorArc = (gradient, color, id) => gradient.length == 0 ? color : `url(#linear-gradient)`;
export default class ReactGauge extends React.Co... |
packages/editor/src/components/Controls/Inline/InlineLayout.js | strues/boldr | /* eslint-disable react/no-unused-prop-types */
/* @flow */
import React from 'react';
import cn from 'classnames';
import { Bold, Italic, Underline, Strikethrough, Code } from '../../Icons';
import Option from '../../Option';
type CurrentState = {
bold?: boolean,
italic?: boolean,
underline?: boolean,
strike... |
ajax/libs/ember-data.js/1.13.12/ember-data.prod.js | CyrusSUEN/cdnjs | (function() {
"use strict";
var ember$lib$main$$default = Ember;
var ember$data$lib$ext$ember$array$$default = Array.prototype || ember$lib$main$$default.ArrayPolyfills;
var ember$data$lib$system$object$polyfills$$keysFunc = Object.keys || Ember.keys;
var ember$data$lib$system$object$polyfills$$crea... |
ajax/libs/angular-google-maps/1.0.17/angular-google-maps.js | cloudrifles/cdnjs | /*! angular-google-maps 1.0.17 2014-03-30
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
(function() {
angular.element(document).ready(function() {
if (!(google || (typeof google !== "undefined" && google !== null ? google.maps : void 0) || (google.maps.... |
blueprints/route/files/src/routes/__name__/components/__name__.js | LidaDimitriadi/Poker-React | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h4><%= pascalEntityName %></h4>
</div>
)
export default <%= pascalEntityName %>
|
node_modules/react-icons/md/exposure-plus-1.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdExposurePlus1 = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.4 30h-3.4v-17.7l-5 1.7v-2.8l7.8-2.8h0.6v21.6z m-16.8-18.4v6.8h6.8v3.2h-6.8v6.8h-3.2v-6.8h-6.8v-3.2h6.8v-6.8h3.2z"/></g>
</Icon>
)
export default MdExpo... |
src/components/shell/items/card.js | fredmarques/petshop | import { Image, Media } from 'react-bootstrap';
import React, { Component } from 'react';
class Card extends Component {
constructor(props) {
super(props);
this.image = this.props.image;
this.alt = this.props.alt;
this.heading = this.props.heading;
this.body = this.props.bod... |
src/index.js | vkarpov15/shidoshi | import { Provider } from 'react-redux';
import ReactDOM from 'react-dom';
import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './components/App';
import Article from './components/Article';
import Editor from './components/Editor';
import Home from './compo... |
src/svg-icons/editor/linear-scale.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorLinearScale = (props) => (
<SvgIcon {...props}>
<path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ... |
Examples/UIExplorer/TextInputExample.js | shlomiatar/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,
... |
src/containers/calculationnotebooks.js | OpenChemistry/mongochemclient | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
import { push } from 'connected-react-router';
import NotebooksTable from '../components/notebooks/table'
import { calculations, jupyterlab } from '@openchemistry/redux'
import ... |
files/core-js/0.9.1/library.js | evilangelmd/jsdelivr | /**
* Core.js 0.9.1
* 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 = {};
/******... |
addons/knobs/src/components/Panel.js | enjoylife/storybook | import React from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash.debounce';
import PropForm from './PropForm';
import Types from './types';
const getTimestamp = () => +new Date();
const styles = {
panelWrapper: {
width: '100%',
},
panel: {
padding: '5px',
width: 'auto',
... |
j2s/J/adapter/smarter/Resolver.js | tedgoddard/AtomicStereo | Clazz.declarePackage ("J.adapter.smarter");
Clazz.load (null, "J.adapter.smarter.Resolver", ["java.lang.Float", "java.util.StringTokenizer", "javajs.api.GenericBinaryDocument", "JU.LimitedLineReader", "$.PT", "J.adapter.smarter.AtomSetCollectionReader", "$.SmarterJmolAdapter", "J.api.Interface", "JU.Logger", "JV.FileM... |
src/ui/components/views/Home.js | scrollback/pure | /* @flow */
import React, { Component } from 'react';
import ReactNative from 'react-native';
import NavigationRootContainer from '../containers/NavigationRootContainer';
import NavigationScene from './Navigation/NavigationScene';
import NavigationView from './Navigation/NavigationView';
import UserSwitcherContainer f... |
app/app.js | andreasasprou/react-boilerplate-auth | /**
* 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... |
src/svg-icons/action/feedback.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
packages/material-ui-icons/src/SubwaySharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="8.5" cy="16" r="1" /><circle cx="15.5" cy="16" r="1" /><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2s-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.86V22h20V8.86c0-2.81-1.53-5.02-4.2-... |
src/server.js | 24v/player-sankey | /**
* 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 path from 'path';
import express from 'express';... |
src/components/_/_RoadObjectListItem.js | nickooms/racing-webgl2 | import React from 'react';
import PropTypes from 'prop-types';
import { TableRow, TableRowColumn } from 'material-ui/Table';
import muiThemeable from 'material-ui/styles/muiThemeable';
import './index.css';
const RoadObjectListItem = ({ id, selected }) => (
<TableRow selected={selected}>
<TableRowColumn>{id}</Ta... |
src/routes/Home/components/HomeView.js | loaclhostjason/react-redux-admin | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export default HomeView
|
docs-src/js/components/options/FormatLocale.js | gomo/react-calcpicker | import React from 'react'
import {CalcPicker, Rect, Action} from '../../../../dist/react-calcpicker'
import SyntaxHighlighter from 'react-syntax-highlighter'
import { tomorrowNightEighties } from 'react-syntax-highlighter/dist/styles'
export default class FormatLocale extends React.Component
{
constructor(props) {
... |
es2015plus/react-redux/src/components/SelectsContent/index.js | lshig/forms-challenge | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../Button';
import Select from '../Select';
export default function SelectsContent({
className,
selectOptions,
id,
onSelectChange,
onPreviousClick,
onNextClick
}) {
return (
<div id={id} className={className}>
<d... |
app/components/specificComponents/CookItemWithData/index.js | romainquellec/cuistot | import React from 'react';
import Container from './container';
import Card from './card';
import Card_description from './card_description';
import Card_text from './card_text';
import Card_pro from './card_pro';
import A from 'components/genericComponents/A/cook';
import Description from './description';
import Birt... |
src/components/About/Education/Education.js | jumpalottahigh/jumpalottahigh.github.io | import React from 'react'
import styled from 'styled-components'
import Img from 'gatsby-image'
import { graphql, StaticQuery } from 'gatsby'
import H2 from '../../elements/H2/H2.js'
import CenteredDiv from '../../elements/CenteredDiv/CenteredDiv.js'
const UL = styled.ul`
display: grid;
grid-gap: 10px;
padding-... |
docs/src/app/components/pages/components/IconButton/ExampleSize.js | spiermar/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const styles = {
smallIcon: {
width: 36,
height: 36,
},
mediumIcon: {
width: 48,
height: 48,
},
largeIcon: {
width: 60,
height: 60,
},
small: {
... |
client/index.js | ctrlplusb/react-universally | /* eslint-disable global-require */
import React from 'react';
import { render } from 'react-dom';
import BrowserRouter from 'react-router-dom/BrowserRouter';
import asyncBootstrapper from 'react-async-bootstrapper';
import { AsyncComponentProvider } from 'react-async-component';
import './polyfills';
import ReactHo... |
src/svg-icons/action/question-answer.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQuestionAnswer = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/>
</SvgIcon>
);
... |
examples/node_modules/react-native/node_modules/react-tools/src/classic/element/__tests__/ReactElementValidator-test.js | toddw/react-native-swiper | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
src/svg-icons/communication/contact-phone.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContactPhone = (props) => (
<SvgIcon {...props}>
<path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-... |
ajax/libs/analytics.js/2.3.17/analytics.js | lmccart/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
ajax/libs/instantsearch.js/1.8.6/instantsearch-preact.min.js | sreym/cdnjs | /*! instantsearch.js 1.8.6 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea... |
src/components/Annotation.js | cltk/annotations | // @flow
import React from 'react'
import {
ANNOTATION_BLUE,
ANNOTATION_HOVER_BLUE
} from '../constants'
export type Props = {
children: string | Object,
entityKey: string,
hoverEntityKey: string,
onClick: (entityKey: string) => void,
onHover: (entityKey: ?string) => void,
}
export const AnnotationCom... |
files/xe-core/1.7.5.2/common/js/jquery-1.x.min.js | cake654326/jsdelivr | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
!*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,... |
src/Hello/Hello.js | radsquad/listiq | import React from 'react'
class Hello extends React.Component {
render () {
return (
<div>
<span style={{color: 'cyan'}}>HelloComponent</span>
</div>
)
}
}
export default Hello
|
client-src/pages/list/index.js | jgunnison/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import List from '../../components/list';
class ListPage extends Component {
static propTypes = {
listContent: PropTypes.array,
};
static defaultProps = {
listContent: [],
};
render(... |
src/js/components/docker/partial/DockerNotification.js | ajainsyn/project | import React from 'react';
import dockerplatform from '../../../../assets/images/dockerplatform.png';
const DockerNotification = ({...props}) => (
<section className="section bg-blue" id="emailNotification">
<div className="container">
<div className="row align-items-center">
<div ... |
src/js/components/Box/stories/Fixed.js | grommet/grommet | import React from 'react';
import { Box, Text } from 'grommet';
export const FixedSizesBox = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box pad="small" gap="small">
<Box
width="small"
height="small"
round="small"
align="center"
... |
BusinessWeb/template_content/assets/plugins/flot/jquery.js | nehemiekoffi/BusinessManager | /*!
* 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/routes/savoringYourPet/SavoringYourPet.js | goldylucks/adamgoldman.me | // @flow
/* eslint-disable react/no-unescaped-entities */
import React from 'react'
import axios from 'axios'
import withStyles from 'isomorphic-style-loader/lib/withStyles'
import MessengerFixed from './MessengerFixed'
import testimonials from './testimonialsData'
import FAQContainer from './FAQContainer'
import Mob... |
pages/index.js | hillcitymnag/www.hillcitymnag.church | import css from 'next/css'
import Head from 'next/head'
import React from 'react'
import 'whatwg-fetch'
import Contact from '../components/contact'
import Footer from '../components/footer'
import Header from '../components/header'
import LatestSermon from '../components/latest-sermon'
import Navigation from '../compo... |
src/js/views/transitions-target.js | electronspin/touchstonejs-starter | import Container from 'react-container';
import React from 'react';
import Timers from 'react-timers';
import { Mixins } from 'touchstonejs';
module.exports = React.createClass({
mixins: [Mixins.Transitions, Timers()],
statics: {
navigationBar: 'main',
getNavigation (props) {
return {
title: props.navbarT... |
packages/ringcentral-widgets-docs/src/app/pages/Components/SlideMenu/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/svg-icons/image/filter-9.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter9 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v... |
app/javascript/mastodon/features/ui/components/video_modal.js | ikuradon/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
src/www/js/components/view-row.js | training4developers/bootcamp_04112016 | import React from 'react';
export default props => <tr>
<td>{props.widget.name}</td>
<td>{props.widget.description}</td>
<td className='capitalize'>{props.widget.color}</td>
<td className='capitalize'>{props.widget.size}</td>
<td className='number'>{props.widget.quantity}</td>
<td>{props.widget.owner.name}</td>
... |
modules/experimental/AsyncProps.js | keathley/react-router | import React from 'react';
import invariant from 'invariant';
var { func, array, shape, object } = React.PropTypes;
var contextTypes = {
asyncProps: shape({
reloadComponent: func,
propsArray: array,
componentsArray: array
})
};
var _serverPropsArray = null;
function setServerPropsArray(array) {
inv... |
react-flux-mui/js/material-ui/src/DatePicker/CalendarActionButtons.js | pbogdan/react-flux-mui | import React, {Component, PropTypes} from 'react';
import FlatButton from '../FlatButton';
class CalendarActionButton extends Component {
static propTypes = {
autoOk: PropTypes.bool,
cancelLabel: PropTypes.node,
okLabel: PropTypes.node,
onTouchTapCancel: PropTypes.func,
onTouchTapOk: PropTypes.fu... |
examples/redirect-using-index/app.js | fanhc019/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
ajax/libs/amcharts4/4.10.18/.internal/core/interaction/InteractionObject.js | cdnjs/cdnjs | /**
* Interaction Object module
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { InteractionObjectEventDispatcher } from... |
ajax/libs/x-editable/1.4.5/jquery-editable/js/jquery-editable-poshytip.js | jessepollak/cdnjs | /*! X-editable - v1.4.5
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
ajax/libs/rxjs/2.3.17/rx.all.compat.js | tmorin/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... |
src/Parser/DestructionWarlock/Modules/Talents/ReverseEntropy.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main... |
old/stuff/vendor/fontawesome-free/js/brands.js | AlexFine/alexfine.github.io | /*!
* Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
(function () {
'use strict';
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = win... |
Emotion/Emotion.React-Native/Start/AzureEmotions/index.js | mkmann/techdays-hackathon | import React, { Component } from 'react';
import {AppRegistry, View, Text, StyleSheet } from 'react-native';
import Camera from 'react-native-camera'; //Camera component
import RNFetchBlob from 'react-native-fetch-blob'; //Library for fetching local files and sending bianry data
//variables for switching between back... |
ajax/libs/mobx/4.3.1/mobx.umd.min.js | cdnjs/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:... |
packages/material-ui-icons/src/MobileFriendlyOutlined.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="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zM7.01 13.47l-2.55-2.55-1.27 1.27L7 16l7.19-7.19... |
app/components/Login/index.js | rahsheen/scalable-react-app | /**
*
* Login
*
*/
import React from 'react';
import styles from './styles.css';
import validator from 'email-validator';
import TextInput from '../TextInput';
class Login extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes = {
login: React.PropTypes.func.isRequire... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.