path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
frontend/src/Calendar/Day/CalendarDayConnector.js | Radarr/Radarr | import _ from 'lodash';
import moment from 'moment';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import CalendarDay from './CalendarDay';
function sort(items) {
return _.sortBy(items, (item) => {
i... |
src/svg-icons/editor/highlight.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorHighlight = (props) => (
<SvgIcon {...props}>
<path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/>
</SvgIcon>
);
Edito... |
auth/src/components/common/Button.js | sgcharameli/ReactNativeAndReduxCourse | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, text }) => {
const {
buttonStyle,
textStyle
} = styles;
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>{text}</Text>... |
docs/app/Examples/views/Item/Content/ItemExampleContents.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const ItemExampleContents = () => (
<Item.Group divided>
<Item>
<Item.Image size='tiny' src='/assets/images/wireframe/image.png' />
<Item.Content verticalAlign='middle'>Content A</Item.Content>
</Item>
<Item>
<Item.Imag... |
src/editable/html/containers/Container.js | webcerebrium/ec-react15-lib | import React from 'react';
import { Logger } from './../../../services/Logger';
import { renderChildren, getStyling } from './../../../services';
import './Container.css';
export const Container = ({ section, index, props, context, pos, childIndex }) => {
Logger.of('render.html.Container').info('section', section, '... |
js/Home/index.js | guilhermebruzzi/rnExamples | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
TouchableHighlight,
Image,
Text,
ListView,
View
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import { imdbLogo } from './assets/';
import m... |
app/boards/porsche-cup-gt3/components/pit-limiter.js | fermio/motorsport-display | import React from 'react';
import Gear from './gear';
import PitSpeed from './pit-speed';
import Throttle from './throttle';
const PitLimiter = React.createClass({
propTypes: {
gear: React.PropTypes.number,
speed: React.PropTypes.number,
throttle: React.PropTypes.number,
weekend: R... |
app/router/route_handlers/index.js | 12go/client-app | import assign from 'lodash.assign'
import React from 'react'
import ReactDOM from 'react-dom'
import Layout from '../../layout'
import Home from '../../pages/home'
const wrapPage = (Page, opts = {}) => {
return (
<Layout {...opts}>
<Page/>
</Layout>
)
}
const pages = {
home() {
ReactDOM.rend... |
app/javascript/components/TypesDeChampEditor/components/TypeDeChamps.js | sgmap/tps | import React, { useReducer } from 'react';
import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { SortableContainer, addChampLabel } from '../utils';
import TypeDeChamp from './TypeDeChamp';
import typeDeChampsReducer from '../typeDeChampsReducer';
function Type... |
src/svg-icons/av/queue-music.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueueMusic = (props) => (
<SvgIcon {...props}>
<path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/>
</SvgIcon>
);
AvQu... |
app/components/Header/index.js | jdm85kor/sentbe | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
ajax/libs/foundation/4.1.6/js/vendor/jquery.js | pram22/cdnjs | /*!
* 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/pages/Homepage/HomepageFeaturedCollection.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports.
*/
import React from 'react';
import {Link} from 'react-router';
import {FormattedMessage} from 'react-intl';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Text from '../../common/typography/Text';
/**
* Component.
*/
class HomepageFeaturedCol... |
src/containers/App.js | nagucc/jkef-web-react | import React from 'react';
import { Provider } from 'react-redux'
import {store} from '../redux/store'
import RawApp from '../components/App';
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<RawApp>{this.props.children}</RawApp>
</Provider>
... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/List/ExampleMessages.js | pbogdan/react-flux-mui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar';
import {grey400, darkBlack, lightBlack} from 'material-ui... |
app/components/icons/github.js | disolution/disolution-app | import React from 'react';
import { SvgIcon } from 'material-ui';
const GithubIcon = (props) => (
<SvgIcon viewBox="0 0 512 512" {...props}>
<path d="M256 70.7c-102.6 0-185.9 83.2-185.9 185.9 0 82.1 53.3 151.8 127.1 176.4 9.3 1.7 12.3-4 12.3-8.9V389.4c-51.7 11.3-62.5-21.9-62.5-21.9 -8.4-21.5-20.6-27.2-20.6-27.2 ... |
website/server/generate.js | codejet/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.
*/
var Promis... |
ajax/libs/react/0.5.2/react.min.js | thisispiers/cdnjs | /**
* React v0.5.2
*
* Copyright 2013 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 required by applicabl... |
src/components/app.js | pgriscti/payment-orginizer | import React, { Component } from 'react';
import NavBar from './nav-bar';
export default class App extends Component {
render() {
return (
<div>
<NavBar />
{this.props.children}
</div>
);
}
}
|
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | pavlosvos/krifominima | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
imports/client/utils/uniforms-custom/InputField.js | focallocal/fl-maps | import React from 'react'
import connectField from 'uniforms/connectField'
import { FormGroup, Label, Input } from 'reactstrap'
const Text = ({
className,
id,
label,
name,
onChange,
placeholder,
type,
value,
max,
min,
customType,
error,
...props
}) =>
<FormGroup className={className}>
<... |
docs/src/Anchor.js | BespokeInsights/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
antd-dva/ant-design-pro-demo/test/src/components/Charts/Bar/index.js | JianmingXia/StudyTest | import React, { Component } from 'react';
import { Chart, Axis, Tooltip, Geom } from 'bizcharts';
import Debounce from 'lodash-decorators/debounce';
import Bind from 'lodash-decorators/bind';
import autoHeight from '../autoHeight';
import styles from '../index.less';
@autoHeight()
class Bar extends Component {
state... |
src/mobile/src/components/EmployeeCreate.js | douglascbarbosa/plankit | import React, { Component } from 'react';
import { Picker, Text } from 'react-native';
import { connect } from 'react-redux';
import { employeeUpdate, employeeCreate } from '../actions';
import {Card, CardSection, Input, Button } from './common';
class EmployeeCreat extends Component {
onButtonPress(){
const { nam... |
fields/types/textarea/TextareaField.js | kumo/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged... |
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-v0.52.x/test_styled-components_v2.x.x.js | doberkofler/flow-typed | // @flow
import {renderToString} from 'react-dom/server'
import styled, {
ThemeProvider,
withTheme,
keyframes,
ServerStyleSheet,
StyleSheetManager
} from 'styled-components'
import React from 'react'
import type {
Theme,
Interpolation,
// Temporary
ReactComponentFunctional,
ReactComponentClass,
R... |
src/client/routes.js | cazacugmihai/este | import App from './app/app.react';
import Home from './home/index.react';
import Login from './auth/index.react';
import Me from './me/index.react';
import NotFound from './components/notfound.react';
import React from 'react';
import Todos from './todos/index.react';
import {DefaultRoute, NotFoundRoute, Route} from 'r... |
client/modules/messaging/components/.stories/conversation.js | StorytellerCZ/Socialize-starter | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import Conversation from '../conversation.jsx';
storiesOf('messaging.Conversation', module)
.add('default view', () => {
return (
<Conversation />
);
})
|
ajax/libs/react-router/0.9.5/react-router.min.js | sashberd/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
ajax/libs/yui/3.3.0pr2/loader/loader.js | ColinEberhardt/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js | ichiohta/material-ui | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
const StylesOverridingInlineExample = () => (
<Checkbox
name="StylesOverridingInlineExample"
label="Checked the mail"
style={{
width: '50%',
margin: '0 auto',
border: '2px solid #FF9800',
backgroundColor: '#ff... |
ajax/libs/yui/3.12.0/datatable-core/datatable-core.js | Pranay92/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
static_builder/src/vendor/backbone.js | one-more/peach_framework | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
EvergreenApp/components/Login/LoginScreen.js | tr3v0r5/evergreen | import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, TextInput, View, Alert,
LayoutAnimation, UIManager, AsyncStorage } from 'react-native';
import { Button, Icon } from 'react-native-elements';
const styles = require('../../Styles/style.js');
import LoginBox from './LoginBox.js';
import... |
jekyll-strapi-tutorial/api/plugins/users-permissions/admin/src/components/PopUpForm/index.js | strapi/strapi-examples | /**
*
* PopUpForm
*
*/
import React from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import {
capitalize,
get,
findIndex,
isArray,
isEmpty,
isObject,
includes,
map,
startsW... |
src/svg-icons/action/chrome-reader-mode.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChromeReaderMode = (props) => (
<SvgIcon {...props}>
<path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/>
... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/Endpoints/index.js | thusithak/carbon-apimgt | import React, {Component} from 'react'
import {Card, Button, message} from 'antd'
import GenericEndpointInputs from './GenericEndpointInputs'
import Api from '../../../../data/api'
import Loading from '../../../Base/Loading/Loading'
import ApiPermissionValidation from '../../../../data/ApiPermissionValidation'
class... |
packages/material-ui-icons/src/RadioButtonCheckedRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /><circle cx="12" cy="12" r="5" /></React.Fragment>
, 'Rad... |
ajax/libs/vkui/4.21.1/components/PopoutWrapper/PopoutWrapper.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/extends";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["alignY","alignX","closing","hasMask","fixed","children","onClick"];import{createScopedElement}from"..... |
fields/types/color/ColorColumn.js | kumo/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
test/development/basic/hmr/pages/hmr/style-dynamic-component.js | JeromeFitz/next.js | import React from 'react'
import dynamic from 'next/dynamic'
const HmrDynamic = dynamic(import('../../components/hmr/dynamic'))
export default () => {
return <HmrDynamic />
}
|
local-cli/templates/HelloWorld/index.ios.js | alin23/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
src/components/auth/signup.js | Peterrkang/Locals | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class SignUp extends Component {
handleFormSubmit(formProps) {
this.props.signupUser(formProps);
}
renderAlert(){
if (this.props.errorMessage){
return (
<div classN... |
ajax/libs/material-ui/4.9.2/esm/IconButton/IconButton.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@material-ui/utils';
import withStyles from '../st... |
app/components/client/step4/index.js | 7hci/surfboard | import React from 'react';
import Page from '../../shared/page';
const Step4 = () => (
<Page
content={
<div className="card-block">
<p>
Your contract has been submitted. You will be notified by e-mail once it has
been reviewed and countersigned.
</p>
</div>
}
... |
stories/Provider.js | ProteinsWebTeam/interpro7-client | import React from 'react';
import T from 'prop-types';
import { Provider } from 'react-redux';
const ProviderWrapper = ({ children, store }) => (
<Provider store={store}>{children}</Provider>
);
ProviderWrapper.propTypes = {
children: T.any,
store: T.object,
};
export default ProviderWrapper;
|
ui/src/main/js/components/__tests__/InstanceHistory-test.js | thinker0/aurora | import React from 'react';
import { shallow } from 'enzyme';
import InstanceHistory from '../InstanceHistory';
import InstanceHistoryItem from '../InstanceHistoryItem';
describe('InstanceHistory', () => {
it('Should reverse sort the tasks given to it by latest timestamp', () => {
const tasks = [
{assigned... |
ajax/libs/forerunnerdb/1.3.393/fdb-legacy.min.js | dhenson02/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... |
client/components/common/footer/footer.spec.js | gdumitrescu/aggregator | /* eslint-env mocha */
import React from 'react'
import {
createRenderer,
renderIntoDocument
} from 'react-addons-test-utils'
import expect from 'expect'
import expectJSX from 'expect-jsx'
expect.extend(expectJSX)
import Footer from './footer'
describe('Component: Footer', () => {
it('fully loaded DOM renderi... |
ajax/libs/rxjs/2.3.13/rx.lite.js | tonytlwu/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... |
wisewit_front_end/node_modules/react-router/es6/IndexLink.js | emineKoc/WiseWit | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from '.... |
examples/shared-root/app.js | kurayama/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/shared-root'
})
class App extends React.Component {
render() {
return (
<div>
<p>
This illustrates ... |
ajax/libs/swagger-ui/3.44.1/swagger-ui.js | cdnjs/cdnjs | /*! For license information please see swagger-ui.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(function(){return function(e){var t={};... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
src/garden/Garden.js | BushrootPDX/app |
import React, { Component } from 'react';
import GardenPlot from '../gardenPlot/GardenPlot';
import PlantSearch from '../plantsearch/PlantSearch';
import GardenBuilderContainer from '../gardenBuilder/GardenBuilderContainer';
import PlantActionSelectContainer from '../plantactionselector/PlantActionSelectContainer';
im... |
ajax/libs/forerunnerdb/1.3.416/fdb-core.js | BenjaminVanRyseghem/cdnjs | (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... |
src/svg-icons/action/settings-bluetooth.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/views/dictionary/verbd/addedit/VerbdAEForm.js | bostontrader/senmaker | // @flow
import React from 'react'
import PastFormRuleSelect from './PastFormRuleSelect'
import {validateVerbd} from '../../../../data/Validator'
import VerbdActions from '../../../../data/dictionary/verbd/VerbdActions'
import {VerbdPanelLevel} from '../../../../data/dictionary/verbd/VerbdConstants'
functio... |
ui/src/main/js/components/ConfigDiff.js | crashlytics/aurora | import React from 'react';
import Diff from 'components/Diff';
import { instanceRangeToString } from 'utils/Task';
export default class ConfigDiff extends React.Component {
constructor(props) {
super(props);
this.state = {
leftGroupIdx: 0,
rightGroupIdx: 1
};
}
getPicker(key) {
con... |
src/parser/warrior/fury/modules/azerite/RecklessFlurry.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { formatNumber, formatPercentage, formatThousands } from 'common/format';
import TraitStatisticBox from 'interface/others/TraitStatisticBox';
import SPELLS from 'common/SPELLS';
import { SELECTED_PLAY... |
ajax/libs/yui/3.14.1/datatable-body/datatable-body-debug.js | svvitale/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = ... |
ajax/libs/rxjs/2.2.2/rx.compat.js | jacobq/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/components/footer.spec.js | serge-14/smartserialapp | import mocha from 'mocha';
import chai from 'chai';
import React from 'react'
import { Provider } from 'react-redux'
import { mount, shallow } from 'enzyme'
import { createStore } from 'redux'
import reducer from '../reducers'
import sinon from 'sinon';
import Footer from './footer'
import {SerialPortWrapper} from '..... |
packages/cf-component-notifications/test/Notification.js | koddsson/cf-ui | import React from 'react';
import renderer from 'react-test-renderer';
import { render, unmountComponentAtNode } from 'react-dom';
import TestUtils from 'react-dom/test-utils';
import { Notification } from '../../cf-component-notifications/src/index';
import jsdom from 'jsdom';
// timeout as second arg is so annoying
... |
src/containers/GuessInput.js | dpickett/name-game | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Select from 'react-select'
class GuessInput extends React.Component {
constructor () {
super();
this.focus = this.focus.bind(this)
this.onChange = this.onChange.bind(this)
this.state = ... |
src/view/components/chat/Message.js | Danny-Robinson/bt-bingo | import React, { Component } from 'react';
class Message extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="message">
<strong>{this.props.user} :</strong>
<span>{this.props.text}</span>
</div>
... |
src/svg-icons/av/airplay.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAirplay = (props) => (
<SvgIcon {...props}>
<path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
AvAirplay = pure(AvAirplay... |
src/components/root/body/body.js | hamatoyogi/imdb-app-v2 | import React from 'react';
import { Filter } from './filter/filter';
import { Grid } from './grid/grid';
import { Row, Col } from 'react-flexbox-grid';
const style = {
display: 'flex',
justifyContent: 'center'
};
export const Body = () => {
return (
<div>
<Row xs="center">
<Col xs={ 12 } md={... |
ajax/libs/cignium-hypermedia-client/1.1.8/client.min.js | pvnr0082t/cdnjs | var Cignium=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=n(1)["default"];Object.defineProperty(t,"__esModule",{value:!0});var o=n(2... |
src/containers/Home/Home.js | Dengo/bacon-bacon | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// req... |
react-client/src/components/Lobby.js | lowtalkers/escape-reality | import AFRAME from 'aframe';
import 'aframe-animation-component';
import 'aframe-text-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import { Link, withRouter } from 'react-router';
import Camera from './Camera';
import Text from './Text';
import Sky from '... |
react-flux-mui/js/material-ui/src/svg-icons/communication/import-export.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportExport = (props) => (
<SvgIcon {...props}>
<path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/>
</SvgIcon>
);
CommunicationImportExport = pure(CommunicationImpo... |
src/Subscribe/success.js | jasongforbes/jforbes.io | import React from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import { withStyles } from '@material-ui/... |
src/svg-icons/editor/format-bold.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
ReduxReactToDo/app/components/DeleteIcon/index.js | michaelgichia/TODO-List | import React from 'react';
function DeleteIcon() {
return (
<svg
fill="#bfbfbf"
height="14"
viewBox="0 0 24 24"
width="14">
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
);
}
DeleteIcon.propTypes =... |
src/svg-icons/hardware/videogame-asset.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareVideogameAsset = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-... |
pages/demos/text-fields.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/text-fields/text-fields.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
... |
src/js/components/noMatch.js | kukua/farmer-weather-analytics | import React from 'react'
export default class NoMatch extends React.Component {
render () {
return (
<div>
<h1>404 Not Found</h1>
<h3>The route you have requested could not be found.</h3>
</div>
)
}
}
|
src/js/components/icons/base/More.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
app/javascript/mastodon/features/account/components/header.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import ImmutablePureComponent from 'react-immutable-pure-component';
impo... |
frontend/app_v2/src/components/WidgetKeyboards/WidgetKeyboardsPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// FPCC
import appleBadge from 'images/badge-apple.svg'
import googleBadge from 'images/badge-google.svg'
import macLogo from 'images/logo-mac.png'
import chromebookLogo from 'images/logo-chromebook.png'
import windowsLogo from 'images/logo-windows.png'
impo... |
ajax/libs/primereact/3.3.2/components/tieredmenu/TieredMenuSub.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TieredMenuSub=void 0;var _react=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_classnames=_interopRequireDefault(require("classnames")),_DomHandler=_interopRequireDefault(require("../utils/Do... |
src/svg-icons/content/sort.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSort = (props) => (
<SvgIcon {...props}>
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
</SvgIcon>
);
ContentSort = pure(ContentSort);
ContentSort.displayName = 'ContentSort';
ContentSort.mui... |
test/SafeAnchorSpec.js | brentertz/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SafeAnchor from '../src/SafeAnchor';
describe('SafeAnchor', function() {
it('renders an anchor tag', function() {
const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />);
const node = React.findDOMNode(instanc... |
scripts/starter-code/app/components/App/App.spec.js | tomatau/breko-hub | import React from 'react'
import { Helmet as DocumentMeta } from 'react-helmet-async'
import { app as appCopy } from 'app/copy'
import App from './App'
describe(`App Component`, function () {
helpers.setupSnapshots(__filename)
beforeEach(() => {
this.wrapper = shallow(<App />)
})
it(`renders a Helmet doc... |
packages/strapi-plugin-content-manager/admin/src/containers/Edit/index.js | lucusteen/strap | /*
*
* Edit
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import _ from 'lodash';
import { router } from 'app';
import { define } from 'i18n';
import Container from 'components/Container';
import EditForm from 'components/EditForm';
im... |
examples/flux-utils-todomvc/js/app.js | dmlinn/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
lib/filter-tile/infoText.js | numo-labs/isearch-ui | import React, { Component } from 'react';
require('./style.css');
export default class InfoText extends Component {
render () {
return (
<div className='bubble'>
Click on this tile to filter the results based on your preferences
</div>
);
}
}
|
packages/dictionary/dictionary.js | typ90/orion | /**
* Creates the dictionary mongo collection
*/
orion.dictionary = new Mongo.Collection('dictionary');
/**
* To get reactively if the dictionary is active
*/
orion.dictionary._isActiveDependency = new Tracker.Dependency;
orion.dictionary._isActive = false;
orion.dictionary.isActive = function() {
this._isActiv... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js | alobodig/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import { DropTarget } from 'react-dnd';
import { setCurrentPage } from '../../actions';
let timeoutID = false;
// drop target
var ItemsTableDragDro... |
draft-js-buttons/src/components/AlignBlockRightButton/index.js | dagopert/draft-js-plugins | import React from 'react';
import createBlockAlignmentButton from '../../utils/createBlockAlignmentButton';
export default createBlockAlignmentButton({
alignment: 'right',
children: (
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M9,15 L3,15 L3,17 L9,17 L9,1... |
node_modules/react-tools/src/eventPlugins/__tests__/AnalyticsEventPlugin-test.js | kentaromiura/sugo | /**
* Copyright 2013 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 required by applicable law or agreed to ... |
ajax/libs/raven.js/3.23.0/angular,console,require,vue/raven.js | cdnjs/cdnjs | /*! Raven.js 3.22.2 (1b6187b) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function (global, factory) ... |
webapp/app/components/SoftwaresByUser/Buttons/ModalDeleteAllSoftwares/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Modal to delete a software in softwares by user page
//
import React from 'react';
import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/SoftwaresByUser/styles.css';
/* eslint-disable react/prefer-stateless-function... |
src/components/RedeemForm.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import withIntl from '../lib/withIntl';
import { Flex } from '@rebass/grid';
import { FormattedMessage, defineMessages } from 'react-intl';
import { P } from './Text';
import InputField from './InputField';
import styled from 'styled-components';
const D... |
resources/assets/js/bootstrap.js | komorowskidev/laravel-senOszambali |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
window.$ = window.jQuery = require('jquery');
require('boo... |
node_modules/redux-devtools-log-monitor/src/LogMonitorEntry.js | rekyyang/ArtificalLiverCloud | import React, { PropTypes, Component } from 'react';
import JSONTree from 'react-json-tree';
import LogMonitorEntryAction from './LogMonitorEntryAction';
import shouldPureComponentUpdate from 'react-pure-render/function';
const styles = {
entry: {
display: 'block',
WebkitUserSelect: 'none'
},
tree: {
... |
ajax/libs/react-autocomplete/1.8.1/react-autocomplete.js | jonobr1/cdnjs | (function (g, factory) {
if (typeof exports === 'object' && typeof module !== 'undefined') {
module.exports = factory(require('react'), require('react-dom'))
} else if (typeof define === 'function' && define.amd) {
define(['react', 'react-dom'], factory)
} else {
g['ReactAutocomplete... |
ajax/libs/react-quill/0.0.5/react-quill.js | wil93/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quill"));
else if(typeof define === 'function' && define.amd)
define(["react", "quill"], factory);
else if(typeof exports === 'object')
e... |
src/components/Caption/index.js | Noviel/osnova-react-environment | // Created by snov on 01.02.2017.
import React, { Component } from 'react';
import styles from './style.css';
export default class Caption extends Component {
static propTypes = {
text: React.PropTypes.string
};
static defaultProps = {
text: 'Caption'
};
render() {
return (
<div classNam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.