target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/routes.js | akfreas/ReactTest | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
pyconuy2012/static/jquery/js/jquery.js | sophilabs/pyconuy-site | /*! 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... |
src/list/snippets.js | iporaitech/react-to-mdl | import React from 'react';
import List, { ListItem } from 'react-to-mdl/lib/list';
import Content from 'react-to-mdl/lib/Content';
import Icon from 'react-to-mdl/lib/Icon';
import Action from 'react-to-mdl/lib/Action';
import Subtitle from 'react-to-mdl/lib/Subtitle';
import Info from 'react-to-mdl/lib/Info';
import Te... |
client/router.js | wilywallabies/wilyVideo | import React from 'react';
import {render} from 'react-dom';
import Main from './components/App';
render(<Main />, document.getElementById('root'));
//will hold router
|
src/svg-icons/action/feedback.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
ajax/libs/analytics.js/2.8.2/analytics.min.js | melvinsembrano/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
packages/material-ui-icons/src/ChatBubbleOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z" /></g></React.Fragment>
, 'ChatBubbleOutlined');
|
src/interface/report/Results/Overview/Suggestions/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Toggle from 'react-toggle';
import { Trans } from '@lingui/macro';
import Icon from 'common/Icon';
import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
import Panel from 'interface/others/Panel';
import Suggestion from './Suggestion';
impor... |
src/svg-icons/action/alarm.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarm = (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-9 4.03... |
src/SearchBar.js | umhan35/react-native-search-bar | import React from 'react';
import PropTypes from 'prop-types';
import {
NativeModules,
requireNativeComponent,
findNodeHandle,
} from 'react-native';
const RNSearchBar = requireNativeComponent('RNSearchBar', null);
class SearchBar extends React.PureComponent {
static propTypes = {
placeholder: PropTypes.s... |
src/mobile/components/Actions.spec.js | rollacaster/costa | import React from 'react'
import { TouchableHighlight } from 'react-native'
import { expect } from 'chai'
import { spy } from 'sinon'
import { shallow } from 'enzyme'
import Actions from './Actions'
describe('<Actions />', () => {
let actions
let handleAction
beforeEach(() => {
handleAction = spy()
act... |
site/src/index.js | psynewave/react-mlsdata | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
const rootEl = document.getElementById('root');
const render = Component =>
ReactDOM.render(
<AppContainer>
<Component />
</AppContainer>,
rootEl
);
render(App);... |
src/components/FunctionBox.js | piecewisecss/piecewisecss.github.io | import React from 'react';
import { WindowResizeListener } from 'react-window-resize-listener'
WindowResizeListener.DEBOUNCE_TIME = 20;
export default class FunctionBox extends React.Component{
constructor(props){
super(props);
this.state = { width: window.innerWidth };
}
render(){
// console.log('st... |
app/components/NewTask.js | matthieuh/desktop-assistant | // @flow
import { remote } from 'electron';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { reduxForm, formValueSelector, Field, SubmissionError } from 'redux-form';
import { Link } from 'react-router-dom';
import { push } from 'react-router-redux';
import _ from 'lodash';
impo... |
test/containers/CounterPage.spec.js | tempestaddepvc/proyecto-electron | import { expect } from 'chai';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import { Provider } from 'react-redux';
import CounterPage from '../../app/containers/CounterPage';
import config... |
components/app.js | jmlane/asg-attendance | import React from 'react';
import NavBar from './navbar.js';
export default class AsgAttendance extends React.Component {
render() {
return (
<div>
<NavBar/>
</div>
);
}
}
|
MobileApp/node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js | VowelWeb/CoinTradePros.com | import isEqual from 'lodash/isEqual';
import pick from 'lodash/pick';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { TabBarIOS } from './react-native';
export default function createTabBarItemIOSComponent(
IconNamePropType,
getImageSource
) {
return class TabBarItemIOS ext... |
ajax/libs/material-ui/5.0.0-alpha.7/es/Paper/Paper.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{chainPropTypes}from"@material-ui/utils";import{useThemeVariants}from"@ma... |
src/index.js | AikChun/react-redux-testing | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
blueprints/view/files/__test__/views/__name__View.spec.js | Firfi/derp-stock-exchange-frontend | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
entry_types/scrolled/package/src/frontend/Chapter.js | tf/pageflow | import React from 'react';
import {Section} from './Section';
import {EventContextDataProvider} from './useEventContextData';
export default function Chapter(props) {
return (
<div id={props.chapterSlug}>
{renderSections(props.sections,
props.currentSectionIndex,
... |
src/esm/components/graphics/icons-next/envelope-icon-next/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var EnvelopeIconNext = function EnvelopeIconNext(_ref) {
var... |
src/Parser/Paladin/Holy/Modules/Items/ChainOfThrayn.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemHealingDone from 'Main/ItemHealingDone';
import { ABILITIES_AFFECTED_BY_HEALING_INCREASES, AVENGING_WRATH_HE... |
ajax/libs/yui/3.9.1/scrollview-base/scrollview-base-debug.js | htmlstrap/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
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
docs/src/examples/views/Item/Content/ItemExampleHeaders.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const ItemExampleHeaders = () => (
<Item.Group>
<Item>
<Item.Image size='tiny' src='/images/wireframe/image.png' />
<Item.Content verticalAlign='middle'>
<Item.Header as='a'>12 Years a Slave</Item.Header>
</Item.Content>... |
examples/fiber/debugger/src/index.js | sekiyaeiji/react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/forerunnerdb/1.3.677/fdb-core+views.min.js | seogi1004/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... |
ajax/libs/forerunnerdb/1.3.614/fdb-legacy.js | wout/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/editor/border-style.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
addons/storyshots/stories/required_with_context/Button.js | nfl/react-storybook | import PropTypes from 'prop-types';
import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
margin: 10,
};
const Button = ({ children, onClick }) =>
<button style={buttonStyles} onCli... |
src/index.js | shawware/react-calculator | // Third-Party Libraries
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
// Local Imports
import Application from './components/app';
import reducers from './reducers';
// Instantiate the Calculator
import Calculator from './ser... |
src/index.js | Xoce51/CopyTime-Calculator | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
consoles/my-joy-instances/src/components/__tests__/menu.ui.js | yldio/joyent-portal | import React from 'react';
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import screenshot from 'react-screenshot-renderer';
import Menu from '../menu';
import Theme from '@mocks/theme';
expect.extend({
toMatchImageSnapshot
});
it('<Menu />', async () => {
expect(
await screenshot(
<Theme... |
fields/components/columns/IdColumn.js | ligson/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
... |
react/javascript/demo-external-api/src/__mocks__/render_with_extension.js | looker-open-source/extension-examples | /*
MIT License
Copyright (c) 2022 Looker Data Sciences, 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, modi... |
fields/components/DateInput__OLD.js | lojack/keystone | import moment from 'moment';
import Pikaday from 'pikaday';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = React.createClass({
displayName: 'DateInput',
// set default properties
getDefaultProps: function() {
return {
format: 'YYYY-MM-DD'
};
},
getInitialState: fu... |
dashboard/components/Button.js | dbrabera/laika | import React from 'react';
import PropTypes from 'prop-types';
import './Button.css';
export default function Button({ label, type, onClick }) {
return (
<button
className={`lk-button lk-button--${type}`}
onClick={onClick}
>
{label}
</button>
);
}
Button.propTypes = {
label: PropT... |
site/src/styles/ActionCard.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import { css } from 'react-emotion';
import PropTypes from 'prop-types';
const icon = css`
position: absolute;
width: 74px;
height: 74px;
border-radius: 50%;
top: calc(50% - 37px);
left: -37px;
background-color: #fff;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.09);
displ... |
src/routes/home/index.js | kuao775/mandragora | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
i... |
doc/src/pages/examples/viewer-coordinates.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import {Code} from '../../js/components/Code';
import... |
test/specs/collections/Form/FormFieldTextArea-test.js | vageeshb/Semantic-UI-React | import React from 'react'
import FormTextArea from 'src/collections/Form/FormTextArea'
import TextArea from 'src/addons/TextArea/TextArea'
import * as common from 'test/specs/commonTests'
describe('FormTextArea', () => {
common.isConformant(FormTextArea)
it('renders a FormField with a TextArea control', () => {
... |
packages/material-ui-icons/src/MenuTwoTone.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="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" /></React.Fragment>
, 'MenuTwoTone');
|
build/cjs/areachart/Area.js | VladimirJelincic/rd3-tmd | 'use strict';
var React = require('react');
module.exports = React.createClass({
displayName: 'Area',
propTypes: {
path: React.PropTypes.string,
fill: React.PropTypes.string,
handleMouseOver: React.PropTypes.func,
handleMouseLeave: React.PropTypes.func
},
getDefaultProps: function getDefaul... |
.eslintrc.js | sirbrillig/voyageur-js-client | module.exports = {
root: true,
'extends': 'wpcalypso/react',
parser: 'babel-eslint',
env: {
browser: true,
mocha: true,
node: true
},
rules: {
'wpcalypso/jsx-classname-namespace': 0,
'wpcalypso/import-docblock': 0,
'react/prefer-es6-class': 0,
'max-len': 0,
'camelcase': 0,
'indent': [ 'error', 2... |
app/components/CompareImages.js | thenormalsquid/electronApp | // @flow
import React from 'react';
import { compose, pure } from 'recompose';
type WrappedProps = {
};
type Props = {
applyAction: Function,
uploadImage: Function,
images: Array
} & WrappedProps;
export const CompareImages = ({ applyAction, uploadImage }: Props) =>
;
const enhance = compose(
p... |
reactjs/react-beginners/resources/solution2/components/Profile.js | sharduul/lpages | import React, { Component } from 'react';
import { Button, FormGroup, ControlLabel, FormControl } from 'react-bootstrap';
class Profile extends Component {
constructor(props) {
super(props);
this.state = {
userInfo : this.props.profile,
editing : false,
error : false
}
}
componen... |
grunt/tasks/npm.js | neusc/react | 'use strict';
var assert = require('assert');
var path = require('path');
var grunt = require('grunt');
var spawn = grunt.util.spawn;
module.exports = function() {
var done = this.async();
function run(cmd, args, opts, callback) {
assert.strictEqual(typeof cmd, 'string');
assert.ok(args instanceof Array)... |
components/logo.js | jonheslop/colwiki | import React from 'react'
import Link from 'next/link'
export default () => (
<div className="fl w-20 w-100-ns mb3-ns cf">
<Link href="/" prefetch>
<a>
<svg viewBox="0 0 60 50">
<polygon points="50,50 0,50 25,0" style={{fill: '#777'}}/>
<polygon points="60,50 20,50 40,10" style=... |
src/main-app.js | dickmancj/reporter | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './main.css';
function mainApp () {
ReactDOM.render(
<App />,
document.getElementById('appContainer')
);
}
document.addEventListener('DOMContentLoaded', mainApp);
|
ajax/libs/mediaelement/1.1.1/jquery.js | JohnKim/cdnjs | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/containers/LanguageProvider/index.js | w01fgang/react-boilerplate | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/Well.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
ajax/libs/mobx/2.5.2/mobx.min.js | x112358/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?P(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?P(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return... |
src/client/index.js | davidchristie/news-graph | /* eslint-env browser */
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { browserHistory, IndexRoute, Route, Router } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { applyMiddleware, compose, createStore } from 'redux'
imp... |
src/parser/warlock/destruction/CHANGELOG.js | sMteX/WoWAnalyzer | import React from 'react';
import { Chizu } from 'CONTRIBUTORS';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
export default [
{
date: new Date('2019-03-18'),
changes: 'Updated the visuals to match new WoWAnalyzer look!',
contributors: [Chizu],
},
{
date: new Da... |
app/src/common-styles.js | buzzfeed-openlab/shit-vcs-say |
'use strict';
import React, {
StyleSheet,
Dimensions,
} from 'react-native';
import Constants from './constants.js';
const CommonStyles = StyleSheet.create({
screenBackground: {
backgroundColor:'#333333',
},
advanceButton: {
backgroundColor: '#27ae60',
height: 32,
... |
packages/material-ui/src/ListItem/ListItem.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@material-ui/utils';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBase';
import { isMuiElement, useForkRef } from '../utils/reactHelpers';
import ListContext from '.... |
app/components/BookList/Form.js | CiccioBenzina/zhydrabook | // @flow
import React, { Component } from 'react';
import { Segment, Form, Button, Divider, Icon } from 'semantic-ui-react';
import { Field, reduxForm } from 'redux-form';
class Isbn extends Component {
render() {
console.log(this.props);
return (
<Form.Field name="isbn" control="input" {...this.props.... |
src/containers/DevToolsWindow.js | abachuk/fullbag-react-redux-dashboard | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
src/components/ActionExample/index.js | DeveloperLaPoste/protagonist-react | import PropTypes from 'prop-types';
import React from 'react';
import { RequestExample, ResponseExample } from '../';
export default function ActionExample({ example }) {
const requestsResponses = example.requests && example.responses && example.requests.length > 0 &&
example.requests.length <= example.responses.... |
src/components/App.js | kgosse/photo-gallery | import React, { Component } from 'react';
import Menu from './Menu';
import PhotoGallery from './PhotoGallery';
import ImageCard from './ImageCard';
import connectToStores from 'alt-utils/lib/connectToStores';
import ImageStore from '../stores/ImageStore';
@connectToStores
export default class App extends Component {
... |
packages/react-router-native/__tests__/index.ios.js | goblortikus/react-router | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
docs/app/Examples/collections/Grid/Variations/GridCenteredExample.js | jcarbo/stardust | import React from 'react'
import { Image, Grid } from 'stardust'
const { Column, Row } = Grid
const image = <Image src='http://semantic-ui.com/images/wireframe/image.png' />
const GridCenteredExample = () => (
<Grid centered columns={2}>
<Column>{image}</Column>
<Row centered columns={4}>
<Column>{im... |
BUILD/js/components_js/product-details/product-detail-content.js | kevincaicedo/MyStore-Front-end | import React from 'react'
export default class ProductContent extends React.Component {
render(){
return <div className="caption-full">
<h4 className="pull-right price">{this.props.price}</h4>
<h4><a href="#">{this.props.name}</a></h4>
<p>{this.props.brand}</p>
... |
[2]. Demo_RN/[7]. image_component/index.ios.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
} from 'react-native';
var imgs = [
'http://image.baidu.com/search/detail?ct=503316480&z=0&tn=bai... |
ajax/libs/thorax/2.2.1/thorax-combined.js | ljharb/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* 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-1-14
*/
(function( window, undefined ) {
"use strict";... |
src/parser/druid/restoration/modules/features/Ironbark.js | sMteX/WoWAnalyzer | import React from 'react';
import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'interface/others/LazyLoadStatisticBox';
import { formatNumber, formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import fetchWcl from 'common/fetchWclApi';
import Analy... |
ajax/libs/rxjs/2.3.4/rx.lite.extras.js | manorius/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
src/js/components/ItemDescription/index.js | waagsociety/ams.datahub.client | import React from 'react'
export default function ItemDescription(contents) {
return contents.map((text, index) => <p key={index}>{text}</p>)
} |
docs/pages/api/toggle-button-group.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './toggle-button-group.md';
export default function Page() {
return <MarkdownDocs markdown={markdown} />;
}
|
frontend/node_modules/recharts/es6/cartesian/ReferenceLine.js | justdotJS/rowboat | import _isFunction from 'lodash/isFunction';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i)... |
packages/material-ui-icons/src/Notifications.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z" />
, 'Notifications');
|
examples/data-flow/app.js | contra/react-router | var React = require('react');
var Router = require('react-router');
var { Route, RouteHandler, Link } = Router;
var App = React.createClass({
mixins: [ Router.Navigation ],
getInitialState: function () {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name:... |
packages/material-ui-icons/src/Battery90Rounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z" /><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.... |
src/app/views/recipeEdit.js | nazar/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Navigation } from 'react-router';
import recipeActions from 'actions/recipe';
import recipeStore from 'stores/recipe';
import SapCalculator from 'components/sapCalculator';
import FormSaveRecipe from 'components/formSaveRecipe';
... |
src/routes/notFound/index.js | Tori1810/Task3 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
packages/material-ui/src/Tab/Tab.js | Kagami/material-ui | // @inheritedComponent ButtonBase
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBase';
import { capitalize } from '../utils/helpers';
import unsupportedProp from '../utils/unsupportedPr... |
dist/components/Node.js | mnmtanish/react-storybook-story | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(... |
test/components/Fieldset.spec.js | rudionrails/signup-widget-react-mobx | import React from 'react';
import { shallow } from 'enzyme';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
chai.use(chaiEnzyme());
import Fieldset from '../../src/components/Fieldset.react';
describe('<Fieldset />', () => {
const initialProps = {
icon: 'The Icon',
value: 'The V... |
src/common/ErrorPages/e404.js | GerManson/bodymass | import React, { Component } from 'react';
import styles from './e404.css';
export default class e404 extends Component {
render () {
return (
<div className={styles.container}>
<h1 className={styles.title}>404</h1>
<a href='javascript:history.back()'>Go back</a>
</div>
);
}
}
|
packages/material-ui-icons/src/PowerSettingsNew.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26... |
frontend/src/components/Navigation/TooltipControlled.js | loicbaron/nutrition | import React from 'react';
import PropTypes from 'prop-types';
import Tooltip from '@mui/material/Tooltip';
import { Typography } from '@mui/material';
import { withStyles } from '@mui/styles';
import { anyNumberOfChildren } from '../miscellaneousProps';
export default function TooltipControlled({ children, title, tex... |
src/renderers/dom/client/ReactInputSelection.js | PeterWangPo/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.
*
* @providesModule ... |
app/components/GameShow/InfoCard.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import { bool, func, number, object, string } from 'prop-types';
import { Link } from 'react-router-dom';
import uuid from 'uuid/v4';
import styles from './InfoCard.scss';
import GameButton from '../GameButton/ButtonContainer';
import ProgressBar from '../ProgressBar';
const InfoCard = ({ g... |
pages/api/mobile-stepper.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 './mobile-stepper.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
demo/ButtonWithMixin.js | brentertz/react-suitcssify | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import SuitCssify from '../index';
import classNames from 'classnames';
import createReactClass from 'create-react-class';
let Button = createReactClass({
mixins: [SuitCssify.mixin],
propTypes: {
children: PropTypes.node,
disabl... |
src/app/pages/route.page/index.js | MrJonas/bike-routes | import React from 'react';
import 'whatwg-fetch';
import {Card, CardTitle, CardBlock} from 'reactstrap';
import Footer from './../../components/footer';
import LazyLoad from 'react-lazyload';
import Gallery from 'react-grid-gallery';
import FacebookProvider, { Page } from 'react-facebook';
const DMGallery = (props) =>... |
node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.android.js | RahulDesai92/PHR | 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 />
);
});
|
app/main.js | q191201771/chef_blog | import React from 'react'
import { render } from 'react-dom'
import configureStore from './store/configureStore'
import Root from './containers/Root'
import { CONSOLE_MESSAGE } from './constants/Chinese'
import initPolyFill from './stuff/polyfill'
import visibility from './stuff/visibility'
import { initEnv, isIE } f... |
src/svg-icons/hardware/speaker.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
src/components/Children/Welcome.js | rspica/Sugr | import React from 'react';
const Welcome = logged => {
return (
<p
style={{
float: 'right',
margin: '-60px 0px 0px 0px',
fontSize: '30px',
color: '#FF8A80',
fontWeight: 'bold'
}}
>
We... |
js/src/views/Home/Urls/urls.spec.js | BSDStudios/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... |
packager/rn-cli.config.js | martinbigio/react-native | // Copyright 2004-present Facebook. All Rights Reserved.
/**
* React Native CLI configuration file
*/
'use strict';
const blacklist = require('./blacklist.js');
const path = require('path');
module.exports = {
getProjectRoots() {
return this._getRoots();
},
getAssetRoots() {
return this._getRoots();... |
test/specs/collections/Menu/MenuItem-test.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import MenuItem from 'src/collections/Menu/MenuItem'
import { SUI } from 'src/lib'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('MenuItem', () => {
common.isConformant(MenuItem)
common.rendersChildren(MenuItem)
common.implementsCreateM... |
src/Components/TodoList.js | Lyks-tech/react_todo | import React, { Component } from 'react';
import TodoItem from './TodoItem'
class TodoList extends Component {
_showThisContent(todoItem) {
this.props.showThisContent(todoItem);
}
render() {
let todoItems;
if (this.props.todoList) {
todoItems = this.props.todoList.map(item => {
... |
co.za.tech4africa.education/co.za.tech4africa.education-ui/node_modules/mongoose/node_modules/ms/test/support/jquery.js | Tech4AfricaRHoK/Education | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/__tests__/pulldown-goto-test.js | YPlan/react-pulldown | jest.dontMock('../pulldown-goto');
import React from 'react';
import TestUtils from 'react-addons-test-utils';
const PulldownGoto = require('../pulldown-goto').default;
describe('PulldownGoto', () => {
const className = 'className';
const stage = 'stage';
let goTo;
let pulldownGoto;
beforeEach(() => {
... |
__tests__/index.android.js | budasuyasa/warungapp | 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 />
);
});
|
node_modules/react-bootstrap/es/MediaBody.js | NickingMeSpace/questionnaire | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.