path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/layouts/ApplicationLayout/ApplicationLayout.js
vladislavpauk/react-redux-swapi
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { pushState } from 'redux-router'; import './application-layout.scss'; const mapStateToProps = () => ({}); const actionCreators = { pushState }; export class ApplicationLayout extends React.Component { stat...
src/Select/renderers/ValueRenderer.js
agutoli/react-styled-select
import React from 'react' import SelectValueLabel from '../partials/SelectValueLabel' export default function ValueRenderer (option, className) { return ( <SelectValueLabel key={option.key} multi={option.multi} className={className} data-select-value-label>{option.label} </SelectValue...
src/Components/Map.js
jsconfcn/ningjs
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Map, Marker, Popup, TileLayer } from 'react-leaflet'; const position = [32.06257,118.7781]; export default class MapComponent extends Component { render() { return ( <Map center={position} zoom={13}> <TileLayer...
src/components/Upload.js
rawad-alawar/stow
import React, {Component} from 'react' import ReactDOM from 'react-dom' import {connect} from 'react-redux' import {hashHistory, Link} from 'react-router' import request from 'superagent' import {validateForm, addNewListing} from './utils' class Upload extends Component { constructor() { super() this.state...
src/shared/vendor/key-mirror/__tests__/keyMirror-test.js
gajus/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. * * @emails react-co...
test/DropdownButtonSpec.js
xsistens/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownButton from '../src/DropdownButton'; import DropdownMenu from '../src/DropdownMenu'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; describe('DropdownButton', function() { const simpleD...
src/App.js
runjak/css-flags
// @flow import React from 'react'; import FlagList from './FlagList'; import Armenia from './Flags/Armenia'; import Austria from './Flags/Austria'; import Belgium from './Flags/Belgium'; import Botswana from './Flags/Botswana'; import Bulgaria from './Flags/Bulgaria'; import Chad from './Flags/Chad'; import Colombia ...
src/index.js
tasking/firebase-react-paginated
// react import React, { Component } from 'react'; // utils import getRef from './utils/getFirebaseRef'; import getDisplayName from './utils/getComponentDisplayName'; import getItems from './utils/getSnapshotItems'; const withFirebasePages = (firebase) => { const ref = getRef(firebase); return (options) => { ...
app/scripts/__tests__/itemlist-test.js
xuorig/app-mobile-tp3
// __tests__/itemlist-test.js jest.dontMock('../components/itemList.jsx'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; let ItemList = require('../components/itemList.jsx'); describe('item list', function() { it('displays three items with right tex...
pages/login.js
passify/samlify-sp
import React, { Component } from 'react'; import Link from 'next/link'; import Router from 'next/router'; import Page from '../layouts/main'; import { Input, Button } from 'antd'; import AuthService from '../services/AuthService'; const auth = new AuthService(); export default class Login extends Component { const...
ajax/libs/react/0.9.0/react-with-addons.min.js
noraesae/cdnjs
/** * React (with addons) v0.9.0 * * Copyright 2013-2014 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 re...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
vanloswang/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
app/components/AddTask/Input/index.js
prudhvisays/season
import React from 'react'; export default class Input extends React.Component { //eslint-disable-line render() { const { Name, Holder, onChange } = this.props; return ( <div className="ink-flex vertical"> <div className="sub-title">{Name}</div> <div><input type="text" placeholder=...
packages/material-ui-icons/src/CachedOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1...
React Fundamentals/Exercise_Events_And_Forms/homework/src/index.js
NikiStanchev/SoftUni
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();
ajax/libs/react/0.3.2/JSXTransformer.js
sullivanmatt/cdnjs
/** * JSXTransformer v0.3.2 */ (function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi...
client/modules/Home/Components/RelatedKeyword.js
tranphong001/BIGVN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styles from '../../../main.css'; import Item from './Item'; import { fetchRelatedNews } from '../HomeActions'; import { getRelated } from '../HomeReducer'; import cuid from 'cuid'; class Related ...
frontend/Master.js
StefanKjartansson/sundcloud
import React from 'react'; const ThemeManager = require('material-ui/lib/styles/theme-manager'); const LightRawTheme = require('material-ui/lib/styles/raw-themes/light-raw-theme'); export default class App extends React.Component { getChildContext() { return { muiTheme: ThemeManager.getMuiTheme(LightRaw...
js/src/component/DragAndDrop/Beside.js
outeredge/edge-magento-module-menu
import React from 'react'; import { DropTarget } from 'react-dnd'; import Target, { besideTarget } from './Target'; import Types from './Types'; @DropTarget(Types.ITEM, besideTarget, (connect, monitor) => ({ connectDropTarget: connect.dropTarget(), isOverCurrent: monitor.isOver({ shallow: true }), canDrop:...
ajax/libs/clappr/0.0.68/clappr.js
wenliang-developer/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);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)...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-layout-collections-row-collection.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react' import {BaseMixin, ElementaryMixin, SectionMixin, CcrWriterMixin, ColorSchemaMixin} from '../../common/common.js' import RowCollectionMixin from './row-collection-mixin.js' import Row from './../row.js' export const RowCollection = React.createClass({ //@@viewOn:mixins mixins: [ Base...
fields/types/html/HtmlField.js
stosorio/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId() { return 'keystone-html-' + lastId++; } module.exports = Field.create({ ...
docs/src/components/doc-sidebar.js
ridixcr/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' export default React.createClass({ //propTypes: { //navStructure: React.PropTypes.objectOf(React.PropTypes.shape({ //})) //}, render() { return ( <div className="docs-page--sidebar col l2"> <h3>{this.props.sectionTitle}</h...
src/components/favorites/index.js
rognan/chrome-extension-custom-new-tab
import React from 'react'; import List from './list'; import styles from './index.css'; class Favorites extends React.Component { constructor(props) { super(props); this.state = { lists: [ {heading: "Learn", links: [ {title: "DuoLingo", url: "https://www.duolingo.com/"}, {ti...
src/pages/blog.en.js
angeloocana/angeloocana
import React from 'react'; import Blog from './_blog'; import graphql from 'graphql'; export default (props) => <Blog {...props} />; export const pageQuery = graphql` query BlogEnQuery { allMarkdownRemark( limit: 2000 sort: { fields: [frontmatter___date], order: DESC } filter: { frontma...
packages/material-ui-icons/src/CellWifiSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M6 22h16V5.97L6 22z" /><path d="M18 9.98L6 22h12V9.98zM3.93 5.93l1.29 1.29c3.19-3.19 8.38-3.19 11.57 0l1.29-1.29c-3.91-3.91-...
src/dict/t.js
auth0/lock-passwordless
import React from 'react'; export default function(dict, keyPath, params = {}) { const html = dict.get(keyPath, params); if (!html) { return null; } if (params.__textOnly) { return html; } return React.createElement("span", {dangerouslySetInnerHTML: {__html: html}}); }
works/react-native/redux/TodoList/index.ios.js
JoelPub/wordpress-amazon
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './containers/app' import todos from './reducers' import { AppRegistry, StyleSheet, Text, ...
cpv-ui/src/components/SideDrawer/DrawerToggleButton.js
zkouba/cinema-program-viewer
import React from 'react'; import './DrawerToggleButton.css' const DrawerToggleButton = (props) => { return ( <button className="toggle_button" onClick={props.click}> <div className="toggle_button_line"></div> <div className="toggle_button_line"></div> <div className="toggle_button_line"></div> </button...
src/parser/deathknight/blood/modules/features/DeathStrikeTiming.js
fyruna/WoWAnalyzer
import React from 'react'; import SelfHealTimingGraph from 'parser/shared/modules/features/SelfHealTimingGraph'; import SPELLS from 'common/SPELLS'; class DeathStrikeTiming extends SelfHealTimingGraph { constructor(...args) { super(...args); this.selfHealSpell = SPELLS.DEATH_STRIKE_HEAL; this.tabTitle ...
app/components/Dices/index.js
romanvieito/ball-simpler
import React from 'react'; import PropTypes from 'prop-types'; // import { FormattedMessage } from 'react-intl'; import NormalImg from 'components/Img'; import Btn from 'components/Button'; // import A from 'components/A'; // import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import ...
client/components/ProfilePic.js
gut-js/gut
import React from 'react'; import { Modal, Button } from 'react-bootstrap'; class ProfilePic extends React.Component { constructor(){ super(); this.handleSubmit = this.handleSubmit.bind(this); } handleSubmit(){ //start here // const { resetPoll, fetchYelpData } = this.props.pollActions; // const...
src/Checkbox/Checkbox.spec.js
resmio/mantecao
import React from 'react' import renderer from 'react-test-renderer' import Checkbox from './Checkbox' describe('Checkbox', () => { it('renders with a label', () => { const tree = renderer .create( <Checkbox label="hello checkbox" onChange={() => false} checked={true} ...
3rdparty/valums-file-uploader-cf7bfb1/tests/jquery-1.4.2.min.js
cltrudeau/django-yacon
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/app/components/Groups/Form.js
sphinxominator/councils-feathers
import React from 'react' import { pure, compose, withState, withHandlers } from 'recompact' import { gql, graphql } from 'react-apollo' import styled from 'styled-components' import { GroupsQuery } from '../../queries' import Modal from '../Modal' const GroupFormPure = ({ onSubmit, onChangeName, onChangeColor }) =...
ajax/libs/rxjs/2.2.20/rx.lite.js
tomalec/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
imports/Client/Components/userBook/Book.js
darodriguez15/booksWebDev
import React, { Component } from 'react'; import PropTypes from "prop-types"; import { Meteor } from 'meteor/meteor'; import ReactDOM from 'react-dom'; import { Books } from '../../../api/books'; import { createContainer } from 'meteor/react-meteor-data'; // Task component - represents a single todo item class Book ex...
packages/icons/src/md/action/ViewColumn.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdViewColumn(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M19 37h10V11H19v26zM7 37h10V11H7v26zm24-26v26h10V11H31z" /> </IconBase> ); } export default MdViewColumn;
framework/web/js/source/jquery.js
luizjam/yii
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
docs/src/pages/demos/progress/LinearDeterminate.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import { LinearProgress } from 'material-ui/Progress'; const styles = { root: { flexGrow: 1, }, }; class LinearDeterminate extends React.Component { state = { completed: 0, }; componentDi...
Samples/Core.JSOM.BinaryUpload/Core.JSOM.BinaryUpload/Scripts/jquery-1.9.1.js
OzMakka/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...
src/js/Main/components/ProActiveProject.js
fr3nchN/proactive
import React from 'react' import { Link } from 'react-router-dom' import links from "./../links" import ContentProActiveProject from "./../../../content/homepage/ContentProActiveProject" const ProActiveProduct = ({ item }) => { return ( <div className="col-sm-5 background-verylightgray m-1 pt-2"> ...
src/components/Button.js
benkeen/invoice-editor
/** * Generic button component. Probably overkill for a small demo like this, but it would be useful in a larger app. */ import React from 'react'; const Button = ({ label, onClick }) => ( <button className="btn btn-info btn-sm" onClick={onClick}>{label}</button> ); export default Button;
packages/react-devtools-shell/src/app/InspectableElements/UnserializableProps.js
rickbeerendonk/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import Immutable from 'immutable'; const set = new Set(['abc', 123]); const map = new Map(...
frontend/app/main.js
silenceper/dcmp
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('app') );
src/Parser/Druid/Guardian/Modules/Items/FuryOfNature.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import MAGIC_SCHOOLS from 'common/MAGIC_SCHOOLS'; import { formatNumber } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTracker fr...
ajax/libs/rxjs-dom/2.0.7/rx.dom.js
jasny/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (root, factory) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports && modu...
src/containers/Asians/TabControls/AdjudicatorTest/ViewAdjudicatorTest/2_DebaterInformation/DisplayDebaterInformation.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Button from 'material-ui/Button' import Card, { CardActions, CardContent } from 'material-ui/Card' import Table, { TableHead, TableCell, TableRow, TableBody } from 'material-ui/Table' export default connect(mapStateToProps)(({ onChan...
src/website/app/LogotypeHorizontal.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; type Props = { fill?: string, title?: string }; const LogotypeHorizontal = (props: Props) => { const { fill, title, ...restProps } = props; const fillColor = fill || 'currentColor'; return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384.06 89...
src/app.js
gerard-bisama/displayorgunit
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, hashHistory} from "react-router"; import {GetAjaxRequest} from "./api" import NavigationBar from './components/NavigationBar'; import Layout from './components/Layout' import Browse from './pages/Browse'; //import Home ...
src/components/Speakers/Speakers.js
ksevezich/DayOfBlueprint
import React from 'react' import classes from './Speakers.scss' import SpeakersSection from 'components/SpeakersSection' import alex from 'static/Alex.png' import stephen from 'static/Stephen.png' import jason from 'static/Jason.png' import dan from 'static/Dan.png' export const Speakers = () => ( <div> <div cla...
19-移动端/01-react-native/MyApp/index.ios.js
csxiaoyaojianxian/JavaScriptStudy
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; export default class MyApp extends Component { render() { let pic = { uri: 'https://upload....
ajax/libs/yui/3.12.0/scrollview-base/scrollview-base-coverage.js
matteofigus/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":...
examples/dynamic-segments/app.js
omerts/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; 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">Sally</...
webapp/app/components/SoftwaresByUser/Searchbar/index.js
EIP-SAM/SAM-Solution-Server
// // Searchbar sofwares by user page // import React from 'react'; import { FormGroup, InputGroup, FormControl, Glyphicon } from 'react-bootstrap'; /* eslint-disable react/prefer-stateless-function */ export default class SoftwaresByUserSearchbar extends React.Component { handleChangeSearchbar(event) { this.pr...
packages/material-ui-icons/src/SubdirectoryArrowRightSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 24H0V0h24v24z" opacity=".87" /><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z" /></React.Fragment> , 'SubdirectoryArrowRightSharp');
node_modules/react-icons/fa/arrow-circle-up.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaArrowCircleUp = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.7 20q0-0.6-0.4-1l-10.2-10.1q-0.4-0.4-1-0.4t-1 0.4l-10.1 10.1q-0.4 0.4-0.4 1t0.4 1l2.1 2q0.4 0.4 1 0.4t1-0.4l4.2-4.2v11.2q0 0.6 0.4 1t1 0.4h2.9q0.5 0 1-0.4t0...
scripts/dashboard/components/ProjectForm/ProjectFormServiceList/view.js
vedranjukic/dockerino
import React from 'react' import { Link } from 'react-router' import { Table } from 'react-bootstrap'; function view (props, state) { if (!props.project.services || !props.project.services.length) { return ( <div> No services added. <Link to="/project/addservice">Add service to project</Li...
src/admin/components/filefield/index.js
ccetc/platform
import React from 'react' import _ from 'lodash' import { getActiveTeam } from 'admin/components/admin/selectors' import Resumable from 'resumablejs' import bytes from 'bytes' import Image from 'admin/components/image' import component from 'admin/components/component' import * as actions from './actions' class FileFi...
node_modules/react-icons/io/usb.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoUsb = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m11.3 17.2z m18.7-7.2c0 0.9-0.5 1.6-1.1 2.1-0.1 0.1-0.2 0.4-0.2 0.6-0.1 1.5-0.3 2.8-0.7 3.9-0.6 1.4-1.6 2.5-3.1 3.6-1.3 0.9-2.2 1.6-2.8 2.6-0.5 0.9-0.9 2.2-0.9 4.2v1.8c0 ...
test/Scrollbars/clickTrack.js
zxlin/react-custom-scrollbars
import { Scrollbars } from 'react-custom-scrollbars'; import { render, unmountComponentAtNode } from 'react-dom'; import React from 'react'; import simulant from 'simulant'; export default function createTests(scrollbarWidth) { // Not for mobile environment if (!scrollbarWidth) return; let node; befor...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
aastey/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
node_modules/material-ui/svg-icons/maps/local-car-wash.js
meetdheeraj/NewsAggregator
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
sites/all/modules/contrib/jquery_update/replace/jquery/1.7/jquery.js
drupin/shoppers
/*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
analysis/warriorarms/src/modules/features/RageDetails.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import { Panel } from 'interface'; import { Icon } from 'interface'; import Analyzer from 'parser/core/Analyzer'; import ResourceBreakdown from 'parser/shared/modules/resources/resourcetracker/ResourceBreakdown'; import StatisticBox, {...
es/components/UserList/UserRow.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import Avatar from '../Avatar'; import Username from '../Username'; var UserRow = function UserRow(_ref) { var className = _ref.className, user = _ref.user; retur...
examples/react-router/app/views/lists/index.js
leobauza/microcosm
import React from 'react' import Presenter from 'microcosm/addons/presenter' import { set } from 'microcosm/' import ListForm from './parts/list-form' import ListList from './parts/list-list' class ListIndex extends Presenter { getModel() { return { lists: this.getListsWithCounts } } getListsWithC...
video_browser/src/components/video_detail.js
simplanapp/course
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-respons...
wp-content/themes/customizr/inc/assets/js/tc-scripts.js
Dwinejr/Syscontrol
//Falls back to default params var TCParams = TCParams || { DisabledFeatures : {}, centerAllImg: 1, FancyBoxAutoscale: 1, FancyBoxState: 1, HasComments: "", LeftSidebarClass: ".span3.left.tc-sidebar", LoadBootstrap: 1, LoadModernizr: 1, ReorderBlocks: 1, RightSidebarClass: ".span3.right.tc-sidebar", SliderD...
src/javascript/components/Footer.js
anilCSE/redux-react-router-example-app
import React, { Component } from 'react'; const styles = { layout: { height: '100px' }, footerText: { textAlign: 'right', padding: '40px 0', fontSize: '10px' } }; export default class Footer extends Component { render() { return ( <div style={styles.layout}> <div style...
test/NavbarSpec.js
tannewt/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import Nav from '../src/Nav'; describe('Nav', function () { it('Should create nav element', function () { let instance = ReactTestUtils.renderIntoDocument( <Navbar /> ); let nav = ...
ajax/libs/angular-google-maps/1.0.15/angular-google-maps.js
liubo404/cdnjs
/*! angular-google-maps 1.0.15 2014-03-05 * AngularJS directives for Google Maps * git: https://github.com/nlaplante/angular-google-maps.git */ /* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (functio...
src/index.js
LeoVitale/express-beer
/* eslint-disable global-require */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import createHistory from 'history/createBrowserHistory'; import AppContainer from 'react-hot-loader/lib/AppContainer'; import WebFont from 'webfontloader'; // apollo imports import ...
modules/__tests__/matchRoutes-test.js
fiture/react-router
/*eslint-env mocha */ import React from 'react' import Route from '../Route' import assert from 'assert' import expect from 'expect' import { createLocation } from 'history' import { createRoutes } from '../RouteUtils' import matchRoutes from '../matchRoutes' describe('matchRoutes', function () { let routes, RootR...
app/components/CatLearn/index.js
mhoffman/CatAppBrowser
/** * * YourNextApp * */ import React from 'react'; import PropTypes from 'prop-types'; import cachios from 'cachios'; import Helmet from 'react-helmet'; import { MenuItem } from 'material-ui/Menu'; import { InputLabel } from 'material-ui/Input'; import Select from 'material-ui/Select'; import { CircularProgress } fr...
docs/controls/button/index.js
aruberto/react-foundation-components
import React from 'react'; import { Button } from '../../../src/button'; import { ShowForScreenReader, HideForScreenReader } from '../../../src/visibility'; const ButtonPage = () => ( <div> <h1>Button</h1> <p> Buttons are convenient tools when you need more traditional actions. </p> <hr /> ...
ajax/libs/ember-data.js/2.3.0-beta.4/ember-data.js
wout/cdnjs
(function(){ "use strict"; /*! * @overview Ember Data * @copyright Copyright 2011-2015 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) * @version v2.3.0-beta.4 */ var define, requireModule, require, requirejs; (fun...
App/utils/helpers.spec.js
araneforseti/caretaker-app
import React, { Component } from 'react'; import { renderIf, fieldPresent } from './helpers'; describe('helpers', () => { describe('renderIf', () => { it('should return the component when the condition is true', () => { const component = <Component />; expect(renderIf(true, () => component)).toBe...
src/components/app.js
Charca/react-flux-starter
import React from 'react'; import Router from 'react-router'; const Link = Router.Link; const RouteHandler = Router.RouteHandler; class App extends React.Component { render() { return ( <div> <header> <ul> <li><Link to="app">Home</Link></li> <li><Link to="about">A...
app/classifier/tasks/text/index.spec.js
amyrebecca/Panoptes-Front-End
/* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-boolean-value': ['error', 'always'], 'react/jsx-filename-extension': 0 */ /* global describe, it, beforeEach */ import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; import sinon from 'sinon'; import TextTask from './'; im...
node_modules/react-bootstrap/es/MediaBody.js
nikhil-ahuja/Express-React
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
client/src/js/components/chatbox/ChatboxFirstComment.js
abitlog/retube
import React from 'react'; const FirstComment = ({ onCommentPost }) => { const handleLinkClick = (e) => { e.preventDefault(); onCommentPost("FIRST!!"); }; return ( <div className="chatbox__first-comment first-comment"> <div className="first-comment__content"> <i class="fa fa-comments...
src/svg-icons/action/settings-remote.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsRemote = (props) => ( <SvgIcon {...props}> <path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41...
tests/routes/UserManagement/components/CurrentUser.spec.js
vijayasankar/ML2.0
import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import CurrentUser from 'routes/UserManagement/components/CurrentUser' describe('(Component) UserManagement/CurrentUser - shallow', () => { let props let wrapper beforeEach(() => { props = { cssName: '', em...
src/components/tooltips/demos/Right.js
isogon/material-components
import React from 'react' import { Tooltip, Button, Icon } from '../../../' export default () => ( <Tooltip message="Follow" position="right"> <Button icon> <Icon name="add" /> </Button> </Tooltip> )
client/scripts/components/about/about.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
packages/material-ui-icons/src/AccountBalanceWalletSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 18v3H3V3h18v3H10v12h11zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z" /> , 'AccountBalanceWalletSharp');
client/src/components/software/index.js
OpenChemistry/materialsdatabank
import React, { Component } from 'react'; import withStyles from '@material-ui/core/styles/withStyles'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import ImageIcon from '@material-ui/icons/Image'; import PageHead from '../...
ajax/libs/react/0.11.1/react-with-addons.min.js
steve-ng/cdnjs
/** * React (with addons) v0.11.1 * * Copyright 2013-2014 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 r...
app/containers/IdeasList/index.js
karinamzalez/redux-ideabox
/*jshint esversion: 6 */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import IdeasList from 'components/IdeasList'; import { removeIdea, updateIdea } from '../App/actions'; import { makeSelectIdeas } from '../App/selectors'; const mapStateToPr...
priv/src/navbar.js
Blackrush/dofus.next
import React from 'react'; export default class extends React.Component { render() { return ( <nav className="navbar navbar-default"> <div className="container"> <div className="navbar-header"> <button type="button" className="navbar-t...
es/components/MediaList/Actions.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; var dontBubble = function dontBubble(event) { return event.stopPropagation(); }; /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key...
src/components/breadcrumbs/hashtag-breadcrumbs.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/components/tabSites/SitesView.js
timLoewel/sites
/** * Created by tim on 10/03/17. */ import {connect} from 'react-redux'; import React from 'react'; import { AppRegistry, AsyncStorage, Button, StyleSheet, Text, View, } from 'react-native'; class SitesView extends React.Component { static navigationOptions = { tabBar: { label: 'Sites', // visible:...
ajax/libs/es6-shim/0.11.1/es6-shim.js
aeharding/cdnjs
// ES6-shim 0.11.1 (c) 2013-2014 Paul Miller (http://paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ (function(undefined) { 'use strict'; var isCallableWithoutNew = function(func) { try { func(); } ...
src/data/types/SponsorType.js
tonimoeckel/lap-counter-react
/** * 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 { GraphQLObjectType as ObjectType, GraphQLID...
app/index.js
UsainBloot/notekeeper
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.s...
component/editor/editor.js
pltod2/braggers
import React from 'react'; import ReactDOM from 'react-dom'; import {EditorState, convertToRaw} from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import { fromJS } from 'immutable'; import { mdToDraftjs, draftjsToMd } from 'draftjs-md-converter'; import createMentionPlugin, { defaultSuggestionsFilter } fro...
src/components/tools/mode/mode.component.js
GeoTIFF/geotiff.io
import React from 'react'; import ToolHeader from '../../shared/tool-header'; import ToolContent from '../../shared/tool-content'; import ToolResults from '../../shared/tool-results'; import ToolFooter from '../../shared/tool-footer'; import DrawGeometry from '../../shared/draw-geometry'; import ImportGeometry from '.....
ajax/libs/material-ui/5.0.0-alpha.29/internal/svg-icons/LastPage.js
cdnjs/cdnjs
import * as React from 'react'; import createSvgIcon from '../../utils/createSvgIcon'; /** * @ignore - internal component. */ import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z" }), 'LastPage');