target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/HtmlWebsite/Scripts/jquery-1.10.2.min.js | henkmollema/MindstormR | /* 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/smart/item/ItemRow.js | jeckhummer/ebidding-commercial | import React from 'react';
import {connect} from 'react-redux';
import {updateItem} from "../../actions";
import {TransitionStatus, Status, Mode} from "../../entities/ItemDescriptors";
import {getDuplicatedItems} from "../../selectors";
import {EditItemButton} from "../buttons/EditItemButton";
import {RemoveItemButton}... |
ajax/libs/yui/3.13.0/event-custom-base/event-custom-base.js | jaywcjlove/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/components/singleComponent.js | joropeza/react-compared-with-vanilla-js | import React, { Component } from 'react';
import randomWord from 'random-words';
export default class SingleComponent extends Component {
constructor(props) {
super(props);
this.state = {word: 'Hello'};
this._handleButtonClick = this._handleButtonClick.bind(this);
}
_handleButtonClick() {
let newRan... |
src/js/components/Projects/New.js | appdev-academy/appdev.academy-react | import React from 'react'
import { browserHistory } from 'react-router'
import { inject, observer } from 'mobx-react'
import Form from './Form'
@inject('projectsStore')
@inject('tagsStore')
@observer
export default class New extends React.Component {
constructor(props) {
super(props)
this.state = {
... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | it33/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
app/components/users/UserProfileForm.js | Block-and-Frame/block-and-frame | import React, { Component } from 'react';
import Geosuggest from 'react-geosuggest';
class UserProfileForm extends Component {
constructor(props) {
super(props);
this._onBlur = this._onBlur.bind(this);
this._onLocationSelect = this._onLocationSelect.bind(this);
}
_onBlur() {
this.refs.geosugges... |
app/javascript/mastodon/components/status_action_bar.js | ambition-vietnam/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureCompo... |
ajax/libs/rxjs/2.4.1/rx.compat.js | Olical/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... |
spec/coffeescripts/react_files/components/UploadProgressSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - 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... |
packages/@lyra/default-layout/src/components/NotFound.js | VegaPublish/vega-studio | import React from 'react'
import {StateLink} from 'part:@lyra/base/router'
export default function NotFound(props) {
return (
<div>
<h2>Page not found</h2>
{props.children}
<StateLink toIndex>Go to index</StateLink>
</div>
)
}
|
src/app/components/Shell.js | michael-wolfenden/webpack2-react-starter | import React from 'react'
import Message from 'components/Message'
const Shell = () =>
<div>
<Message text="Webpack 2 React Skeleton" />
</div>
export default Shell
|
src/routes/Film/components/FilmView.js | jhash/jhash | import './FilmView.scss'
import React from 'react'
export class FilmView extends React.Component {
static propTypes = {}
render () {
return (
<div className='view--film row' />
)
}
}
export default FilmView
|
ajax/libs/react-bootstrap/0.25.0-alpha.0/react-bootstrap.js | brix/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["ReactBootstrap"] = ... |
src/components/common/NavBarBack.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, Platform, View, Text} from 'react-native';
import {Actions} from 'react-native-router-flux';
import dismissKeyboard from 'dismissKeyboard';
import * as components from '../';
export default ({cbBack, iconStyle}) => {
return <components.NavBarLeftButton
icon='chevro... |
src/routes/Tournaments/components/TournamentsList.js | akossebestyen/getrecd-client-redux | import React from 'react'
import TournamentsForm from './TournamentsForm'
import TeamList from './TeamList'
import classes from './Tournaments.scss'
import { Link } from 'react-router'
export const TournamentsList = (props) => (
<div className="row">
<div className="col-md-6">
<h3>Create Tourney</h3>
... |
client/views/teams/contextualBar/info/Delete/ChannelDeletionTable.js | VoiSmart/Rocket.Chat | import { Box, CheckBox } from '@rocket.chat/fuselage';
import React from 'react';
import GenericTable from '../../../../../components/GenericTable';
import { useTranslation } from '../../../../../contexts/TranslationContext';
import ChannelRow from './ChannelRow';
const ChannelDeletionTable = ({
rooms,
params,
onC... |
src/components/Inky.js | gakimball/react-inky | import React from 'react';
export default function Inky() {
return (
<tr>
<td>
<img src="https://raw.githubusercontent.com/arvida/emoji-cheat-sheet.com/master/public/graphics/emojis/octopus.png"/>
</td>
</tr>
);
}
|
ajax/libs/ember-data.js/0.13.0/ember-data-latest.js | billybonz1/cdnjs | // Version: v0.13
// Last commit: 610cfec (2013-05-28 08:04:23 -0400)
(function() {
var define, requireModule;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
requireModule = function(name) {
if (seen[name... |
vendor/font-awesome/src/3.2.1/assets/js/jquery-1.7.1.min.js | niclassahlin/Crello | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/propTypes/TransformPropTypes.js | lelandrichardson/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/TransformPropTypes.js
*/
import React from 'react';
const { PropTypes } = React;
const arrayOfNumberPropType = PropTypes.arrayOf(PropTypes.number);
const transformMatrixPropType = function (props, propName, componentName, ...rest) {
... |
src/svg-icons/device/access-alarm.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
test/fixtures/hoc-unnamed/actual.js | layershifter/babel-plugin-transform-react-handled-props | import PropTypes from 'prop-types';
import React, { Component } from 'react';
export const HOC = Child => class extends Component {
static propTypes = {
children: PropTypes.node
}
render() {
return <Child />
}
}
|
ajax/libs/primeui/4.1.3/primeui-ng-all.js | x112358/cdnjs | /*!
* jQuery JavaScript Library v2.2.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-02-22T19:11Z
*/
(function( global, factory ) {
if ( typeof module ==... |
public/js/lib/react/jsx/pages/Content.js | inquisive/simpledocs | import React from 'react';
let yes = true;
let no = false;
export default class Content extends React.Component {
constructor(props) {
super(props);
this.displayName = 'Content Component';
this.state = {
ready: yes,
register: no,
mounted: no,
response:no,
data:{}
};
}
componentWillRece... |
src/index.js | phodal/growth-ng | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Router } from 'react-native-router-flux';
import SplashScreen from 'react-native-splash-screen';
import { connect, Provider } from 'react-redux';
import AppIntro from 'react-native-app-intro';
import { Icon } from 'react-native-e... |
ajax/libs/forerunnerdb/1.3.46/fdb-core.min.js | ahocevar/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... |
frontend-new/src/js/components/dashboard/resourceDonutChart/index.js | leapfrogtechnology/vyaguta-resource | /**
* Created by sanjeev on 3/7/17.
*/
import React, { Component } from 'react';
import { Doughnut, Chart } from 'react-chartjs-2';
import _cloneDeep from 'lodash/clone';
import Spinner from '../../common/spinner';
import LegendContainer from './LegendContainer';
import '../../../../css/custom-doughnut-chart.css';
... |
assets/naive_list_4/app.js | somebody32/high-performance-redux | import { connect } from 'react-redux';
import React, {Component} from 'react';
class Item extends Component {
static rerenderViz = true;
constructor() {
super();
this.onClick = this.onClick.bind(this);
}
onClick() {
this.props.onClick(this.props.id);
}
render() {
const {id, marked} = this... |
frontend/components/markdown/NegativeText.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import styles from './NegativeText.less';
const NegativeText = ({text}) => <span className={styles.main}>{text}</span>;
NegativeText.propTypes = {
text: PropTypes.string.isRequired,
};
export default NegativeText;
|
_site/js/vendor/jquery-1.9.1.min.js | smledbetter/habitry_source | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
files/rxjs/2.3.13/rx.all.compat.js | tunnckoCore/jsdelivr | // 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... |
test/Header.js | GetAmbassador/react-ions | import React from 'react'
import Icon from '../src/components/Icon/Icon'
import Button from '../src/components/Button/Button'
import Header from '../src/components/Modal/Header'
describe('Header', () => {
let wrapper
const handleClose = () => {}
it('should render itself', () => {
wrapper = shallow(<Header h... |
packages/mineral-ui-icons/src/IconOpenInBrowser.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconOpenInBrowser(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
client/src/pages/index.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import Landing from '../components/landing';
import { AllChallengeNode } from '../redux/propTypes';
export const IndexPage = ({
data: {
allChallengeNode: { edges }
}
}) => {
return <Landing edges={edges} />;
};
... |
src/Pagination.js | tannewt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [BootstrapMixi... |
files/jquery.fancytree/2.14.0/jquery.fancytree.min.js | dlueth/jsdelivr | /*!
* jquery.fancytree.js
* Tree view control with support for lazy loading and much more.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.14.0
* @date 2015... |
app/jsx/assignments_2/teacher/components/Editables/AssignmentType.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... |
app/src/components/Gallery.js | quiaro/chunches | import React, { Component } from 'react';
import { gql, graphql, compose, withApollo } from 'react-apollo';
import GalleryGrid from './styled/GalleryGrid';
import GalleryItem from './GalleryItem';
import { getUserId } from '../common/AuthService';
import ErrorHandler from '../common/ErrorHandler';
class Gallery extend... |
index.ios.js | Notificare/notificare-push-lib-react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
FlatList,
StyleSheet,
Text,
NativeModules,
NativeEventEmitter,
TouchableHighlight,
View
} from 'react-native';
const Notificare = Nat... |
js/jquery-1.11.1.js | digitalbliss/sameheightplugin | /*!
* 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 ... |
src/svg-icons/hardware/security.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSecurity = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
</SvgIcon>
);
Hardwa... |
ajax/libs/jquery/1.11.2/jquery.js | thisispiers/cdnjs | /*!
* jQuery JavaScript Library v1.11.2
* 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-12-17T15:27Z
*/
(function( global, factory ) {
if ... |
node_modules/react-router/es6/IndexRoute.js | laere/country-news | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | caughtclean/but-thats-wrong-blog | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
src/svg-icons/image/tonality.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTonality = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/ModalBody.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "tag"];
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { ... |
assets/javascripts/kitten/components/feedback/progress-ring/test.js | KissKissBankBank/kitten | import React from 'react'
import renderer from 'react-test-renderer'
import { ProgressRing } from './index'
import COLORS from '../../../constants/colors-config'
describe('<ProgressRing />', () => {
let component
describe('by default', () => {
beforeEach(() => {
component = renderer
.create(
... |
examples/roses/Feedback.js | material-components/material-components-web-react | // The MIT License
//
// Copyright (c) 2018 Google, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... |
src/components/programs/inshelter/PrimaryTabs/PhysicalActivity.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
const PhsyicalActivity = () => {
return (
<React.Fragment>
<h3>Physical Activity</h3>
<p>
With classic games like Duck, Duck, Goose and the parachute game, we
teach children teamwork and communication while also promoting an active
lifestyle through ... |
vendor/assets/javascripts/jquery-1.9.1.js | allantokuda/LDT | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/components/categories/categories-add.js | Xabadu/VendOS | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form';
import { createCategory } from '../../actions/categories';
class CategoriesAdd extends Component {
constructor(props) {
super(props);
this.state = {
... |
src/svg-icons/editor/show-chart.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShowChart = (props) => (
<SvgIcon {...props}>
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</SvgIcon>
);
EditorShowChart = pure(EditorShowChart);
EditorShowChart.displayNa... |
WebContent/lib/jquery/development-bundle/jquery-1.9.1.js | 1wheel/imMens | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
components/SearchBox.js | stucco/ui | import React from 'react'
import ReactDOM from 'react-dom'
import history from '../core/history'
import cx from 'classnames'
import Link from './Link'
import { connect } from 'react-redux'
import { SET_SOURCE } from '../redux/actions'
const properties = {
name: 'Name',
vertexType: 'Vertex Type',
... |
ajax/libs/webshim/1.14.4-RC3/dev/shims/moxie/js/moxie.js | brix/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
assets/javascripts/sso/components/AdminListMemberCard.js | wchaoyi/sso | import StyleSheet from 'react-style';
import React from 'react';
import {Admin} from '../models/Models';
let AdminListMemberCard = React.createClass({
getInitialState() {
return {
members: [],
};
},
componentWillMount() {
this.reload();
},
componentWillReceiveProps(nextProps){
const... |
client/src/app/drop-zone/DropZone.js | camunda/bpmn-io-modeler | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
src/client/containers/LoginWrapper/LoginWrapper.js | vidaaudrey/trippian | import log from '../../log'
import React, {
Component, PropTypes
}
from 'react'
import {
JumbotronShortWidget
}
from '../../components/index'
import {
LoginWrapper
as appConfig
}
from '../../config/appConfig'
export default class LoginWrapper extends Component {
constructor(props) {
super(props)
}
ren... |
docs/src/examples/elements/Segment/Groups/SegmentExampleHorizontalSegments.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleHorizontalSegments = () => (
<Segment.Group horizontal>
<Segment>Left</Segment>
<Segment>Middle</Segment>
<Segment>Right</Segment>
</Segment.Group>
)
export default SegmentExampleHorizontalSegments
|
docs/src/app/components/pages/components/AppBar/Page.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import appBarReadmeText from './README';
import AppBarExampleIcon from './ExampleI... |
src/pages/index.js | farmanp/farmanp.github.io | import React from 'react';
import { Helmet } from 'react-helmet';
import App from '../components/App';
import { headData } from '../mock/data';
import 'bootstrap/dist/css/bootstrap.min.css';
import '../style/main.scss';
export default () => {
const { title, lang, description } = headData;
return (
<>
<H... |
test/unit/testHelper.js | ChrisBauer/codenames-frontend | import jq from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import createHistory from 'react-router/lib/browserHistory';
import { Provider... |
src/root/components/Root.js | nordsoftware/react-boilerplate | // @flow
import React from 'react'
import {BrowserRouter as Router, Route} from 'react-router-dom'
import Hello from '../../hello/components/Hello'
import css from './Root.css'
const Root = () => (
<div className={css.component}>
<Router>
<div className={css.routes}>
<Route exact path="/" componen... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | PlantsNetwork/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshHashtagTimeline,
expandHashtagTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/colu... |
src/interface/report/Results/Character/PlayerInfo/Essence.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'common/Icon';
import SpellLink from 'common/SpellLink';
import ESSENCES from 'common/SPELLS/bfa/essences';
import { makeSpellApiUrl } from 'common/makeApiUrl';
const FALLBACK_ICON = 'inv_misc_questionmark';
class Essence extends React.P... |
src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js | tomv564/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... |
5.2.4/src/components/DevTools.js | erikras/redux-form-docs | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { toggleVisibilityKey, changePositionKey } from './devToolsConfig'
export default createDevTools(
<DockMonitor
{...{ toggleVis... |
components/DismissablePanel/DismissablePanel.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import Panel, { PANEL_CONTEXT } from '../Panel/Panel';
import BtnContainer from '../BtnContainer/BtnContainer';
import Icon from '../Icon/Icon';
import css from './DismissablePanel.css';
const DismissablePanel = (props) => {
... |
src/containers/Favorites.js | laurazenc/react-marvel-comics | import React, { Component } from 'react';
import { connect } from 'react-redux';
// action creators
import { getFavorites, getComic} from '../actions';
// components
import { Loading, Comic } from '../components';
class Favorites extends Component {
constructor(props) {
super(props);
this.state = {
comics: ... |
src/render/Lick/Lick.js | hugo-cardenas/jazzroutine-frontend | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import LickForm from './LickForm';
import LickView from './LickView';
import { LICK_MODE_EDIT, LICK_MODE_VIEW } from '../../state/actions/lick/modes';
class Lick extends React.Component {
render() {
const { lick, saveLic... |
app/app.js | fforres/coworks_2 | /**
* app.js
*
* This is the entry file for the application, only setup and default
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';
/* ... |
packages/node_modules/@ciscospark/react-component-error-display/src/index.js | bzang/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
export default function ErrorDisplay(props) {
const {
actionTitle,
onAction,
secondaryTitle,
title,
transparent
} = props;
function handleAction(e) {
e.... |
src/browser/app/components/Form.js | robinpokorny/este | // @flow
import type { BoxProps } from './Box';
import type { Styled } from '../themes/types';
import Box from './Box';
import styled from './styled';
import React from 'react';
type FormProps = BoxProps & {
children?: any,
onSubmit?: SyntheticEvent => void,
};
const onSubmitWithPreventDefault = onSubmit => event... |
src/Button.js | hcjk/react-pasta | import React from 'react'
import PropTypes from 'prop-types'
import Base from './Base'
import { baseColors, typeScale } from './BaseStyle'
const Button = (props) => (
<Base {...props}
className='btn'
propertyType='button'
baseStyle={{
backgroundColor: baseColors[props.buttonType],
color: base... |
src/UserRow/index.js | bolshchikov-public/wazzapp | import React from 'react';
import PropTypes from 'prop-types';
import './UserRow.css';
import ProfileImage from '../ProfileImage';
const UserRow = ({user}) => {
return (
<div className="user-row">
<ProfileImage user={user} />
<div className="chat-item-name">
{user.userName}
</div>
... |
node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js | constellational/iOS | /**
* 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... |
ajax/libs/riot/3.0.0-rc/riot+compiler.js | pvnr0082t/cdnjs | /* Riot v3.0.0-rc, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.riot = factory());
}(this, (function () { 'use strict';
var __TAGS_CACHE = [];
var __... |
__tests__/index.android.js | gziny/windsurf-community-mobile | 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/image/control-point-duplicate.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPointDuplicate = (props) => (
<SvgIcon {...props}>
<path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ... |
src/components/Proposal/Proposal.js | nambawan/g-old | import {
FormattedRelative,
FormattedMessage,
defineMessages,
} from 'react-intl';
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './Proposal.css';
import UserThumbnail from '../UserThumbnail';
... |
webApp/web_client/components/Landing.js | deliquescentlicorice/silent-disco | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { History } from 'react-router';
import reactMixin from 'react-mixin';
// COMPONENTS
import StreamEntry from './StreamEntry.js';
import NavBar from './NavBar.js';
import Loading from './Loading.js';
import NoStream from './NoStream.js';... |
assets/js/jquery.js | david-robinson-practiceweb/Bootstrap-child | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
ajax/libs/yui/3.7.2/event-focus/event-focus-coverage.js | sujonvidia/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
components/time_picker/ClockHours.js | KerenChandran/react-toolbox | import React from 'react';
import utils from '../utils/utils';
import Face from './ClockFace';
import Hand from './ClockHand';
const outerNumbers = [0, ...utils.range(13, 24)];
const innerNumbers = [12, ...utils.range(1, 12)];
const innerSpacing = 1.7;
const step = 360 / 12;
class Hours extends React.Component {
st... |
src/layouts/index.js | ThoughtAtWork/Website | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import Header from '../components/Header'
import Footer from '../components/Footer'
import './index.scss'
const TemplateWrapper = ({ children }) => (
<div>
<Helmet
title="Thought At Work 2018"
meta={[
... |
node_modules/react-icons/md/linear-scale.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdLinearScale = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.5 15.9c2.3 0 4.1 1.8 4.1 4.1s-1.8 4.1-4.1 4.1c-1.7 0-3.2-1-3.8-2.5h-4.9c-0.6 1.5-2.1 2.5-3.8 2.5s-3.2-1-3.8-2.5h-4.9c-0.6 1.5-2.1 2.5-3.8 2.5-2.3 0-4.1-1.8-4.... |
react-client/src/FreesoundList.js | wfwalker/freesound-experiment | import React from 'react';
import Freesound from './Freesound';
import './FreesoundList.css';
const ListTitle = (props) => {
return (
<div className='listTitle'>
<div onClick={props.handleToggle} className='playerButton' style={{float: 'left'}}>
<i className='material-icons smaller'>{props.ex... |
ui/src/main/js/components/Loading.js | rdelval/aurora | import React from 'react';
export default function Loading() {
return <div>Loading...</div>;
}
|
src/containers/victories.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Victories as VictoriesComponent } from 'Theme/victories'
const victories = [
{
link: 'https://front.moveon.org/category/victories/#.U4z0eK1dUuo',
image: {
src:
'https://front.moveon.org/wp-content/uploads/2014/06/CCMC.So_.Ca... |
web/src/client/main.js | ViliamKopecky/este | import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import {configureStore} from '@este/common';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import createRoutes from './createRoutes';
import {IntlProvider} from 'react-intl';
import {Provider} from 're... |
client/omnichannel/realTimeMonitoring/counter/CounterRow.stories.js | Sing-Li/Rocket.Chat | import React from 'react';
import CounterRow from './CounterRow';
import CounterItem from './CounterItem';
export default {
title: 'omnichannel/RealtimeMonitoring/Counter',
component: CounterRow,
};
export const Default = () => <CounterRow>
<CounterItem title='total conversations' count={10}/>
<CounterItem title... |
addons/themes/strongly-typed/layouts/Single.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Single = React.createClass({
componentDidMount(){
require('../assets/css/main... |
webapp/imports/ui/components/TermsConditionsCard.js | clinical-meteor/meteor-on-fhir | import React from 'react';
import ReactMixin from 'react-mixin';
import { ReactMeteorData } from 'meteor/react-meteor-data';
import { CardTitle, CardText, CardHeader } from 'material-ui/Card';
import { Link } from 'react-router';
import { Table } from 'react-bootstrap';
import LinearProgress from 'material-ui/LinearP... |
src/components/views/Home.js | jennywin/donate-for-good | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { BrowserRouter, Route, Link } from 'react-router-dom';
import NewAccount from './account/NewAccount';
import SignIn from './account/SignIn';
import DonorConfirmation from './donor/DonorConfirmation';
import DonorGoodsForm... |
ajax/libs/mobx-react/4.4.1/index.js | sufuf3/cdnjs | ;(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined"
? factory(exports, require("mobx"), require("react"), require("react-dom"))
: typeof define === "function" && define.amd
? define(["exports", "mobx", "react", "react-dom"], factory)
: facto... |
src/components/styleguide/Styleguide.js | mailvelope/mailvelope-styleguide | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import logo from '../../img/maivelope-logo.svg';
import 'bootstrap/dist/css/bootstrap.css';
import '../../css/styleguide.css';
class Styleguide extends Component {
render() {
return (
<div className="styleguide">
<di... |
js/src/modals/Shapeshift/shapeshift.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/scripts/Downloads.js | williamthing/yoda | 'use strict';
import React from 'react/addons';
import Join from 'react/lib/joinClasses';
import {RenderMixin} from './Mixins';
import DownloadsHeader from './DownloadsHeader';
import DownloadsTable from './DownloadsTable';
const PureRenderMixin = React.addons.PureRenderMixin;
export default React.createClass({
pr... |
src/components/SchedulePage/MeetingPanel/index.js | deltaidea/planning-app | import React, { Component } from 'react';
import { Route } from 'react-router';
import BleedContainer from '../../BleedContainer';
import MeetingList from './MeetingList';
import CreateMeeting from './CreateMeeting';
import EditMeeting from './EditMeeting';
export default class MeetingPanelContainer extends Component... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.