path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
Examples/UIExplorer/AdSupportIOSExample.js | mchinyakov/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/components/Base.js | appbaseio-apps/gitxplore | import React, { Component } from 'react';
import {
ReactiveBase,
CategorySearch,
ResultCard,
MultiDropdownList,
RangeSlider,
SingleDropdownRange
} from '@appbaseio/reactivesearch';
import './Base.styl';
class Base extends Component {
constructor() {
super();
this.state = {
topics: [],
showNav: false
... |
src/routes.js | gerlocian/family-vault | 'use strict';
import React from 'react';
import App from './components/app.component';
import HomePage from './components/pages/home/home.page';
import AboutPage from './components/pages/about/about.page';
import {Route} from 'react-router-dom';
const Routes = (props) => (
<App>
<Route exact path="/" comp... |
src/app.js | javascriptiscoolpl/react-chart-line | import React from 'react';
import ReactDOM from 'react-dom';
import ChartLine from './react-chart-line.js';
// sample usage 1
/*
var chart = { msg: "", osX: [], osY: [] };
for (var i=0,x=-10; i<20; i++,x++) {
chart.osX[i] = x;
chart.osY[i] = Math.sin(x)-Math.tan(x);
}
ReactDOM.render(
<ChartLine data={chart}/>,... |
Libraries/Utilities/setAndForwardRef.js | arthuralee/react-native | /**
* 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.
*
* @format
* @flow
*/
'use strict';
import type {ElementRef, Ref} from 'react';
type Args = $ReadOnly<{|
getForwardedRef: () ... |
Swipe/src/lib/_jquery.1.9.1.min.js | ssylvia/census-county-population-change | /*! 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... |
docs/pages/getting-started/templates/pricing.js | kybarg/material-ui | import React from 'react';
import AppTheme from 'docs/src/modules/components/AppTheme';
import Pricing from 'docs/src/pages/getting-started/templates/pricing/Pricing';
export default function Page() {
return (
<AppTheme>
<Pricing />
</AppTheme>
);
}
|
ajax/libs/oojs-ui/0.17.0/oojs-ui.js | hare1039/cdnjs | /*!
* OOjs UI v0.17.0
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2016-04-26T21:34:01Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and s... |
stories/default-size/min-height.js | pionl/react-resizable-box | /* eslint-disable */
import React from 'react';
import Resizable from '../../src';
const style = {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
border: 'solid 1px #ddd',
background: '#f0f0f0',
};
export default () => (
<Resizable
style={style}
defaultSize={{
width: 200,
... |
packages/material-ui-icons/src/BorderInner.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 3h-2v8H3v2h8v8h2v-8h8v-2h-8V3zm6 18h2v-2h-2v2zm0-4... |
lib/components/report/__tests__/adjust-frequency.js | conveyal/scenario-editor | // @flow
import React from 'react'
import renderer from 'react-test-renderer'
import AdjustFrequency from '../adjust-frequency'
import {mockFeed, mockModification} from '../../../utils/mock-data'
describe('Report > AdjustFrequency', () => {
it('renders correctly', () => {
const props = {
feedsById: {'1':... |
client/components/boards/boardBody.js | gelojavonitalla/wekan | const subManager = new SubsManager();
BlazeComponent.extendComponent({
onCreated() {
this.draggingActive = new ReactiveVar(false);
this.showOverlay = new ReactiveVar(false);
this.isBoardReady = new ReactiveVar(false);
// The pattern we use to manually handle data loading is described here:
// ht... |
app/components/common/LineGraph/line-graph.js | builtwithluv/ZenFocus | import React from 'react';
import PropTypes from 'prop-types';
import {
CartesianGrid,
LineChart,
Line,
ResponsiveContainer,
Tooltip,
XAxis,
YAxis
} from 'recharts';
import { Themes } from 'enums';
import { getClockTime, twoDigits } from 'utils/countdown-timer.util';
const LineGraph = ({ data, theme })... |
Realization/frontend/czechidm-core/src/components/advanced/Form/EavContent.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import classnames from 'classnames';
import Immutable from 'immutable';
//
import * as Basic from '../../basic';
import * as Utils from '../../../utils';
import { DataManager, FormDefinitionManager, SecurityManager } f... |
src/icons/StrokeCentralization.js | ipfs/webui | import React from 'react'
const StrokeCentralization = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M86.61 70.57a4.75 4.75 0 0 0-5.43-3.94 4.68 4.68 0 0 0-2.83 1.59L55.44 58.8a4.51 4.51 0 0 0 0-1 4.88 4.88 0 0 0-.44-1.15l11.8-10.8a4.74 4.74 0 1 0-2.5-3.47 4.52 4.52 0 0 0 .43 1.3L53 54.44a4.66 4.66 ... |
src/components/MainHeader/MessageItem.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import Link from '../../utils/Link'
const MessageItem = ({href, imageUrl, title, time, message, onClick}) => {
return (
<li >
<Link href={href} onClick={onClick}>
<div className='pull-left'>
<img src={imageUrl} className='img-c... |
src/docs/ComponentPage.js | ibenavides/ps-react-ibenavides | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... |
js/src/dapps/dappreg/SelectDapp/selectDapp.js | pdaian/parity | // Copyright 2015, 2016 Ethcore (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 later version.... |
src/fields/autocomplete.js | fermuch/simple-react-form-bootstrap | import React from 'react';
import PropTypes from 'prop-types';
// import _ from 'underscore';
// import TextField from 'material-ui/TextField';
import {FormGroup, ControlLabel, HelpBlock} from 'react-bootstrap';
import Select from 'react-select';
// import 'react-select/dist/react-select.css';
const propTypes = {
op... |
src/ModalHeader.js | deerawan/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalHeader extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.closeButton &&
<button
cla... |
ajax/libs/rxjs/2.4.6/rx.compat.js | boneskull/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
ajax/libs/react/0.14.0-alpha2/react-with-addons.js | sashberd/cdnjs | /**
* React (with addons) v0.14.0-alpha2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="u... |
ajax/libs/clappr/0.0.2/clappr.light.js | icco/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]... |
src/components/FacebookLoginButton.js | yarikgenza/gainster | import React, { Component } from 'react';
import { Button, Text, Icon } from 'native-base';
import { LoginManager } from 'react-native-fbsdk'
import theme from '../themes';
export default class FacebookLoginButton extends Component {
handleFacebookLogin () {
LoginManager.logInWithReadPermissions(['public_profil... |
src/toolPages/tabTrashHistoryBase.js | kura52/sushi-browser | import process from './process'
import {ipcRenderer as ipc} from './ipcRenderer'
import localForage from "../LocalForage";
import uuid from 'node-uuid';
import React from 'react';
import ReactDOM from 'react-dom';
import path from 'path';
import moment from 'moment';
import {StickyContainer, Sticky} from 'react-sticky'... |
src/svg-icons/action/alarm-off.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6... |
js/components/Home/Logout.js | scaphold-io/react-relay-starter-kit | import React from 'react';
import Relay from 'react-relay';
import { hashHistory } from 'react-router';
import { NavItem } from 'react-bootstrap';
class Logout extends React.Component {
constructor(props) {
super(props);
this.logoutUser = this.logoutUser.bind(this);
}
logoutUser() {
localStorage.cl... |
src/components/show/bespoke.js | abbr/ShowPreper | import React from 'react'
import DeckStore from 'stores/deck'
import bespoke from 'bespoke'
import bespokeKeys from 'bespoke-keys'
import bespokeClasses from 'bespoke-classes'
import bespokeTouch from 'bespoke-touch'
import Global from './global'
import './bespoke.less'
import { autoScaleMixin } from 'components/mixins... |
ajax/libs/yui/3.17.1/scrollview-base/scrollview-base-coverage.js | ram-nadella/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollv... |
src/components/Icon.js | amiuhle/kasisto | import '../icons/back.svg'
import '../icons/check.svg'
import '../icons/close.svg'
import '../icons/history.svg'
import '../icons/loading.svg'
import '../icons/monero.svg'
import '../icons/settings.svg'
import React from 'react'
import { Link } from 'react-router-dom'
const className = ({ className } = {}, ...rest) =... |
src/client/SubmitLogAnalytics/components/HpcAuth/components/LoadSessionDropMenu.js | perillaroc/nwpc-operation-system-analytics-tool | import React, { Component } from 'react';
import PropTypes from 'prop-types'
import { Button, Dropdown, Menu } from 'antd';
export default class LoadSessionDropMenu extends Component{
handleLoadSessionClick(info){
// console.log("[LoadSessionDropMenu.handleLoadSessionClick] info:", info);
let session = in... |
src/components/dropdown/v2.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2017 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... |
src/browser/intl/SwitchLocale.js | redcom/doctori-romani-in-berlin | // @flow
import type { State } from '../../common/types';
import React from 'react';
import { Box, Button } from '../../common/components';
import { compose } from 'ramda';
import { connect } from 'react-redux';
import { setCurrentLocale } from '../../common/intl/actions';
type SwitchLocaleProps = {
currentLocale: s... |
ajax/libs/6to5/1.12.17/browser-polyfill.js | jessepollak/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... |
src/createRoutes.js | neighborhood999/redux-boilerplate | import React from 'react';
import { Route } from 'react-router';
import App from './containers/App';
import * as containers from './containers';
const {
CounterPage,
AnotherPage,
NotFoundPage,
} = containers;
/**
* /
* /another
**/
const createRoutes = (store) => ( // eslint-disable-line no-unused-vars
... |
blueocean-material-icons/src/js/components/svg-icons/notification/sd-card.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationSdCard.displayName = 'Notification... |
source/client/components/form/TextGroup.js | worminer/React.js-Financial-News | import React from 'react'
export default class TextGroup extends React.Component {
render () {
return (
<div className={'form-group ' + this.props.validationState}>
<label htmlFor={this.props.id} className='col-md-4 control-label'>{ this.props.label }: </label>
<div className='col-md-8'>
... |
ajax/libs/angular-google-maps/1.1.7/angular-google-maps.js | htmlstrap/cdnjs | /*! angular-google-maps 1.1.7 2014-07-09
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | summoners-riftodon/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import ImageLoader from './image_loader';
import classNames from 'classnames';
import { changeUploadCompose } from '../../../... |
examples/animations/app.js | malte-wessel/react-router | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router'
import './app.css'
class App extends React.Component {
render() {
return (
<div>
<ul>
... |
app/javascript/mastodon/features/list_timeline/index.js | d6rkaiz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnBackButton from '../../co... |
app/javascript/mastodon/features/ui/components/column_link.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Icon from 'mastodon/components/icon';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span... |
src/components/user-list-item.component.js | dyesseyumba/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View, TouchableHighlight } from 'react-native';
import { Icon } from 'react-native-elements';
import styled, { css } from 'styled-components';
import { colors, fonts, normalize } from 'config';
const ViewBorderContainer = styled... |
src/index.js | steeeeee/udemy-react-redux-blog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import promise from 'redux-promise'
import reducers from './reducers';
import routes from './routes';
const ... |
frontend/src/Settings/ImportLists/ImportLists/ImportLists.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import translate f... |
app/javascript/mastodon/components/modal_root.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
export default class ModalRoot extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
onClose: PropTypes.func.isRequired,
};
state = {
revealed: !!this.props.children,
};
activeElement = t... |
docs/src/draftComponents/Header/BlockHeader.js | gocreating/redux-draft | import React from 'react';
import Header from './Header';
import DraftEditorBlock from 'draft-js/lib/DraftEditorBlock.react';
let BlockHeader = ({
blockProps: { level = 1 }, ...rest
}) => (
<Header level={level}>
<DraftEditorBlock {...rest} />
</Header>
);
export default BlockHeader;
|
ajax/libs/react-instantsearch/4.0.0-beta.4/Dom.js | joeyparrish/cdnjs | /*! ReactInstantSearch 4.0.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.js | cfouant/katello | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Switch, Icon, FieldLevelHelp } from 'patternfly-react';
import './RecommendedRepositorySetsToggler.scss';
const RecommendedRepositorySetsToggler = ({
enabled,
className,
children,
help,
onChange,
.... |
src/_store/AppStateProvider.js | qingweibinary/binary-next-gen | import React, { Children, Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import LoadingView from '../loading-view/LoadingView';
import { appStateSelector } from '../_selectors/AppStateSelectors';
/**
* Note: The loading view is tightly coupled with the auto-signin flow of apps,
* If we r... |
src/svg-icons/av/pause.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPause = (props) => (
<SvgIcon {...props}>
<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/>
</SvgIcon>
);
AvPause = pure(AvPause);
AvPause.displayName = 'AvPause';
AvPause.muiName = 'SvgIcon';
export default AvP... |
js/components/card/card-header-and-footer.js | YeisonGomez/RNAmanda |
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, Card, CardItem, Text, Body, Left, Right, IconNB } from 'native-base';
import { Actions } from 'react-native-router-... |
app/webdav/client/addWebdavAccount.js | VoiSmart/Rocket.Chat | import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
import _ from 'underscore';
import toastr from 'toastr';
import { modal } from '../../ui-utils';
import { t } from '../../utils';
Template.addWebdavAccount.helpers({
btnAddNewServe... |
cmn_scrpts/bootstrap337/datatables/jQueryUI-1.11.4/external/jquery/jquery.js | rhomicom-systems-tech-gh/Rhomicom-ERP-Web | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/containers/Navigation/NavigationContainer.js | FCCColumbus/F3C_Website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import { Navigation } from 'components';
export class NavigationContainer extends Component {
constructor() {
super();
this.state = {
mobileActive: false,
links: [
... |
docs/app/Examples/collections/Table/Variations/TableExampleVeryPadded.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleVeryPadded = () => {
return (
<Table padded='very'>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>... |
test/MenuItemSpec.js | egauci/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
describe('MenuItem', () => {
it('renders divider', () => {
const instance = ReactTestUtils.renderIntoDocument(<Menu... |
src/aria/html/TextInput.js | ymeine/ariatemplates | /*
* Copyright 2012 Amadeus s.a.s.
* 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 i... |
ajax/libs/react-select/0.8.2/react-select.min.js | tonytomov/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Select=e()}}(function(){return function e(t,s,o){functi... |
src/svg-icons/communication/location-off.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6.5c1.38 0 2.5 1.12 2.5 2.5 0 .74-.33 1.39-.83 1.85l3.63 3.63c.98-1.86 1.7-3.8 1.7-5.48 0-3.87-3.13-7-7-7-1.98 0-3.76.83-5.04 2.15l3.19 ... |
src/routes/about/index.js | Nikhil22/trooper | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
app/routes/waste/CreateRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as Waste } from '../../entities/Waste';
import { Collection as WasteTypes } from '../../entities/WasteType';
import { PageHeader, Row, Col, Panel } from 'react-bootstrap';
import WasteForm from '../..... |
src/App.js | alexfigtree/CoreID | import React, { Component } from 'react';
import {
BrowserRouter as Router,
Route,
} from 'react-router-dom';
import Index from './Dashboard/index';
import Sandbox from './components/Sandbox';
import Profile from './components/Profile';
import Documents from './components/Documents';
import Signatures from '.... |
react/redux-start/react-redux-todos-review/src/components/Todo.js | kobeCan/practices | import React from 'react';
const Todo = ({ text, onClick, completed }) => (
<li onClick={ onClick } style={{ textDecoration: completed ? 'line-through' : 'none' }}>{ text }</li>
)
export default Todo |
docs/src/app/components/pages/components/GridList/ExampleComplex.js | mtsandeep/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
ajax/libs/yui/3.15.0/scrollview-base/scrollview-base-coverage.js | leecrossley/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollv... |
frontend/src/components/forms/fields/projectFields/agencyMembersFields/agencyReviewersField.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
import AutocompleteForm from '../../../autoCompleteForm';
import { mapValuesForSelectionField } from '../../../../../store';
import { loadAgencyReviewersForAutoComplete }... |
ajax/libs/yui/2.9.0/container/container.js | rigdern/cdnjs | /*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the implementer to
* maintain a list of local configuration properties and liste... |
es/index.js | heifade/quark-ui | import React$1, { Children, Component, PureComponent, cloneElement, createElement } from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function un... |
Libraries/Components/Navigation/NavigatorIOS.ios.js | vlrchtlt/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
integration/components/ExampleSet.js | wundery/wundery-ui-react | import React from 'react';
import { Headline } from 'wundery-ui-react/components/Headline';
function ExampleSet({ children, title }) {
return (
<div>
<Headline size="small" margin="2xb">
{title}
</Headline>
{children}
</div>
);
}
ExampleSet.propTypes = {
children: React.PropTyp... |
react_lifecycle_sample/index.android.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import setup from './setup'
AppRegistry.registerComponent('react_lifecycle_sample', () => setup);
|
index.js | rreusser/react-native-paged-scroll-view | 'use strict'
import React from 'react'
//Polyfill for Number.isNaN on Safari
//see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
Number.isNaN = Number.isNaN || function(value) {
return typeof value === "number" && isNaN(value);
}
function isPresent (datum) {
retu... |
src/svg-icons/av/web.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWeb = (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-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>
</SvgIcon>
);
AvWeb = pur... |
src/@ui/Header/Header.stories.js | NewSpring/Apollos | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import Header from '@ui/Header';
storiesOf('Header', module)
.add('renders', () => (
<Header titleText="Welcome!" />
));
|
packages/netlify-cms-core/src/components/Collection/CollectionSearch.js | netlify/netlify-cms | import React from 'react';
import styled from '@emotion/styled';
import { colorsRaw, colors, Icon, lengths, zIndex } from 'netlify-cms-ui-default';
import { translate } from 'react-polyglot';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
const SearchContainer = styled.... |
src/routes/contact/index.js | brytree/reach | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
test/test_helper.js | khanhhq2k/react-youtube-search-api | 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... |
app/javascript/mastodon/components/attachment_list.js | WitchesTown/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
export default class AttachmentList extends Immutabl... |
packages/react-scripts/template/src/App.js | GreenGremlin/create-react-app | import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
... |
client/src/components/view/container/Container.js | docker-manager/docker-manager-tool | import React from 'react'
import CopyToClipboard from '../../buttons/CopyToClipboard'
const renderContainerPorts = (containerPorts) => {
let ports = []
Object.keys(containerPorts).map(port => {
let containerPort = containerPorts[port], render = ''
if (containerPort.IP && containerPort.PublicPo... |
node_modules/react-material-icons/icons/maps/terrain.js | jotamaggi/react-calendar-app | 'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var MapsTerrain = React.createClass({
displayName: 'MapsTerrain',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M14 6l-3.... |
examples/redirect-using-index/app.js | andreftavares/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/redirect-using-index'
})
class App extends React.Component {
render() {
return (
<div>
{this.prop... |
node_modules/react-native/local-cli/generator/templates/index.ios.js | Helena-High/school-app | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
packages/mui-icons-material/lib/esm/ArrowRightAltSharp.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M16.01 11H4v2h12.01v3L20 12l-3.99-4v3z"
}), 'ArrowRightAltSharp'); |
test/PageHeaderSpec.js | laran/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageHeader from '../src/PageHeader';
describe('PageHeader', () => {
it('Should output a div with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<PageHeader>
<strong>Content</strong>
<... |
node_modules/react-icons/go/pencil.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoPencil = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30 2.5l-5 5 7.5 7.5 5-5-7.5-7.5z m-27.5 27.5l0 7.5 7.5 0 20-20-7.5-7.5-20 20z m7.5 5h-5v-5h2.5v2.5h2.5v2.5z"/></g>
</Icon>
)
export default GoPencil
|
src/js/func/FuncLog.js | mtford90/brio | import React from 'react';
export default class FuncLog extends React.Component {
render() {
return (
<a href="#"
ref="hyperlink"
className="log highlighted-tooltip"
dangerouslySetInnerHTML={{__html: this.props.highlight(this.props.content)}}/>
);
}
componentDidMount() {... |
packages/mui-icons-material/lib/esm/LandscapeOutlined.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16H5z"
}), 'LandscapeOutlined'); |
versions/v1/components/Debugger/Components/Renders/index.js | cerebral/cerebral-debugger-prototype | import React from 'react';
import {connect} from 'cerebral-view-react';
import styles from './styles.css';
function getTime(date) {
const hours = String(date.getHours()).length === 2 ? date.getHours() : '0' + date.getHours();
const minutes = String(date.getMinutes()).length === 2 ? date.getMinutes() : '0' + date.g... |
ElectronHelloWorld/renderer.js | dsuryd/dotnetify-react-demo | // This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
import React from 'react'
import ReactDOM from 'react-dom'
import HelloWorld from './HelloWorld.jsx'
import dotnetify from 'dotnetify';
dotnetify.h... |
src/components/Company/CompanyPageProvider.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import { createStructuredSelector } from 'reselect';
import { withProps, lifecycle, compose, setStatic } from 'recompose';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Switch, Route, Redi... |
simul/app/components/message.js | sf-red-pandas-2016/simul-react-native | import React, { Component } from 'react';
import I18n from 'react-native-i18n'
import {
StyleSheet,
Text,
View,
} from 'react-native';
import Home from './home.js'
class Message extends Component{
constructor(props) {
super(props);
this.state = {
user_Id: this.props.userId,
name: this.p... |
components/Modal/Modal.js | scott-riley/loggins | import React from 'react';
import ModalPortal from './ModalPortal';
export default React.createClass({
propTypes: {
className: React.PropTypes.string,
isOpen: React.PropTypes.bool.isRequired,
onRequestClose: React.PropTypes.func,
},
getDefaultProps() {
return {
isOpen: false,
classN... |
src/components/__tests__/thumbnail.spec.js | menthena/project-a | import React from 'react';
import { shallow } from 'enzyme';
import Thumbnail from '../thumbnail';
const render = ({
thumbnailURL = 'http://'
} = {}) => {
const props = {
thumbnailURL
};
return shallow(<Thumbnail {...props} />);
};
test('Should render the thumbnail', () => {
const component = render();... |
client/js/views/LoginView.js | nebrius/schat | /*
The MIT License (MIT)
Copyright (c) 2014 Bryan Hughes <bryan@theoreticalideations.com> (http://theoreticalideations.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, in... |
examples/src/components/CustomRender.js | range-me/react-select | import React from 'react';
import Select from 'react-select';
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {};
},
setValue (value) {
this.setState({ value });
console.log('Support level sel... |
wp-includes/js/jquery/jquery.js | goozmo/spring-ridge | /*! 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... |
node_modules/react-select/examples/src/components/ValuesAsNumbersField.js | Misterdjack/ask-the-principal | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
examples/js/cell-edit/demo.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import ClickToEditTable from './click-to-edit-table';
import DbClickToEditTable from './dbclick-to-edit-table';
import BlurToSaveTable from './blur-to-save-table';
import CellEditHookTable from './cell-edit-hook-table';
import NonEditableTable from './non-editable-tabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.