path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
__tests__/index.android.js | elderfo/elderfo-react-native-components | 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 />
);
});
|
frontend/src/Components/Menu/SortMenu.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Menu from 'Components/Menu/Menu';
import ToolbarMenuButton from 'Components/Menu/ToolbarMenuButton';
import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
function SortMenu(props) {
const {
className,
c... |
docs/app/components/AppBar/AppBar.js | react-fabric/react-fabric | import React from 'react'
import cssm from 'react-css-modules'
import cx from 'classnames'
import { IndexLink } from 'react-router'
import NavBar from 'react-fabric/NavBar'
import style from './AppBar.scss'
class AppBar extends React.Component {
constructor() {
super()
this.state = {
isMenuOpen: fa... |
packages/react-dom/src/client/ReactDOMFiberOption.js | aickin/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import warning from 'fbjs/lib/warning';
function flattenChildren(children) {
let content = '';... |
src/components/Header/Footer.js | iM-Durant7/CL | import React from 'react';
import moment from 'moment';
export default class Footer extends React.Component {
render() {
return (
<div className="footer fa fa-copyright" aria-hidden="true"> {moment().format('YYYY')} <a href="http://google.com">Embedded Mind LLC</a>.</div>
);
}
}
|
demo/views/tables/bstables.js | ShirlyKong/components_demo | import React, { Component } from 'react';
import './base.css';
import CssBg from './cssbg/cssbg';
export default class BStables extends Component {
render() {
return (
<div>
<CssBg/>
</div>
)
};
}
|
ajax/libs/forerunnerdb/1.3.419/fdb-core+views.min.js | dada0423/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... |
packages/icons/src/md/av/Web.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdWeb(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4l.02-24c0-2.21 1.77-4 3.98-4h32zM30 36v-8H8v8h22zm0-10v-8H8v8h22zm10 10V18h-8v18h8z" />
... |
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SortingFilter-test.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... |
features/taskboard/components/tasklistContainer.js | zymokey/mission-park | import React from 'react';
import { connect } from 'react-redux';
import { fetchTasklists } from '../actions/tasklistActions';
class TasklistContainer extends React.Component {
componentWillMount(){
this.props.fetchTasklists(this.props.projectId);
}
render(){
return(
<div className="list-group">
{this.p... |
frontend/src/Movie/Details/Credits/MovieCreditPosterConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectImportListSchema, setImportListFieldValue, setImportListValue } from 'Store/Actions/settingsActions';
import createMovieCreditListSelector from 'Store/Selectors/createMovieCreditListSelect... |
src/components/Collections/index.js | alanalvarenga/Teste | import React, { Component } from 'react';
import s from './styles.css';
export default class Collections extends Component {
testando(){
}
render() {
return (
<div>
<div> Collections </div>
<div>
<table>
<tbody>
<tr>
<td>
... |
frontend/modules/account/containers/Login.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { injectIntl } from 'react-intl'
import * as AuthActions from '../actions/AuthActions'
import LoginForm from '../components/LoginForm'
import history from '../../common/h... |
ajax/libs/es6-shim/0.29.0/es6-shim.js | peteygao/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.27.1
* see https://github.com/paulmillr/es6-shim/blob/0.27.1/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/StoreItem.js | yberg/react-store | import React from 'react';
import ReactDOM from 'react-dom';
export default class StoreItem extends React.Component {
constructor(props) {
super(props);
this.state = {
name: props.product.name,
stock: props.product.stock,
price: props.product.price
}
this.buy = this.buy.bind(this);
... |
client/src/components/kegs/keg-summary.js | commoncode/ontap | /* eslint-disable no-nested-ternary */
/**
* KegSummary
* Quick overview of a Keg.
* What tap it's on, date tapped, ratings, notes, etc.
*/
import React from 'react';
import moment from 'moment';
import { kegModel } from '../../proptypes';
import KegSummaryCheers from './keg-summary-cheers';
const KegSummary =... |
src/icons/FontDownloadIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FontDownloadIcon extends Icon {
getSVG(){return <svg baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2... |
node_modules/native-base/src/basic/Card.js | tausifmuzaffar/bisApp | import React, { Component } from 'react';
import { View, ListView } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Card extends Component {
render() {
if (this.props.dataArray && this.props.renderRow) {
const ds ... |
examples/counter/index.js | lapanoid/redux-devtools | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
docs/app/Examples/elements/Icon/Groups/IconExampleTwitterGroup.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Header, Icon } from 'semantic-ui-react'
const IconExampleTwitterGroup = () => (
<Header as='h2'>
<Icon.Group size='large'>
<Icon name='twitter' />
<Icon corner name='add' />
</Icon.Group>
Add on Twitter
</Header>
)
export default IconExampleTwitterGroup
|
app/Plugin/DebugKit/webroot/js/jquery.js | matmaxanh/jexam-php | /*! jQuery v1.7 jquery.com | jquery.org/license */
(function(a,b){function cA(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"),cn.frameBorder=... |
node_modules/react-bootstrap/es/Tooltip.js | Crisa221/Lista-Giocatori | 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 ... |
react/components/Intro.js | robclu/Materialize | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { fullBlack } from 'material-ui/styles/colors'
const IntroHeader = (props) => {
return (
<h1>
<span>{props.introText}</span>
{props.mainText}
</h1>
)
}
const IntroList = (props) => {
return (
<div>
<ul>
{
props.... |
webapp/app/components/ImageManagement/AddImage/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Add image modal main components
//
import React from 'react';
import { Modal, Button, FormGroup, ControlLabel, FormControl } from 'react-bootstrap';
/* eslint-disable react/prefer-stateless-function */
export default class AddImage extends React.Component {
constructor() {
super();
this.state = {
... |
client/controller/index.node.js | tinkertinker/wp-calypso | /**
* External Dependencies
*/
import React from 'react';
import { Provider as ReduxProvider } from 'react-redux';
/**
* Internal dependencies
*/
import { makeLayoutMiddleware } from './shared.js';
import LayoutLoggedOut from 'layout/logged-out';
/**
* Re-export
*/
export { setSection } from './shared.js';
con... |
client/src/app/routes/misc/containers/Page404.js | zraees/sms-project | import React from 'react'
export default class Page404 extends React.Component {
render() {
return (
<div id="content">
{/* row */}
<div className="row">
<div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div className="row">
<div className="col-... |
src/components/about/AboutPage.js | billyafernandez/ReactReduxDemo | import React from 'react';
class AboutPage extends React.Component {
render() {
return (
<div>
<h1>About</h1>
<p>This application uses React, Redux, React Router and a variety of other helpful libaries. It has been made for learning purposes.</p>
</div>
... |
src/index.js | VovanR/test-react-redux-weather | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import {composeWithDevTools} from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import App from './containers/App';
import './index.css';
import reducer ... |
App/navigation/LoadingScreen.js | thekelvinliu/capchat | import React, { Component } from 'react';
import Spinner from 'react-native-loading-spinner-overlay';
export default class extends Component {
static navigationOptions = {
title: 'capchat'
};
render() {
return (
<Spinner visible textContent="loading capchat..." />
);
}
}
|
flow-typed/npm/react-tagsinput_vx.x.x.js | mlorb/scinote-web | // flow-typed signature: 907803e15a67c7322e1adf858fa98727
// flow-typed version: <<STUB>>/react-tagsinput_v^3.17.0/flow_v0.56.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-tagsinput'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your wor... |
app/containers/LanguageProvider/index.js | Chaos-Zero/GoemonInternational | /*
*
* 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... |
components/post-detail.js | runesam/react-redux-next | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Link from 'next/link';
import Router from 'next/router';
import { fetchPost, deletePost } from '../actions/index';
import Loader from './loader';
class PostDetail extends Component {
state= {
response: false,
... |
node_modules/vue/dist/vue.runtime.js | sankester/BaseApp | /*!
* Vue.js v2.4.2
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function ()... |
src/svg-icons/image/vignette.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
frontend/sections/admin/dashboard/dashboard.js | apostolidhs/wiregoose | import first from 'lodash/first';
import isEmpty from 'lodash/isEmpty';
import React from 'react';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Panel from 'react-bootstrap/lib/Panel';
import Button from 'react-bootstrap/lib/Button';
import FontAwesome from 'react-fontawes... |
src/scenes/Root/Root.js | marksauter/reactd3 | // @flow
import React from 'react';
import cx from 'classnames';
type Props = {
className: string,
}
export const Root = (props: Props) => {
const { className, ...rest } = props;
const classes = cx('Root', className);
return (
<div {...rest} className={classes}>
</div>
);
}
export default Root;
... |
docs/app/Examples/collections/Menu/Content/LinkItem.js | ben174/Semantic-UI-React | import React, { Component } from 'react'
import { Menu, Message } from 'semantic-ui-react'
export default class LinkItem extends Component {
handleClick = () => this.setState({ message: 'onClick handled' })
render() {
const { message } = this.state || {}
return (
<div>
<Menu vertical>
... |
src/ButtonInput.js | snadn/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
tests/components/Header/Header.spec.js | oliveirafabio/test-senior | import React from 'react'
import { Header } from 'components/Header/Header'
import classes from 'components/Header/Header.scss'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
... |
ajax/libs/redux-form/1.0.1/redux.min.js | froala/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].expor... |
tests/unit/googleMap/googleMap.render.spec.js | Travix-International/travix-ui-kit | import { shallow } from 'enzyme';
import React from 'react';
import google from './googleApiObjectMock';
import GoogleMap from '../../../components/googleMap/googleMap';
describe('GoogleMap: render', () => {
it('should return base GoogleMap container', () => {
const component = shallow(
<GoogleMap google={... |
src/components/cucumber/plain-wordmark/CucumberPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CucumberPlainWordmark.svg'
/** CucumberPlainWordmark */
function CucumberPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Cucu... |
wp-content/themes/adaycurated/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | SarahJune/wp-adc | 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'));
|
ajax/libs/vue/0.12.7/vue.js | kiwi89/cdnjs | /**
* Vue.js v0.12.7
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
else if(typ... |
src/icons/TwitterIcon.js | fathomlondon/fathomlondon.github.io | import React from 'react';
export function TwitterIcon() {
return (
<svg viewBox="0 0 512 512" fill="currentColor">
<path d="M419.6 168.6c-11.7 5.2-24.2 8.7-37.4 10.2 13.4-8.1 23.8-20.8 28.6-36-12.6 7.5-26.5 12.9-41.3 15.8C357.6 146 340.7 138 322 138c-42 0-72.9 39.2-63.4 79.9-54.1-2.7-102.1-28.6-134.2-68-17 29.2... |
packages/material-ui-icons/src/PhoneAndroidOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm1 17H7V4h10v14zm-3 3h-4v-1h4v1z" /></g></React.Fragme... |
resources/assets/pages/PostIndex.js | DoSomething/rogue | import React from 'react';
import Shell from '../components/utilities/Shell';
import PostsTable from '../components/PostsTable';
const PostIndex = () => {
const title = 'Posts';
document.title = title;
return (
<Shell title={title}>
<div className="container__block">
<PostsTable />
</di... |
src/app-client.js | keshan3262/weather | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import {Provider} from 'react-redux';
import configureStore from './stores/configureStore';
import Layout from './components/Layout';
import LoginPage from './components/LoginPage';
imp... |
packages/web/src/components/Account/SignIn.js | hengkx/note | import React from 'react';
import PropTypes from 'prop-types';
import { Form, Input, message, Button } from 'antd';
import { Link } from 'react-router-dom';
import { rsa } from '../../utils';
import './less/account.less';
const FormItem = Form.Item;
class SignIn extends React.Component {
static propTypes = {
hi... |
src/icons/arrow-up-right.js | carmelopullara/react-feather | import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const ArrowUpRight = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
f... |
app/javascript/mastodon/containers/mastodon.js | riku6460/chikuwagoddon | import React from 'react';
import { Provider, connect } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { INTRODUCTION_VERSION } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'reac... |
mobile/src/components/MobileLayout.js | filipstachura/notifier | import React from 'react';
import { Text, View } from 'react-native';
import GeolocationComponent from './GeolocationComponent.js';
import MobileNumberInput from './MobileNumberInput.js';
import MobileApp from '../MobileApp.js';
export default class MobileLayout extends React.Component {
constructor() {
super(... |
test/unit/components/UI/QRCode.spec.js | LN-Zap/zap-desktop | import React from 'react'
import { renderWithTheme } from '@zap/test/unit/__helpers__/renderWithTheme'
import { QRCode } from 'components/UI'
describe('component.UI.QRCode', () => {
it('should render correctly', () => {
const tree = renderWithTheme(<QRCode value="qwerty" />).toJSON()
expect(tree).toMatchSnap... |
src/svg-icons/action/accessible.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19... |
app/javascript/packs/components/shared/List/index.js | NahlStudio/teamly-rails | import React from 'react';
function List(props) {
return (
<li {...props}>
{props.children}
</li>
);
}
export default List;
|
js/vendor/jquery-1.10.2.min.js | pxpgraphics/mattweissphotography | /*! 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/index.js | Jenny-L/lumohacks2017 | /**
* Index - this is where everything
* starts - but offloads to app.js
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
/* global __DEV__ */
import React from 'react';
import { applyMiddleware, compose, createStore } from 'redux';
import { connect, Provider } from 'react-re... |
en/js/jquery-1.11.3.min.js | aissarmurad/aissarmurad.github.io | /*! 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... |
node_modules/native-base/Components/Widgets/Picker.ios.js | aspanu/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import {Picker, Modal} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import View from './View';
import Text from './Text';
import List from './List';
import Icon from './Icon'... |
app/react/components/Users.js | jacobcohen/PetMonster | import React from 'react'
import {connect} from 'react-redux'
export const Users = (props) => (
<div className="row">
<div className="col-4">
<ul>
{props.users && props.users.map(user => (
<li key={user.id}>{user.name}</li>
)
)}
</ul>
</div>
</div>
)
const m... |
docs/src/components/useTocHighlight.js | react-charts/react-charts | import React from 'react';
/**
* Sets up Table of Contents highlighting. It requires that
*/
export function useTocHighlight(linkClassName, linkActiveClassName, topOffset, getHeaderAnchors, getHeaderDataFromAnchor, getAnchorHeaderIdentifier) {
const [lastActiveLink, setLastActiveLink] = React.useState(undefined);
... |
src/images/Icons/instagram.js | sourabh-garg/react-starter-kit | import React from 'react';
export default function instagram(props) {
return (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enableBackground="new 0 0 64 64" xmlSpace="preserve" {...props}>
<g t... |
.history/src/components/GKM/EtsyProduct_20170624114327.js | oded-soffrin/gkm_viewer | import React from 'react'
import '../../styles/gkm-item.scss';
import ProductItem from './ProductItem'
import Input from '../Common/Input'
import SearchBar from '../SearchBar';
import _ from 'lodash'
class EtsyProduct extends React.Component {
constructor(props, context) {
super(props, context);
this.edit... |
packages/insights-web/src/scenes/explorer/sidebar/models/index.js | mariusandra/insights | import React from 'react'
import { useActions, useValues } from 'kea'
import { Empty, Icon, Tree } from 'antd'
import HighlightText from 'lib/utils/highlight-text'
import connectionLogic from '../../connection/logic'
import explorerLogic from '../../logic'
import logic from './logic'
const { TreeNode } = Tree;
exp... |
ajax/libs/firebase/9.4.0-2021108175111/firebase-database-compat.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app-compat"),require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/app"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase,e.firebase.INTERNAL.modularAPIs)}(this... |
src/js/jobs/components/skills/DropFileStep.js | tpucci/jobads-webapp | import React from 'react';
import Badge from 'material-ui/Badge';
import Paper from 'material-ui/Paper';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import ActionUpload from 'material-ui/svg-icons/action/backup';
import ActionDoc from 'material-ui/svg-icons/acti... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | gunaangs/Feedonymous | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/App.js | Zyber17/hey-so-um | import React from 'react'
const Messages = () => (
<div id="messages">
<ul>
<li>Hey, it's Z.</li>
<li>This site is coming soon.</li>
<li>Yay!~</li>
</ul>
</div>
)
const Suggestions = () => (
<div id="suggestions">
<ul>
<li>Exciting!</li>
<li>See you soon.</li>
<li>Yay!~</li>
</ul>
</div>... |
ajax/libs/bootstrap.native/2.0.15/bootstrap-native-v4.js | holtkamp/cdnjs | // Native Javascript for Bootstrap 4 v2.0.15 | © dnp_theme | MIT-License
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD support:
define([], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like:
module.exports = factory();
} els... |
ajax/libs/yui/3.15.0/event-custom-base/event-custom-base-coverage.js | JacquesMarais/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/e... |
Examples/UIExplorer/VibrationIOSExample.js | dimoge/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/react-intl/1.0.0-rc-2/react-intl.min.js | tjbp/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)m.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options... |
example/examples/StaticMap.js | hzdg/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_... |
packages/xo-web/src/xo-app/index.js | vatesfr/xo-web | import Component from 'base-component'
import cookies from 'js-cookie'
import DocumentTitle from 'react-document-title'
import Icon from 'icon'
import Link from 'link'
import map from 'lodash/map'
import PropTypes from 'prop-types'
import React from 'react'
import Shortcuts from 'shortcuts'
import themes from 'themes'
... |
src/tests/index.js | amadormf/react-pag | import React from 'react';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme, { shallow, mount } from 'enzyme';
import chai, { expect } from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import chaiEnzyme from 'chai-enzyme';
import Pagination from '../index.js';
Enzyme.configure({ a... |
ajax/libs/inferno-devtools/3.3.1/inferno-devtools.js | nolsherry/cdnjs |
/*!
* Inferno.DevTools v3.3.1
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('inferno'), require('inferno-component')) :
typeof define === 'function' && define.amd ? define(['inferno',... |
src/svg-icons/editor/format-textdirection-l-to-r.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionLToR = (props) => (
<SvgIcon {...props}>
<path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/>
</SvgIcon>
);
EditorFormatTextdirectionLToR = p... |
fields/components/columns/ArrayColumn.js | frontyard/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
ui/app/helpers/Link.js | StamusNetworks/scirius | import React from 'react';
import PropTypes from 'prop-types';
import { Link as RouterLink } from 'react-router-dom';
import { omit } from 'lodash';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { connect } from 'react-redux';
import selectors from 'ui/containers/App/selec... |
src/js/app/header/SearchBar/MobileSearchBar.js | ludonow/ludo-beta-react | import React from 'react';
import styled from 'styled-components';
import magnifierIcon from '../../../../images/magnifier.svg';
import { CancelIconButton, CancelIconPlaceHolder, SearchBar } from './common';
const MobileSearchBarWrapper = styled.div`
display: flex;
justify-content: center;
margin: 0 auto;... |
ajax/libs/mobx/5.15.7/mobx.umd.min.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).mobx={})}(this,(function(e){"use strict";var t=[];Object.freeze(t);var n={};function r(){return++Te.mobxGuid}function o(e){throw i(!1,e),"X"}function i(e,t){if(!e)thro... |
react/eventwizard/eventwizard.js | jaredhasenklein/the-blue-alliance | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'
import EventWizardFrame from './components/EventWizardFrame'
import eventwizardReducer from './reducers'
const store = createSt... |
packages/bonde-admin-canary/src/scenes/Logged/scenes/Home/components/MobilizationsGadget/MobilizationsGadget.js | ourcities/rebu-client | import React from 'react'
import { Text, Pagination } from 'bonde-styleguide'
import { Queryset } from 'components'
import ImageColumn from '../ImageColumn'
import TableCardGadget from '../TableCardGadget'
import Filter from './Filter'
import allUserMobilizationsQuery from './query.graphql'
import { authSession } from ... |
admin/components/site_tree.js | svyatogor/dreamscape | import React from 'react'
import {connect} from 'react-redux'
import _, {isEmpty, isEqual, filter, map, find, sortBy, findIndex} from 'lodash'
import {List} from 'material-ui'
import {push} from 'react-router-redux'
import {get} from 'lodash'
import {compose} from 'recompose'
import {graphql, gql} from 'react-apollo'
i... |
components/AddIngredientGoogleResults.ios.js | joeyrlee/snacktime | import React, { Component } from 'react';
import { Text, Image, TouchableHighlight, View, ListView } from 'react-native';
import FoodpairResults from './FoodpairResults.ios.js';
import helpers from '../helpers/helpers.js';
import styles from '../styles.ios.js';
import AddIngredient from './AddIngredient.ios.js'
export... |
Examples/UIExplorer/AccessibilityAndroidExample.android.js | sixtomay/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,
... |
packages/bonde-admin/src/mobrender/widgets/draft/components/draft-button.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
if (require('exenv').canUseDOM) require('./draft-button.scss')
const DraftButton = ({ icon, svgIcon: SVGIcon, label, updateKind, widget, ...props }) => {
return (
<div className='draft-widget-button col col-4 p1'>
<button title={label} className... |
ajax/libs/angular.js/0.10.2/angular.js | joeylakay/cdnjs | /**
* @license AngularJS v0.10.2
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
ajax/libs/instantsearch.js/1.2.4/instantsearch.min.js | sashberd/cdnjs | /*! instantsearch.js 1.2.4 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea... |
public/resources/js/vendor/jquery.js | SaloGala/angular-es | /*! jQuery v1.11.2 | (c) 2005, 2014 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... |
src/@ui/Placeholder/Typography.tests.js | NewSpring/Apollos | import React from 'react';
import renderer from 'react-test-renderer';
import Providers from '@ui/TestProviders';
import { Typography } from './Typography';
describe('The Typography placeholder', () => {
it('renders correctly', () => {
const tree = renderer.create(
<Providers><Typography /></Providers>,
... |
client/src/Components/Toolbar/AppToolbarNavMenu.js | appztreme/Jugendsommer | import React from 'react';
import { Link } from 'react-router';
import IconMenu from 'material-ui/lib/menus/icon-menu';
import IconButton from 'material-ui/lib/icon-button';
import MenuItem from 'material-ui/lib/menus/menu-item';
import MenuIcon from 'material-ui/lib/svg-icons/navigation/menu';
import EventIcon from 'm... |
docs/src/app/components/MarkdownElement.js | pradel/material-ui | import React from 'react';
import marked from 'marked';
import PureRenderMixin from 'react-addons-pure-render-mixin';
require('./mui-github-markdown.css');
const styles = {
root: {
marginTop: 20,
marginBottom: 20,
padding: '0 10px',
},
};
const MarkdownElement = React.createClass({
propTypes: {
... |
ajax/libs/webshim/1.15.6/dev/shims/moxie/js/moxie-html4.js | cloudrifles/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
ajax/libs/mediaelement/2.9.1/jquery.js | peteygao/cdnjs | /*!
* jQuery JavaScript Library v1.7
* 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/scripts/components/Thing.js | scyclow/fire-sale | import React from 'react';
class Thing extends React.Component {
render() {
return (
<div className="thing">
{this.props.content}
</div>
);
}
}
export default Thing;
|
src/react/JSONTree/JSONArrow.js | cyhunter/redux-devtools | import React from 'react';
const styles = {
base: {
display: 'inline-block',
marginLeft: 0,
marginTop: 8,
marginRight: 5,
'float': 'left',
transition: '150ms',
WebkitTransition: '150ms',
MozTransition: '150ms',
borderLeft: '5px solid transparent',
borderRight: '5px solid trans... |
src/components/SignUp.js | cessien/buzzer | // src/components/SignUp.js
import React from 'react';
import Loading from './Loading';
import Logo from './Logo';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import {Card, CardTitle, CardText} from 'material-ui/Card';
import * as firebase from 'firebase';
... |
src/index.js | yabadabu/react-ise | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import AppMain from './containers/AppMain';
import configureStore from './store/configureStore';
import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated l... |
shared/components/Main/TaxAdvice/TaxAdvice.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { changeTitle } from '../../../actions/pageActions';
import Calender from '../../SubComponents/Calendar';
@connect(store => ({
isLoggedIn: store.user.isLoggedIn,
isLoading: store.user.isLoadin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.