path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
docs/src/examples/elements/Segment/Variations/SegmentExampleClearing.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Segment } from 'semantic-ui-react'
const SegmentExampleClearing = () => (
<Segment clearing>
<Button floated='right'>floated</Button>
</Segment>
)
export default SegmentExampleClearing
|
test/fixtures/react/arrow-react-fragment/expected.js | davesnx/babel-plugin-transform-react-qa-classes | import React, { Component } from 'react';
const componentName = () => {
return <React.Fragment>
<h1>Hello world</h1>
</React.Fragment>;
};
export default componentName;
|
react/FacebookIcon/FacebookIcon.sketch.js | seek-oss/seek-style-guide | import React from 'react';
import FacebookIcon from './FacebookIcon';
import generateSketchIconSizes from '../private/generateSketchIconSizes';
export const symbols = {
...generateSketchIconSizes('Facebook/1. Unfilled', <FacebookIcon />),
...generateSketchIconSizes('Facebook/2. Filled', <FacebookIcon filled />)
};... |
wp-content/themes/vf/images/vf/vf/js-1/jquery-latest.js | jamshedvf/vfnew | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
examples/react/app/containers/DevTools.js | tcurdt/xstatic | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey='H' changePositionKey='Q'>
<LogMonitor />
</DockMonitor>
)
|
node_modules/react-navigation/lib-rn/views/CardStack/Card.js | jiangqizheng/ReactNative-BookProject | import React from 'react';
import { Animated, StyleSheet } from 'react-native';
import createPointerEventsContainer from './PointerEventsContainer';
/**
* Component that renders the scene as card for the <NavigationCardStack />.
*/
class Card extends React.Component {
render() {
const { children, pointerEve... |
ajax/libs/forerunnerdb/1.3.848/fdb-core+views.min.js | rlugojr/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... |
files/react/0.11.0/react-with-addons.js | bonbon197/jsdelivr | /**
* React (with addons) v0.11.0
*/
!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.React=e()}}(fu... |
content/js/jquery-1.11.3.min.js | hcin720-fall15/website | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
blueprints/view/files/__test__/views/__name__View.spec.js | stranbury/react-miuus | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
node_modules/react-icons/ti/world.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiWorld = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 3.3c-8.3 0-15 6.7-15 15s6.7 15 15 15 15-6.7 15-15-6.7-15-15-15z m3.3 3.4c0 1.6-0.8 3.3-2.5 3.3s-2.5 1.7-2.5 3.3v5s1.7 0 1.7-5c0-0.9 0.7-1.6 1.7-1.6s1.6 0.7 1.6 1.6v... |
internals/templates/containers/NotFoundPage/index.js | 7ruth/PadStats2 | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
app/app-client.js | Villanuevand/react-github-search | import React from 'react';
import ReactDOM from 'react-dom';
import AppRoutes from './components/AppRoutes';
ReactDOM.render(<AppRoutes/>, document.getElementById('app'));
|
ReduxThunkNews/src/js/components/TabsSwipeable.js | fengnovo/webpack-react | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
import ListContacts from './ListContacts';
export default class TabsSwipeable extends React.Component {
constructor(props) {
... |
src/webapp.js | AlhasanIQ/PiTrol | import React, { Component } from 'react';
var plugins = require('./plugins')
const componentList = []
for (var i = 0; i < plugins.length; i++)
{
const plugin = plugins[i]
const uiComponent = plugin.ref.uiComponent
componentList.push(uiComponent)
}
export default class WebApp extends Component
{
render()
{
... |
client/components/Layout/Navigation.js | kriasoft/FSharp-Server-Template | /**
* ASP.NET Core Starter Kit
*
* Copyright © 2014-2016 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 { Link } from 'react-app';
class Navigation extends... |
src/pages/components/footer.js | H3yfinn/finbarmaunsell.com | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<div
className='footer'
style={{paddingTop: '40px',
borderTopStyle: 'outset',
borderTopColor: '#afafaf',
borderTopWidth: 'thin... |
templates/rubix/relay/relay-example/src/routes/EditTodo.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import Relay from 'react-relay';
import ReactDOM from 'react-dom';
import { withRouter } from 'react-router';
import {
Row,
Col,
Grid,
Form,
Alert,
Panel,
Button,
Checkbox,
PanelBody,
FormGroup,
FormControl,
ControlLabel,
PanelContainer } from '@sketchpixy/rubix';
... |
src/parser/warlock/demonology/modules/features/LegionStrike.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER_PET } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatThousands } from 'common/format';
import Sta... |
packages/material-ui-icons/src/SignalCellular1BarSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M12 12L2 22h10V12z" /></g></React.Fragment>
, 'SignalCellular1BarSharp');
|
ajax/libs/tinymce/4.1.10/plugins/legacyoutput/plugin.js | simudream/cdnjs | /**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align
* attributes and so... |
node_modules/core-js/modules/es6.promise.js | akioers/akioers.github.io | 'use strict';
var $ = require('./$')
, LIBRARY = require('./$.library')
, global = require('./$.global')
, ctx = require('./$.ctx')
, classof = require('./$.classof')
, $export = require('./$.export')
, isObject = require('./$.is-object')
, anObject = require('./$.an-objec... |
ajax/libs/yui/3.8.1/scrollview-base/scrollview-base-debug.js | Rbeuque74/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie,
NATIVE_TRA... |
docs/app/Examples/collections/Grid/Variations/GridExamplePadded.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExamplePadded = () => (
<div>
<p>The following grid has vertical and horizontal gutters.</p>
<Grid columns={2} padded>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<... |
client/src/components/feature.js | Zsugi/react-auth | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
class Feature extends Component {
componentWillMount() {
this.props.fetchMessage();
}
render() {
return (
<div>{this.props.message}</div>
);
}
}
f... |
src/routes.js | lemonCMS/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import {
App,
Home,
Login,
Logout,
RequireLogin,
Dashboard,
RequireAdminLogin,
Admin,
About
} from 'components';
// export default function(store) {
export default function(history) {
return (
<Route component={App} history={histor... |
src/index.js | FourwingsY/react-sketch-viewer | import React from 'react'
import ReactDOM from 'react-dom'
import Document from './Document'
ReactDOM.render(<Document />, document.querySelector("#app")) |
src/shared/common/components/Button.js | chrishelgert/pandorica | import React, {PropTypes} from 'react';
import {css, StyleSheet} from 'aphrodite';
import * as colors from '../constants/colors';
import * as spaces from '../constants/spaces';
const active = {
background: colors.TURQUOISE,
borderColor: colors.GRAY,
color: colors.GRAY
};
const styles = StyleSheet.create({
con... |
src/Knight.js | chandlera/react-hot-boilerplate | import React from 'react';
export default class Knight {
render() {
return (
<span style={{
fontSize: '90px'
}}>
♘
</span>
);
}
}
|
ajax/libs/rxjs/2.3.4/rx.all.js | sahat/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... |
ajax/libs/primereact/8.0.0-rc.2/chart/chart.cjs.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/hooks"),r=require("primereact/utils");function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor... |
src/svg-icons/action/receipt.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReceipt = (props) => (
<SvgIcon {...props}>
<path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-... |
node_modules/semantic-ui-react/src/collections/Form/FormButton.js | IgorKilipenko/KTS_React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Button from '../../elements/Button'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Button} />
* @see Button
* @see Form
*/
function FormButton(props) {
const ... |
js/components/Hello.js | syarul/isoblog | import React from 'react';
import HelloStore from '../stores/HelloStore';
export default class Hello extends React.Component {
constructor() {
super();
this.state = HelloStore.getState();
}
render() {
return <div> Hello, {this.state.name} </div>
}
};
|
source/src/index.js | mondalamit/mondalamit.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
packages/canvas-media/src/useSizeVideoPlayer.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
src/index.js | Marilynlee/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
ajax/libs/yui/3.18.0/event-focus/event-focus-min.js | LaurensRietveld/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
src/svg-icons/maps/directions-subway.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsSubway = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5... |
src/index.js | AleksandrChukhray/redux_projects | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import './styles/app.css'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<div className='app'>
<App />... |
src/components/FilterItem/FilterItem.js | tigaly/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import styles from './FilterItem.less'
const FilterItem = ({
label = '',
children,
}) => {
const labelArray = label.split('')
return (
<div className={styles.filterItem}>
{labelArray.length > 0
? <div className={styles.labelWrap}>
... |
src/components/ScheduleItem/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Title, Tag } from 'bloomer';
import * as constant from '../../constants';
import './index.scss';
class ScheduleItem extends React.Component {
static propTypes = {
item: PropTypes.object.isRequired,
className: PropTypes.string,
}
sta... |
frontend/src/cms/containers/authors/Form/index.js | tsurupin/portfolio | import React, { Component, PropTypes } from 'react';
import { fetchAuthor, updateAuthor } from 'cms/actions/authors';
import { updateSocialAccount } from 'cms/actions/socialAccounts';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form';
import DropzoneImage from 'cms/components/shared/Dropzone... |
ajax/libs/cyclejs-core/0.6.5/cycle.js | drewfreyling/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... |
packages/material-ui-icons/src/RestoreFromTrashTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M16 14h-2v4h-4v-4H8v5h8zM16 14V9H8v5l4-4z" opacity=".3" /><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2-5V9h8v10H8v-5zM15.5 4l-1-1h-5l... |
app/javascript/app/providers/adaptations-provider/adaptations-provider.js | Vizzuality/climate-watch | import { PureComponent } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import actions from './adaptations-provider-actions';
export { initialState } from './adaptations-provider-reducers';
export { default as reducers } from './adaptations-provider-reducers';
export { defaul... |
tests/mocha/unit-tests/react/components/CoreFonts/core.font.button.spec.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import { shallow, mount } from 'enzyme'
import CoreFontButton from '../../../../../../src/assets/js/react/components/CoreFonts/CoreFontButton'
describe('<CoreFontButton />', () => {
it('Render a button', () => {
const clickCallback = sinon.spy()
const comp = shallow(
<CoreFon... |
Examples/UIExplorer/AppStateIOSExample.js | sonnylazuardi/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
ajax/libs/forerunnerdb/1.3.119/fdb-core.js | kiwi89/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... |
ajax/libs/vee-validate/2.2.10/vee-validate.minimal.js | joeyparrish/cdnjs | /**
* vee-validate v2.2.10
* (c) 2019 Abdelrahman Awad
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.VeeValidate = f... |
ajax/libs/angular-data/1.4.2/angular-data.js | RobLoach/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.4.2 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
webapp-src/src/hutch.js | babelouest/hutch | /**
*
* Hutch front-end application
*
* Copyright 2021 Nicolas Mora <mail@babelouest.org>
*
* License AGPL
*
*/
import React from 'react';
import ReactDOM from 'react-dom';
import i18next from 'i18next';
import Backend from 'i18next-http-backend';
import LanguageDetector from 'i18next-browser-languagedetec... |
app/containers/NewProjectPage.js | pascalw/gettable | import React, { Component } from 'react';
import ProjectCreator from '../components/ProjectCreator';
export default () => {
return (
<div className="new-project-page page">
<ProjectCreator/>
</div>
);
}
|
src/svg-icons/action/pan-tool.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPanTool = (props) => (
<SvgIcon {...props}>
<path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4... |
src/ObjectInspector.js | xyc/react-object-inspector | import React, { Component } from 'react';
import ObjectDescription from './ObjectDescription';
import ObjectPreview from './ObjectPreview';
// Constants
const DEFAULT_ROOT_PATH='root';
// Styles
import objectStyles from './objectStyles';
const styles = {
base: {
fontFamily: 'Menlo, monospace',
fontSize: '1... |
client/containers/permissions/GrantPermissions.spec.js | zhakkarn/Mail-for-Good | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { GrantPermissionsComponent } from './GrantPermissions';
const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars
form: {},
isPosting: true,
response: {},
notify: () => {},
postGrantPermissio... |
src/initial-state.js | mortentangen/react-slick | var initialState = {
animating: false,
dragging: false,
autoPlayTimer: null,
currentDirection: 0,
currentLeft: null,
currentSlide: 0,
direction: 1,
// listWidth: null,
// listHeight: null,
// loadIndex: 0,
slideCount: null,
slideWidth: null,
// sliding: false,
// ... |
Components/Modale.js | webismymind/Mycelium |
import React from 'react';
import Component from './Component';
import { Easing, StyleSheet, Text, View, Animated } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
export default class extends Component {
constructor(props) {
super(props);
this.state = {
... |
src/App.js | marceltschoppch/react-redux-webpack-blog | import React from 'react';
import ApiClient from './helpers/ApiClient';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
count: this.props.count
};
this.handleClick = this.handleClick.bind(this);
this.client = new ApiClient();
}
handleClick() {
... |
ajax/libs/yui/3.7.0/datatable-core/datatable-core.js | thisispiers/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... |
src/routes/Character/components/CharacterView.js | warcraftlfg/warcrafthub-client | import React from 'react'
import { Col, Row } from 'react-bootstrap'
import ErrorMessages from '../../../containers/ErrorMessages'
import CharacterTitle from './CharacterTitle'
import UpdateButton from '../../../containers/UpdateButton'
import CharacterNav from './CharacterNav'
import './CharacterView.scss'
class Char... |
src/ProgressLabel.js | Copy-of-Kate/copy-of-kate.com | import React from 'react';
import './Progress.css';
import './ProgressLabel.css';
const ProgressLabel = props => {
const chapterData = props.chapterData || {};
return (
<span className={'Progress-label Progress--' + chapterData.progress}>
{chapterData.progressLabel}
</span>
);
};
export default Pr... |
packages/material-ui-icons/src/ScreenLockRotationRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22.3 13.77l-1.86-1.87a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41l1.51 1.52-5.66 5.66L3.56 9.17l5.66-5.66 1.4 1.4c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.75-1.75c-.59-.59-1.54-.59-2.12 0L1... |
packages/react/src/components/organisms/TabContainer/tab.js | massgov/mayflower | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import is from 'is';
import TabContext from './context';
import TabBody from './tab-body';
class Tab extends React.Component {
handleKeyDown = (e) => {
let nextIdent = null;
let prevIdent = null;
this.cont... |
ajax/libs/yui/3.7.0pr1/simpleyui/simpleyui.js | ColinEberhardt/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
web/src/pages/devops/user/index.js | nodefx/nbot | /**
* Created by ken on 2017/5/3.
*/
import React from 'react'
import List from './list'
import Filter from './filter'
import Modal from './modal'
import {inject, observer} from 'store/index'
const storeName = {
member: 'common/member'
}
@inject('appStore')
@observer
export default class extends React.Component {
... |
ajax/libs/yui/3.10.0pr1/datatable-body/datatable-body.js | iwdmb/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 = Lang.isA... |
src/components/shared/LoadingIndicator/LoadingIndicator_test.js | tribou/react-template | // @flow
// Enzyme docs:
// http://airbnb.io/enzyme/docs/api/index.html
import React from "react";
import { shallow } from "enzyme";
import LoadingIndicator from "./LoadingIndicator";
const mockProps = {};
it("<LoadingIndicator> renders the LoadingIndicator content", () => {
const wrapper = shallow(<LoadingIndica... |
tp-3/recursos/react-slingshot/src/index.js | jpgonzalezquinteros/sovos-reactivo-2017 | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
require('./favicon.ico'); // Tell webpack to load favicon.ico
render(
<AppContainer>
<Root/>
</AppContainer>,
document.ge... |
client2/src/components/react-burger-menu/test/BurgerIcon.spec.js | frolicking-ampersand/Board | 'use strict';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { assert, expect } from 'chai';
import createShallowComponent from './utils/createShallowComponent';
import BurgerIcon from '../lib/BurgerIcon';
describe('BurgerIcon component', () => {
let component;
const mockStyle... |
source/Table/defaultRowRenderer.js | edulan/react-virtualized | /** @flow */
import React from 'react'
import type { RowRendererParams } from './types'
/**
* Default row renderer for Table.
*/
export default function defaultRowRenderer ({
className,
columns,
index,
isScrolling,
key,
onRowClick,
onRowDoubleClick,
onRowMouseOver,
onRowMouseOut,
rowData,
style... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Radio.js | jmanday/Master | 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 ... |
ajax/libs/flocks.js/1.0.0/flocks.min.js | wil93/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
front-end-design/Documentation/plugins/jquery-1.10.2.min.js | createrly/cf-assist | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnPropert... |
src/components/Timeline/Timeline.js | karim88/karim88.github.io | import React, { Component } from 'react';
import './Timeline.css';
class Timeline extends Component {
constructor (props) {
super(props);
this.experiences = props.experiences.map(experience => {
return <div key={experience.id} className="cd-timeline__block js-cd-block">
... |
components/GithubCard/Info/index.js | SaraVieira/30-30 | // @flow
import React from 'react';
import style from './index.css';
type Props = {
company: string,
email: string,
}
const Info = (props: Props) => (
<div>
{(props.company || props.email) &&
<div className={style.info}>
{props.company &&
<small>
<strong>Comapany:</strong>
{... |
webapp/app/components/Logs/Filters/NumberLogs.js | EIP-SAM/SAM-Solution-Server | //
// Component displaying number of logs filter
//
import React from 'react';
import {
FormGroup,
ControlLabel,
FormControl,
Label,
} from 'react-bootstrap';
/* eslint-disable react/prefer-stateless-function */
export default class NumberLogs extends React.Component {
constructor(props) {
super(props);... |
src/contexts/GameContext.js | Xvakin/quiz | import React from 'react'
const GameContext = React.createContext(
{
gameKey: {},
game: {},
tours: {},
},
)
export default GameContext
|
src/js/index.js | choonchernlim/front-end-stack | // @flow
import 'typeface-roboto/index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { StoreCreator } from 'redux';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'connected-react-router';
import ThemeProvider from '@ma... |
app/src/components/character.js | bhayden1/savageReact | import {Component} from 'react';
import React from 'react';
export class Character extends Component {
render() {
return(
<div className="row item">
<div className="col col-33">{this.props.name}</div>
<div className="col">{this.props.toughness}</div>
<div className="col">{t... |
packages/web/src/components/date/DateRange.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import { updateQuery, setQueryOptions, setCustomQuery } from '@appbaseio/reactivecore/lib/actions';
import hoistNonReactStatics from 'hoist-non-react-statics';
import {
isEqual,
checkValueChange,
getClassName,
getOptionsFromQuery,
formatDate,
updateCustomQuery,
checkSome... |
assets/js/jquery.js | RomGatchalian/EnrollmentFinal | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/js/views/transitions-target-over.js | smuldr/innovation-day-rater-web | import Container from 'react-container';
import React from 'react';
import Timers from 'react-timers';
import { Mixins, UI } from 'touchstonejs';
module.exports = React.createClass({
mixins: [Mixins.Transitions, Timers()],
componentDidMount () {
var self = this;
this.setTimeout(function () {
self.transitionTo... |
src/components/Header.js | ahmedskaya/Naming-Contest | import React from 'react';
import PropTypes from 'prop-types';
const Header = ({ message }) => {
return (
<h2 className="Header text-center">
{message}
</h2>
);
};
Header.propTypes = {
message: React.PropTypes.string
};
export default Header;
|
src/parser/priest/discipline/modules/spells/TwistOfFate.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
import Analyzer from 'parser/core/Analyzer';
import calcula... |
ajax/libs/react-data-grid/0.13.34/react-data-grid.js | dc-js/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... |
src/components/App_bkp.js | cedzz/react-redux-learn | import React from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
}
shouldComponentUpd... |
app/javascript/mastodon/features/ui/components/column_header.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
src/Slider/Slider.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import keycode from 'keycode';
import Slider from './Slider';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Slider />', () => {
const muiTheme = getMuiTheme();
con... |
dashboard/client/src/js/app.js | agaralabs/sieve | import React from 'react';
import {render} from 'react-dom';
import {History, Router} from './utils/router';
import {createStore, combineReducers, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import {enableBatching} from 'redux-batched-actions';
import ... |
src/svg-icons/action/account-balance.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBalance = (props) => (
<SvgIcon {...props}>
<path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/>
</SvgIcon>
);
ActionAccountBalance = pure(ActionA... |
packages/wix-style-react/src/CardFolderTabs/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { Add } from 'wix-ui-icons-common';
import { storySettings } from '../test/storySettings';
import * as examples from ... |
test/LabelSpec.js | nickuraltsev/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Label from '../src/Label';
describe('Label', () => {
it('Should output a label with message', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Label>
<strong>Message</strong>
</Label>
);
... |
public/js/app.js | esgiprojetninja/ninjaPokedex | import React from 'react'
import pokedexApp from "./lib/pokedex/app"
pokedexApp.startApp();
|
frontend/blueprints/dumb/files/__test__/components/__name__.spec.js | swistak35/symmetrical-chainsaw | import React from 'react'
import <%= pascalEntityName %> from 'components/<%= pascalEntityName %>/<%= pascalEntityName %>'
describe('(Component) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
src/svg-icons/action/track-changes.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrackChanges = (props) => (
<SvgIcon {...props}>
<path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s... |
src/utils/index.js | baandyfuo/hanstock | import React from 'react';
import ReactDOM from 'react-dom';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
export function createConstants (...constants) {
return constants.reduce((acc, constant) => {
acc[constant] = constant;
return acc;
}, {});
}
export function createRedu... |
Examples/UIExplorer/TextInputExample.android.js | programming086/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
client/app/containers/FilePreviewCardList/index.js | Kielan/onDemanager | import React from 'react';
import autobind from 'react-autobind';
import FilePreviewCard from 'filePreviewCard';
import styles from './styles.css';
class FilePreviewCardList extends React.Component {
constructor() {
super();
autobind(this);
this.state = { }
}
render() {
var PreviewCards = this.p... |
docs/src/modules/components/HomeBackers.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import NoSsr from '@material-ui/core/NoSsr';
import MarkdownElement from 'docs/src/modules/components/MarkdownElement';
import Container from '@material-ui/core/Co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.