path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/utils/requireAuth.js | dcporter44/tunefest-frontend | import React from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
export default function(ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
browserHistory.push('/sign-in');
... |
client/src/app/components/chat/components/AsideChatUser.js | zraees/sms-project | import React from 'react'
import {Popover, OverlayTrigger} from 'react-bootstrap'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import * as ChatActions from '../ChatActions'
// import chatboxManager from 'chatbox'
import HtmlRender from '../../../components/utils/HtmlRender'
import {... |
test/OverlayDeprecationSpec.js | dongtong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Position from '../src/Position';
import Transition from '../src/Transition';
import Portal from '../src/Portal';
import { shouldWarn } from './helpers';
describe('Components moved to react-overlays', () => {
it('should warn ab... |
DEPRECATED/node_modules/jsx-loader/node_modules/jstransform/visitors/__tests__/react-jsx-test.js | vanHeemstraDesigns/CreationsEcosystemStatic | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... |
src/containers/search_bar.js | swallville/React-ReduxExample | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
// Get the fucntion onInpu... |
react/package-management/main.js | steveklewis/javascript | var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('example')
);
|
src/routes/Admin/routes/LessonRegister/components/LessonRegisterView.js | eunvanz/flowerhada | import React from 'react'
import { Link } from 'react-router'
import { setInlineScripts, convertTimeToString,
convertRawLessonDaysToLessonDays, sortLessonDaysByDayAsc, convertStringToTime, resizeImage } from 'common/util'
import TextField from 'components/TextField'
import Checkbox from 'components/Checkbox'
import D... |
node_modules/case-sensitive-paths-webpack-plugin/demo/src/init.js | jperez10/RobinHoodAutoTrader | import AppRoot from './AppRoot.component.js';
import React from 'react';
import ReactDOM from 'react-dom';
const app = {
initialize() {
ReactDOM.render(<AppRoot/>, document.getElementById('react-app-hook'));
}
};
app.initialize();
|
app/static/src/diagnostic/TestTypeResultForm_modules/WaterTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import Button from 'react-bootstrap/lib/Button';
import {Notifica... |
src/user/EditUser.js | codyloyd/teamup | import React from 'react'
import UserForm from './userForm'
class EditUser extends React.Component {
render () {
return (
<div>
<UserForm onSubmit={console.log} />
</div>
)
}
}
export default EditUser
|
src/svg-icons/maps/local-see.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
scripts/benchmarks/src/app/ReportCard.js | tkh44/emotion | import Text from './Text'
import { StyleSheet, View } from 'react-native'
import React from 'react'
const fmt = (time: number) => {
const i = Number(Math.round(time + 'e2') + 'e-2').toFixed(2)
return 10 / i > 1 ? `0${i}` : i
}
class ReportCard extends React.PureComponent<{||}> {
render() {
const {
ben... |
src/components/FieldSelector/index.js | DataSF/open-data-explorer | import React from 'react'
import { Panel } from 'react-bootstrap'
import DefaultListGroup from '../DefaultListGroup'
import FilterListInput from '../FilterListInput'
import HideShowButton from '../HideShowButton'
import TypeButtonComponent from '../FieldTypeButton'
import FieldButtonComponent from '../FieldButton'
i... |
react-router-nb/react-router/examples/auth-with-shared-root/components/User.js | zhangfaliang/learnReact | import React from 'react'
const User = React.createClass({
render() {
return <h1>User: {this.props.params.id}</h1>
}
})
module.exports = User
|
ajax/libs/jquery/1.7.1/jquery.min.js | LaurensRietveld/cdnjs | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
Redux_examples/todos-with-undo/src/containers/AddTodo.js | hiddaorear/jsTips | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
test/PaginationSpec.js | HPate-Riptide/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import Pagination from '../src/Pagination';
describe('<Pagination>', () => {
it('should have class', () => {
const instance = ReactTestUtils.renderIntoDocument(
<Pagination>Item content</Pagination>
);
assert.ok(React... |
build/umd/ReactRouter.min.js | daannijkamp/react-router | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouter=e(require("react")):t.ReactRouter=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].e... |
ajax/libs/primeui/2.2.0/primeui.js | tonytomov/cdnjs | /*
* PrimeUI 2.2
*
* Copyright 2009-2015 PrimeTek.
*
* 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... |
src/db/userLogins.js | sShayron/vaniApi | /**
* Node.js API Starter Kit (https://reactstarter.com/nodejs)
*
* Copyright © 2016-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.
*/
/* @flow */
import db from './pool';
export func... |
packages/icons/src/md/av/BrandingWatermark.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBrandingWatermark(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6c2.2 0 4 1.8 4 4v28c0 2.2-1.8 4-4 4H6c-2.2 0-4-1.8-4-4V10c0-2.2 1.8-4 4-4h36zm0 32V26H24v12h18z" />
</IconBase>
);
}
export def... |
docs/src/app/components/pages/components/Tabs/ExampleIcon.js | verdan/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
const TabsExampleIcon = () => (
<Tabs>
<Tab icon={<FontIcon className="muidocs-icon-action-home" />} />
<Tab icon=... |
client/src/components/RegisterPage.js | rantav/reversim-summit-2017 | import React from 'react';
import Page from "./Page";
import {Button, Col, Container, Row} from "reactstrap";
import {Link} from "react-router-dom";
const RegisterPage = (props) => (
<Page title={`Register · Reversim Summit 2017`} {...props}>
<Container className="line-height-17">
<Row>
<Col xl={{ size: 8, o... |
src/routes.js | carlosCeron/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/svg-icons/action/description.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDescription = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/>
</SvgIcon>
);
A... |
addons/info/src/components/markdown/text.js | bigassdragon/storybook | import React from 'react';
import { baseFonts } from '../theme';
export class P extends React.Component {
render() {
const style = {
...baseFonts,
fontSize: '15px',
};
return <p style={style}>{this.props.children}</p>;
}
}
export class LI extends React.Component {
render() {
const st... |
src/icons/CompareIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CompareIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h10v4h4V2h-4v4zm0 30H10l10-12v12zM38 6H28v4h10v26L28 24v18... |
public/js/min.bundle-v16.js | opensolutions/ViMbAdmin | (function(global,factory){if(typeof module==="object"&&typeof module.exports==="object")module.exports=global.document?factory(global,true):function(w){if(!w.document)throw new Error("jQuery requires a window with a document");return factory(w)};else factory(global)})(typeof window!=="undefined"?window:this,function(wi... |
packages/react-vis/src/utils/react-utils.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// 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 use, copy, modify... |
src/svg-icons/hardware/videogame-asset.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareVideogameAsset = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-... |
misc/tabledrag.js | Chaogan-Yan/rfmri.org | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
src/index.js | Ruffeng/VERMELL_REDUX | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
import Async from './middlewares/async';
const createStoreWithMiddleware = applyMiddleware(A... |
src/admin/client/modules/settings/shippingEdit/components/form.js | cezerin/cezerin | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import { TextField, SelectField } from 'redux-form-material-ui';
import { CustomToggle } from 'modules/shared/form';
import FieldsEditor from './fieldsEditor';
import messages from 'lib/text';
import style from './style.css';
import ... |
src/svg-icons/social/notifications-active.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsActive = (props) => (
<SvgIcon {...props}>
<path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02... |
web/src/components/Icons/Web.js | dnote-io/cli | /* Copyright (C) 2019, 2020 Monomax Software Pty Ltd
*
* This file is part of Dnote.
*
* Dnote 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, or
* (at your optio... |
packages/lore-hook-dialogs-bootstrap/src/blueprints/update/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) =... |
app/src/components/common/ButtonWithImage.js | kort/kort-native | import React from 'react';
import {
Text,
Image,
TouchableOpacity
} from 'react-native';
const ButtonWithImage = ({ onPress, children, style, imgSource }) => {
const { buttonStyle, textStyle, imgStyle } = styles;
return (
<TouchableOpacity
style={[buttonStyle, style]}
onP... |
web/modes/index.js | artpi/SmartPi | import React from 'react';
import get from 'lodash/get';
import RGBControl, { Avatar as RGBAvatar, deviceActions as rgbActions } from '../modes/rgb-control.js';
import Switch, { Avatar as SwitchAvatar, deviceActions as switchActions } from '../modes/switch.js';
import { actions as nodemcuActions } from '../devices/nod... |
docs/src/app/components/pages/components/Popover/Page.js | ichiohta/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import popoverReadmeText from './README';
import PopoverExampleSimple from './Ex... |
packages/kitchen-sink/src/AppShell/Hamburger/Hamburger.js | spearwolf/blitpunk | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import './hamburger.scss';
const Container = styled.div`
transition-duration: 0.2s;
transition-timing-function: ease;
transition-property: transform;
.hamburger-inner,
.hamburger-inner::before,
.hamburg... |
ajax/libs/angular-data/1.5.1/angular-data.js | AlexisArce/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.5.1 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
app/javascript/mastodon/components/column_back_button_slim.js | foozmeat/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class ColumnBackButtonSlim extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (window.history && window.history.length ==... |
src/containers/Section4.js | Dealman-LLC/Sheets-Credit-Judge | import React from 'react'
import Slider from 'react-slick'
import Divider from '../components/Divider'
import Testimonial from '../components/Testimonial'
import '../styles/testimonial.css'
import 'slick-carousel/slick/slick.css'
import 'slick-carousel/slick/slick-theme.css'
import slide1 from '../images/slide1.jpg'... |
plugins/react/frontend/components/controls/advanced/IntegerControl/__test__/index.js | pure-ui/styleguide | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { mount } from 'enzyme';
import IntegerControl from '../index';
const label = 'integer-control';
const secondaryLabel = 'secondary';
const onUpdate = sinon.spy();
const value = 1;
let props;
let wrapper;
describe('<IntegerCont... |
ajax/libs/antd/3.3.0/antd.min.js | ahocevar/cdnjs | /*!
*
* antd v3.3.0
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"],... |
ajax/libs/analytics.js/2.3.27/analytics.min.js | wil93/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
ajax/libs/angular.js/0.10.6/angular-scenario.js | seayou/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* 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 Lic... |
stories/Welcome.js | schneckentempo/ClicksAndImpressions | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
logo: {
width: 200,
},
link: {
color: '#1474f3',
textDecoration: 'none',
borderBottom: '1px ... |
src/js/components/image__list/index.js | Arlefreak/web_client.afk | import PropTypes from 'prop-types';
import React from 'react';
import Image from '../image__row';
function ImageList({ images, onImageClick, className }) {
return (
<ul className={className + ' grid images'}>
{images.map(image => (
<Image key={image.id} {...image} onImageClick={onImageClick} />
... |
imports/ui/components/StudentRowEditable.js | hanstest/hxgny | import React from 'react'
import { Table, Button, Input, Select, Icon } from 'semantic-ui-react'
/**
* Create a user
* @param props properties for this component
* @param props.student the student to render in this row
* @param props.updateStudent callback to persist the changes to this student
* @param props.rem... |
tests/fields/Wysiwyg.spec.js | wiljanslofstra/pyramid | /* eslint-disable */
import React from 'react';
import Wysiwyg from '../../src/components/Fields/Wysiwyg';
import { shallow, mount } from 'enzyme';
import TinyMCE from 'react-tinymce';
import sinon from 'sinon';
/* eslint-enable */
const fakeProps = {
onChange: () => {},
id: 'unique-id',
field: {
label: 'Tex... |
packages/material-ui-icons/src/PanoramaVerticalOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12s.55-6.18 1.64-9.12c.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71 12s-.55 6.18-1.64 9.12c-.05.... |
Samples/Core.ConnectedAppParts/Core.ConnectedAppPartsWeb/Scripts/jquery-1.6.4.min.js | SPDoctor/PnP | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"... |
src/Text.js | MrCheater/text-resize-and-word-wrap-provider | import React from 'react';
import parseAbsoluteCSSUnit from 'parse-absolute-css-unit';
import { Component } from './Component';
import { parser } from './parser';
import { contextTypes } from './contextTypes';
import { optionalContext } from './optionalContext';
import { range } from 'react-range-proptypes';
@optional... |
fannie/batches/EndCapper/src/EndCap.js | FranklinCoop/IS4C | import React, { Component } from 'react';
import Shelf from './Shelf.js';
class EndCap extends Component {
render() {
let all = this.props.shelves.map((s, i) =>
<Shelf items={s} pos={i}
manageItem={this.props.manageItem} />
);
return (<p><div>{all}</div></p>);
... |
app/Pages/SettlementViewNew/RemarksColumn/OrderMark.js | jd-daojia/DaojiaRN | /* @flow */
import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
TouchableWithoutFeedback
} from 'react-native';
import RemarkText from './RemarkText'
import IconMark from '../../../images/settlement/OrderMark.png'
import AlertMark from './AlertMark'
export default class OrderMa... |
ajax/libs/rxjs/2.2.10/rx.compat.js | karlfreeman/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,
'u... |
server/frontend/components/MyCompanies.js | benjaminhoffman/Encompass | // URL is /profile
// this view renders a table of companies that the user is following
// its parent is UserProfile
// import dependencies
import React, { PropTypes, Component } from 'react';
import _ from 'lodash';
import { RaisedButton,Table, TableHeader, TableRow, TableRowColumn, Ta... |
client/src/components/app.js | WebTalentTop/newsfere-mern | import React, { Component } from 'react';
import HeaderTemplate from './template/header';
import FooterTemplate from './template/footer';
class App extends Component {
render() {
return (
<div>
<HeaderTemplate logo="Your Site" />
<div className="container">
{this.props.children}
... |
ajax/libs/extjs/4.2.1/src/button/Manager.js | vuonghuuphuc/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... |
local-cli/templates/HelloNavigation/components/ListItem.js | formatlos/react-native | 'use strict';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableHighlight,
TouchableNativeFeedback,
View,
} from 'react-native';
/**
* Renders the right type of Touchable for the list item, based on platform.
*/
const Touchable = ({onPress, children}) => {
const c... |
ajax/libs/react-dom/18.0.0-rc.0-next-13036bfbc-20220121/cjs/react-dom.development.min.js | cdnjs/cdnjs | "use strict";"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=require("react"),C=require("object-assign"),r=requir... |
packages/ringcentral-widgets/components/UserGuide/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { Transition, CSSTransition } from 'react-transition-group';
import SpinnerOverlay from '../SpinnerOverlay';
import Button from '../Button';
import styles from './styles.scss';
import i18n from './i18n';
const co... |
src/index.js | bcgodfrey91/tier-2 | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, IndexRoute, Route, browserHistory } from 'react-router';
const firebase = require('./firebase');
const provider = new firebase.auth.GoogleAuthProvider();
import SignIn from './SignIn';
import Home from './Home';
import NewContact from './NewC... |
app/components/Footer/Icons.js | j921216063/chenya | import React from 'react';
import styled from 'styled-components';
import NormalA from 'components/A';
const Ul = styled.ul`
text-align: center;
margin: 0;
cursor: default;
`;
const Li = styled.li`
display: inline-block;
line-height: 1em;
padding-left: 1.5em;
:first-child {
padding-left: 0;
}
`;
... |
ajax/libs/clappr/0.0.14/clappr.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]... |
dva/wd/src/components/Layouts/CartBarLayout.js | imuntil/React | import React from 'react';
import styles from './CartBarLayout.css';
function CartBarLayout() {
return (
<div className={styles.normal}>
Component: CartBarLayout
</div>
);
}
export default CartBarLayout;
|
components/Search.js | sturquier/hyne | import React, { Component } from 'react';
import { View, TextInput, Button, TouchableOpacity } from 'react-native';
import { StackNavigator } from 'react-navigation';
import Result from './Result';
class Search extends Component {
constructor(props) {
super(props);
this.state = {
city: 'Paris'
}
}
setCit... |
src/MobileStepper/MobileStepper.js | AndriusBil/material-ui | // @flow weak
// @inheritedComponent Paper
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Paper from '../Paper';
import { capitalizeFirstLetter } from '../utils/helpers';
import { LinearProgress } from '../Progre... |
test/mapTree-test.js | iclanzan/react-motion | import expect from 'expect';
import mapTree from '../src/mapTree';
import React from 'react';
describe('mapTree', () => {
it('should map numbers leaves correctly', () => {
const add1 = (_, a) => a + 1;
expect(mapTree(add1, 1)).toEqual(2);
expect(mapTree(add1, [])).toEqual([]);
expect(mapTree(add1, {}... |
src/svg-icons/device/storage.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
src/components/DBTable/InnerQueryMachine.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import {
Button,
Table,
Icon,
Modal,
message,
notification,
Affix,
Card, Col, Row, Switch, Tag
} from 'antd';
import Logger from '../../utils/Logger';
import Utils from '../../utils';
import ajax from '../../utils/ajax';
import moment from 'moment';
import ImageSlider from '..... |
client/modules/Lane/Lanes.js | mraq1234/mod11 | import React from 'react';
import propTypes from 'prop-types';
import Lane from './LaneContainer.js';
import styles from './Lane.css';
const Lanes = (props) =>
<div className={styles.lanes}>
{props.lanes.map(lane => <Lane key={lane.id} lane={lane} />)}
</div>;
Lanes.propTypes = {
lanes: propTypes.array,
};... |
ajax/libs/places.js/1.0.0/placesInstantsearchWidget.js | CyrusSUEN/cdnjs | /*! 1.0.0 | © Algolia | github.com/algolia/places */
(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')... |
ajax/libs/cleave.js/0.5.2/cleave.js | holtkamp/cdnjs | ;(function(window, document, undefined) {
'use strict';
/**
* Construct a new Cleave instance by passing the configuration object
*
* @param {String / HTMLElement} element
* @param {Object} opts
*/
var Cleave = function (element, opts) {
var owner = this;
if (typeof element === 'string') {
owner... |
Example/index.android.js | JuniusAng/react-native-camera | import React from 'react';
import { AppRegistry } from 'react-native';
import Example from './Example';
AppRegistry.registerComponent('Example', () => Example);
|
src/components/locator/components/Marker.js | mgoodenough/estimator | 'use strict';
/*
* Module Definition
*
*/
import React from 'react';
import { getComponentDisplayName, isEqual } from '../utils/index';
import GoogleMarker from '../api/Google/components/GoogleMarker.js';
/*
* Class Definition
*
*/
function MarkerInterface(Marker) {
class MarkerHOC extends React.Component {... |
src/containers/YouTubeContainer.js | wind85/waterandboards | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import YouTube from "../components/YouTube"
import * as Actions from '../actions'
class YouTubeContainer extends React.Component{
hPlayVideo... |
app/javascript/mastodon/features/account_timeline/components/moved_note.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
examples/master-detail/src/components/ContactDetails.js | leoasis/redux-state-router | import React from 'react';
export default class ContactDetails extends React.Component {
render() {
const {contact} = this.props;
return <div>
<h1>{contact.name}</h1>
<h2>{contact.email}</h2>
<p>{contact.description}</p>
</div>;
}
}
|
ajax/libs/yui/3.7.2/scrollview-base/scrollview-base.js | artch/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... |
test/unit/client/common/components/loading-resource-list.js | jmeas/moolah | import React from 'react';
import {shallow} from 'enzyme';
import LoadingResourceList from '../../../../../client/common/components/loading-resource-list';
import LoadingIndicator from '../../../../../client/common/components/loading-indicator';
describe('LoadingResourceList', function() {
describe('rendering', () =... |
src/common/components/VideoTrack.js | mhgbrown/typography-karaoke | import React from 'react';
import Cue from './Cue';
import styles from "../videotrack.css";
class VideoTrack extends React.Component {
constructor(props) {
super(props);
this.displayName = 'VideoTrack';
}
render() {
var self = this;
var cues = this.props.data.map(function(datum, index) {
... |
src/routes/login/index.js | edgarallanglez/foxacademia_frontend | /**
* 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... |
app/components/Header/index.js | SenyOrg/kekecmed-frontend | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
app/containers/HomePage.js | thomasantony/budget-app-legacy | import React, { Component } from 'react';
import Home from '../containers/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
index.ios.js | yyoshiki41/fastlane-playground | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AwesomeProject extends Component {
render() {
return (
<View style={styles.cont... |
js/components/layout/nested.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, Button, Icon, Left, Right, Body } from 'native-base';
import { Grid, Row, Col } from 'react-native-easy-grid';
import { Actions } from 're... |
ajax/libs/plupload/2.1.5/moxie.js | keicheng/cdnjs | ;var MXI_DEBUG = true;
/**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.3.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2015-06-22
*/
/**
* Compiled in... |
src/Components/Textarea/index.js | sqhtiamo/zaro | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './style';
class Textarea extends Component {
constructor(props) {
super(props);
const propValue = this.props.value;
this.state = {
value: this.props.value,
count: propValue.length
};
this... |
example/app.js | ivpusic/react-native-image-crop-picker | import React, { Component } from 'react';
import { Alert, Image, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import ImagePicker from 'react-native-image-crop-picker';
import Video from 'react-native-video';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyConten... |
src/index.js | Grokling/react-proof-of-concept | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
src/docs/Props.js | rajeshpillai/zs-react-pattern-lib | import React from 'react';
import PropTypes from 'prop-types';
const Props = ({props}) => {
return (
<table className="props">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Type</th>
<th>Default</th>
<th>Required</th>
</tr>
</the... |
Client/src/js/history.js | WadeBarnes/schoolbus | import React from 'react';
import * as Api from './api';
import * as Constant from './constants';
// History Entity Types
export const BUS = 'School Bus';
export const OWNER = 'Owner';
export const USER = 'User';
export const ROLE = 'Role';
export const INSPECTION = 'Inspection';
// History Events
export const BUS_... |
RNApp/app/routes/SignIn/SignInContainer.js | reyvera/raceDay | import React, { Component } from 'react';
import { LayoutAnimation } from 'react-native';
import Meteor, { Accounts } from 'react-native-meteor';
import SignIn from './SignIn';
class SignInContainer extends Component {
constructor(props) {
super(props);
this.state = {
email: '',
password: '',
... |
client/components/basic/avatar/UserAvatar.js | iiet/iiet-chat | import React from 'react';
import BaseAvatar from './BaseAvatar';
function UserAvatar({ url, username, etag, ...props }) {
// NOW, `username` and `etag` props are enough to determine the whole state of
// this component, but it must be as performatic as possible as it will be
// rendered many times; and some of th... |
client/src/js/containers/LoginForm.js | abitlog/retube | import React from 'react';
import { connect } from 'react-redux';
import Spinner from 'react-spinkit';
import SignUp from '../components/loginForm/SignUp';
import SignIn from '../components/loginForm/SignIn';
import Tab from '../components/loginForm/Tab';
import { userSignupRequest, userSigninRequest, userAuthCheckRe... |
src/Pages/Articles.js | LaurentEtienne/Kfe | import React, { Component } from 'react';
import ArticleStore from '../Stores/Article';
import { Link } from 'react-router'
import dateFormat from 'dateformat';
let articleCount = 10;
let getState = () => {
return {
articles: ArticleStore.getArticles(articleCount)
};
};
class Articles extends Component {
... |
src/components/defs.js | alexsincai/star-system-map-generator | import React from 'react';
import ReactDOM from 'react-dom';
import StarDef from './stardef';
import PlanetDef from './planetdef';
const makeState = ( props ) => {
return {
background: {
id: 'background-definition',
x: props.box[ 0 ],
y: -50,
width: props.box[ 2 ],
height: 100,
fill: 'url( #backg... |
react-flux-mui/js/material-ui/src/svg-icons/action/language.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLanguage = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.