path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
public/src/components/Header.js | alexisbellido/node-tests | import React from 'react';
const Header = (props) => {
return (
<header className="top">
<h1>Catch of the Day</h1>
<h3 className="tagline">{props.tagline}</h3>
</header>
)
}
export default Header;
|
src/Button/Button.spec.js | resmio/mantecao | import React from 'react'
import renderer from 'react-test-renderer'
import Button from './Button'
const ON_CLICK_ACTION = jest.fn()
describe('Button Component', () => {
it('renders properly with color prop', () => {
const tree = renderer
.create(<Button color="lemonchiffon">whatup</Button>)
.toJSON... |
src/containers/NewCampaign/Amount/BuyItem.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { Breadcrumb, NewCampaginMenu } from 'components';
import { SplitButton, MenuItem } from 'react-bootstrap';
export default class ByItem extends Component {
render() {
const styles = require('./newCampaign.scss');
retu... |
webpack.config.js | NdYAG/react-rater | const path = require('path')
const webpackModule = {
rules: [{
test: /\.js$/,
use: {
loader: 'babel-loader'
},
exclude: /(node_modules|bower_components)/,
}, {
test: /\.scss$|\.css$/,
use: ['style-loader', 'css-loader', 'sass-loader']
}, {
test: /\.svg$/,
use: 'file-loader'
... |
components/JRConf/JRConfTimer.js | yudazilian/VisualJusticeTW | import React from 'react';
import ReactDOM from 'react-dom';
import ReactRouter from 'react-router';
import $ from 'jquery';
import FlipClock from '../../scripts/flipclock/compiled/flipClock';
function calTimeDiff(endDate) {
let startDate = Date.now(),
dayUnit = 3600 * 24 * 1000,
dayDiff = endDate - startDate;... |
examples/src/components/GithubUsers.js | cmpis/react-select | import React from 'react';
import Select from 'react-select';
import fetch from 'isomorphic-fetch';
const GithubUsers = React.createClass({
displayName: 'GithubUsers',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {
backspaceRemoves: true,
multi: true
};
},
onChange (val... |
src/components/NavBar/index.js | taiwoabegunde/developersmap | /**
* Created by Raphson on 9/22/16.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { Link, hashHistory } from 'react-router';
import Auth from '../../utils/auth';
import Alert from 'react-s-alert';
import 'react-s-alert/dist/s-alert-default.css';
import 'react-s-alert/dist/s-alert-css-effect... |
client/modules/User/components/LogInForm/LogInForm.js | XuHaoJun/tiamat | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
import Ajv from 'ajv';
import { Link } from 'react-router-dom';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Divider from '@materia... |
Blog/src/js/components/login.react.js | rcatlin/ryancatlin-info | import React from 'react';
import LoginActions from '../actions/LoginActions';
import LoginForm from './Login/Form.react';
import LoginStore from '../stores/LoginStore';
class Login extends React.Component {
static get displayName() {
return 'Login';
}
constructor(props) {
super(props);
... |
src/index.js | omgunis/portfolio | /*eslint-disable import/default */
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore.dev';
import { Provider } from 'react-redux'; // attaches store to container components
import { Router, browserHistory } from 'rea... |
ajax/libs/react/15.0.0-rc.2/react-with-addons.min.js | menuka94/cdnjs | /**
* React (with addons) v15.0.0-rc.2
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in ... |
packages/generator-react-server/generators/app/templates/pages/hello-world.js | szhou8813/react-server | import React from 'react';
import HelloWorld from '../components/hello-world';
export default class SimplePage {
getElements() {
return <HelloWorld/>;
}
getMetaTags() {
return [
{charset: 'utf8'},
{'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'},
{name: 'viewport', content: 'width=device-width,... |
src/containers/MainNavbar/MainNavbar.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { IndexLink } from 'react-router';
import { LinkContainer } from 'react-router-bootstrap';
import config from '../../config';
import permission from 'utils/privileges';
// STORE
import { openDialo... |
ajax/libs/yui/3.4.1/loader/loader-debug.js | CrossEye/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
packages/material-ui-icons/src/LocalDrinkSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 2l2.21 20H18.8L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33-11H5.67l-.44-4h13.53l-.43 4z" />
, 'LocalDrinkSharp');
|
app/javascript/mastodon/features/compose/components/search_results.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/sta... |
node_modules/laravel-elixir/node_modules/gulp-babel/node_modules/babel-core/lib/transformation/transformers/other/react-compat.js | ghan02/roster | "use strict";
exports.__esModule = true;
exports.manipulateOptions = manipulateOptions;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newOb... |
docs/pages/getting-started/example-projects.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context(
'docs/src/pages/getting-started/example-projects',
false,
/\.(md|js|tsx)$/,
);
const reqSource = require.context(
'!raw-loader!../../src/pages/getting-started/example-projects',
false,... |
src/slides/002-ecma.js | brudil/slides-es6andbeyond | import React from 'react';
import Radium from 'radium';
import {bindShowHelper} from '../utils';
@Radium
export default class ECMAStuff extends React.Component {
static actionCount = 5;
static propTypes = {
actionIndex: React.PropTypes.number.isRequired,
style: React.PropTypes.object.isRequired
}
rend... |
packages/lore-hook-dialogs-material-ui/src/blueprints/create/Wizard/formMap.js | lore/lore-forms | import React from 'react';
import Step from './forms/Step';
import Confirmation from './forms/Confirmation';
export default {
step: {
render: (props, config) => {
return (
<Step
{...props}
{...config}
/>
);
}
},
confirmation: {
render: (props, config) =... |
files/react/0.13.0-rc1/react-with-addons.js | gswalden/jsdelivr | /**
* React (with addons) v0.13.0-rc1
*/
(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!=="unde... |
ajax/libs/preact-compat/1.5.0/preact-compat.js | BenjaminVanRyseghem/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('proptypes'), require('preact-svg'), require('preact')) :
typeof define === 'function' && define.amd ? define(['exports', 'proptypes', 'preact-svg', 'preact'], factory) :
(factory((global.preactCompa... |
examples/basic/src/index.js | pbeshai/react-url-query | import React from 'react';
import ReactDOM from 'react-dom';
import { configureUrlQuery } from 'react-url-query';
import App from './App';
import history from './history';
// link the history used in our app to url-query so it can update the URL with it.
configureUrlQuery({ history });
ReactDOM.render(
<App />,
... |
src/components/Main.js | hwpepsi/gallery-by-react | import 'normalize.css/normalize.css';
import 'styles/main.scss';
import React from 'react';
import ImgFigure from './imgFigure'
import ControllerUnit from './controlUnit'
import ReactDOM from 'react-dom'
// 获取图片相关信息
let imageDatas = require('json!../data/imageDatas.json');
imageDatas=((ArrImageData) => {
for (let i of... |
ajax/libs/react/0.4.2/react.min.js | chrisdavies/cdnjs | /**
* React v0.4.2
*
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
ajax/libs/forerunnerdb/1.3.643/fdb-core+views.js | honestree/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... |
app/javascript/mastodon/features/compose/components/upload.js | tri-star/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } fr... |
src/components/FoodResult/foodinfo.js | Skymeow/guiltypleasure-frontend | import React from 'react';
function FoodInfo(props) {
return(
<div>
<h2>{`${props.name}`}</h2>
<div className="food-info">
<ul>
<div className="img-map">
<li><img className="img-item" src={`${props.picture}`} /></li>
</div>
<li>calories: {`${props.calori... |
assets/jqwidgets/demos/react/app/formattedinput/negativenumbers/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js';
class App extends React.Component {
render() {
return (
<JqxFormattedInput
width={600} height={25} radix={'binary'} spinButtons={tru... |
frontend/src/components/RawJson/RawJson.js | maytechnet/nomad-ui | import React, { Component } from "react"
import PropTypes from "prop-types"
import JSONFormatter from "json-formatter-js"
class Json extends Component {
componentDidMount() {
const formatter = new JSONFormatter(this.props.json, 2, {
hoverPreviewEnabled: true,
hoverPreviewArrayCount: 100,
hoverP... |
src/components/EventsLane/SelectionMarker.js | vogelino/design-timeline | import React from 'react';
import PropTypes from 'prop-types';
import { TIMELINE_MARGIN } from '../../redux/constants/uiConstants';
const SelectionMarker = ({ date, color: backgroundColor, scaleFunc }) => (
<div
className="selectionMarker"
style={{
left: scaleFunc(date) + TIMELINE_MARGIN,
backgroundColor,
... |
js/jqwidgets/demos/react/app/pivotgrid/olap-tree-style-rows/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxPivotGrid from '../../../jqwidgets-react/react_jqxpivotgrid.js';
import JqxToggleButton from '../../../jqwidgets-react/react_jqxtogglebutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.btnChangeRowsDisplay.on('... |
tests/lib/rules/vars-on-top.js | TGOlson/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
examples/with-custom-environment-variables/src/client.js | jaredpalmer/react-production-starter | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
hydrate(<App />, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
ajax/libs/flocks.js/0.14.3/flocks.js | askehansen/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react');
}
// wrap ... |
src/components/Contacts/Contacts.js | mminutel/upkeep | import React, { Component } from 'react';
import './Contacts.css';
class Contacts extends Component {
render() {
return (
<div>
</div>
);
}
}
export default Contacts;
|
src/components/SideMenu.js | chjourdain/react-redux-ref | import React from 'react';
import {Link} from 'react-router';
/**
* Created by chjourdain on 11/07/16.
*/
class SideMenu extends React.Component {
render() {
return ( <aside className="main-sidebar">
<section className="sidebar">
<ul className="sidebar-nav">
... |
docs/api/js/jquery-1.11.0.min.js | lozaeric/tp_lyricsbox | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
packages/material-ui-icons/src/BookmarkBorder.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z" /></g>
, 'BookmarkBorder');
|
demo/containers/Docs/index.js | vbait/vb-react-form | import React from 'react';
import { Button, Row, Col } from 'react-bootstrap';
import PrismCode from 'react-prism';
class Docs extends React.Component {
render() {
return (
<Row>
<Col xs={12}>
<h2 className="page-header">Documentation</h2>
<h3 className="page-header">Form</h3>
... |
src/svg-icons/maps/layers.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayers = (props) => (
<SvgIcon {...props}>
<path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/>
</SvgIcon>
);
MapsLayers = pure(MapsLayer... |
src/components/LiveStationModal.js | TorinoMeteo/tm-realtime-map | import React from 'react'
import PropTypes from 'prop-types'
import Modal from 'react-modal'
import { isOffline } from 'utils/map'
import moment from 'moment'
const LiveStationModal = (props) => {
let offlineWarning = isOffline(props.data)
? (<p className='alert alert-danger'>
La stazione risulta offline, ... |
storybook/stories/character_counter.story.js | kagucho/mastodon | import React from 'react';
import { storiesOf } from '@storybook/react';
import CharacterCounter from 'mastodon/features/compose/components/character_counter';
storiesOf('CharacterCounter', module)
.add('no text', () => {
const text = '';
return <CharacterCounter text={text} max={500} />;
})
.add('a few ... |
ajax/libs/extjs/4.2.1/src/form/Panel.js | aferlazzo/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
src/components/ContactBox.js | nm-t/STS | import React from 'react';
import InfoBox from './InfoBox';
const ContactBox = ({open, onRequestClose}) => (
<InfoBox title="Contact" open={open} onRequestClose={onRequestClose}>
<h3>Problem owner</h3>
Dr. Tibor Schuster: <a href="mailto:tibor.schuster@mcri.edu.au">tibor.schuster@mcri.edu.au</a>
<h3>Dev... |
server/sonar-web/src/main/js/apps/settings/licenses/LicensesAppHeader.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
ajax/libs/vue/1.0.15/vue.common.js | jdh8/cdnjs | /*!
* Vue.js v1.0.15
* (c) 2016 Evan You
* Released under the MIT License.
*/
'use strict';
function set(obj, key, val) {
if (hasOwn(obj, key)) {
obj[key] = val;
return;
}
if (obj._isVue) {
set(obj._data, key, val);
return;
}
var ob = obj.__ob__;
if (!ob) {
obj[key] = val;
retur... |
ajax/libs/mobx/2.4.1/mobx.js | menuka94/cdnjs | "use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
registerGlobals();
exports.extras = {
allowS... |
examples/dynamic-segments/app.js | RobertKielty/react-router | import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sall... |
docs/src/examples/elements/Button/Types/ButtonExampleLabeledIconShorthand.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleLabeledIconShorthand = () => (
<div>
<Button content='Pause' icon='pause' labelPosition='left' />
<Button content='Next' icon='right arrow' labelPosition='right' />
</div>
)
export default ButtonExampleLabeledIconShort... |
app/talk/components/InputPanel.js | Jawnkuin/electron-618-im | import React, { Component } from 'react';
import { Icon, Input, Button } from 'antd';
import PropTypes from 'prop-types';
import styles from './InputPanel.less';
import { closeCurrentWindow } from '../../share/rendererWindow';
// 好友会话列表等等
class InputPanel extends Component {
static propTypes = {
buddyInfo: Pro... |
docs/app/Examples/elements/Icon/Groups/IconExampleLoadingGroup.js | clemensw/stardust | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleLoadingGroup = () => (
<div>
<Icon.Group size='huge'>
<Icon size='big' color='red' name='dont' />
<Icon color='black' name='user' />
</Icon.Group>
<Icon.Group size='huge'>
<Icon loading size='big' name='... |
Realization/frontend/czechidm-core/src/content/role/RoleTable.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
import uuid from 'uuid';
import classNames from 'classnames';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '.... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | liruqi/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import Inputs from 'utils/Inputs';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes... |
src/components/CardFooter/CardFooter.js | jzhang300/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
const CardFooter = ({ children, className, ...other }) => {
const cardFooterClasses = classNames({
'bx--card-footer': true,
[className]: className,
});
return (
<div className={cardFooterClasses} {...... |
node_modules/bower/lib/node_modules/rx-lite/rx.lite.js | misterdad/angular-budget | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exp... |
app/javascript/mastodon/features/ui/components/column_link.js | tateisu/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... |
examples/huge-apps/components/Dashboard.js | zipongo/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
tests/App.js | padsbanger/grunt-react-boilerplate | import React from 'react';
import { expect } from 'chai';
import { shallow, mount, render } from 'enzyme';
import App from '../src/js/components/App';
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(shallow(<App />).contains(<h1>Hello</h1>)).to.equal(true);
});
});
|
docs/app/Examples/elements/List/Variations/ListExampleSelection.js | koenvg/Semantic-UI-React | import React from 'react'
import { Image, List } from 'semantic-ui-react'
const ListExampleSelection = () => (
<List selection verticalAlign='middle'>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<List.Content>
<List.Header>Helen</List.Header>
... |
client/app/components/TopicDetail.js | ParadeTo/dataguru-nodejs | import React from 'react';
import 'highlight.js/styles/github-gist.css';
import {getTopicDetail, addComment, delComment, delTopic} from '../lib/client';
import {renderMarkdown,redirectURL} from '../lib/utils';
import CommentEditor from './CommentEditor';
export default class TopicDetail extends React.Component {
con... |
src/utils/authenticated.js | cessien/buzzer | import React, { Component } from 'react';
import * as firebase from 'firebase';
import * as config from '../../firebase.config.js';
firebase.initializeApp(config);
function requireAuth(nextState, replace) {
if(null === firebase.auth().currentUser) {
replace({
pathname: '/login',
... |
example/List.js | jerryshew/dot-css | import React, { Component } from 'react';
import {CN, TitleBlock} from './util';
import {NS} from './setting';
const makeList = (cn='') => {
return (
<ul className={CN(cn + ' list')}>
<li className="item">
<div className="tiny image">
<img src="http://braavos... |
pages/error/index.js | marcogazzola/ZtH | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/encoded/static/components/item-pages/DocumentView.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import { console, object } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { ItemFileAttachment } from './components/ItemFileAttachment';
import DefaultItemView from './DefaultItemView';
export default class DocumentView extends DefaultItemView {
... |
modules/Link.js | etiennetremel/react-router | import React from 'react'
import warning from 'warning'
const { bool, object, string, func } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
function isEmptyObject(obj... |
src/landing/HomeSponsors.js | kriasoft/react-static-boilerplate | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
const sponsors = [
{
name: 'Rollbar',
link:
'https://rollbar.com/?utm_source=reactstartkit(github)&utm_medium=link&utm_campaign=reactstartkit(github)',
image: {
src: 'https://files.tarkus.me/rollbar-384x64.png',... |
ajax/libs/yasr/2.4.15/yasr.bundled.min.js | ramda/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
packages/react-app/src/logo.svg.js | threepointone/glam | // @flow
import React from 'react';
export default function Logo(props: {}) {
return (
<svg
{...props}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 841.9 595.3"
>
<g fill="#61DAFB">
<path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5... |
src/svg-icons/device/screen-lock-rotation.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
html/material-ui/demo/src/index.js | fishjar/gabe-study-notes | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/app/keyring/components/KeyDetails.js | mailvelope/mailvelope | /**
* Copyright (C) 2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import {KeyringOptions} from './../KeyringOptions';
import {formatFpr} from '../../../lib/util';
import * as l10n f... |
src/components/topic/TopicUnderConstruction.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import { assetUrl } from '../../lib/assetUtil';
const localMessages = {
title: { id: 'topic.underConsutrction.title', defaultMessage: 'Suc... |
static/src/routes.js | mortbauer/webapp | import React from 'react';
import { Route } from 'react-router';
/* containers */
import { App } from 'containers/App';
import { HomeContainer } from 'containers/HomeContainer';
import LoginView from 'components/LoginView'
import RegisterView from 'components/RegisterView'
import ProtectedView from 'components/Protect... |
app/javascript/mastodon/features/ui/components/link_footer.js | cobodo/mastodon | import { connect } from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import { Link } from 'react-router-dom';
import { invitesEnabled, limitedFederationMode, version, repository, source_url, profile_directory as ... |
node_modules/grunt-contrib-watch/node_modules/tiny-lr-fork/node_modules/qs/test/browser/jquery.js | denisdbell/foodierun | /*!
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/webshim/1.14.3-RC3/dev/shims/combos/26.js | extend1994/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 ... |
ajax/libs/react-datepicker/1.0.0/react-datepicker.min.js | wout/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types"),require("classnames"),require("react-onclickoutside"),require("moment"),require("react-popper")):"function"==typeof define&&define.amd?define(["react","prop-types","classnames","react-onclickoutsi... |
app/components/Institution/InstitutionActions.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
const InstitutionActions = ({ hasPermissions, toggleClassModal, showTeachers }) => {
return (
<div className="row">
<h4 className="text-primary col-md-9">
{!hasPermissions ? 'Modify Details' : 'View Details'}
</h4>
<div clas... |
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldLabelElement.js | clemensw/stardust | import React from 'react'
import { Checkbox, Form } from 'semantic-ui-react'
const FormExampleFieldLabelElement = () => (
<Form>
<Form.Field
control={Checkbox}
label={{ children: 'I agree to the Terms and Conditions' }}
/>
</Form>
)
export default FormExampleFieldLabelElement
|
ajax/libs/angular.js/0.9.13/angular-scenario.min.js | KyleMit/cdnjs | /*!
* 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.
... |
library/src/pivotal-ui-react/lists/lists.js | sjolicoeur/pivotal-ui | import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import 'pui-css-lists';
export class ListItem extends React.Component {
render() {
return <li {...this.props}/>;
}
}
const defList = (tagName, classNames, childClassNames) => {
return class extends React.Comp... |
.storybook/BackgroundImage.stories.js | constelation/monorepo | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import BackgroundImage from '../packages/BackgroundImage'
import Col from '../packages/Col'
storiesOf('BackgroundImage', module)
.addWithInfo('without children', () => (
<BackgroundImage
src='https://placeholdit.imgix.net/~text... |
src/Input/__tests__/Input.js | abdurrahmanekr/react-chat-elements | import React, { Component } from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import Input from '../Input';
describe('Input component', () => {
it('should render without issues', () => {
const component = shallow(<Input />);
expect(component.length).toBe(1);
expect(toJ... |
app/containers/Pas/PasReport/Filters.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Dropdown } from 'office-ui-fabric-react/lib/Dropdown';
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
import sortBy from 'lodash/sortBy';
import json2csv from 'json2csv';
import { Toggle }... |
node_modules/react-icons/fa/birthday-cake.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaBirthdayCake = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m40 31.4v8.6h-40v-8.6q1 0 1.9-0.3t1.3-0.6 1.1-0.8q0.6-0.6 1.1-0.9t1.3-0.2 1.2 0.2 1.2 0.9q0.6 0.5 1 0.8t1.3 0.6 1.9 0.3q1.1 0 1.9-0.3t1.3-0.6 1.1-0.8q0.5-0.5 0.7... |
front_end/app/components/RegistrationForm.js | DaniGlass/OneStopShop | import React, { Component } from 'react';
import { View, Text } from 'react-native';
import axios from 'axios';
import { Button, Card, CardSection, Input } from './common';
class RegistrationForm extends Component {
constructor(props) {
super();
this.state = {
username: '',
email: '',
passw... |
node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js | horizon-z40/RN-homework | /**
* 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... |
docs/src/app/components/pages/components/Toolbar/ExampleSimple.js | hai-cea/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from... |
CTF/HSCTF/HSCTF/static/js/jquery-latest.js | IAryan/NULLify-HSCTF-2014 | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof win... |
packages/mineral-ui-icons/src/IconAddBox.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 IconAddBox(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
lib/cli/generators/REACT_NATIVE_SCRIPTS/template/storybook/stories/CenterView/index.js | nfl/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import style from './style';
const CenterView = props =>
<View style={style.main}>
{props.children}
</View>;
CenterView.propTypes = {
children: PropTypes.node.isRequired,
};
export { CenterView as default };... |
mod/turnitintooltwo/jquery/jquery-1.8.2.min.js | kranje/moodle305 | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
test/specs/views/Feed/FeedMeta-test.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import FeedMeta from 'src/views/Feed/FeedMeta'
import FeedLike from 'src/views/Feed/FeedLike'
describe('FeedMeta', () => {
common.isConformant(FeedMeta)
common.rendersChildren(FeedMeta)
common.implementsShorthandProp(FeedMeta, {
prop... |
js/components/button/custom.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StatusBar } from 'react-native';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-nati... |
wp-includes/js/jquery/jquery.js | gbarberi/WordPress | /*! 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... |
apps/phx_web/web/static/js/components/node_card.js | harmon25/roygbiv_cntrl | import React from 'react'
import {Card, CardActions, CardHeader, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import { SliderPicker, CirclePicker, GithubPicker } from 'react-color';
import Avatar from 'material-ui/Avatar';
import IconButton from 'material-ui/IconButton'... |
ajax/libs/clappr/0.0.38/clappr.js | bootcdn/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]... |
ajax/libs/forerunnerdb/1.3.854/fdb-core+persist.js | joeyparrish/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... |
node_modules/react-bootstrap/es/Label.js | mohammed52/door-quote-automator | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.