target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
examples/react-native-vanilla/__tests__/index.ios.js | nfl/react-storybook | // This is the default file as put down by RN
/* eslint-disable */
import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.cre... |
files/rxjs/2.4.8/rx.lite.extras.compat.js | anilanar/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
src/client/pages/popular-repositories/PopularRepositories.js | developersdo/opensource | import React from 'react'
import DocumentTitle from 'react-document-title'
import { orderBy, each } from 'lodash'
import store from '~/store/store'
import Loading from '~/components/loading/Loading'
import RepositoryList from '~/components/repository-list/RepositoryList'
/**
* The PopularRepositories class object lis... |
react-client/src/components/prizes/EditPrizeForm.js | danieluy/radiocero_premios | import React, { Component } from 'react';
import { updatePrize } from '../../radiocero-api'
import session from '../../session'
import styles from '../../assets/styles'
import CustomDatePicker from '../custom-date-picker/CustomDatePicker'
import moment from 'moment';
import _ from 'lodash'
import Dialog from 'mate... |
src/DatePicker/DatePicker.js | Paratron/modoJS | import React from 'react';
import Button from '../Button';
import Card from '../Card';
import TextInput from '../TextInput';
import {dateToString} from '../utils/dateFormatter';
import MonthSelector from '../MonthSelector';
import Calendar from '../Calendar';
const propTypes = {};
const travelUp = (node, classNam... |
src/components/extensions/bosses/bosses.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import {extension_details} from "../../../globals/extension-details";
const Bosses = ({extension}) => {
const tableData = (wing, extensionUrl) => {
let extensionDetailsFromUrl = extension_details.filter(extensio... |
[3]. Demo_native/skin_demo/index.android.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class skin_demo extends Component {
render() {
return (
<View style={styles.container... |
packages/material-ui-icons/src/Cancel.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" /><path... |
lib/scripts/jquery/jquery.min.js | nbgmaster/wiki | /*! jQuery v1.11.1 | (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... |
ajax/libs/jquery.fancytree/2.9.0/jquery.fancytree.min.js | JimBobSquarePants/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.9.0
* @dat... |
src/Button.js | sevenleaps/react-components-sevenleaps | import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
};
const Button = ({ children, onClick, style = {} }) => (
<button
style={{ ...buttonStyles, ...style }}
onClick={onClick... |
Gulpfile.js | parroit/slush-react | 'use strict';
var gulp = require('gulp');
var loadPlugins = require('gulp-load-plugins');
var $ = loadPlugins({
lazy: true
});
var source = require('vinyl-source-stream');
var browserify = require('browserify');
gulp.task('test', ['browserify-test'], function() {
return gulp.src(['./web/runner.html' ])
... |
app/app.js | emiprandi/toggl | import React from 'react';
import ReactDOM from 'react-dom';
import Api from './services/api';
import DB from './services/db';
const api = new Api();
const db = new DB();
import Login from './components/Login';
import Loading from './components/Loading';
import Entries from './components/Entries';
import Timer from '... |
monkey/monkey_island/cc/ui/src/components/report-components/security/issues/HadoopIssue.js | guardicore/monkey | import React from 'react';
import CollapsibleWellComponent from '../CollapsibleWell';
export function hadoopIssueOverview() {
return (<li>Hadoop/Yarn servers are vulnerable to remote code execution.</li>)
}
export function hadoopIssueReport(issue) {
return (
<>
Run Hadoop in secure mode (<a
... |
a2b_satchmo/resources/js/jquery-1.4.2.min.js | Star2Billing/a2b-satchmo | /*!
* 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.
... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Shared/Message.js | dewmini/carbon-apimgt | import React from 'react'
import Snackbar from 'material-ui/Snackbar';
import IconButton from 'material-ui/IconButton';
import CloseIcon from 'material-ui-icons/Close';
import Info from 'material-ui-icons/Info';
import Error from 'material-ui-icons/Error';
import Warning from 'material-ui-icons/Warning';
class Messag... |
src/icons/Twitter.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
const Twitter = React.forwardRef(function Twitter(props, ref) {
const { size = 24, ...other... |
fields/types/html/HtmlField.js | stosorio/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId() {
return 'keystone-html-' + lastId++;
}
module.exports = Field.create({
... |
blueocean-material-icons/src/js/components/svg-icons/action/favorite.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionFavorite = (props) => (
<SvgIcon {...props}>
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/>
</S... |
information/blendle-frontend-react-source/app/modules/settings/components/SubscriptionFormContainer.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { sprintf } from 'sprintf-js';
import SubscriptionsManager from 'managers/subscriptions';
import SubscriptionsFormDialogue from 'components/dialogues/SubscriptionForm';
export default class extends React.Component {
static propTypes = {
provid... |
admin/client/components/ItemsTableDragDrop.js | nickhsine/keystone | import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { Sortable } from './ItemsTableRow';
import DropZone from './ItemsTableDragDropZone';
var ItemsTableDragDrop = React.createClass({
displayName: 'ItemsTableDragDrop',
propTypes: {
colum... |
app/javascript/src/pages/AppContainer.js | michelson/chaskiq | import React from 'react'
import Sidebar from '../components/sidebar'
import { Switch, Route, withRouter } from 'react-router-dom'
import { isEmpty } from 'lodash'
import { camelizeKeys } from '../actions/conversation'
import Dashboard from './Dashboard'
import Platform from './Platform'
import Conversations from './... |
ajax/libs/angular-google-maps/2.0.15/angular-google-maps_dev_mapped.js | vetruvet/cdnjs | /*! angular-google-maps 2.0.15 2015-03-10
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
ajax/libs/forerunnerdb/1.3.908/fdb-core+views.min.js | honestree/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... |
client/components/display-paintingDropdown.js | VaRt-io/V-aRt | import React from 'react';
const memory = 'http://www.artnewsblog.com/wp-content/uploads/2004/09/the-persistence-of-time.jpg';
const redFuji = 'https://data.ukiyo-e.org/aic/images/99027_512658.jpg';
const korea = 'https://upload.wikimedia.org/wikipedia/en/6/63/Picasso_Massacre_in_Korea.jpg';
const starry = 'https://ww... |
src/components/artist_list_item.js | n1ckp/spotmybands | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchArtistEvents, hideArtistEvents, showArtistEvents } from '../actions/index';
import AjaxLoader from '../../assets/images/ajaxloader.svg';
class ArtistListItem extends Component {
constructor(props) {... |
src/components/AdminPanelPage.js | EehMauro/dyscalculia-web | import React from 'react';
import Paper from 'material-ui/Paper';
import { withStyles } from 'material-ui/styles';
const styles = theme => ({
container: theme.mixins.gutters({
borderRadius: 0,
padding: 24,
marginBottom: 24
}),
containerNoPadding: {
borderRadius: 0,
padding: 0,
marginBotto... |
dispatch/static/manager/src/js/components/ArticleEditor/ArticleSidebar.js | ubyssey/dispatch | import React from 'react'
import { Tabs, Tab } from '@blueprintjs/core'
import BasicFieldsTab from './tabs/BasicFieldsTab'
import FeaturedMediaTab from '../Editor/tabs/FeaturedMediaTab'
import DeliveryTab from '../Editor/tabs/DeliveryTab'
import TemplateTab from '../Editor/tabs/TemplateTab'
import SEOTab from '../Edi... |
fixtures/kitchensink/template/src/features/syntax/ArraySpread.js | d3ce1t/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';
function load(users) {
return [
{ id: 1, name: '1' ... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | CharlesSanford/personal-site | 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'));
|
ajax/libs/polymer/0.5.5/polymer.js | fredericksilva/cdnjs | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
browser/app/js/components/BrowserDropdown.js | luomeiqin/minio | /*
* Minio Cloud Storage (C) 2016, 2017 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
life3/static/react/src/LifeCardCreator.js | BoraDowon/Life3.0 | import React from 'react';
import 'whatwg-fetch'
import ApiUtils from "./ApiUtils";
class LifeCardCreator extends React.Component {
constructor(props) {
super(props);
this.state = {
selected_type: null,
typed_message: '',
warning_message: ''
}
}
... |
packages/bonde-admin/src/mobrender/components/block-change-background.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { expect } from 'chai'
import { mountWithIntl } from '@/intl/helpers'
import BlockChangeBackground from '@/mobrender/components/block-change-background'
describe('@/mobrender/components/block-change-background', () => {
let changeBackground
... |
src/app/development/volume/HierarchicalSelect.js | cityofasheville/simplicity2 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { nest } from 'd3-collection';
import { ResponsiveNetworkFrame } from 'semiotic';
import { URLSearchParams } from 'react-router';
import Tooltip from '../../../shared/visualization/Tooltip';
import HierarchicalDropdown from './Hierarch... |
packages/material-ui-icons/src/SignalWifi1BarSharp.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 fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49... |
src/svg-icons/social/whatshot.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialWhatshot = (props) => (
<SvgIcon {...props}>
<path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.... |
server/sonar-web/src/main/js/apps/users/components/UsersAppContainer.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
app/recipes/list/index.js | lisakuli/la-vie | import React from 'react';
import { Link } from 'react-router';
import { Grid, Row, Col } from 'react-bootstrap';
import $ from 'jquery';
var ListRecipes = React.createClass({
getInitialState: function() {
return {
recipes: []
}
},
componentDidMount: function() {
$.ajax({
method: "GET",
url: "http:... |
packages/react/src/__tests__/ReactContextValidator-test.js | Simek/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
// This test doesn't really have a good home yet. I'm leaving it here since this
// behavior belongs to t... |
node_modules/redux-form/lib/__tests__/reduxForm.spec.js | qingege/react_draft | 'use strict';
var _noop2 = require('lodash/noop');
var _noop3 = _interopRequireDefault(_noop2);
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] = ... |
packages/hello-world-example/pages/Home.js | wangzuo/cxx | import React from 'react';
import Layout from '../components/layout';
export default () =>
<Layout titleTemplate="%s" title="Hello World Example">
<h1>Home</h1>
</Layout>;
|
lib/components/MapMarker.js | lelandrichardson/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ColorPropType,
StyleSheet,
Platform,
NativeModules,
Animated,
Image,
findNodeHandle,
ViewPropTypes,
View,
} from 'react-native';
import decorateMapComponent, {
SUPPORTED,
USES_DEFAULT_IMPLEMENTATION,
} from './decorateMapComp... |
ajax/libs/firebase/9.0.0-beta.7/firebase-auth-react-native.js | cdnjs/cdnjs | export*from"@firebase/auth-exp/react-native";
//# sourceMappingURL=firebase-auth-react-native.js.map
|
packages/material-ui-icons/legacy/SignalWifi2BarRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0L23.64 7z" /><path d="M4.79 12.52l5.65 7.04c.8 1 2.32 1 3.12 0l5.65-7.05C18.85 12.2... |
Sources/iCheap.WebApp/assets/admin/bower_components/flot.orderbars/examples/js/vendor/jquery-1.9.1.min.js | helldemons/iCheap | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
node_modules/react-icons/io/ios-thunderstorm.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosThunderstorm = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.5 21.3h3.1l-6.9 10 2.3-7.5h-4.1l1.2-6.3h5.6z m-5.4-5h8.3l-1.2 3.7h3.7l-2.6 3.8h1.5c2.8 0 5.1-2.4 5.1-5.2s-2.3-5.1-5.1-5.1h-0.6c-0.6-2.7-3-4.7-5.9-4.7-3.4 ... |
docs/app/Examples/elements/Divider/Types/DividerExampleVertical.js | clemensw/stardust | import React from 'react'
import { Grid, Segment, Divider } from 'semantic-ui-react'
const DividerExampleVertical = () => (
<Grid columns={3} relaxed>
<Grid.Column>
<Segment basic>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio.
</Segment>
</Grid.Column>
<Divider... |
ajax/libs/yui/3.8.1/datatable-core/datatable-core-debug.js | luanlmd/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
docs/src/app/components/pages/components/List/ExampleChat.js | spiermar/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import Avatar from 'material-ui/Avatar';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import CommunicationChatBubble from 'material-ui/svg-icon... |
src/svg-icons/image/looks.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1... |
test/InputSpec.js | jontewks/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Input from '../src/Input';
import Button from '../src/Button';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import Glyphicon from '../src/Glyphicon';
import {shouldWarn} from './helper... |
src/index.js | lnrd256/twitter_client | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import promise from 'redux-promise'
import App from './components/app';
import reducers from './reducers';
import {Router,browserHistory} from 'react-router';
import... |
ajax/libs/instantsearch.js/0.8.0/instantsearch.min.js | dhenson02/cdnjs | /*! instantsearch.js 0.8.0 | © 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... |
node_modules/browser-sync/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.7b2.js | Keats/invoicer | /*!
* jQuery JavaScript Library v1.7b2
* 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.
... |
src/svg-icons/hardware/phonelink-off.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelinkOff = (props) => (
<SvgIcon {...props}>
<path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-input-number/es/InputHandler.js | bhathiya/test | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inheri... |
docs/app/Examples/elements/Label/Types/LabelExampleHorizontal.js | clemensw/stardust | import React from 'react'
import { Label, List } from 'semantic-ui-react'
const LabelExampleHorizontal = () => (
<List divided selection>
<List.Item>
<Label color='red' horizontal>Fruit</Label>
Kumquats
</List.Item>
<List.Item>
<Label color='purple' horizontal>Candy</Label>
Ice Cr... |
src/components/Feedback/Feedback.js | soniwgithub/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.less';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedb... |
build/components/Logo.js | dkozar/raycast-dom | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: 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 ("... |
client/src/components/MessageList.js | kukiron/graphql-messaging-app | import React from 'react';
import AddMessage from './AddMessage';
const MessageList = (props) => {
const messages = props.messages;
return (
<div className="messagesList">
{ messages.map( message =>
(<div key={message.id} className={'message ' + (message.id < 0 ? 'optimistic' : '')}>
... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | Dreezydraig/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
docs/server.js | andrew-d/react-bootstrap | import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development = process.env.NODE_ENV !== 'p... |
js/components/inputgroup/rounded.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, IconNB, Item, Input } from 'native-base';
import { Actions } from 'react-native-router-flu... |
ajax/libs/yui/3.5.0pr2/event-custom-base/event-custom-base.js | khasinski/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
js/src/modals/ExecuteContract/executeContract.spec.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: 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
// (at your option) any lat... |
files/rxjs/2.4.3/rx.lite.compat.js | labsvisual/jsdelivr | // 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
};
v... |
src/js/react/presentational/icons/IconTrash.js | koluch/db-scheme | // @flow
import React from 'react'
import cn from 'bem-cn'
const bem = cn('icon')
class Button extends React.Component {
render() {
return (
<svg className={bem({'trash': true})} xmlns="http://www.w3.org/2000/svg" enableBackground="new 0 0 40 40" version="1.1" viewBox="0 0 40 40">
... |
src/svg-icons/device/access-alarm.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
ajax/libs/react-bootstrap/0.23.1/react-bootstrap.min.js | xymostech/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ... |
dist/boilerplate.js | timveretennikov/reactive-carousel | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["React"], factory);
else if(typeof exports === 'object')
exports["Boilerplate"] = fac... |
renderer/components/Onboarding/Steps/components/ErrorDialog.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Flex, Box } from 'rebass/styled-components'
import { FormattedMessage } from 'react-intl'
import Delete from 'components/Icon/Delete'
import { Dialog, Heading, DialogOverlay, Text, Button } from 'components/UI'
import messages from './messages'
cons... |
src/renderers/dom/client/__tests__/ReactMountDestruction-test.js | zorojean/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
src/Aevitas/LevisBundle/Resources/public/theme/scripts/jquery-validation/lib/jquery-1.5.2.js | CaoPhiHung/CRM | /*!
* jQuery JavaScript Library v1.5.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.
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | CivBase/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
ajax/libs/yui/3.18.0/event-focus/event-focus.js | mscharl/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* 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,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
packages/material-ui-icons/src/Adjust.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Adjust = props =>
<SvgIcon {...props}>
<path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 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 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3... |
client/extensions/woocommerce/app/store-stats/controller.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import page from 'page';
import { includes } from 'lodash';
import { moment, translate } from 'i18n-calypso';
/**
* Internal dependencies
*/
import AsyncLoad from 'components/async-load';
import StatsPagePlaceholder from 'my-sites/stats/stats... |
packages/material-ui-icons/src/Transform.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z" />
, 'Transform');
|
src/react.js | malte-wessel/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
javascript/components/Toasts/ToastBar.js | Gwash3189/elitebounty | import React, { Component } from 'react';
import { State } from './../../helpers/state.js'
import Toast from './Toast';
const map = ({ toast }) => {
return { toast }
}
export default class ToastBar extends Component {
render() {
return (
<div className='toast-bar'>
<State map={map} {...this.pro... |
app/javascript/mastodon/features/status/index.js | TootCat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import Immutable from 'immutable';
import EmbeddedStatus from '../../components/status';
import MissingI... |
client/src/components/SourceComponent.js | krzysztofkolek/github-bugtracker | 'use strict';
require('styles//Source.css');
import React from 'react';
import { connect } from "react-redux"
@connect((store) => {
return {
};
})
class SourceComponent extends React.Component {
propTypes: {
}
defaultProps: {
}
constructor(props) {
super(props);
}
render() {
return... |
packages/material-ui-icons/src/HotTubTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><circle cx="7" cy="6" r="2" /><path d="M17.42 7.21c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71l-.07-.07c-.57-.62-.82-1.41-.67-2... |
src/svg-icons/editor/format-textdirection-r-to-l.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionRToL = (props) => (
<SvgIcon {...props}>
<path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/>
</SvgIcon>
);
EditorFormatTextdirectionRTo... |
frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import MenuItem from 'Components/Menu/MenuItem';
class AddNotificationPresetMenuItem extends Component {
//
// Listeners
onPress = () => {
const {
name,
implementation
} = this.props;
this.props.onPress({
... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.js | SirenHound/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
app/javascript/mastodon/features/ui/components/modal_loading.js | ashfurrow/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
js/components/button/custom.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StatusBar } from 'react-native';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-nati... |
packages/material-ui-icons/src/GrainTwoTone.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="M18 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM18 16c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-... |
ajax/libs/react-router/0.11.3/react-router.min.js | tresni/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
src/app/modules/birthdays/components/Birthdays.js | kolabdigital/notification_demo | import React, { Component } from 'react';
import autobind from 'class-autobind';
import { Link } from 'react-router-dom';
const electron = window.require("electron");
const ipc = electron.ipcRenderer;
export default class Home extends Component {
constructor () {
super(...arguments);
autobind(this);
t... |
node_modules/react-bootstrap/lib/factories/Alert.js | mingnanwu/Angel-Hack-2015-EventRest | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Alert = require('../Alert');
var _Alert2 = _interopRequ... |
src/geolocation_picker.js | offenesdresden/annotieren | import React from 'react'
import Reflux from 'reflux'
import Dialog from 'react-md/lib/Dialogs'
import { Map, Marker, Popup, TileLayer } from 'react-leaflet'
export let actions = Reflux.createActions(['open', 'ok', 'cancel'])
const DEFAULT_LAT = 51.05455
const DEFAULT_LON = 13.74328
export default React.createClas... |
ajax/libs/analytics.js/1.5.4/analytics.min.js | gokuale/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... |
components/NavbarItems.js | amni/alanmni-portfolio |
import React from 'react'
import { config } from 'config'
import { rhythm } from 'utils/typography'
import { prefixLink } from 'gatsby-helpers'
class Navbar extends React.Component {
constructor(props) {
super(props);
}
render () {
return (
<li style = {{float:'left', width:"20%"}}><a styl... |
src/client/components/UserMenu.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Scrollbars } from 'react-custom-scrollbars';
import { FormattedMessage, FormattedNumber } from 'react-intl';
import './UserMenu.less';
class UserMenu extends React.Component {
static propTypes = {
onChang... |
packages/react-instantsearch-dom/src/components/__tests__/Pagination.js | algolia/react-instantsearch | import React from 'react';
import renderer from 'react-test-renderer';
import Enzyme, { mount } from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import Link from '../Link';
import Pagination from '../Pagination';
Enzyme.configure({ adapter: new Adapter() });
const REQ_PROPS = {
createURL: ()... |
packages/react-server-examples/code-splitting/components/Body.js | redfin/react-server | import React, { Component } from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default class Body extends Component {
constructor(props) {
super(props);
this.increment = () => {
this.setState({exclamationCount: this.state.exclamationCount + 1});
}
thi... |
src/components/Button.js | stuartkeith/micthing | import React from 'react';
import cn from '../utils/cn';
function Button({ children, disabled, isDown, onClick }) {
return (
<button
disabled={disabled}
className={cn(
'button-reset flex-none input-reset db pa0 bn border-box lh-solid w4 h2 outline-0 pointer',
disabled ? 'o-50' : null,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.