path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/components/AddTask/TeamSelect/index.js | prudhvisays/newsb | import React from 'react';
import Select, { Option } from 'rc-select';
export default class TeamSelect extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.state = {
value: [],
};
this.onChange = this.onChange.bind(this);
}
onChange(e) {
let value;
... |
demo/src/index.js | xDae/react-plyr | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from "react-router-dom";
import App from './App';
ReactDOM.render(
<Router>
<App />
</Router>,
document.getElementById('root'));
|
app/routes/home.js | manosim/react-native-base | import React from 'react';
import PropTypes from 'prop-types';
import {
Button,
StyleSheet,
Text,
View,
} from 'react-native';
import Styles from '../utils/styles';
import Constants from '../utils/constants';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
... |
src/components/atoms/Login/Login.js | BradZzz/occasio | // @flow
import React, { Component, PropTypes } from "react";
import { connect } from "react-redux"
import * as UserActions from "../../../actions/user"
import AUTH from "../../../firebase/auth"
import styles from "./styles.css"
export class Login extends Component {
constructor(props) {
super(props)
console... |
node_modules/material-ui/lib/svg-icons/notification/folder-special.js | dominikgar/flask-search-engine | 'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var NotificationFolderSpecial = React.createClass({
displayName: 'NotificationFolderSpecial',
mixins: [PureRenderMixin],
render: function render() {
return ... |
examples/counter/index.js | xgrommx/redux-act | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
bdocker/bnodejs/gatsby/web/wrappers/html.js | waterbolik/prestudy | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div>
<Helmet
ti... |
ajax/libs/react-data-grid/0.12.11/react-data-grid.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactDataGrid"] = f... |
sites/all/modules/ctools/js/dependent.js | fourkitchens/2010.drupalcampaustin.com | // $Id: dependent.js,v 1.4.2.2 2009/10/05 23:38:33 merlinofchaos Exp $
/**
* @file
*
* Written by dmitrig01 (Dmitri Gaskin) for CTools; this provides dependent
* visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('CTools_process_dependency'),
* - Add ... |
ajax/libs/d3fc/11.0.0/d3fc.bundle.js | kennynaoh/cdnjs | !function() {
var d3 = {
version: "3.5.17"
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
var d3_document = this.document;
function d3_documentElement(node) {
return node && (node.ownerDocument || node.document || node).documentElement;
}
fun... |
docs/app/Examples/modules/Accordion/Variations/AccordionExampleInverted.js | koenvg/Semantic-UI-React | import _ from 'lodash'
import faker from 'faker'
import React from 'react'
import { Accordion, Segment } from 'semantic-ui-react'
const panels = _.times(3, () => ({
title: faker.lorem.sentence(),
content: faker.lorem.paragraphs(),
}))
const AccordionExampleInverted = () => (
<Segment inverted>
<Accordion pa... |
src/components/manga/components/mangaPortrait/MangaPortrait.js | Khadosh/leoManga | import React from 'react';
import PropTypes from 'prop-types';
import { Paper, Divider } from 'material-ui';
const portraitStyle = {
height: 300,
width: 200,
margin: 25,
textAlign: 'center',
display: 'inline-block',
backgroundColor: '#EFEFEF',
color: '#666'
};
const MangaPortrait = ({title}) => (
<Pap... |
react/features/settings/components/web/ModeratorTab.js | jitsi/jitsi-meet | // @flow
import { Checkbox } from '@atlaskit/checkbox';
import React from 'react';
import { AbstractDialogTab } from '../../../base/dialog';
import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
/**
* The type of the React {@code Component} props... |
Samples/Debug.Tracing/Debug.TracingWeb/Scripts/jquery-1.9.1.min.js | darei-fr/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... |
packages/mcs-lite-landing-web/src/components/SVG/SVGOpenCode2.js | MCS-Lite/mcs-lite | /**
* svgtoreact
*
* @author Michael Hsu
*/
import React from 'react';
export default function SVGOpenCode2(props) {
return (
<svg width={58} height={70} viewBox="0 0 58 70" {...props}>
<g>
<path
d="M37.898 1h-34.888c-1.11 0-2.01.899-2.01 1.992v63.183c0 1.1.892 1.992 2.003 1.992h51.3... |
test/regressions/tests/Input/InputLabels.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import { InputLabel } from 'material-ui/Input';
const styles = {
container: {
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
padding: 20, // so transform... |
tests/components/Header/Header.spec.js | shinja/react-redux-c3 | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
src/components/seen.js | beardalpha/mockmovielists | import React, { Component } from 'react';
import { connect } from 'react-redux';
class Seen extends Component {
constructor(props){
super(props);
this.state = {seen: false}
}
componentWillReceiveProps(nextProps){
for(let i=0;i<this.props.watchedMovies.length;i++){
debugger;
if(this.props.watchedMovies[i... |
pages/api/select.js | allanalexandre/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './select.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
|
js/account/src/components/Account/Header.js | fogfish/oauth2 | import React from 'react'
import {
Navbar,
Alignment,
Icon,
Tooltip,
Intent,
} from '@blueprintjs/core'
import { IconNames } from '@blueprintjs/icons'
import { authorize, WhoIs } from 'react-hook-oauth2'
const Account = () => WhoIs(({ sub }) => (<>{sub}</>))
const Header = () => (
<Navbar>
<Navbar.Gro... |
src/PageItem.js | victorzhang17/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
src/App.js | lleohao/meow-ui | import React, { Component } from 'react';
import { Layout } from 'antd';
import { SideBar, Overview, Setting, Rules } from './components';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import './App.css';
class App extends Component {
render() {
return (
<Router>
... |
js/components/phoneNumbers/index.js | marcpechaitis/ForestWatch | import React, { Component } from 'react';
import { Alert, Linking, Platform } from 'react-native';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import {
Card,
Container,
Header,
Title,
Content,
Text,
Button,
Icon,
Left,
Body,
Right,
} from 'native-base... |
test/test_helper.js | chiatanyaRVS/reactUdemy1 | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/main/webapp/templets/1/mooc/js/base.js | jiangkunkun/cmsbuild | !function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHT... |
examples/demos/popup.js | manishksmd/react-scheduler-smartdata | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
class Popup extends React.Component{
render(){
return (
<div {...this.props}>
<h3 className='callout'>
Click the "+x more" link on any calendar day that cannot fit all the days events t... |
Frontend/WebContent/api/lib/jquery-1.8.0.min.js | TeamNeko/CatBox | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/client/components/MapView.js | ZeusTheTrueGod/background-geolocation-console | // @flow
import React, { Component } from 'react';
import _ from 'lodash';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import { type Location, clickMarker } from '~/reducer/dashboard';
import { type GlobalState } from '~/reducer/state';
import GoogleMap from 'google-map-react';
... |
__tests__/index.ios.js | IllegalCreed/pwdsaver_app | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/firebase/8.9.1-8.9.1-exp-types-exploration.416850ec8/firebase-auth.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).firebase)}(this,function(e){"use strict";try{!function(){function t(t){return t&&"object"==typeof t&&"... |
public/components/frontPage/TehtavaList.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import { setCurrentTehtava, getTehtavaProfile } from '../../reducer/tehtava/actions';
//code from: https://scotch.io/courses/getting-started-with-react-and-redux/displaying-our-characters
const TehtavaList = ({ tehtavat, setTehtava }) =>
<div id='t... |
app/imports/ui/client/layouts/Header/index.js | valcol/ScrumNinja | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
class Header extends Component {
constructor(props) {
super(props);
this.handleSubmitLogout = this.handleSubmitLogout.bind(this);
}
handleSubmitLogout(event) {
... |
demo/population-choropleth.js | joelburget/d4 | import React from 'react';
import {quantile} from 'd3-array';
import {scaleLog} from 'd3-scale';
import {interpolateHcl} from 'd3-interpolate';
import {geoPath} from 'd3-geo';
import topojson from 'topojson';
import us from '../data/us-albers.json';
const width = 960;
const height = 500;
const color = scaleLog()
.... |
packages/material-ui-icons/src/BluetoothRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17 7l-4.29-4.29c-.63-.63-1.71-.19-1.71.7v6.18L7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0... |
admin/client/Signin/Signin.js | cermati/keystone | /**
* The actual Sign In view, with the login form
*/
import assign from 'object-assign';
import classnames from 'classnames';
import React from 'react';
import xhr from 'xhr';
import Alert from './components/Alert';
import Brand from './components/Brand';
import UserInfo from './components/UserInfo';
import LoginF... |
packages/material-ui-icons/src/EvStation.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V14c0-1.1-.9-2-2-2h-1V5c0-1.1-.9-2-2-2H6c-1.1 0-2 ... |
node_modules/react-navigation/lib-rn/views/CardStackTransitioner.js | gunaangs/Feedonymous | import React, { Component } from 'react';
import { NativeModules } from 'react-native';
import CardStack from './CardStack';
import CardStackStyleInterpolator from './CardStackStyleInterpolator';
import Transitioner from './Transitioner';
import TransitionConfigs from './TransitionConfigs';
var babelPluginFlowReactPr... |
src/Parser/Core/Modules/NetherlightCrucibleTraits/ChaoticDarkness.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import HealingDone ... |
node_modules/react-bootstrap/es/Clearfix.js | joekay/awebb | 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 ... |
src/routes/notFound/index.js | markfranco/equitise | /**
* 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... |
frontend/scripts/components/users/UserGroup.js | jakubzloczewski/react-exercise | import React from 'react';
import Button from './../common/Button.js';
class UserGroup extends React.Component {
render() {
const {group} = this.props;
return (
<div>
<span>{group.name}</span>
<Button label="remove from group" onClick={this.onRemove.bind... |
lib/site/topic-layout/topic-article/comments/list/component.js | DemocracyOS/democracyos | import React from 'react'
import Comment from './comment/component'
export default function CommentsList (props) {
const comments = props.comments || []
return (
<div
className={`comments-list${props.loading ? ' loading' : ''}`}>
{
comments.map((item) => {
const handlers = {
... |
SnowyMobile/__tests__/index.android.js | alexandradutz/mdevprog-laboratory | 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 />
);
});
|
proto/data-refining/front/workdir/components/includes/Filter.js | cttgroup/oceanhub | import React from 'react'
import PropTypes from 'prop-types'
import { FormControl, FormGroup, HelpBlock, Button,
ControlLabel,
} from 'react-bootstrap'
import Cement from './Cement'
import { ZSelect, ZCheckbox, ZText } from './ZBootstrap'
export class Filter extends React.Component {
constructor(props) {
sup... |
src/createServer.js | unkleho/react-universal-builder | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
// import 'babel-polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import { renderToString } from 'react-dom/server';
import { Provider } from 'react-redux';
imp... |
src/components/Tweeter.js | jamez14/jams-tweeter | import React from 'react';
import StatusForm from './StatusForm';
import StatusList from './StatusList';
import StatusApi from '../api/statusApi';
class Tweeter extends React.Component {
constructor() {
super();
this.state = {data: []};
this.handleStatusSave = this.handleStatusSave.bind(this);
}
com... |
ajax/libs/analytics.js/2.8.14/analytics.js | terrymun/cdnjs | (function umd(require){
if ('object' == typeof exports) {
module.exports = require('1');
} else if ('function' == typeof define && define.amd) {
define(function(){ return require('1'); });
} else {
this['analytics'] = require('1');
}
})((function outer(modules, cache, entries){
/**
* Global
... |
src/Navbar/mixing/Playlist/Playlist.js | znewton/myxx-client | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Playlist.scss';
export default class Playlist extends Component {
render () {
return (
<div className="Playlist">
<div className="playlist-name">{this.props.name}</div>
<div className="playlist-... |
src/components/DataTableRow/DataTableRow-test.js | jzhang300/carbon-components-react | import React from 'react';
import DataTableRow from '../DataTableRow';
import { shallow } from 'enzyme';
describe('DataTableRow', () => {
it('should render', () => {
const wrapper = shallow(
<DataTableRow>
<div>Children</div>
</DataTableRow>
);
expect(wrapper).toMatchSnapshot();
});... |
shopping-cart-app/src/components/Wrapper/Wrapper.js | JCFlores/shoppingCart | import React from 'react';
import './Wrapper.css';
const Wrapper = props => <div className="wrapper">{props.children}</div>;
export default Wrapper;
|
components/widgets/charts/TextChart.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import 'isomorphic-fetch';
import { format } from 'd3-format';
class TextChart extends React.Component {
static propTypes = {
widgetConfig: PropTypes.object.isRequired,
toggleLoading: PropTypes.func, // Will be called with the loading state
};
... |
src/components/MidiStreamSettings.js | synestize/synestizer | import React, { Component, PropTypes } from 'react'
import SubPane from './SubPane'
import DeviceSelect from '../components/DeviceSelect'
import IntSelect from '../components/IntSelect'
import MidiCCSet from '../components/MidiCCSet'
const MidiStreamSettings = ( {
title,
currentChannel,
deviceMap,
valid,
cur... |
app/jsx/assignments_2/teacher/components/Overrides/EveryoneElse.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
ajax/libs/forerunnerdb/1.3.611/fdb-legacy.min.js | dlueth/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/svg-icons/notification/phone-locked.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneLocked = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5... |
react/src/pages/feedback/message-view.js | motiko/sfdc-debug-logs | import React from 'react'
import List, { ListItem, ListItemText, ListItemIcon } from 'material-ui/List'
import ReplyIcon from 'material-ui-icons/Reply'
export default function MessageView({ message: m, onReply, nested }) {
function repliesList(replies) {
if (!replies) return
return (
<List disablePaddi... |
front/src/components/card/card.js | tersfeld/DETER | import React from 'react';
import { Component } from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import TaskList from '../task/taskList';
import TaskForm from '../task/taskForm';
import {getTasks} from '../../actions/index';
class Card extends Component {
render() {
... |
src/components/antd/date-picker/wrapPicker.js | hyd378008136/olymComponents | import React from 'react';
import PropTypes from 'prop-types';
import TimePickerPanel from 'rc-time-picker/lib/Panel';
import classNames from 'classnames';
import { generateShowHourMinuteSecond } from '../time-picker';
import warning from '../_util/warning';
import { getComponentLocale } from '../_util/getLocale';
func... |
react-native/TechStack/__tests__/index.ios.js | vanyaland/react-demos | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/x-editable/1.4.4/bootstrap-editable/js/bootstrap-editable.js | aaqibrasheed/cdnjs | /*! X-editable - v1.4.4
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
src/redux-todo/components/Header.spec.js | SodhanaLibrary/react-examples | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Header from './Header'
import TodoTextInput from './TodoTextInput'
const setup = () => {
const props = {
addTodo: jest.fn()
}
const renderer = TestUtils.createRenderer()
renderer.render(<Header {...props} />)
const output =... |
app/components/AddUser/FranchiseSelect/index.js | theterra/newsb | import React from 'react';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.css';
function onDeselect() {
console.log(arguments);
}
export default class FranchiseSelect extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.state = {
... |
ajax/libs/jquery-confirm/2.5.1/jquery-confirm.min.js | kiwi89/cdnjs | /*!
* jquery-confirm v2.5.1 (http://craftpip.github.io/jquery-confirm/)
* Author: Boniface Pereira
* Website: www.craftpip.com
* Contact: hey@craftpip.com
*
* Copyright 2013-2015 jquery-confirm
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
*/
if(typeof jQuery==="undefined... |
src/parser/hunter/survival/modules/talents/Bloodseeker.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import { BLOODSEEKER_ATTACK_SPEED_GAIN } from 'parser/hunter/survival/constants';
import { formatPercentage } from 'common/format';
import It... |
webpack/__mocks__/foremanReact/components/common/MessageBox.js | adamruzicka/foreman-tasks | import React from 'react';
export const MessageBox = () => <div className="message-box-root" />;
export default MessageBox;
|
admin/src/nav/nav.js | mnichangxin/LibAss | import React from 'react'
import styles from './nav.less'
class Nav extends React.Component {
constructor(props) {
super(props)
this.data = {
}
}
render() {
return (
<div className={styles.nav}>
<div className={styles.logo}>
... |
src/components/image.js | eyeccc/eyeccc.github.io | import React from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import Img from 'gatsby-image';
/*
* This component is built using `gatsby-image` to automatically serve optimized
* images with lazy loading and reduced file sizes. The image is loaded using a
* `StaticQuery`, which allows us to load the ... |
stories/Welcome.js | jesperancinha/buy-odd-react | 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/routes/admin/Admin.js | taekungngamonosus/monoreact | /**
* 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 PropTypes from 'prop-... |
lib/yuilib/2in3/2.9.0/build/yui2-yuiloader/yui2-yuiloader.js | yairspi/moodle | YUI.add('yui2-yahoo', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{});
YUI.add('yui2-get', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{"requires": ["yui2-yahoo"]});
YUI.add('yui2-yuiloader', function(Y) {
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
htt... |
core/router.js | rauchs-jewelry/rauchs-jewelry-website | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
examples/stress-test.js | Monadical-SAS/redux-time | import React from 'react'
import ReactDOM from 'react-dom'
import Button from 'react-bootstrap/lib/Button'
import {createStore, combineReducers} from 'redux'
import {Provider, connect} from 'react-redux'
import {ExpandableSection} from 'monadical-react-components/node/expandable-section'
import {AnimationControls} fr... |
app/packs/src/components/TabLayoutContainer.js | ComPlat/chemotion_ELN | import React from 'react';
import PropTypes from 'prop-types';
import Immutable from 'immutable';
import ArrayUtils from './utils/ArrayUtils';
import TabLayoutCell from './TabLayoutCell';
export default class TabLayoutContainer extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
react/20161127/src/js/A.js | fengnovo/diary | import React from 'react'
import {Link } from 'react-router'
class A extends React.Component {
constructor (props){
super(props)
}
KeepScrollBar() {
var scrollPos;
if (typeof window.pageYOffset != 'undefined') {
scrollPos = window.pageYOffset;
}
... |
src/containers/pages/decks/deck/right-container/topbar/deck-details/deck-details.js | vFujin/HearthLounge | import React from 'react';
import DeckVotes from "./votes";
import DeckStats from "./stats";
import Archetype from "./archetype";
import './styles.css';
const DeckDetails = () =>(
<div className="deck-details">
<DeckVotes />
<DeckStats />
<Archetype />
</div>
);
export default DeckDetails; |
app/page/player.js | iicoom/react-music-player | import React from 'react'
import Progress from '../components/progress'
import { Link } from 'react-router';
require('./player.less');
import Pubsub from 'pubsub-js'
let duration = null;
let Player = React.createClass({
getInitialState() {
return {
progress: 0,
volume: 0,
isPlay: true
}
},
componentDid... |
protocol-designer/src/components/KnowledgeBaseLink/index.js | Opentrons/labware | // @flow
import * as React from 'react'
export const KNOWLEDGEBASE_ROOT_URL =
'https://support.opentrons.com/en/collections/493886-protocol-designer'
export const links = {
multiDispense: `https://support.opentrons.com/en/articles/4170341-paths`,
protocolSteps: `https://support.opentrons.com/en/collections/4938... |
react/features/base/react/components/native/NavigateSectionListItem.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import Swipeout from 'react-native-swipeout';
import { ColorPalette } from '../../../styles';
import type { Item } from '../../Types';
import AvatarListItem from './AvatarListItem';
import Container from './Container';
import Text from './Text';
import styles from ... |
src/components/wysiwygEditor/InlineStylingOptions.js | teamleadercrm/teamleader-ui | import React from 'react';
import Box from '../box';
import IconButton from '../iconButton';
import Tooltip from '../tooltip';
import { TextSmall } from '../typography';
import getOS, { OS_TYPES } from '../../utils/getOS';
const TooltippedIconButton = Tooltip(IconButton);
const OPERATING_SYSTEM = getOS();
const Too... |
packages/bonde-admin/src/app/context/hoc.js | ourcities/rebu-client | import React from 'react'
import Wrapper from './wrapper'
export default (Component) => ({ children, ...ownProps }) => (
<Wrapper component={Component} {...ownProps}>
{children}
</Wrapper>
)
|
files/babel/5.4.5/browser-polyfill.js | PeterDaveHello/jsdelivr | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
app/components/Carousel.js | albertmejia/empire_room | import React from 'react';
import Slider from 'react-slick';
import carousel from '../styles/carousel.scss';
import { Link } from 'react-router';
class Carousel extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
const settings = {
... |
src/components/Header/Header.js | danhipke/my-lacroix-rankings | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div className='header'>
<h1>LaCroix Flavor Pyramid</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/results' activeClass... |
frontend/Toolbar/BannerImage.js | fdemian/SeguidorCarrera | import React from 'react';
import cssModules from 'react-css-modules';
import Styles from './css/BannerImage.scss';
const BannerImage = ({source}) => (
<img src={source} styleName="BannerImage" />
);
export default cssModules(BannerImage, Styles, { allowMultiple: true }); |
actor-apps/app-web/src/app/components/Install.react.js | wangkang0627/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
client/src/pages/dbInfo/index.js | jizhuofeng/redis-monitor | import React from 'react';
import { Input, Button, Spin, Form, Row, Col, message, Tabs, Icon, Tag,
Modal, Select, Dropdown, Card} from 'antd';
const FormItem = Form.Item;
const TabPane = Tabs.TabPane;
const InputGroup = Input.Group;
const Option = Select.Option;
import { Glo_getRequest, Glo_postRequest } from '..... |
config/karma.config.js | dannyrdalton/example_signup_flow | const argv = require('yargs').argv
const project = require('./project.config')
const webpackConfig = require('./webpack.config')
const debug = require('debug')('app:config:karma')
debug('Creating configuration.')
const karmaConfig = {
basePath : '../', // project root in relation to bin/karma.js
files : [
{... |
ajax/libs/react-chartjs-2/1.2.6/react-chartjs-2.min.js | cdnjs/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Chart=t()}}(function(){return function t(e,n,r){functio... |
examples/create-proptype/Card.js | jackrzhang/react-custom-proptypes | import React from 'react';
import { createPropType } from './../../lib/custom-proptypes';
const Card = props => (
<div>
<div>{props.suit}</div>
<div>{props.value}</div>
</div>
);
const suitPropType = createPropType(
prop =>
prop === 'spades' ||
prop === 'hearts' ||
prop === 'diamonds' ||
... |
packages/material-ui-icons/src/FormatPaintTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M6 4h10v2H6z" opacity=".3" /><path d="M17 2H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3V3c0-.55-.45-1-1-1zm-1 4H6V4h10v... |
zql-frontend/components/MainRouter.js | Zubdano/zql | import React, { Component } from 'react';
import { Switch, Route, Redirect } from 'react-router-dom'
import GrammarEditor from './GrammarEditor';
import Events from './Events';
import LoginScreen from './LoginScreen';
import TextInput from './TextInput';
import { auth } from '../requests/auth';
function renderWithAuth... |
src/App.js | davendesai/twitchcast | import React, { Component } from 'react';
import TwitchCast from './components/TwitchCast'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
export default class App extends Component {
render() {
return (
... |
src/components/blocks/BlockHr.js | m0sk1t/react_email_editor | import React from 'react';
const BlockHr = ({ blockOptions, onPropChange }) => {
return (
<table
width="550"
cellPadding="0"
cellSpacing="0"
role="presentation"
>
<tbody>
<tr>
<td
width="550"
style={blockOptions.elements[0]}
height={blockOptions.container.height}
>
... |
src/js/Main/components/Values.js | fr3nchN/proactive | import React from 'react'
import links from "./../links"
import ContentValues from "./../../../content/homepage/ContentValues"
const Value = ({ valueItem }) => {
const imagePath = "images/values/"+valueItem.image;
const image =
<div className="col-md-3">
<img src={imagePath} alt={valueItem.... |
examples/todomvc/containers/TodoApp.js | knowbody/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/todos';
class TodoApp extends Component {
render() {
... |
ajax/libs/mediaelement/2.1.8/jquery.js | victorjonsson/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.
... |
interlecture/client/__tests__/classroom.react-test.js | Astroxslurg/interlecture | import React from 'react';
import renderer from 'react-test-renderer';
import { Classroom } from '../questions/classroom.jsx';
const questions = [
{
id: 1,
user: 'Rolf',
body: 'hvorfor gjør vi dette?',
datetime: 'whatever',
},
{
id: 2,
user: 'Arne',
body: 'kommer dette på eksamen?',
... |
assets/frontpage/articles/components/ArticlesHeading.js | dotKom/onlineweb4 | import React from 'react';
import { Glyphicon } from 'react-bootstrap';
import Urls from 'urls';
const ArticlesHeading = () => (
<div className="page-header clearfix">
<div className="row">
<div className="col-md-8 col-xs-6">
<h1 id="articles-heading">Artikler</h1>
</div>
<div className... |
Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js | kushal/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.
*
* @provides... |
app/javascript/mastodon/features/reblogs/index.js | cybrespace/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.