path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/client/components/UserProfile.js | avrj/slack-clone | import React from 'react'
import Person from 'material-ui/svg-icons/social/person'
import { string } from 'prop-types'
const UserProfile = ({ loggedUser }) => (
<div className='Padding1'>
<Person className='VerticalAlignMiddle' /> {loggedUser}
</div>
)
UserProfile.propTypes = {
loggedUser: string.isRequired... |
app/javascript/mastodon/components/avatar_composite.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.isRequired,
ani... |
src/components/Footer/Footer.js | mywentu/react-blog | import React from 'react'
import './Footer.scss'
const Footer = () => (
<footer>
<p>
<a href='https://www.ifajiao.com'>Fajiao</a>-
<i className='iconfont icon-copyright' />-
<span>{new Date().getFullYear()}</span>
</p>
</footer>
)
export default Footer
|
src/App/components/InfoMessage/index.js | hajjiTarik/SolarNews | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Icon } from 'react-native-elements';
const renderMessage = (type, message) => {
switch (type) {
case 'ERROR':
return (<View style={[styles.mainContainer, styles.errorContainer]}>
<Icon name='close-o' type='ev... |
internals/templates/containers/LanguageProvider/index.js | josh-butler/react-bp-demo | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
ajax/libs/webshim/1.15.5/dev/shims/moxie/js/moxie-swf.js | rigdern/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
app/static/javascript/vendor/jquery.min.js | jkevingutierrez/AutomaticBD | /*! jQuery v1.12.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,fu... |
src/pages/Home.js | Johj/cqdb | import React, { Component, } from 'react';
import {
Col,
Media,
Panel,
Row,
} from 'react-bootstrap';
import { imagePath, } from '../util/imagePath';
export default class Home extends Component {
render = () => {
return (
<Row>
<Col lg={12} md={12} sm={12} xs={12} style={{alignItems: 'cent... |
internals/templates/utils/injectSaga.js | dvm4078/dvm-blog | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
ajax/libs/react-modal/0.0.1/react-modal.min.js | samthor/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.ReactModal=e()}}(function(){return function e(t,n,r){... |
src/containers/skill-tree/SkillDetailView.js | phodal/growth-ng | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Text, View, ScrollView } from 'react-native';
import { Card, List, ListItem } from 'react-native-elements';
import * as shortid from 'shortid';
import SKILL_TREE_DATA from './SKILL_TREE_DATA';
import AppFonts from '../../theme/fonts... |
src/config/ImageFigure.js | EasonAndLily/ImagesManager | 'use strict';
require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
class ImageFigure extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
if(this.props.arRange.isCenter) {
thi... |
16/notes/src/pages/calendar/Calendar.js | nanohop/hop_into_react | import React, { Component } from 'react';
import SelectedDay from './SelectedDay';
import PrevMonth from './PrevMonth';
import NextMonth from './NextMonth';
import CurrentMonth from './CurrentMonth';
import Day from './Day';
import Timer from './Timer';
class Calendar extends Component {
state = {
date: new Da... |
packages/spust-koa/src/react/__tests__/RenderApp.js | michalkvasnicak/spust | // @flow
import path from 'path';
import React from 'react';
import test from 'supertest';
import ClientSideRender from '../ClientSideRender';
import Server from '../../Server';
import serve from '../../';
// assets function from Spust is working with this internally
// provide valid path, in your case see assets.js... |
demo/App.js | svangordon/react-chessdiagram | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Chessdiagram from '../src/chessdiagram.js';
import Chess from 'chess.js';
import './App.css';
const pieces = [
'R@a1', 'N@b1', 'B@c1', 'Q@d1', 'K@e1', 'B@f1', 'N@g1', 'R@h1',
'P@a2', 'P@b2', 'P@c2', 'P@d2', 'P@e2', 'P@f2', 'P@g2'... |
components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import { PhotoshopPicker } from 'react-color';
import React from 'react';
import {connectToStores} from 'fluxible-addons-react';
import {Button, Icon, Input, Popup, TextArea, Divider} from 'semantic-ui-react';
import NavigationPanel from './../NavigationPanel/NavigationPanel';
import... |
ajax/libs/forerunnerdb/1.3.14/fdb-all.min.js | sashberd/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/js/components/AppBar.js | joyouscob/Essence | 'use strict';
var React = require('react/addons'),
PubSub = require('../utils/PubSub');
module.exports = React.createClass({
displayName: 'AppBar',
mixins: [PubSub],
getInitialState: function() {
return {
children: []
};
},
componentDidMount: function () {
// Empty... |
src/components/layout/Loader.js | expositor/universal-react | import React, { Component } from 'react';
class Loader extends Component {
render() {
return (
<section className="loader">
<div className="ldr">
<div className="ldr-blk"></div>
<div className="ldr-blk an_delay"></div>
<div className="ldr-blk an_delay"></div>
<div className="ldr... |
ajax/libs/ag-grid/5.3.1/ag-grid.noStyle.js | x112358/cdnjs | // ag-grid v5.3.1
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["agGrid"] = factory();
e... |
jekyll-strapi-tutorial/api/plugins/upload/admin/src/components/PluginInputFile/index.js | strapi/strapi-examples | /**
*
* PluginInputFile
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import cn from 'classnames';
import styles from './styles.scss';
/* eslint-disable react/no-string-refs */
/* eslint-disable jsx-a11y/label-has-for */
/* eslint-disable react... |
docs/app/Examples/elements/Button/Variations/ButtonExampleCompact.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button } from 'shengnian-ui-react'
const ButtonExampleCompact = () => (
<div>
<Button compact>Compact</Button>
<Button>Normal</Button>
</div>
)
export default ButtonExampleCompact
|
node_modules/react-bootstrap/es/MediaHeading.js | CallumRocks/ReduxSimpleStarter | 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 ... |
lms/static/admin/js/jquery.min.js | TangXT/GreatCatMOOC | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/svg-icons/communication/live-help.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
admin/client/Signin/Signin.js | ONode/keystone | /**
* The actual Sign In view, with the login form
*/
import assign from 'object-assign';
import classnames from 'classnames';
import React from 'react';
import xhr from 'xhr';
import Alert from './components/Alert';
import Brand from './components/Brand';
import UserInfo from './components/UserInfo';
import LoginF... |
client/tests/app-test.js | VictoriousResistance/iDioma | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import App from '../components/App.jsx';
describe('app', function () {
it('renders without issues', function () {
const app = TestUtils.renderIntoDocument(<App/>);
expect(app).to.be.defined;
});
}); |
src/containers/About/About.js | zerkedev/zerke-app | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import { injectIntl, intlShape } from 'react-intl';
import { ZerkeIcon } from '../../components/Icons';
import { Activity } from '../../containers/Activity';
import {MarkdownElement} from '../../components/MarkdownElement';
import readM... |
web/src/js/__tests__/components/Header/FileMenuSpec.js | StevenVanAcker/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import { FileMenu } from '../../../components/Header/FileMenu'
global.confirm = jest.fn( s => true )
describe('FileMenu Component', () => {
let clearFn = jest.fn(),
loadFn = jest.fn(),
saveFn = jest.fn(),
openModalFn = je... |
src/layouts/CoreLayout/CoreLayout.js | nowavailable/TDAlloyUI | import React from 'react'
import Header from '../../components/Header'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header/>
<div className={classes.mainContainer}>
{children}
</div>
... |
ajax/libs/phaser/2.1.1/custom/p2.js | wallin/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* 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, including without limitation the rights
* to ... |
ajax/libs/angular-google-maps/1.0.4/angular-google-maps.js | iamJoeTaylor/cdnjs | /*
Author Nick McCready
Intersection of Objects if the arrays have something in common each intersecting object will be returned
in an new array.
*/
(function() {
_.intersectionObjects = function(array1, array2, comparison) {
var res,
_this = this;
if (comparison == null) {
compariso... |
test/test_helper.js | bestii/Blog-App-React-Redux-Route | 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/svg-icons/navigation/subdirectory-arrow-right.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... |
lib/cli/generators/REACT_SCRIPTS/index.js | nfl/react-storybook | const mergeDirs = require('merge-dirs').default;
const helpers = require('../../lib/helpers');
const path = require('path');
const fs = require('fs');
const latestVersion = require('latest-version');
module.exports = latestVersion('@storybook/react').then(version => {
mergeDirs(path.resolve(__dirname, 'template/'), ... |
src/utils/domUtils.js | blue68/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
examples/js/cell-edit/demo.js | neelvadgama-hailo/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... |
node_modules/react-router/es6/withRouter.js | dulik06/ReduxStarter | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
graphql/graphqlClient/index.android.js | kristoforusrp/tryout-01 | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
export default class graphqlClient extends Component {
constructor() {
super()
... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | joan17cast/Enigma | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
assets/react/src/components/task/mailbox_inbox.js | khoa-le/crontask | import React, { Component } from 'react';
import MailBoxItem from './task_item.js';
import ReactPaginate from 'react-paginate';
export default class MailBoxInbox extends Component {
constructor(props) {
super(props);
this.state = {
data: [],
offset: 0,
loading:f... |
ajax/libs/react-bootstrap/0.25.0-alpha.0/react-bootstrap.js | dlueth/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
public/jspm_packages/npm/react@0.14.7/lib/React.js | nayashooter/ES6_React-Bootstrap | /* */
'use strict';
var ReactDOM = require('./ReactDOM');
var ReactDOMServer = require('./ReactDOMServer');
var ReactIsomorphic = require('./ReactIsomorphic');
var assign = require('./Object.assign');
var deprecated = require('./deprecated');
var React = {};
assign(React, ReactIsomorphic);
assign(React, {
findDOMNod... |
src/views/header/HeaderRight/__tests__/HeaderRight.js | VirtualClub/vclub | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint-env jest */
import React from 'react';
import updeep from 'updeep';
import { shallow, mount } from 'enzyme';
import { shallowToJson } from 'enzyme-to-json';
import createStoreProvider from 'vclub/utils/test-utils/createStore... |
src/views/components/AudioPlayer.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import AudioStream from './AudioStream.js';
import fscreen from 'fscreen';
import './AudioPlayer.css';
const controlsHideDelay = 3000;
export class AudioPlayer extends React.Component {
constructor (props) {
super(props);
// Copying props to state h... |
src/RoyalRoad.WebUI/js/components/aurora/area/city.js | huytrongnguyen/royal-road | import React from 'react';
import ExtReact, { Route, Component } from '~/rext';
import CityView from './city.view'
@Route('/City/:areaId')
@Component({
stores: [ 'CitizenStore' ],
view: CityView
})
export default class Area {
loadData(comp) {
ExtReact.Ajax.request({
url: `/api/area/${comp.state.Id}`,
... |
src/svg-icons/navigation/close.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationClose = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
NavigationClose = pure(Navig... |
Realization/frontend/czechidm-core/src/content/task/DecisionButtons.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
/**
* WF buttons
*
* @author Vít Švanda
*/
class DecisionButtons extends Basic.AbstractContent {
constructor(props) {
super(props);
this.state = {
... |
JS Web/ReactJS/Intro to React/increment-counter/src/App.js | mitaka00/SoftUni | import React from 'react';
import logo from './logo.svg';
import './App.css';
import rerender from './index'
let counter=0;
const incrementCounter=()=>{
counter++;
rerender(Counter(),document.getElementById('root'))
};
const Counter=()=>(
<div className="App">
<header className="App-header">
... |
app/view/clip.js | ovekyc/textlogger | import React from 'react';
export default class Clip extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<div>{this.props.contents}</div>
<button onClick={()=>this.props.deleteLog(this.props.index)}> delete </button>
</div>
);
}
... |
test/SpecRunner.js | rlugojr/brackets | /*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* 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, including without limitation
* ... |
docs/app/Examples/views/Statistic/Variations/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Variations = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Horizontal Statistic'
descri... |
app_modules/ExternalLink/index.js | radubrehar/evanghelic.ro | import React from 'react';
import PropTypes from 'prop-types';
const ExternalLink = props => {
const size = props.iconSize || 18;
const color = props.color;
const style = { ...props.style };
if (color) {
style.color = color;
}
return (
<a target="_blank" {...props} style={style}>
<svg
... |
packages/material-ui-icons/src/RotateLeftTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M13 17.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91zM5.69 16.89l1.41-1.42c... |
packages/tracker/tracker.js | Ken-Liu/meteor | /////////////////////////////////////////////////////
// Package docs at http://docs.meteor.com/#tracker //
/////////////////////////////////////////////////////
/**
* @namespace Tracker
* @summary The namespace for Tracker-related methods.
*/
Tracker = {};
// http://docs.meteor.com/#tracker_active
/**
* @summar... |
Realization/frontend/czechidm-core/src/content/role/RoleFormAttributeTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import Joi from 'joi';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { RoleFormAttributeManager, FormAttributeMa... |
techCurriculum/ui/solutions/4.1/src/components/Title.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
client/components/statistics/statistics.js | caiokf/what-language | import React from 'react';
import NumberFormat from 'react-number-format';
import { connect } from 'react-redux';
import Icon from '../icons/icon';
import './statistics.sass';
class Statistics extends React.Component {
render() {
const peoplePercentage = (this.props.howManyPeople/this.props.totalPeople) * 100;
... |
node_modules/react-navigation/lib-rn/views/Header.js | RahulDesai92/PHR | 'no babel-plugin-flow-react-proptypes';
import React from 'react';
import { Animated, Platform, StyleSheet, View } from 'react-native';
import HeaderTitle from './HeaderTitle';
import HeaderBackButton from './HeaderBackButton';
import HeaderStyleInterpolator from './HeaderStyleInterpolator';
const APPBAR_HEIGHT = P... |
client/index.js | xxnatc/waste-not | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import reducers from './reducers';
import { Router, hashHistory } from 'react-router';
import routes from './router';
import reduxThunk from 'redux-thunk'... |
packages/material-ui-icons/src/EventBusySharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM21 3h-3V1h-2v2H... |
stories/textareaformgroup.stories.js | JimBarrows/Bootstrap-React-Components | import {action} from '@storybook/addon-actions'
import {storiesOf} from '@storybook/react'
import React from 'react'
import TextAreaFormGroup from '../src/formgroups/TextAreaFormGroup'
import TextFormGroup from '../src/formgroups/TextFormGroup'
import Panel from '../src/panels/Panel'
import PanelBody from '../src/pane... |
packages/material-ui-icons/src/CastConnectedSharp.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 fill="none" d="M0 0h24v24H0V0z" /><g><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 ... |
src/components/SocialForbidden.js | kpi-ua/ecampus.kpi.ua | import React from 'react';
const SocialForbidden = () => (
<div className="row">
<div className="col-md-12">
<h1>Авторизцiя неможлива</h1>
На жаль, авторизація через соціальні мережі недоступна.
<br />
Щоб мати можливість авторизуватися в системі «Електронний кампус» через
соціальні... |
src/svg-icons/action/flight-land.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
src/withSSR.js | i18next/react-i18next | import React from 'react';
import { useSSR } from './useSSR';
import { composeInitialProps } from './context';
import { getDisplayName } from './utils';
export function withSSR() {
return function Extend(WrappedComponent) {
function I18nextWithSSR({ initialI18nStore, initialLanguage, ...rest }) {
useSSR(in... |
src/components/RegistrationForm/RegistrationForm.js | arnarleifs/ps-react-arnar | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from '../TextInput';
import PasswordInput from '../PasswordInput';
/** Registration form with built-in validation. */
class RegistrationForm extends React.Component {
constructor(props) {
super(props);
this.state = {
user:... |
docs/app/Examples/elements/Loader/States/LoaderExampleIndeterminate.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react'
const LoaderExampleIndeterminate = () => (
<div>
<Segment>
<Dimmer active>
<Loader indeterminate>Preparing Files</Loader>
</Dimmer>
<Image src='/assets/images/wireframe/short-paragraph.png' />
... |
frontend/src/components/icons/Trash.js | webrecorder/webrecorder | import React from 'react';
function TrashIcon() {
return (
<svg width="8px" height="11px" viewBox="0 0 18 21" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-94.000000, -36.000000)" fill="#7B7B7B" stroke="none" strokeWidth="1" fillRule="evenodd">
<g transform="translate(... |
client/src/components/Auth/SignupForm.js | hutchgrant/react-boilerplate | import _ from 'lodash';
import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { Link, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import AuthField from './AuthField';
import authFields from './authFields';
import * as actions from '../../actions... |
src/components/StartDayView.js | IShin00biI/Ktulu | import React from 'react'
import {
Text,
View,
Button
} from 'react-native'
import { Top } from './index'
export const StartDayView = ({onMenu, statueHolder, onDuel, onSearch, duels}) => {
return (
<View>
<Top statueHolder={statueHolder} onMenu={onMenu} />
<Button title='Przejdź do pojedynku' o... |
server/sonar-web/src/main/js/apps/project-permissions/app.js | abbeyj/sonarqube | import $ from 'jquery';
import React from 'react';
import Main from './main';
import '../../helpers/handlebars-helpers';
function requestPermissionTemplates () {
return $.get(baseUrl + '/api/permissions/search_templates');
}
window.sonarqube.appStarted.then(options => {
requestPermissionTemplates().done(r => {
... |
app/pages/prescription/settingsCalculatorFormSteps.js | tidepool-org/blip | import React from 'react';
import { translate } from 'react-i18next';
import { FastField, useFormikContext } from 'formik';
import { Box, Flex } from 'rebass/styled-components';
import bows from 'bows';
import get from 'lodash/get';
import includes from 'lodash/includes';
import isEmpty from 'lodash/isEmpty';
import {... |
src/js/components/Layer/stories/Form.js | HewlettPackard/grommet | import React from 'react';
import { Add, Close } from 'grommet-icons';
import {
Box,
Button,
FormField,
Grommet,
Heading,
Layer,
Select,
TextArea,
TextInput,
} from 'grommet';
import { grommet } from 'grommet/themes';
const suggestions = ['alpha', 'beta'];
export const FormLayer = () => {
const ... |
platforms/ios/www/js/jquery-1.7.1.js | Perhpethua/Android-1.1 | /*!
* jQuery JavaScript Library v1.7.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.
... |
node_modules/react-router/es6/Router.js | tousif101/YouTube-Clone-React | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
app/javascript/mastodon/components/autosuggest_textarea.js | d6rkaiz/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
examples/flux-utils-todomvc/js/app.js | taylorhxu/flux | /**
* Copyright (c) 2014, 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
*/
'use s... |
packages/reactor-conference-app/src/calendar/Calendar.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Calendar_Days, Container, Panel } from '@extjs/ext-react';
import Event from '../event/Event';
import { loadEvent } from '../event/actions';
class Calendar extends Component {
constructor({ children }) {
super();
... |
client/src/containers/HistoryList/HistoryItem.js | silverstripe/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class HistoryItem extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
e.preventDefault();
if (typeof this.props.onClick === 'function') {
thi... |
fields/types/password/PasswordField.js | trentmillar/keystone | import React from 'react';
import Field from '../Field';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'PasswordField',
statics: {
type: 'Password',
},
getInitialState () {
return... |
examples/huge-apps/routes/Messages/components/Messages.js | wmyers/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
packages/material-ui-icons/src/EventSeatRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5.5 21c.83 0 1.5-.67 1.5-1.5V18h10v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V17c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v2.5c0 .83.67 1.5 1.5 1.5zM20... |
ajax/libs/forerunnerdb/1.3.691/fdb-core+views.js | CyrusSUEN/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/components/header.js | awebfactory/state-shape-designer | import React from 'react';
import { Link, IndexLink } from 'react-router';
const Logo = () => <div className="nav-home logo"><Link to="/"><img className="logo-img img-responsive" src="images/logo.png" /></Link></div>
const Nav = () => {
return (
<nav className="navbar navbar-default navbar-fixed-top">
... |
components/utils/testing.js | react-toolbox/react-toolbox | import React from 'react';
import TestUtils from 'react-dom/test-utils';
export default {
renderComponent(Component, props = {}, state = {}) {
const component = TestUtils.renderIntoDocument(<Component {...props} />);
if (state !== {}) { component.setState(state); }
return component;
},
shallowRender... |
Example/App.js | avishayil/react-native-user-avatar | import React from 'react';
import { StyleSheet, Text, View, ScrollView, Image } from 'react-native';
import UserAvatar from 'react-native-user-avatar';
export default function App() {
return (
<ScrollView contentInsetAdjustmentBehavior="automatic" style={styles.scrollView}>
<View style={styles.body}>
... |
ajax/libs/webshim/1.15.9/dev/shims/moxie/js/moxie-swf.js | KOLANICH/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
ui/webui/resources/js/cr/ui/list.js | SlimRemix/android_external_chromium_org | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// require: array_data_model.js
// require: list_selection_model.js
// require: list_selection_controller.js
// require: list_item.js
/**
* @fileove... |
test/containers/CounterPage.spec.js | lynks-p2p/lynks-client | import { expect } from 'chai';
import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import CounterPage from '../../app/containers/CounterPage';
import configureStore from '../../app/store/configureStore';
function setup(initialState) {
const store = configureStore(initi... |
ajax/libs/iCheck/1.0.1/demo/js/jquery.js | dickeyxxx/cdnjs | /*!
* jQuery v1.8.3 jquery.com | jquery.org/license
*/
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:... |
src/parser/monk/brewmaster/modules/spells/Guard.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StaggerFabricator from '../core/Stagge... |
Timeout/Timeout/Scripts/jquery-1.10.2.min.js | Sobieck00/Timeout | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
src/svg-icons/av/volume-down.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeDown = (props) => (
<SvgIcon {...props}>
<path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/>
</SvgIcon>
);
AvVolumeDown = pure(AvVolumeDown);
AvVolumeD... |
src/components/elements/TypeCaption/TypeCaption.js | 5rabbits/portrait | import React from 'react'
const TypeCaption = () =>
<span className="type-caption" />
export default TypeCaption
|
ajax/libs/F2/1.3.0/f2.no-bootstrap.js | icco/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
examples/auth/src/components/Login.js | lore/lore | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import Auth0 from 'auth0-js';
import ShowLoadingScreen from './ShowLoadingScreen';
export default createReactClass({
displayName: 'Login',
componentDidMount() {
const auth0 = new Auth0.WebAuth(lor... |
test/MediaBodySpec.js | dozoisch/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Media from '../src/Media';
describe('<Media.Body>', () => {
it('uses "div" by default', () => {
const instance = ReactTestUtils.renderIntoDocument(
<Media.Body />
);
assert.e... |
src/components/gameTimerComponent/gameTimerSmartComponent.js | craigbilner/quizapp | 'use strict';
import React from 'react';
import gameActions from '../../actions/gameActions';
export default class GameTimerSmartComponent extends React.Component {
constructor(props) {
super(props);
}
handleTimeChanged(newTime) {
gameActions.updateTime(newTime);
}
render() {
return (
<d... |
imports/ui/pages/EditDocument/EditDocument.js | lazygalaxy/lazybat-seed-meteorjs | import React from 'react';
import PropTypes from 'prop-types';
import { createContainer } from 'meteor/react-meteor-data';
import { Meteor } from 'meteor/meteor';
import Documents from '../../../api/Documents/Documents';
import DocumentEditor from '../../components/DocumentEditor/DocumentEditor';
import NotFound from '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.