path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
packages/example-phone/src/scripts/components/call/rate-dialog.js
udaysrinath/spark-js-sdk
import React from 'react'; import { Button, Checkbox, FormControl, FormGroup, Radio } from 'react-bootstrap'; import Form from '../form'; // FIXME <Form /> doesn't set default values export default function RateDialog({onRate, onSkip}) { return ( <Form className="rate-call-dialog" onSubmit={onRate}> ...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/hdr-off.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageHdrOff = (props) => ( <SvgIcon {...props}> <path d="M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1.9l1.5 1.5h.4zm-3.5-1l-7-7-1.1 1L...
App/Components/Signup.js
FAC7/anna-freud-hub
import React from 'react' import { StyleSheet, View, Text, TextInput, TouchableOpacity, Dimensions, ScrollView, StatusBar } from 'react-native' import Spinner from 'react-native-loading-spinner-overlay' const { width } = Dimensions.get('window') export default class SignUp extends React.Component { ...
duckr/app/components/Feed/Feed.js
josedab/react-exercises
import React from 'react' import PropTypes from 'prop-types' import { newDuckContainer, header } from './Feed.css' import { DuckContainer } from 'containers' import { errorMsg } from 'sharedStyles/styles.css' function NewDucksAvailable({handleClick}) { return ( <div className={newDuckContainer} onClick={handleCl...
src/svg-icons/maps/flight.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon>...
src/components/screenBeaconList.js
CMP-Studio/BeaconDeploymentTool
// @flow import React from 'react'; import { View, ScrollView, TouchableOpacity, Text, StyleSheet } from 'react-native'; import type { NavigateType } from '../actions/navigation'; import type { BeaconType, DeleteBeaconType } from '../actions/beacons'; import type { RegionsByFloorType } from '../reducers/beacons'; imp...
gulpfile.js
szhigunov/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; va...
src/svg-icons/notification/system-update.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSystemUpdate = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/> </Sv...
src/components/PreviousSummary.js
quintel/etmobile
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, FormattedNumber } from 'react-intl'; import classNames from 'classnames'; import Choice from './Choice'; import QuestionSummary from './QuestionSummary'; /** * Formats a choice delta. */ const choiceDelta = delta => ( <span>...
packages/components/src/DateTimePickers/views/ViewLayout/ViewLayout.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import theme from './ViewLayout.scss'; function ViewLayout(props) { const { leftElement, middleElement, rightElement } = props.header; return ( <div className={theme.container}> <div className={theme.header}> ...
src/client.js
leifdalan/vega-june
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
src/views/UserChannelsView/index.js
BrandyMint/uvedomi-proto
import { connect } from 'react-redux' import { createSelector } from 'reselect' import UserChannelsView from './UserChannelsView' const selector = createSelector( (state) => state.channels_list, (state) => state.subscriptions, (channels_list, subscriptions) => ({ channels_list, subscriptions }) ) const...
src/desktop/components/react/infinite_scroll/InfiniteScroll.js
kanaabe/force
import PropTypes from 'prop-types' import React, { Component } from 'react' import { throttle } from 'underscore' const THROTTLE_MS = 200 export default class InfiniteScroll extends Component { static propTypes = { children: PropTypes.node.isRequired, onTrigger: PropTypes.func.isRequired, triggerElement...
tp-2/marisol/src/sovos-reactivo/componentes/new/New.js
solp/sovos-reactivo-2017
import React from 'react'; import NewHeader from './NewHeader'; import NewContent from './NewContent'; import NewFooter from './NewFooter'; class New extends React.Component{ render(){ return( <div> <NewHeader New = {this.props.New}/> <NewContent New = {this.prop...
app/javascript/mastodon/features/compose/components/navigation_bar.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import Permalink from '../../../components/permalink'; import { Fo...
src/decorators/withContext.js
epylinkn/monument
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { PropTypes, Component } from 'react'; // eslint-disable-line no-unused-vars import emptyFunction from 'fbjs/lib/emptyFunction'; function withContext(ComposedComponent) { return class WithContext extends Component { static p...
test/fake_modules/jsx_js/index.js
depcheck/depcheck
/* eslint-disable react/jsx-one-expression-per-line, react/jsx-one-expression-per-line, react/prefer-stateless-function, react/jsx-filename-extension, react/no-deprecated */ const React = require('react'); const jsx = require('jsx-as-js'); export ...
examples/official-storybook/stories/core/parameters.stories.js
storybooks/storybook
import React from 'react'; // We would need to add this in config.js idiomatically however that would make this file a bit confusing import { addParameters } from '@storybook/react'; addParameters({ globalParameter: 'globalParameter' }); export default { title: 'Core/Parameters', parameters: { chapterParamet...
docs/app/Examples/collections/Menu/Variations/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const Variations = () => { return ( <ExampleSection title='Variations'> <ComponentExample title='Fixed' de...
examples/async-portals/src/Counter.js
gaearon/react-hot-loader
import React from 'react'; const RAND = Math.round(Math.random() * 1000); class Counter extends React.Component { state = { count: 0 }; gen = 0; componentDidMount() { this.setState({ count: RAND, }); } componentWillUnmount() { clearInterval(this.interval); } render() { // gen sh...
index.js
nickcolley/mark
/* jshint node: true, browser: true */ var url = require('url'); var querystring = require('querystring'); var React = require('react'); var Marked = require('marked'); function getMarkdownState(){ var markdownFromQuery = '# Click to create'; var queryString = url.parse(window.location.href).query; if(queryStrin...
Samples/AzureAD.RedisCacheUserProfile/AzureAD.RedisCacheUserProfile/Scripts/jquery-1.10.2.js
Anil-Lakhagoudar/PnP
/* 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/components/common/svg-icons/hardware/laptop.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptop = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareLaptop = pure(Hardwa...
client/pages/ProjectContent.js
bifrostio/bifrost
/* global google */ import React, {Component} from 'react'; import {FormControls, Button, Modal, Alert} from 'react-bootstrap'; import { Link } from 'react-router'; import validator from 'validator'; import GoogleMapsLoader from 'google-maps/lib/Google.min'; import StationForm from '../components/StationForm'; import ...
docs/styleguide.config.js
kosssi/cozy-ui
const path = require('path') module.exports = { components: '../react/**/*.jsx', webpackConfig: require('./webpack.config.js'), serverPort: 6161, skipComponentsWithoutExample: true, styleguideDir: path.resolve(__dirname, '../build/react'), require: [ path.join(__dirname, './style.styl') ], showCode...
js/jquery-1.11.0.js
CreacionesEducativas/creacioneseducativas.github.io
/*! 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...
example/react-native-gifted-chat/src/Bubble.js
Karkin/react-native-gifted-chat
import React from 'react'; import { Text, Clipboard, StyleSheet, TouchableWithoutFeedback, View, } from 'react-native'; import MessageText from './MessageText'; import MessageImage from './MessageImage'; import MessageAudio from './MessageAudio'; import Time from './Time'; import { isSameUser, isSameDay, wa...
extras/www/js/handsontable/jquery.min.js
korrosivesec/crits
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
src/parser/warlock/affliction/modules/azerite/WrackingBrilliance.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import { formatPercentage } from 'common/format'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; const wrackingBrillianceStats = tr...
ajax/libs/history/1.10.1/History.js
jonathantneal/cdnjs
(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["History"] = factory(); else root["Histo...
test/frontend/components/NotFound.spec.js
dhilt/dharmadict
const React = require('react'); const {expect} = require('chai'); const {appPath, shallow} = require('../_shared.js'); const NotFound = require(appPath + 'components/NotFound').default; describe('Testing NotFound Component.', () => { it('should show component correctly', () => { const wrapper = shallow(<NotFou...
examples/express-nunjucks-postcss-unstyled-react-webpack-mocha-sqlite-twitter/app/components/Header.js
sahat/megaboilerplate
import React from 'react'; import { IndexLink, Link } from 'react-router'; import { connect } from 'react-redux' import { logout } from '../actions/auth'; class Header extends React.Component { handleLogout(event) { event.preventDefault(); this.props.dispatch(logout()); } render() { const rightNav =...
src/PhoneField.js
greenteamer/form
import React, { Component } from 'react'; import MaskedInput from 'react-maskedinput'; import _ from 'underscore'; export default class PhoneField extends Component { constructor(props) { super(props); this.state = { currentCountry: this.props.countries[0], dropdownCountry: false, isFocusPhone: fa...
docs/src/examples/elements/Segment/Variations/SegmentExampleClearing.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Segment } from 'semantic-ui-react' const SegmentExampleClearing = () => ( <Segment clearing> <Button floated='right'>floated</Button> </Segment> ) export default SegmentExampleClearing
src/Axis.js
4Catalyzer/react-d3-svg
import React from 'react'; import { directionType } from './PropTypes'; import purePlotClass from './utils/purePlotClass'; @purePlotClass({ scale: ({ props }) => props.scale }) export default class Axis extends React.Component { static propTypes = { scale: React.PropTypes.func.isRequired, orient: directionT...
components/sharing.js
Yutenko/stories360
import React from 'react' import {observer} from 'mobx-react' import stores from '../stores/vrestores' import messenger from '../stores/messenger.js' import {Container,Row,Col} from 'react-grid-system' import {translate} from '../client/lang/translation' import {deepPurple500} from 'material-ui/styles/colors' import Pa...
react-0.14.7/build/react-dom.js
TangentMicroServices/Dashboard-WebClient
/** * ReactDOM v0.14.7 * * Copyright 2013-2015, 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....
app/scripts/MainViews/MainViewContainer.js
nthitz/mashupfm
import React from 'react' import UserList from './UserList' import PlaylistList from './PlaylistList' import MainContainerTabBar from './MainContainerTabBar' let views = [ <PlaylistList />, <UserList />, <UserList />, <UserList />, ] export default class MainViewContainer extends React.Component { construc...
src/components/modal/AddPost.js
TimothyBom/react-redux-instagram
import React from 'react' import request from 'superagent' class AddPost extends React.Component { constructor(props) { super(props) this.state = { public_id: '', image_url: '', caption: '', token: localStorage.jwtToken ? localStorage.jwtToken : '' ...
vendor/jquery/jquery.min.js
inspiredxstem/inspired
/*! 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/routes/dashboard/components/weather.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './weather.less' function Weather ({ city, icon, dateTime, temperature, name }) { return (<div className={styles.weather}> <div className={styles.left}> <div className={styles.icon} style={{ backgroundImage: `url(${icon...
ajax/libs/mediaelement/2.2.4/jquery.js
aashish24/cdnjs
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/components/DeveloperMenu.ios.js
phodal/play-app
import React, {Component} from 'react'; import * as snapshot from '../utils/snapshot'; import { TouchableOpacity, ActionSheetIOS, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of th...
client/Components/UI/ErrorIndicator/index.js
myheritage/UiZoo.js
import React from 'react'; import Tooltip from '../Tooltip'; import './index.scss'; /** * @name * ErrorIndicator * * @module * Content * * @description * Show an error tooltip on a container * * @example * <ErrorIndicator error={new Error('message')}> * My error-full content * </ErrorIndicator> ...
src/js/components/Chart/__tests__/Chart-test.js
HewlettPackard/grommet
import React from 'react'; import { render } from '@testing-library/react'; import { axe } from 'jest-axe'; import 'jest-axe/extend-expect'; import 'regenerator-runtime/runtime'; import 'jest-styled-components'; import { Grommet } from '../../Grommet'; import { Box } from '../../Box'; import { Chart, calcs } from '..'...
src/App/TopBar/TopBarMenu/TopBarMenu.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import { Link } from 'react-router-dom'; import styled, { css } from 'styled-components'; import styledMap from 'styled-map'; import colors from '../../../styles/colors'; import timings from '../../../styles/timings'; import topBarHeight from '../../../styles/topB...
dva/cnode/src/routes/Select.js
imuntil/React
import React from 'react' function SelectPage() { return ( <select name="x" id="x"> <option value="1">1</option> <option value="1">1</option> <option value="1">1</option> <option value="1">1</option> <option value="1">1</option> </select> ) } export default SelectPage
src/component/Snack.js
RobotDisco/snack-tracker-to
import React, { Component } from 'react'; class Snack extends Component { render() { return ( <tr onClick={() => this.props.cb(this.props.id)}> <td>{this.props.name}</td> <td>{this.props.price}</td> </tr> ); } } export default Snack;
examples/validation/components/user-form.js
peterox/react-redux-form
import React from 'react'; import { connect } from 'react-redux'; import { Field, Form, Errors, actions } from 'react-redux-form'; import SubmitButton from './submit-button'; const isRequired = (val) => val && val.length > 0; const lessThan10 = (val) => { const lessThan = 10; if (!(val < 10)) { return { lessT...
ajax/libs/material-ui/5.0.0-beta.0/node/Popover/Popover.min.js
cdnjs/cdnjs
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getOffsetTop=getOffsetTop,exports.getOffsetLeft=getOffsetLeft,exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends...
site/docs/DocsHTMLWrapper.js
TomClarkson/fixed-data-table-column-group-headers
"use strict"; require('./docsPageStyle.less'); var MiniHeader = require('../MiniHeader'); var SideBar = require('../SideBar'); var React = require('react'); var StaticHTMLBlock = require('../StaticHTMLBlock'); var Constants = require('../Constants'); var DocsHTMLWrapper = React.createClass({ render() { return ...
test/DropdownButtonSpec.js
jhernandezme/react-materialize
/* global describe, it */ import React from 'react'; import { assert } from 'chai'; import { shallow } from 'enzyme'; import Dropdown from '../src/Dropdown'; import Button from '../src/Button'; let wrapper = shallow( <Dropdown trigger={<Button>Drop me!</Button>} className='more' /> ); describe('<Dropdown />', () =...
src/collections/BootNavbar/BootNavbarBrand.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), className: PropTypes.string, cssModule: PropTypes.object, } const defaultProps = { tag: 'a', }...
src/packages/intro/src/TourPageTile.js
MikkCZ/pontoon-tools
import React from 'react'; import './TourPageTile.css'; /** * React component of one tile on the introduction tour page. */ export class TourPageTile extends React.Component { render() { return ( <section className="TourPageTile"> <div className="TourPageTile-row-1"> <h3>{this.props.ti...
server/server.js
vladmokryi/Nation-Forecast
import Express, {Router} from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webp...
example/examples/FitToCoordinates.js
mvakulich/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, TouchableOpacity, Text, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
ajax/libs/yui/3.6.0/datatable-body/datatable-body-debug.js
sujonvidia/cdnjs
YUI.add('datatable-body', function(Y) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isArray, ...
RNTester/js/ProgressBarAndroidExample.android.js
clozr/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow * ...
tools/contributor/dashboard-app/client/src/components/Repos.js
raisedadead/FreeCodeCamp
import React from 'react'; import styled from 'styled-components'; import ListItem from './ListItem'; import FullWidthDiv from './FullWidthDiv'; import Result from './Result'; import { ENDPOINT_ALL_REPOS } from '../constants'; const List = styled.div` margin: 5px; display: flex; flex-direction: column; `; cons...
Components/Core.OfficeWebWidgets/Core.OfficeWebWidgetsWeb/Scripts/jquery-1.9.1.js
durayakar/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 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, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
ajax/libs/material-ui/5.0.0-alpha.18/node/InputBase/InputBase.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _objectWithoutPr...
src/client/index.js
wcrowe/makeqachecklist
/* @flow */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Router from 'react-router/lib/Router'; import browserHistory from 'react-router/lib/browserHistory'; import match from 'react-router/lib/match'; import routes from '../shared/routes'; impo...
app/addons/activetasks/components/tableheader.js
michellephung/couchdb-fauxton
// 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 in writing, software // distributed un...
imports/client/ui/components/AuthenticatedNavigation.js
mgscreativa/base
import React from 'react'; import { withRouter } from 'react-router-dom'; import { PropTypes } from 'prop-types'; import { LinkContainer } from 'react-router-bootstrap'; import { Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; const userName = () => { const user ...
src/App.js
rafaelviegas/react-app
import React, { Component } from 'react'; import './css/pure-min.css'; import './css/side-menu.css'; import {Link} from 'react-router'; class App extends Component { render() { return ( <div id="layout"> <a href="#menu" id="menuLink" className="menu-link"> <span></span> </a> ...
imports/ui/containers/ProductLists/DisplayProductLists.js
haraneesh/mydev
import { composeWithTracker } from 'react-komposer'; import { Meteor } from 'meteor/meteor'; import DisplayProductLists from '../../components/ProductLists/ProductLists'; import ProductLists from '../../../api/ProductLists/ProductLists'; import Loading from '../../components/Loading/Loading'; import constants from '../...
ajax/libs/rxjs/4.0.0/rx.lite.js
samthor/cdnjs
// 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 && expo...
desenvolvimento-plataformas-moveis/pocs/hello-world/__tests__/index.android.js
mfklauberg/projetosacademicosfurb
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/svg-icons/notification/bluetooth-audio.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationBluetoothAudio = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-...
web/src/app/__tests__/flux/userTest.js
suedadam/teleport
/* Copyright 2015 Gravitational, 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 applicable law or agreed to in writing, soft...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/label.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); ActionLabel.displayName = 'ActionL...
jample_react/src/LastImported.js
famulus/jample
import React from 'react'; import './App.css'; import axios from 'axios'; export default class LastImported extends React.Component { constructor(props) { super(props); this.state = { lastImported:["no tracks"] }; this.findRecentImports = this.findRecentImports.bind(this) } findRecen...
src/DashboardDemo/listItems.js
KageEnterprises/weed-wizard
import React from 'react'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import ListSubheader from '@material-ui/core/ListSubheader'; import DashboardIcon from '@material-ui/icons/Dashboard'; impor...
app/javascript/mastodon/components/load_more.js
Kirishima21/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
www/src/components/survey/QuestionByType.js
cygwin255/SimpleSurvey
import React from 'react' import * as QuestionType from 'constants/QuestionTypes' import SingleQuestion from './questionTypes/SingleQuestion' import MultipleQuestion from './questionTypes/MultipleQuestion' import RatingQuestion from './questionTypes/RatingQuestion' import TextQuestion from './questionTypes/TextQuestion...
src/js/components/ui/AvailabilityPreview/AvailabilityPreview.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './AvailabilityPreview.scss'; import translate from '../../../i18n/Translate'; import ProposalIcon from "../ProposalIcon/ProposalIcon"; @translate('AvailabilityPreview') export default class AvailabilityPreview extends Com...
src/packages/@ncigdc/components/SetActions.js
NCI-GDC/portal-ui
import React from 'react'; import { compose, withProps } from 'recompose'; import { connect } from 'react-redux'; import { capitalize } from 'lodash/string'; import Dropdown from '@ncigdc/uikit/Dropdown'; import Button from '@ncigdc/uikit/Button'; import { visualizingButton } from '@ncigdc/theme/mixins'; import { Colu...
app/routes.js
will-hart/vor
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> </Route> );
modules/components/LinkMenu.js
devrieda/arc-reactor
import React from 'react'; import ReactDOM from 'react-dom'; import EditorStore from '../stores/EditorStore'; const { bool, string, shape, number } = React.PropTypes; const LinkMenu = React.createClass({ propTypes: { active: bool, value: string, bounds: shape({ height: number, width: number,...
frontend/web/metronic/global/plugins/jcrop/js/jquery.min.js
development2016/kds
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...
packages/material-ui-icons/src/StrikethroughSTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M10.44 5.88c.19-.15.43-.27.72-.36.29-.09.64-.13 1.03-.13.4 0 .76.06 1.06.16.3.11.55.25.75.44s.35.41.44.68c.1.26.15.54.15.85h3.01c0-.66-.13-1.26-.38-1.81s-.61-1.03-1.08-1.43c-.46-.4-1.0...
client/src/RecentChats.js
chi-bumblebees-2017/gnomad
import React, { Component } from 'react'; import UserListItemContainer from './UserListItemContainer' class RecentChats extends Component { constructor(props) { super(props); this.truncatedMessage = this.truncatedMessage.bind(this); } truncatedMessage(message){ if(message.length>100) { return ...
Example/index.js
skv-headless/react-native-scrollable-tab-view
import React from 'react'; import { StyleSheet, Text, View, ScrollView, TouchableOpacity, } from 'react-native'; import createReactClass from 'create-react-class'; import { StackNavigator } from 'react-navigation'; import SimpleExample from './SimpleExample'; import ScrollableTabsExample from './ScrollableTab...
ajax/libs/inferno-devtools/6.3.1/inferno-devtools.js
joeyparrish/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno'), require('inferno-extras')) : typeof define === 'function' && define.amd ? define(['exports', 'inferno', 'inferno-extras'], factory) : (factory((global.Inferno = global.Inferno ||...
test/BreadcrumbItemSpec.js
nickuraltsev/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import BreadcrumbItem from '../src/BreadcrumbItem'; import { shouldWarn } from './helpers'; describe('BreadcrumbItem', () => { it('Should warn if `active` and `href` attributes set', () => { ReactTestUtils.renderIntoDocument( ...
application/assets/DataTables/extras/ColVis/media/docs/media/js/jquery.js
Albertcanelles/AppUsuarisJSON
/*! * jQuery JavaScript Library v1.5.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/main/resources/static/scripts/components/Footer.js
davidbogue/Urbane
/* Footer */ import React from 'react'; import SocialLink from './SocialLink'; var Footer = React.createClass({ render: function(){ var githubUrl = this.props.blogProfile.githubUrl; var twitterUrl = this.props.blogProfile.twitterUrl; var linkedInUrl = this.props.blogProfile.linkedInUrl; return <fo...
templates/react-native/components/foo/Form.js
api-platform/generate-crud
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { View } from 'react-native'; import { Input, Button, } from 'react-native-elements'; class Form extends Component { renderField(data) { data.input.value = data.input.value.toString(); let keyboard = data....
src/svg-icons/social/people-outline.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
pages/blog/4-razones-para-contratar-gestion-de-infraestructura-cloud.js
markhker/newCyK
import React, { Component } from 'react'; import '../scss/post.scss'; import Link from '../../components/Link'; import MyRawTheme from '../../components/theme'; import ThemeManager from 'material-ui/lib/styles/theme-manager'; import ThemeDecorator from 'material-ui/lib/styles/theme-decorator'; const styles = { mai...
src/svg-icons/action/favorite-border.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavoriteBorder = (props) => ( <SvgIcon {...props}> <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2...
src/layouts/CoreLayout/CoreLayout.js
dimitrisafendras/multiGame
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
src/React/Widgets/LayoutsWidget/TwoByOne.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/LayoutsWidget.mcss'; export default function render(props) { return ( <table className={props.active === '2x1' ? style.activeTable : style.table} name="2x1" onClick={props.onClick} > ...
src/app.js
tyrchen/rx-monitor
import React from 'react' import Greeting from './greeting' React.render( <Greeting name="World"/>, document.body )
src/parser/warlock/demonology/modules/talents/GrimoireFelguard.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/others/S...
packages/gluestick/src/__tests__/mocks/projectEntries.js
TrueCar/gluestick
/* @flow */ import React from 'react'; export default { default: { '/': { component: class extends React.Component { render() { return <div>Index</div>; } }, reducers: {}, routes: () => [{}], }, }, plugins: [], };
local-cli/templates/HelloWorld/__tests__/index.android.js
imDangerous/react-native
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/pages/Splash.js
c446984928/playtogether
import React from 'react'; import { Dimensions, Animated } from 'react-native'; import store from 'react-native-simple-store'; import { registerApp } from 'react-native-wechat'; import AV from 'leancloud-storage'; import NavigationUtil from '../utils/NavigationUtil'; const maxHeight = Dimensions.get('window').height; ...
src/components/BuilderSidebar.js
TonyYang9527/my-app
import React from 'react'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; class BuilderSidebar extends React.Component{ static propTypes = { id: PropTypes.string, }; static defaultProps = { id : '' }; render =() =>{ return( <div ...
app/javascript/mastodon/features/account_timeline/components/header.js
pixiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...