path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/pages/index.js | asunny72/IdeaNation | import React from 'react'
import { Link } from 'gatsby'
import Helmet from 'react-helmet'
import Waypoint from 'react-waypoint'
import Layout from '../components/layout'
import Header from '../components/Header'
import Nav from '../components/Nav'
import badgePhoto from '../assets/images/badgePhoto.jpg'
import illusio... |
packages/reactor-kitchensink/src/examples/FormFields/CheckBoxField/CheckBoxField.js | sencha/extjs-reactor | import React from 'react';
import { FormPanel, CheckBoxField } from '@extjs/ext-react';
export default function CheckBoxFieldExample() {
return (
<FormPanel shadow layout={{type: 'vbox', align: 'left'}} bodyPadding="10">
<CheckBoxField boxLabel="Unchecked"/>
<CheckBoxField boxLabel=... |
app/components/main.js | 3cL1p5e7/crm.analytics | const css = <style>
.app {
background: steelblue;
color: white;
}
</style>
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Main extends Component {
render() {
return (
<div className="app">
<h1>Hello mazafaka</h1>
</div>
);
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/volume-off.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvVolumeOff = (props) => (
<SvgIcon {...props}>
<path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.7... |
src/dom/__tests__/Danger-test.js | tiagobarreto/react | /**
* Copyright 2013 Facebook, 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 applicable law or agreed to ... |
admin/client/App/screens/Item/components/FormHeading.js | xyzteam2016/keystone | import React from 'react';
import evalDependsOn from '../../../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
re... |
src/js/components/icons/base/Upload.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
packages/material-ui-icons/src/NotInterestedTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9L7.1 5.69C8.45 4.63 10.15 4 1... |
src/svg-icons/communication/location-on.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
examples/src/components/Virtualized.js | khankuan/react-select | import React from 'react';
import VirtualizedSelect from 'react-virtualized-select';
const DATA = require('../data/cities');
var CitiesField = React.createClass({
displayName: 'CitiesField',
getInitialState () {
return {};
},
updateValue (newValue) {
this.setState({
selectValue: newValue
});
},
render ... |
src/components/Article.js | jonatanramhoj/single-page | import React from 'react';
class Article extends React.Component {
render () {
const heading = this.props.heading;
const content = this.props.content;
const id = this.props.id + 1;
const animationClass = `animation-element--${id}`;
function icon (heading) {
if (heading === 'Concept') {
... |
packages/material-ui-icons/src/Battery20.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h10V5.33z" /></g>
, 'Battery20');... |
src/components/post/tools/fav.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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 License, o... |
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js | tdurocher/ian2 | /*! 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==... |
ajax/libs/yui/3.10.2/scrollview-base/scrollview-base-debug.js | SimeonC/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
src/server/middleware/app-render/app-render.middleware.js | dashukin/react-redux-template | import React from 'react';
import fse from 'fs-extra';
import { DIST_CLIENT_TEMPLATE } from 'config/environment';
import ReactDOMServer from 'react-dom/server';
import { ReportChunks } from 'react-universal-component';
import flushChunks from 'webpack-flush-chunks';
import isError from 'lodash/isError';
import map from... |
js/App/Components/Device/Common/VSetting.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
examples/backscatter/js/controller/application.js | tweinfeld/todomvc | import _ from 'underscore';
import Backbone from 'backbone';
import React from 'react';
import Main from '../view/main';
import SessionModel from '../model/session';
import UrlView from '../view/url';
export default (window) => {
// Create default session
let session = new SessionModel;
session.get('tasks... |
clients/packages/admin-client/src/components/form-util/input-counter.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { InputCounter } from '../../components/form-util';
describe('client/components/form-util/input-counter', () => {
let wrapper;
const props = {
dispatch: () => {},
};
... |
sites/default/tmp/hacked-cache-rito/hackedProjectWebFilesDownloader/module/jquery_update/7.x-2.3/jquery_update/replace/jquery/1.5/jquery.js | ruangrit/yuvabadtana | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/js/components/proverbs/list/ListPage.spec.js | FBDevCLagos/hiddenwisdom-react-js | import expect from 'expect';
import React from 'react'; // eslint-disable-line no-unused-vars
import {mount, shallow} from 'enzyme'; // eslint-disable-line no-unused-vars
import ListPage from './ListPage';
/**
* @return {Func} A shallow dom for tests
*/
function setup(status) {
let props = {
proverbs: {
1:... |
P/bucket/src/pages/BookAdd.js | imuntil/React | import React from 'react'
import BookEditor from '../components/BookEditor'
import { connect } from 'react-redux'
import { addBook } from '../reducers/book'
class BookAdd extends React.Component {
render () {
return (
<BookEditor {...this.props} />
)
}
}
const mapDispatchToProps = dispatch => {
re... |
ajax/libs/video.js/4.6.4/video.dev.js | tkirda/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
src/Navigation/Navigation.js | brz0/chart-suite | import React from 'react';
import ReactTooltip from 'react-tooltip';
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
export default class Navigation extends React.Component {
componentDidMo... |
src/parser/druid/feral/CHANGELOG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Anatta336 } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-03-06'),
changes: <>Added tracking of <SpellLink id={SPELLS.GUSHING_LACERATIONS_TRAIT.id} />.</>,
contributors: [Anat... |
packages/@lyra/form-builder/src/inputs/BlockEditor/nodes/InlineObject.js | VegaPublish/vega-studio | // @flow
import type {
BlockContentFeatures,
SlateValue,
Type,
SlateChange,
Marker
} from '../typeDefs'
import type {Node} from 'react'
import ReactDOM from 'react-dom'
import Base64 from 'slate-base64-serializer'
import React from 'react'
import {Block, Range} from 'slate'
import {isEqual} from 'lodash'
imp... |
src/svg-icons/places/pool.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesPool = (props) => (
<SvgIcon {...props}>
<path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78... |
manoseimas/compatibility_test/client/app/ResultsView/SimilarityMps/index.js | ManoSeimas/manoseimas.lt | import React from 'react'
import { connect } from 'react-redux'
import { expandTopics, selectFraction, showAllMps } from '../../../store/modules/mps_state'
import { getResults, setTab, saveAnswer } from '../../../store/modules/results'
import FractionsSelector from './FractionsSelector'
import ListOfMps from './ListOfM... |
src/svg-icons/maps/edit-location.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsEditLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-.... |
frontend/src/lib/react-virtualized-sticky-list/index.stories.js | jf248/scrape-the-plate | import React from 'react';
import { storiesOf } from '@storybook/react';
// import { action } from '@storybook/addon-actions';
// import { linkTo } from '@storybook/addon-links';
import StickyList from './index';
const ITEMS = [
{ text: 'apple', group: 'fruits' },
{ text: 'banana', group: 'fruits' },
{ text: 'g... |
src/index.js | rjbernaldo/expensetracker-react-redux | require('./lib/whatwg-fetch/fetch.js')
//require('./lib/kube-6.0.1/kube.min.css')
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import 'react-hot-loader/patch'
import React from 'react'
import ReactDOM from 're... |
client/routes.js | pucksME/BetterBackPacking | /* eslint-disable global-require */
import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './modules/App/App';
// require.ensure polyfill for node
if (typeof require.ensure !== 'function') {
require.ensure = function requireModule(deps, callback) {
callback(require);
... |
node_modules/react-icons/ti/flag.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiFlag = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.6 7.2c-0.6-0.3-1.3-0.1-1.8 0.4-2.1 2.1-5.5 2.1-7.6 0-3.4-3.4-9-3.4-12.4 0-0.3 0.3-0.5 0.7-0.5 1.1v21.7c0 0.9 0.8 1.7 1.7 1.7s1.7-0.8 1.7-1.7v-7.6c2.1-1.6 5.2-1.5 7.1... |
ajax/libs/rxjs/2.3.6/rx.lite.extras.js | carlsednaoui/cdnjs | // 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,
... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Applications/Details/NavTab.js | ChamNDeSilva/carbon-apimgt | import React, { Component } from 'react';
export default class BasicTabs extends React.Component {
constructor(props) {
super(props);
}
render(){
return (
<div>
<h3>BasicTabs</h3>
</div>
);
}
}
|
fields/types/textarray/TextArrayFilter.js | webteckie/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ label: 'Ends with', value: 'endsWith'... |
app/index.js | surrealroad/electron-react-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
import './app.global.css';
const store = configureStore();
render(
<AppContainer>
<Root store={s... |
app/react-icons/fa/shopping-bag.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaShoppingBag extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m39.2 31.4l0.8 7q0.1 0.6-0.4 1.1-0.4 0.5-1 0.5h-37.2q-0.6 0-1-0.5-0.5-0.... |
docs/src/pages/demos/selects/ControlledOpenSelect.hooks.js | Kagami/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/styles';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormControl';
import Select from '@material-ui/core/Select';
import Button from '@material-ui/... |
node_modules/react-icons/fa/mars.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaMars = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 2.9q0.5 0 1 0.4t0.4 1v9.3q0 0.3-0.2 0.5t-0.5 0.2h-1.5q-0.3 0-0.5-0.2t-0.2-0.5v-5.9l-8.5 8.6q2.8 3.5 2.8 8 0 2.6-1 5t-2.7 4.1-4.2 2.7-4.9 1-5-1-4.1-2.7-2.8-4.1-1-5 ... |
fiddles/react/fiddle-0008-ListComponent/src/App.js | bradyhouse/house | import React, { Component } from 'react';
import './App.css';
import Blog from './blog/Blog';
class App extends Component {
render() {
const posts = [
{id: 1, title: 'Hello World', content: 'Welcome to learning React!'},
{id: 2, title: 'Installation', content: 'You can install React from npm.'}
... |
Examples/UIExplorer/SegmentedControlIOSExample.js | lee-my/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,
... |
app/src/main/assets/jquery-1.5.1.min.js | projectbuendia/client | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
test/DropdownButtonSpec.js | simonliubo/react-ui | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import DropdownMenu from '../src/DropdownMenu';
import Button from '../src/Button';
describe('DropdownButton', function () {
let instance;
a... |
src/components/video_detail.js | peterjam28/ReduxSimpleStarter | import React from 'react'
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading ...</div>
}
const videoId = video.id.videoId
const url = `http://www.youtube.com/embed/${videoId}`
return (
<div className="video-detail col-md=8">
<div className="embed-responsive embed-responsive-... |
test.js | wbinnssmith/react-user-avatar | import UserAvatar from './index';
import React from 'react';
import ReactDOM from 'react-dom';
document.body.innerHTML = `
<link rel="stylesheet" href="example.css"></link>
<style>
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Open Sans","Helvetic... |
ajax/libs/antd/2.5.1/antd.min.js | brix/cdnjs | /*!
* antd v2.5.1
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.antd=... |
test/test_helper.js | devmoonsite/react-redux-simple-counter | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/Elements/Tooltip/index.js | jmikrut/keen-2017 | import React from 'react';
import './Tooltip.css';
export default (props) => {
let className = props.className ? `tooltip ${props.className}` : 'tooltip';
return (
<aside className={className}>
{props.children}
<span></span>
</aside>
);
} |
ajax/libs/6to5/2.2.0/browser.js | dominic/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... |
src/components/Events/Events.js | softwareniagara/softwareniagara.com | import React from 'react'
import BlankSlate from './BlankSlate'
import EventCard from '../EventCard'
import StyledEvents, {
StyledLink,
StyledList,
StyledListItem
} from './Events.css'
export default ({ events = [] }) => {
if (!events.length) {
return <BlankSlate>No events yet. Check back soon.</BlankSlat... |
frontend/src/components/pages/journal/Terms.js | pahomovda/victorious-pirate | import React from 'react';
import reactMixin from 'react-mixin';
import ReactFireMixin from 'reactfire';
import Highlighter from 'components/Highlighter';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Subheade... |
ajax/libs/react-popper/0.6.0/react-popper.js | cdnjs/cdnjs | /*!
* React Popper 0.6.0
* https://github.com/souporserious/react-popper
* Copyright (c) 2017 React Popper Authors
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'f... |
app/javascript/mastodon/features/ui/components/actions_modal.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
react/features/base/components/participants-pane-list/ListItem.js | jitsi/jitsi-meet | // @flow
import { makeStyles } from '@material-ui/styles';
import clsx from 'clsx';
import React from 'react';
import { ACTION_TRIGGER } from '../../../participants-pane/constants';
import { isMobileBrowser } from '../../environment/utils';
import participantsPaneTheme from '../themes/participantsPaneTheme.json';
ty... |
src/App.js | carlos-contreras/my-react-cv | import React, { Component } from 'react';
import Header from './components/Header';
import Section from './components/Section';
import sections from './objects/sections';
import './App.css';
const sectionCollections = sections.map(function(section, index) {
return (<Section title={section.title} items={section.items... |
ajax/libs/react-dom/16.3.0/cjs/react-dom-unstable-native-dependencies.development.js | seogi1004/cdnjs | /** @license React v16.3.0
* react-dom-unstable-native-dependencies.development.js
*
* Copyright (c) 2013-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.
*/
'use strict';
if (process.env.NODE_ENV !== "produc... |
ajax/libs/es6-shim/0.21.0/es6-shim.js | MMore/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.21.0
* see https://github.com/paulmillr/es6-shim/blob/master/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
js/bggutilities/src/PlayerInfo.js | PeterThorsen/bggUtilities | import React, {Component} from 'react';
import "./Main.css";
class PlayerInfo extends Component {
render() {
let player = this.props.player;
return <div>
<h1>{player.name} </h1>
<div className="main-standard-description">
<div className="main-description-colo... |
packages/mineral-ui-icons/src/IconFormatTextdirectionRToL.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFormatTextdirectionRToL(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Ico... |
src/containers/board/ShowReplies.js | jvallexm/message-board | import React from 'react';
import HandleDelete from './HandleDelete.js';
import PostReply from './PostReply.js';
import Flag from './HandleFlag.js';
export default class ShowReplies extends React.Component{
constructor(props)
{
super(props)
{
this.state = {
replyingTo: undefined,
repl... |
ee/client/omnichannel/additionalForms/MaxChatsPerAgent.js | VoiSmart/Rocket.Chat | import { NumberInput, Field } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
const MaxChatsPerAgent = ({ values, handlers }) => {
const t = useTranslation();
const { maxNumberSimultaneousChat } = values;
const { handleMaxNum... |
browser/app/js/components/SettingsModal.js | dvstate/minio | /*
* Minio Cloud Storage (C) 2016 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 applicable law... |
my-redux-notes/my-react-redux/src/component/Button/Button.js | wumouren/react-demo | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../redux';
class Button extends Component {
changeContext(type, value){
const { dispatch } = this.props;
dispatch({
type: type,
head: value
});
}
render() {
return (
<div cl... |
ajax/libs/material-ui/4.11.1/esm/utils/createSvgIcon.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import SvgIcon from '../SvgIcon';
/**
* Private module reserved for @material-ui/x packages.
*/
export default function createSvgIcon(path, displayName) {
var Component = function Component(props, ref) {
return /*#__PURE__*/R... |
sites/default/files/js/js_sglfWVOe0fdlTmXmnCaGl8VgCQPUqJS_S9h-lJDNX4c.js | anandtoshniwal/D8-training | /*! jQuery v2.2.4 | (c) jQuery Foundation | 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 window?window:this,fun... |
src/CardSearch2.js | PAK90/cardcrunch | import React from 'react';
import ReactDOM from 'react-dom';
import {Button, IconButton} from 'react-toolbox/lib/button';
import style from './style';
import Autosuggest from 'react-autosuggest';
var VelocityTransitionGroup = require('velocity-react/velocity-transition-group.js');
var VelocityComponent = require('velo... |
ajax/libs/yui/3.8.0/datatable-body/datatable-body.js | senekis/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
src/interface/common/DragScroll.js | sMteX/WoWAnalyzer | /**
* Created by joe on 16/9/2.
* Source: https://raw.githubusercontent.com/qiaolb/react-dragscroll/master/src/DragScroll.jsx
* This was cleaned up. A lot.
*/
import React from 'react';
import PropTypes from 'prop-types';
class DragScroll extends React.PureComponent {
static propTypes = {
children: PropType... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | mxw0417/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const ContactsSectionItem = React.createClass({
propTypes: {
contact: React.PropTypes.object
},
mixins: [... |
packages/material-ui-icons/src/Brightness3.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Brightness3 = props =>
<SvgIcon {...props}>
<path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z" />
</SvgIcon>;
Brig... |
lib/Components/Current/Current.js | francylang/weathrly | import React from 'react';
import './Current.css';
const Current = (props) => {
return (
<div className={`mobileCard ${props.colors}`}>
<div className="topCard">
<h1 className="city">{props.weather.location}</h1>
<h2 className="currentTemp">
{props.weather.current... |
ajax/libs/react/0.13.0-beta.1/react.js | underyx/cdnjs | /**
* React v0.13.0-beta.1
*/
!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()}}(function(... |
node_modules/auth0-lock/lib/engine/classic/login.js | jderiz/WebApp | 'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _screen = require('../../core/screen');
var _screen2 = _interopRequireDefault(_screen);
var _social_buttons_pane = require('../../field/social/social_buttons_pane');
var _social_buttons_pane2... |
react/src/components/dashboard/settings/settings.sweepKeysPanel.js | pbca26/EasyDEX-GUI | import React from 'react';
import translate from '../../../translate/translate';
import { connect } from 'react-redux';
import {
copyString,
apiElectrumListunspent,
apiElectrumSweep,
apiGetRemoteTimestamp,
triggerToaster,
} from '../../../actions/actionCreators';
import addCoinOptionsCrypto from '../../addcoi... |
venv/lib/python2.7/site-packages/werkzeug/debug/shared/jquery.js | nwokeo/supysonic | /*! 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/pages/index.js | vasco3/Oracul | /**
* Created by Jorge Cuadra on 12/3/16.
*/
import * as Utils from '../utils';
import { make as Eye } from '../components/Eye.bs';
import Head from 'next/head';
import { make as Instructions } from '../components/Instructions.bs';
import KeyCodes from '../constants/key-codes';
import Modes from '../constants/modes'... |
docs/CTA.js | jxnblk/cxs | import React from 'react'
import Flex from './Flex'
import Box from './Box'
import Heading from './Heading'
import Text from './Text'
import Button from './Button'
const CTA = () => (
<section id='cta'>
<Box mt={6} mb={6}>
<Heading>
Documentation
</Heading>
<Text mb={4}>
Read th... |
src/react/containers/App.js | suranartnc/isomorphic-react-redux-tutorial | import React from 'react';
import Helmet from 'react-helmet';
import Header from '../components/Header';
import Footer from '../components/Footer';
const App = (props) => {
return (
<div className="container">
<Helmet title="Isomorphic React Redux Tutorial" />
<Header />
<div>
{ props.children }
</... |
misc/tabledrag.js | johnnywo/wohngesund-v2 | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
node_modules/react/lib/ReactComponent.js | simonhildebrandt/redact | /**
* Copyright 2013-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.
*
* @providesModu... |
src/scripts/components/TextareaAutoSize.react.js | lkarthee/react-materializecss | 'use strict';
var React = require('react');
var objectAssign = require('object-assign');
var TextareaAutosize = React.createClass({
displayName: 'TextareaAutosize',
render: function() {
var props = objectAssign({}, this.props, {
onChange: this.onChange,
style: objectAssign({}, this.props.style, {... |
src/svg-icons/maps/add-location.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsAddLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/>
</SvgIcon>
);
MapsAddLocation = pure(Map... |
node_modules/material-ui/lib/svg-icons/action/turned-in-not.js | aykutyaman/meteor1.3-react-flowrouter-demo | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
ajax/libs/shariff/1.4.2/shariff.min.js | nareshs435/cdnjs |
/*
* shariff - v1.4.1 - 28.11.2014
* https://github.com/heiseonline/shariff
* Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){... |
node_modules/react-native/RNTester/js/ButtonExample.js | RahulDesai92/PHR | /**
* 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
* ... |
react-ui/src/components/TopNavbar/TopNavbar.js | hokustalkshow/find-popular | import React, { Component } from 'react';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
import {connect} from 'react-redux';
import FaCodepen from 'react-icons/fa/codepen';
import FaGithub from 'react-icons/fa/g... |
src/containers/thumbnaillist/index.js | MichaelQQ/Gallery | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ThumbnailContainer from '../thumbnailContainer';
const mapStateToProps = (state) => ({
thumbnailId: state.thumbnailId,
});
export const ThumbnailList = ({ ...props }) => {
const { thumbnailId = [] } = pro... |
src/components/graphs/BarChart/BarChart.js | TheKooxd/cat-analytics-dashboard | import React from 'react';
import {Bar} from 'react-chartjs';
export default class Placeholder extends React.Component {
render() {
let propData = this.props.data;
let chartData = {
labels: ["Best In Show", "Nominated", "Kunniamaininta", "Värin Paras", "Poissaolo", "Excellent-arvostely", "Supreme Champ... |
app/javascript/mastodon/features/ui/components/video_modal.js | Chronister/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
m... |
app/components/grid/InputCell.js | sheldhur/Vector | import React, { Component } from 'react';
import { Input, Icon, Popconfirm } from 'antd';
import HighlightValue from './HighlightValue';
const ESCAPE_KEY = 27;
class InputCell extends Component {
state = {
value: this.props.value,
editable: false,
isSaved: false,
error: false
};
componentWillR... |
node_modules/grunt-react/node_modules/react-tools/src/browser/eventPlugins/__tests__/ResponderEventPlugin-test.js | boyers/hamlit | /**
* 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... |
files/firebase/3.6.1/firebase.js | MadhavBitra/jsdelivr | /*! @license Firebase v3.6.1
Build: 3.6.1-rc.3
Terms: https://firebase.google.com/terms/
---
typedarray.js
Copyright (c) 2010, Linden Research, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softw... |
ajax/libs/ionic/0.9.27/js/ionic.js | vuonghuuphuc/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.27
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
// Create namespaces
//
window.ion... |
src/pages/main/MainPage.js | TimothyBom/react-redux-instagram | import React from 'react'
import { connect } from 'react-redux'
import { getPostByFollow } from '../../actions/post'
import NavbarLayout from '../../components/layout/NavbarLayout'
import PostList from './PostList'
class MainPage extends React.Component {
componentWillMount() {
this.props.getPostByFollow(t... |
files/rxjs/2.2.7/rx.lite.compat.js | jgravois/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/components/NavLink.js | jonatanramhoj/single-page | import React from 'react';
import ReactDOM from 'react-dom';
import NavLinkIcon from '../../src/components/NavLinkIcon';
import { scrollToSection } from '../helpers';
class NavLink extends React.Component {
render () {
const href = this.props.href;
const label = this.props.label;
return (
<a
... |
client/src/App.js | ryannewman2828/Food-Website | import React, { Component } from 'react';
import './App.css';
class App extends Component {
state = {users: []}
componentDidMount() {
fetch('/users')
.then(res => res.json())
.then(users => this.setState({ users }));
}
render() {
return (
<div className="App">
<h1>Users</h1>... |
src/Questions/ui/QuestionCard.js | techmsi/mental-health-app | import React from 'react';
import { QuestionShell } from 'Questions/ui/styles-Questions';
import { ChoiceListConnect } from 'Choices/ui/dynamicRoutes';
export const QuestionCard = props => {
const { id, label, answered = false } = props;
const answeredStyle = answered ? ' answered' : '';
return (
<Questio... |
src/svg-icons/communication/mail-outline.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/>
</SvgIcon>
)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.