path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js | Place1/create-react-app-typescript | /**
* 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.
*/
import Rea... |
packages/material-ui-icons/src/RecordVoiceOverTwoTone.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 opacity=".3"><circle cx="9" cy="9" r="2" /><path d="M9 17c-2.69 0-5.77 1.28-6 2h12c-.2-.71-3.3-2-6-2z" /></g><path d="M9 13c2.21 0 4-1.79 4-4s-1.79-4-... |
packages/mineral-ui-icons/src/IconFiberPin.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 IconFiberPin(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps... |
ajax/libs/video.js/4.10.2/video.dev.js | Ryuno-Ki/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.
*
... |
packages/material-ui-icons/src/AirlineSeatReclineExtraTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0-2.74-1.08-2.96-2.54L4 7H2l1.99 9.76C4.37 19.2 6.47 21 8.94 21H16v-2zm.... |
ajax/libs/react-redux/3.0.0-alpha/react-redux.min.js | wil93/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu... |
packages/icons/src/dv/Database.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvDatabase(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 44c-9.465 0-17.144-2.56-17.144-5.715v-5.714c0-.496.25-.97.607-1.428 1.911 2.46 8.557 4.285 16.537 4.285 7.98 0 14.626-1.824 16.537-4.285.358.46.... |
lib/angular-1.1.5/angular-scenario.js | SmilingJoe/ui-router | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/containers/weather_list.js | peterussell/udemy-4-redux-wx | import React, { Component } from 'react';
import { connect } from 'react-redux';
import GoogleMap from '../components/google_map';
import Chart from '../components/chart';
class WeatherList extends Component {
renderWeather(cityData) {
const name = cityData.city.name;
const temps = cityData.list.map(weather... |
src/BookList.react.js | DhammaLuke/citybook | import React, { Component } from 'react';
import Panel from 'react-bootstrap/lib/Panel';
import Col from 'react-bootstrap/lib/Col';
import Button from 'react-bootstrap/lib/Button';
import ListGroup from 'react-bootstrap/lib/ListGroup';
import ListGroupItem from 'react-bootstrap/lib/ListGroupItem';
import { Link } from ... |
ajax/libs/rxjs/2.2.7/rx.lite.js | alexmojaki/cdnjs | // 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 &&... |
example/src/views/buttons_home.js | fengshanjian/react-native-komect-uikit | import Expo from 'expo';
import React, { Component } from 'react';
import { View, ScrollView, StyleSheet, Platform } from 'react-native';
import { Text, Button, Icon, SocialIcon, Card } from 'react-native-elements';
import colors from 'HSColors';
import socialColors from 'HSSocialColors';
import fonts from 'HSFonts';... |
es/components/Form/TextField.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import _extends from "@babel/runtime/helpers/builtin/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/builtin/objectWithoutProperties";
import _createClass from "@babel/runtime/helpers/builtin/createClass";
import _assertThisInitialized from "... |
Examples/UIExplorer/BorderExample.js | HSFGitHub/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,
... |
frontend/modules/list/components/AddItem.js | RyanNoelk/OpenEats | "use strict";
import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl, defineMessages } from 'react-intl'
import {
ENTER_KEY
} from '../constants/ListStatus'
class AddItem extends React.Component {
constructor(props) {
super(props);
this.state = {
title: '',
};
}
... |
modules/TransitionHook.js | omerts/react-router | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Spinner.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
type: PropTypes.string,
size: PropTypes.string,
color: PropTypes.string,
className: PropTypes.string,
cssModule: ... |
admin/client/App/screens/Home/components/Section.js | pr1ntr/keystone | import React from 'react';
import getRelatedIconClass from '../utils/getRelatedIconClass';
class Section extends React.Component {
render () {
const iconClass = this.props.icon || getRelatedIconClass(this.props.id);
return (
<div className="dashboard-group" data-section-label={this.props.label}>
<div class... |
HomeRange/app/pages/mine/vipcenter.js | Onlyjson/yanShu_Project | /**
* @author: zhangyh-k@glondon.com
* @description:
* @Date: 2017/10/9 下午3:40
*/
import React, { Component } from 'react';
import request from '../../utils/Request'
import config from '../../utils/Config'
import {Toast} from 'antd-mobile'
import {
AppRegistry,
StyleSheet,
AsyncStorage,
Text,
V... |
src/parser/warrior/arms/modules/features/Checklist/Module.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationR... |
ajax/libs/jquery/1.4.4/jquery.min.js | philipwalton/cdnjs | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/clappr/0.0.6/clappr.js | qrohlf/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
packages/material-ui-icons/lib/esm/FolderSharedOutlined.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-5-5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 ... |
client/js/app.js | charitycollective/charitytree | import React from 'react';
import { History } from 'react-router';
var LocalStorageMixin = require('react-localstorage');
import { loggedIn } from '../config/routes.js';
import {Navbar} from './navbar.js';
var App = exports.App = React.createClass({
displayName: 'App',
mixins: [History, LocalStorageMixin],
ge... |
test/components/SideMenu.spec.js | Byte-Code/lm-digitalstore | import React from 'react';
import { shallow } from 'enzyme';
import SideMenu, { Button } from '../../app/components/SideMenu';
describe('SideMenu', () => {
const result = shallow(
<SideMenu />
);
it('should initially render closed', () => {
expect(result.state('open')).toBe(false);
expect(result).t... |
ajax/libs/react-redux-form/1.0.9/ReactReduxForm.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","redux","react-dom"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux"),require("react-dom")... |
app/javascript/mastodon/components/permalink.js | Arukas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
assets/jqwidgets/demos/react/app/listbox/checkboxes/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myListBox.checkIndex(0);
this.refs.myListBox.checkIndex(1);
this.refs.myListBox.checkInde... |
index.js | afghl/dribble-demo | import 'babel-polyfill'
import './sass/main.scss'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<App />
<... |
packager/blacklist.js | Andreyco/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.
*/
'use strict... |
ajax/libs/jQRangeSlider/5.6.0/jQRangeSliderBar.min.js | stefanneculai/cdnjs | (function(b,c){b.widget("ui.rangeSliderBar",b.ui.rangeSliderDraggable,{options:{leftHandle:null,rightHandle:null,bounds:{min:0,max:100},type:"rangeSliderHandle",range:false,drag:function(){},stop:function(){},values:{min:0,max:20},wheelSpeed:4,wheelMode:null},_values:{min:0,max:20},_waitingToInit:2,_wheelTimeout:false,... |
src/app/navbar.js | m-vdb/m-vdb.github.io | import React, { Component } from 'react';
import { profileLinks } from './constants';
import mailIcon from '../img/mail.svg';
import githubIcon from '../img/github.svg';
import linkedinIcon from '../img/linkedin.svg';
class NavBar extends Component {
render() {
return (
<nav className="navbar navbar-link... |
src/animations/flip/app.js | SodhanaLibrary/react-examples | import React from 'react';
import './app.css';
import classNames from 'classNames';
export default class App extends React.Component {
constructor(props) {
super(props);
this.animate = this.animate.bind(this);
this.state = {
animate:false
}
}
animate() {
this.setState({
animate:... |
src/App.js | heikela/react-redux-immutable-trial | import React, { Component } from 'react';
import GraphComponent from './graph/Graph';
import { SeriesComponent, NaiveSeriesComponent } from './series/SeriesComponent';
import { Provider, connect } from 'react-redux';
import ControlButton from './ControlButton';
import { store } from './store';
import { setupDataStream... |
interface/modules/zend_modules/public/js/lib/jquery-1.8.0.min.js | ravian766/openemr | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/server.js | literarymachine/crg-ui | import React from 'react'
import { renderToString } from 'react-dom/server'
import path from 'path'
import express from 'express'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import template from './views/index'
import ... |
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/uploaddialog.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
import fs from 'graceful-fs'
const UploadDialog = ({source, path, actions}) => {
const onUploadClick = () => {
source.forEach((file) => {
if (fs.statSync(file).isDirectory()) {
actions.uploadFolder(path, file)
} else {
actions.uploadFile(pat... |
src/lib/components/form/Radio.js | lighter-cd/ezui_react_one | import React from 'react';
import injectSheet from 'react-jss';
import classNames from 'classnames';
const styles = theme => ({
radio: {
appearance: 'none',
position: 'relative',
width: theme.radioSizeOuter,
height: theme.radioSizeOuter,
border: `${theme.radioBorder} solid ${theme.radioUncheckBor... |
ajax/libs/babel-core/5.7.3/browser-polyfill.min.js | kiwi89/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
stories/Modal.stories.js | react-materialize/react-materialize | import React from 'react';
import { storiesOf } from '@storybook/react';
import Button from '../src/Button';
import Modal from '../src/Modal';
const stories = storiesOf('Javascript/Modal', module);
stories.addParameters({
info: {
text: `Use a modal for dialog boxes, confirmation messages, or other content that ... |
client/src/components/MailList-Form/MailList-Form.js | DillGromble/TNABT-org | import React, { Component } from 'react';
// import { findDOMNode } from 'react-dom';
import axios from 'axios';
import ReactTooltip from 'react-tooltip';
import './mail-list.css';
export default class MailListForm extends Component {
constructor(props) {
super(props);
this.state = { name: '', email: '', ... |
app/containers/Auth/controllers.js | balintsoos/app.rezsi.io | import React from 'react';
import Auth from 'containers/Auth';
export function AuthComponent(Component, controller) {
return (props) => (
<Auth controller={controller} {...props}>
<Component {...props} />
</Auth>
);
}
export function isLoggedInGroupLeader(Component) {
return AuthComponent(Compone... |
src/svg-icons/editor/format-line-spacing.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
src/mui/form/FormTab.js | RestUI/rest-ui | import React from 'react';
import FormField from './FormField';
const FormTab = ({ label, icon, children, ...rest }) => <span>
{React.Children.map(children, input => input && (
<div key={input.props.source} style={input.props.style}>
<FormField input={input} {...rest} />
</div>
))}
... |
src/components/tabbar/tabbar.js | vinej/react-portal | import React, { Component } from 'react';
import { observer } from "mobx-react";;
import { Link } from 'react-router';
import { tabbarStore } from '../../stores/tabbar_store';
import { dispatch } from '../../helpers/dispatcher';
import { tabbarClose, tabbarSelect } from '../../actions/tabbar_actions';
@observer
class ... |
examples/todomvc/containers/App.js | joshblack/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
app/components/main/MainHeaderCapture.js | sheldhur/Vector | // @flow
import { remote } from 'electron';
import { message, Button, Input, Modal, Icon } from 'antd';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import domToImage from 'dom-to-image';
import * as fs from 'fs';
const { dialog, BrowserWindow } = remote... |
app/javascript/mastodon/features/compose/components/upload_button.js | mimumemo/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
src/containers/Asians/_components/PublishedBreakRound/Ballots/LargeBallots/Instance/BallotInstance/TeamDisplay.js | westoncolemanl/tabbr-web | import React from 'react'
import ListSubheader from 'material-ui/List/ListSubheader'
import SpeakerDisplay from './SpeakerDisplay'
import Total from './Total'
export default ({
government,
breakRoom,
firstSpeaker,
secondSpeaker,
whipSpeaker,
replySpeaker,
govTotal,
oppTotal
}) =>
<div
className={... |
src/components/mock/FrontPage.js | tituomin/council-compass | import React from 'react';
import classNames from 'classnames';
import {Link} from 'react-router-dom';
export default function FrontPage({nextVote}) {
let caseLink = null;
if (nextVote) {
caseLink = <Link to={`/motion/${nextVote}`} className="f4 b link dim br-pill ph3 pv3 dib white bg-purple mt3 mt4-ns" href="... |
src/components/Html.js | jonirrings/react-stack | /**
* react-stack react-stack
*
* Copyright © 2016. JonirRings.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable react/no-danger */
import React from 'react';
import PropTypes from 'prop-types';
import { analytics ... |
app/containers/Mobile/index.js | CityOfZion/neon-wallet | // @flow
import { compose } from 'recompose'
import { connect } from 'react-redux'
import withThemeData from '../../hocs/withThemeData'
import Mobile from './Mobile'
import { showModal } from '../../modules/modal'
import { MODAL_TYPES } from '../../core/constants'
import withAuthData from '../../hocs/withAuthData'
co... |
packages/material-ui-icons/src/PrintRounded.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="M19 8H5c-1.66 0-3 1.34-3 3v4c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2h2c1.1 0 2-.9 2-2v-4c0-1.66-1.34-3-3-3zm-4 11H9c-.55 0-1-.45-1-1... |
demo/qiniudemo/qiniudemo/ueditor/third-party/highcharts/highcharts.src.js | binlyzhuo/travelling | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.6 (2013-10-04)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
src/pages/error/index.js | RyszardRzepa/React-Redux-Firebase-Boilerplate | import React from 'react';
import history from '../../history';
import Link from '../../components/Link';
import s from './styles.css';
class ErrorPage extends React.Component {
componentDidMount() {
document.title = this.props.error && this.props.error.status === 404 ?
'Page Not Found' : 'Error';
}
... |
src/index.js | SpongeComing/react-demo | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
templates/rubix/demo/src/routes/Editor.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelHeader,
PanelContainer,
} from '@sketchpixy/rubix';
class TrumbowygEditor extends React.Component {
componentDidMount() {
$(ReactDOM.findDOMNode(this._el)).trumbowyg({
autogrow: true,... |
src/client/mindmap/entry.react.js | dfogas/my-mindmap | import './mindmap.styl';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
import {msg} from '../intl/store';
import EntryLink from './link.react';
import links from '../links';
class Ent... |
app/assets/javascripts/components/story/AddStoryButton.js | Codeminer42/cm42-central | import React from 'react';
import PropTypes from 'prop-types';
const AddStoryButton = ({ onAdd }) => (
<button
className="btn btn-primary Column__btn-add-story"
onClick={onAdd}
>
<i className="mi md-light md-18 md-add">add</i>
{I18n.t('add story')}
</button>
);
AddStoryButton.propTypes = {
onA... |
frontend/src/components/common/Field.js | jf248/scrape-the-plate | import React from 'react';
import * as Enhanced from 'lib/mui-components';
import * as utils from 'utils';
Field.defaultProps = {
component: Enhanced.TextField,
};
function Field({
error: errorProp,
touched,
component: Component,
formatValue,
value: valueProp,
...rest
}) {
// Check error is not an ob... |
node_modules/react-icons/io/android-playstore.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidPlaystore = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m36 11.9c-1.5 16.7-1 24.4-1 24.4h-30.5s0.5-7.5-1-24.4h8.1c0-4.5 3.7-8.1 8.1-8.1s8.2 3.6 8.2 8.1h8.1z m-16.2-6.1c-3.4 0-6.1 2.7-6.1 6.1h12.1c0-3.4-2.7-6.1-6-6... |
examples/src/components/States.js | f-camacho/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
const STATES = require('../data/states');
var StatesField = createClass({
displayName: 'StatesField',
propTypes: {
label: PropTypes.string,
searchable: PropTypes.bool,
... |
example/examples/LabelKeyExample.react.js | Neophy7e/react-bootstrap-typeahead | import React from 'react';
import {Typeahead} from '../../src/';
/* example-start */
const LabelKeyExample = React.createClass({
render() {
return (
<Typeahead
labelKey={option => `${option.firstName} ${option.lastName}`}
options={[
{firstName: 'Art', lastName: 'Blakey'},
... |
ajax/libs/yui/3.11.0/simpleyui/simpleyui.js | joeylakay/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
plain/static/aloha/demo/boilerplate/js/libs/jquery-1.6.1.js | goodagood/gg | /*!
* jQuery JavaScript Library v1.6.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/icons/FavoriteIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FavoriteIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 42.7l-2.9-2.63C10.8 30.72 4 24.55 4 17 4 10.83 8.83 6 15 6c3.48 0 6.82 1.62 9 4.17C26.18 7.62 29.52 6... |
src/components/patches/index.js | ziagrosvenor/sound-machine | import React from 'react'
import {map, keys, values} from 'ramda'
import {GridList, GridTile} from 'material-ui/GridList';
import {ParamHeader} from '../param'
import { Grid } from '../shared/grid'
import { NavItem } from '../navigation/nav-item'
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
... |
packages/docs/pages/plugin/video/index.js | nikgraf/draft-js-plugin-editor | import React, { Component } from 'react';
// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import simpleExampleCode from '!!raw-loader!../../../components/Examples/video/SimpleVideoEditor';
// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line imp... |
src/svg-icons/editor/format-indent-increase.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
ajax/libs/jquery/1.8.3/jquery.js | adatapost/cdnjs | /*!
* 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(... |
ajax/libs/primereact/6.2.0/components/card/Card.js | cdnjs/cdnjs | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Card = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _ClassNames = require("../utils/ClassNames");
var _ObjectUtils = _interopRequireDefault(r... |
packages/react-server-test-pages/pages/navigation/common.js | lidawang/react-server | import _ from "lodash";
import {Component} from "react";
import {ReactServerAgent} from "react-server";
// Each row listens to `navigateStart'.
// Give ourselves some buffer.
require('events').EventEmitter.defaultMaxListeners = 128;
export const ROWS = _.range(32);
export function GET(row) {
const ms = row*16;
co... |
packages/material-ui-icons/src/AllInbox.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="M19 3H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6h-4c0 1.62-1.38 3-3 3s-3-1.38-3-3H5V5h14v4zm-4 7h6v3c0 1.1-.9 2-2... |
components/markers/index.js | ElemeFE/react-amap | // @flow
import React from 'react';
import { render } from 'react-dom';
import isFun from '../utils/isFun';
import log from '../utils/log';
import {
MarkerAllProps,
getPropValue,
renderMarkerComponent
} from '../utils/markerUtils';
if (typeof window !== 'undefined') {
const styleText = `.amap_markers_pop_windo... |
ImageCameraAlt.js | nodule/react-material-ui | module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/image/camera-alt": require('material-ui/svg-icons/image/camera-alt')
}
},
name: "ImageCameraAlt",
ports: {
input: {},
output: {
component: {
tit... |
src/App/Main/index.js | ruudthissen/CarSys-Solutions-Tool | import React from "react";
import { Header, Grid } from "semantic-ui-react";
export default class ListContainer extends React.Component {
render() {
return (
<div>
<Grid >
<Grid.Row>
Menu
</Grid.Row>
<Grid.Row>
Content
</Grid.Row>
... |
src/svg-icons/device/gps-not-fixed.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsNotFixed = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7... |
src/components/emptyTest.spec.js | kpuno/survey-app | import React from 'react';
import {shallow} from 'enzyme';
import HomePage from './HomePage';
describe('<HomePage />', () => {
it('should have a header called \'Home Page\'', () => {
const wrapper = shallow(<HomePage />);
const actual = wrapper.find('h2').text();
const expected = 'Home Page';
expect... |
src/client/tooltipPopup/tooltipPopup.react.js | sljuka/portfulio | import Component from '../components/component.react'
import React from 'react'
import {toggle} from './actions'
import {FormattedHTMLMessage} from 'react-intl';
export default class TooltipPopup extends Component {
handleClick() {
toggle(this.props.name)
}
render() {
const className = `tooltip-circle ... |
CompositeUi/src/views/layout/NotificationLayout.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/layout/_notification... |
app/javascript/mastodon/features/ui/components/column_subheading.js | dwango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
web/static/js/app.js | maxdec/cellar | // import { Socket } from "phoenix";
// let socket = new Socket("/ws")
// socket.connect()
// let chan = socket.chan("topic:subtopic", {})
// chan.join().receive("ok", chan => {
// console.log("Success!")
// })
import 'babel-polyfill';
import 'bootstrap-loader';
import '../css/app.scss';
import React from 'react';
... |
packages/react-scripts/fixtures/kitchensink/src/index.js | reedsa/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 from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
app/javascript/mastodon/features/ui/components/columns_area.js | Toootim/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeable from 'react-swipeable';
import HomeTimeline from '../../home_timeline';
import Notifications from '../../n... |
src/client/viewer.components/Viewer.Extensions/Viewing.Extension.PlantFactory/PropertyPieChart.js | jeremytammik/forgefader | import Toolkit from 'Viewer.Toolkit'
import PieChart from 'PieChart'
import React from 'react'
class PropertyPieChart extends React.Component {
/////////////////////////////////////////////////////////
//
//
/////////////////////////////////////////////////////////
constructor () {
super ()
}
////... |
ajax/libs/react-textarea-autosize/5.0.3/react-textarea-autosize.min.js | hare1039/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):e.TextareaAutosize=t(e.React,e.PropTypes)}(this,function(e,t){"use strict";function n(e,t){var n=arguments.length>2&&void 0!... |
node_modules/react-bootstrap/es/Glyphicon.js | newphew92/newphew92.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
client/src/components/modal/index.js | AlTavares/babos.ios-server | import React from 'react';
class ModalView extends React.Component {
render() {
return (
<div className="modal fade" id={this.props.id} tabIndex="-1" role="dialog" aria-labelledby="modalLabel">
<div className="modal-dialog" role="document">
<div className="m... |
dac/ui/src/index.js | dremio/dremio-oss | /* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-unused-vars */
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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... |
test/lib/convertToReact.js | yummies/core | import React from 'react';
import { expect } from 'chai';
import convertToReact from '../../lib/convertToReact';
describe('convertToReact', () => {
it('exist', () => {
expect(convertToReact).to.exist;
});
it('be a function', () => {
expect(convertToReact).to.be.a('function');
});
... |
packages/cp-frontend/src/components/messaging/warning.js | yldio/copilot | import React from 'react';
import PropTypes from 'prop-types';
import { Message } from 'joyent-ui-toolkit';
const WarningMessage = ({ title, message }) => (
<Message title={title} message={message} type="WARNING" />
);
WarningMessage.propTypes = {
title: PropTypes.string,
message: PropTypes.string.isRequired
};... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | kesha-antonov/react-native | import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
FlatList,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends Component {
s... |
src/svg-icons/image/camera-front.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraFront = (props) => (
<SvgIcon {...props}>
<path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.... |
packages/components/src/Enumeration/Items/Item/Item.component.js | Talend/ui | import React from 'react';
import classNames from 'classnames';
import { Button } from 'react-bootstrap';
import { withTranslation } from 'react-i18next';
import { removeDuplicates, allIndexOf } from './utils';
import Action from '../../../Actions/Action';
import theme from './Item.scss';
import Checkbox from '../../.... |
src/components/images/Upload.js | rokka-io/rokka-dashboard | import PropTypes from 'prop-types'
import React, { PureComponent } from 'react'
import Dropzone from 'react-dropzone'
import Promise from 'bluebird'
import rokka from '../../rokka'
import { updateUploadedImages } from '../../state'
import uploadIcon from '../../img/upload-icon.svg'
const UPLOAD_DEFAULT = 0
const UPLOA... |
ajax/libs/es6-shim/0.25.2/es6-shim.js | dhowe/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.25.2
* see https://github.com/paulmillr/es6-shim/blob/0.25.2/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/components/checkbox.js | LINKIWI/react-elemental | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withForwardedRef } from '@linkiwi/hoc';
import Spacing from 'components/spacing';
import Text from 'components/text';
import Check from 'icons/check';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/tra... |
ajax/libs/x-editable/1.4.5/bootstrap-editable/js/bootstrap-editable.js | brix/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/ember-data.js/0.0.12/ember-data.js | pzp1997/cdnjs | // Last commit: 6140f7d (2013-04-11 15:48:46 -0700)
(function() {
window.DS = Ember.Namespace.create({
// this one goes past 11
CURRENT_API_REVISION: 12
});
})();
(function() {
/**
* Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601>
* © 2011 Colin Snover <http://ze... |
src/components/AdminDocOrder.js | aurigadl/EnvReactAsk | import React from 'react'
import { Button, Select, Form } from 'antd';
const FormItem = Form.Item;
const ButtonGroup = Button.Group;
const Option = Select.Option;
const AdminDocDate = React.createClass({
render: function () {
const formItemLayout = {
labelCol: {
sm: { span: 6 },
},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.