path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
node_modules/axios/dist/axios.js | Cole-Campbell/ReduxIntro | /* axios v0.7.0 | (c) 2015 by Matt Zabriskie */
(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(typeof exports === 'object')
exp... |
ajax/libs/react-router/0.10.0/react-router.min.js | dada0423/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
ajax/libs/F2/1.3.2/f2.min.js | sparkgeo/cdnjs | /*! F2 - v1.3.2 - 11-18-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
src/svg-icons/navigation/menu.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMenu = (props) => (
<SvgIcon {...props}>
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
</SvgIcon>
);
NavigationMenu = pure(NavigationMenu);
NavigationMenu.displayName = 'NavigationMenu';... |
test/components_test/form-inputs/styledInput.js | aichbauer/redux-valid-form | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import StyledInput from '../../../src/components/form-inputs/styledInput';
test('StyledInput | valid and focused', (t) => {
const styledInputWrapper = shallow(<StyledInput data-is-valid={true} data-is-focused={true} />);
t.is(st... |
packages/showcase/radial-chart/arc-series-example.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, 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, modify... |
addons/info/src/components/markdown/code.js | shilman/storybook | import React from 'react';
export class Code extends React.Component {
componentDidMount() {
this.highlight();
}
componentDidUpdate() {
this.highlight();
}
highlight() {
if (typeof Prism !== 'undefined') {
Prism.highlightAll();
}
}
render() {
const codeStyle = {
fontFam... |
docs/app/Examples/modules/Rating/Types/RatingExampleHeart.js | ben174/Semantic-UI-React | import React from 'react'
import { Rating } from 'semantic-ui-react'
const RatingExampleHeart = () => (
<Rating icon='heart' defaultRating={1} maxRating={3} />
)
export default RatingExampleHeart
|
src/svg-icons/action/assignment-ind.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentInd = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 ... |
ajax/libs/redux-form/7.0.0-alpha.6/redux-form.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-redux"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-redux", "redux"], factory);
e... |
src/index.js | hummlas/react-redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, connect } = createAll(React);
|
app/Meneame.js | alvaromb/mnm | import React from 'react'
import { StyleSheet, Image, Text, Dimensions } from 'react-native'
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
import Ionicon from 'react-native-vector-icons/Ionicons'
import { Menu } from 'react-native-section-menu'
import {
MnmSectionPortada,
MnmSectionNuevas,
... |
src/components/app-wrapper.js | translatium/translatium | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import React from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider as MuiThemeProvider, create... |
ajax/libs/ember-data.js/1.0.0-beta.8/ember-data.prod.js | CyrusSUEN/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.8.2a68c63a
*/
(function(global) {
var define, requireModule, require, requirejs;
(funct... |
client/src/components/my_posts/my_posts.js | kakato10/hirundo2 | import React from 'react';
import PropTypes from 'prop-types';
import PostsList from '../posts_list/posts_list';
export default class MyPosts extends React.Component {
constructor(props) {
super(props);
props.loadPostsOfCurrentUser();
}
render() {
const {posts, loggedUser} = this.props;
retur... |
js/jqwidgets/demos/react/app/tagcloud/sortingfiltering/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTagCloud from '../../../jqwidgets-react/react_jqxtagcloud.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Compon... |
src/CollapsibleMixin.js | chrishoage/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState() {
const defaultExpanded... |
ajax/libs/video.js/5.0.0-rc.98/video.js | froala/cdnjs | /**
* @license
* Video.js 5.0.0-rc.98 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
components/Navi.js | s1hit/react-onsenui-redux-weather-edited | import React from 'react';
import {
Navigator
} from 'react-onsenui';
import TabPage1 from './TabPage1';
const renderPage = (route, navigator) => (
<route.component key={route.key} navigator={navigator} />
);
const Navi = () => (
<Navigator
renderPage={renderPage}
initialRoute={{component: TabPage1, k... |
examples/async/index.js | koistya/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
src/components/Publisher/Publisher-test.js | Climb-social/react-climb-social | import test from 'tape';
import React from 'react';
import { shallow } from 'enzyme';
import Publisher from './Publisher';
test('Publisher output classes', assert => {
const props = {
pic: 'http://100shapes.com/pic.jpg',
displayName: 'Climb Social',
username: 'ClimbSocialUK',
profileLink: 'http://tw... |
src/svg-icons/hardware/keyboard.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboard = (props) => (
<SvgIcon {...props}>
<path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v... |
client/lib/screens/build/layout.js | Itera/itera-feedback | const React = require("react");
const BuildForm = require("./form");
function BuildLayout (props) {
if (props.survey) {
return (
<BuildForm
onChangeSurvey={props.onChangeSurvey}
onAddQuestion={props.onAddQuestion}
onChangeQuestion={props.onChangeQuestion}
onRemoveQu... |
src/Stepper/StepContent.spec.js | rhaedes/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import StepContent from './StepContent';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepContent />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node, context = {}... |
lib/codemod/src/transforms/__testfixtures__/csf-to-mdx/component-id.input.js | kadirahq/react-storybook | import React from 'react';
import Button from './Button';
export default {
title: 'Button',
id: 'button-id',
};
export const someStory = () => <Button label="Story 1" />;
|
src/js/components/tabs/tab_button.js | working-minds/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { mixin } from '../../utils/decorators';
import {
CssClassMixin,
ContainerMixin,
FormContainerMixin
} from '../../mixins';
@mixin(
CssClassMixin,
ContainerMixin,
FormContainerMixin
)
export default class TabButton e... |
src/components/panel-feature.js | maxmalynowsky/situational-awareness-map | import React, { Component } from 'react';
import Radium from 'radium';
import ScrollArea from 'react-scrollbar';
import types from '../constants/action-types.js';
import store from '../store.js';
import styles from '../styles.js';
import PanelFeatureItem from './panel-feature-item.js';
@Radium
export default class Fea... |
src/views/pages/home/index.js | zerubeus/sawt | import React from 'react';
import { connect } from 'react-redux';
import { tracklistActions } from '../../../core/tracklists';
import ContentHeader from '../../components/content-header';
import Tracklist from '../../components/tracklist';
import PropTypes from 'prop-types';
export class HomePage extends React.Compon... |
app/addons/fauxton/navigation/components/NavLink.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
ajax/libs/forerunnerdb/1.3.673/fdb-core+views.min.js | x112358/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/reactive-coffee/0.0.3/reactive-coffee.js | paleozogt/cdnjs | (function() {
var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, firstWhere, lagBind, maybe, mkMap, mktag, mkuid, nextUid, nthWhere, popKey, prop, propSet, props, recorder, rx, rxt, setProp, specialAttrs, tag, t... |
node_modules/@angular/router/bundles/router.umd.js | hadoop3/hadoop3.github.io | /**
* @license Angular v3.3.1
* (c) 2010-2016 Google, Inc. https://angular.io/
* License: MIT
*/(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('rxjs/BehaviorSubject'), require('rxjs/Subject... |
packager/react-packager/src/DependencyResolver/DependencyGraph/index.js | yutail/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
Sample/App.js | douglasjunior/react-native-keyboard-manager | /**
* MIT License
*
* Copyright (c) 2017 Douglas Nassif Roma Junior
*
* 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, ... |
ajax/libs/yasqe/1.2.7/yasqe.min.js | hasantayyar/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!... |
src/components/buttons/Command/index.js | jtmckay/TQL | import React from 'react'
import styled from 'styled-components'
import * as styles from 'styles'
import crown from 'icons/crown.svg'
const StyledCommandButton = styled.div`
color: black;
cursor: pointer;
border-radius: 30px;
`
const StyledCommandButtonWithHover = styled.div`
color: black;
cursor:... |
frontend/containers/SearchDisclaimer.js | datoszs/czech-lawyers | import React from 'react';
import {SearchDisclaimer} from '../components';
import RichText from './RichText';
export default () => <SearchDisclaimer><RichText msg="search.disclaimer" /></SearchDisclaimer>;
|
src/views/RoleManage/EditRole.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Form, Button, Input, Row, Col, message, Modal, TreeSelect, Select } from 'antd'
import { checkBtnList } from 'UTIL/filters'
import AddRoleBox from './AddRoleBox'
import BindRoleBox from './BindRoleBox'
im... |
WebDev/FE/JS/Reactjs/PRWF/src/Pages/Chats/Chats.js | ParkDyel/practice | import * as _ from 'lodash';
import React, { Component } from 'react';
import firebase from 'firebase';
import ChatListComponent from '../../Components/ChatList/ChatList';
const firebaseConfig = {
apiKey: 'AIzaSyAguZYIeMIg-_SjNXuO3uDXFcD6IurqdAs',
databaseURL:'https://chatappapplication.firebaseio.com/',
};
expor... |
assets/live/L2Dwidget.min.js | harryzjm/harryzjm.github.com | /*! https://github.com/xiazeyu/live2d-widget.js built@2018-2-15 23:35:19 */
var L2Dwidget=function(t){var n=window.webpackJsonpL2Dwidget;window.webpackJsonpL2Dwidget=function(e,o,i){for(var c,u,a=0,f=[];a<e.length;a++)u=e[a],r[u]&&f.push(r[u][0]),r[u]=0;for(c in o)Object.prototype.hasOwnProperty.call(o,c)&&(t[c]=o[c]);... |
src/index.js | leapon/office-finder | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Home from './components/app_home';
import Header f... |
ajax/libs/react-bootstrap-table/3.2.2/react-bootstrap-table.min.js | pvnr0082t/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTable=t(require("react"),require("react-dom")):e.ReactBootstrapTable=t(e.React,e.R... |
src/components/maps/EquidistantLegend.js | NuCivic/react-dashboard | import React, { Component, PropTypes } from 'react';
export default class EquidistantLegend extends Component {
renderLegend() {
const rectWidth = 40
const textStyle = {
textAnchor: 'middle',
fontSize: 9,
fill: '#333',
}
const { extremeValues} = this.props;
const classesCount = ... |
src/components/centereddiv.js | jeetiss/client | import React from 'react'
import styled from 'styled-components'
const Wrap = styled.div`
display: flex;
flex-direction: row;
justify-content: center;
flex: 1 0;
`
const Container = styled.div`
flex: 0 1 690px;
display: flex;
flex-direction: column;
`
export const CenteredDiv = ({ children }) => (
<... |
packages/clairvoyance/src/components/Pages.js | accosine/poltergeist | import React from 'react';
import CardList from './CardList';
import ArticleCard from './ArticleCard';
const Pages = ({ history }) => (
<CardList
collection="pages"
CardComponent={ArticleCard}
path="/editor/page"
history={history}
/>
);
export default Pages;
|
src/js/components/pagination/app-pagination.js | TheFixers/node-honeypot-client | /**
* Filename: 'app-list-button.js'
* Author: JMW <rabbitfighter@cryptolab.net>
* App pagination component (WIP) Not implemented yet...
*/
import React from 'react'
import StoreWatchMixin from '../../mixins/StoreWatchMixin'
import AppActions from '../../actions/app-actions'
const _jumpToPage = ( event ) => {
... |
ajax/libs/yui/3.5.0pr1/event-focus/event-focus-debug.js | froala/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
source/client/redux/reaction/index.js | lacqueristas/www | import {prop} from "ramda"
import {replace} from "ramda"
import {pipe} from "ramda"
import reactions from "@internal/reactions"
import persist from "./persist"
const defaultReaction = (state) => () => state
const signaledReaction = pipe(replace(/Signal$/)("Reaction"), prop)
export default function reaction (state, s... |
tests/routes/Home/components/HomeView.spec.js | sonofbjorn/circle-ci-test | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
test/specs/polar/RadialBarSpec.js | thoqbk/recharts | import React from 'react';
import { expect } from 'chai';
import { Surface, RadialBar, Sector } from 'recharts';
import { mount, render } from 'enzyme';
describe('<RadialBar />', () => {
const data = [
{ cx: 250, cy: 250, innerRadius: 0, outerRadius: 0, value: 50 },
{ cx: 250, cy: 250, innerRadius: 30, outer... |
img/program_files/5cGM7SIftt_.js | wecodeharvard/wecodeharvard.github.io | /*!CK:1898010989!*//*1418624704,*/
if (self.CavalryLogger) { CavalryLogger.start_js(["S1Vjf"]); }
__d("ChatOptions",["Arbiter","ChannelConstants","JSLogger","PresenceUtil","copyProperties","ChatOptionsInitialData"],function(a,b,c,d,e,f,g,h,i,j,k){var l=i.create('chat_options'),m={};(function(){var o=b('ChatOptionsIni... |
src/pages/second.android.js | fmsouza/rn-seed-tabs | import React from 'react';
import { View, Text } from 'react-native';
import { CardView, Header, Searchbar } from '../common';
const Style = {
card: {
marginVertical: 10,
padding: 10
},
container: {
flex: 1,
justifyContent: 'flex-start',
alignItems: 'center',
... |
src/screens/Messages.spec.js | jazmon/greaserocket | import 'react-native';
import React from 'react';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
import { MessagesComponent as Messages } from './Messages';
it('renders correctly', () => {
const tree = renderer.create(
<Messages />
);
expect(tree).to... |
packages/xo-web/src/xo-app/hub/index.js | vatesfr/xo-web | import _ from 'intl'
import Icon from 'icon'
import React from 'react'
import { Container, Col, Row } from 'grid'
import { getXoaPlan, routes, TryXoa } from 'utils'
import { NavLink, NavTabs } from 'nav'
import Page from '../page'
import Recipes from './recipes'
import Templates from './templates'
// ===============... |
test/integration/prerender-legacy/pages/blog/[post].js | azukaru/next.js | import React from 'react'
export async function unstable_getStaticParams() {
return ['/blog/post-1']
}
export async function getStaticProps({ params }) {
return {
props: {
post: params.post,
time: (await import('perf_hooks')).performance.now(),
},
}
}
export default () => {
return <div />... |
app/components/AppBar/index.js | kelsonic/react-redux-material-ui-boilerplate | /**
*
* AppBar
*
*/
import { PropTypes, PureComponent } from 'react';
import view from './view';
class AppBar extends PureComponent {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
iconClassNameLeft: PropTypes.string,
iconClassNameRight: PropTypes.string,
iconElement... |
src/components/Dropdown/Dropdown-test.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { mount, shallow } from 'enzyme';
import {
assertMenuOpen,
assertMenuClosed,
findMenuItemNode,
open... |
packages/core/helper-plugin/lib/src/components/ContentBox/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Flex } from '@strapi/design-system/Flex';
import { Stack } from '@strapi/design-system/Stack';
import { Typography } from '@strapi/design-system/Typography';
const IconWrapper = styled(Flex)`
margin-right:... |
ajax/libs/yasr/2.4.8/yasr.bundled.min.js | hasantayyar/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
ui/src/containers/Visualisations/TemplateStreamInteractionsVsEngagement/Viewer.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import SourceResults from 'ui/containers/VisualiseResults/SourceResults';
import XvsYChartResults from 'ui/containers/VisualiseResults/XvsYChartResults';
/**
* @param {string} props.visualisationId
* @param {boolean} props.showSourceView
*/
const Viewe... |
ajax/libs/datatables/1.10.6/js/jquery.js | mscharl/cdnjs | /*! jQuery v1.11.1 | (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... |
tests/components/WordComponent.spec.js | theosherry/react-hangman | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import {WordComponent} from 'components/WordComponent/WordComponent'
import {LetterComponent} from 'components/LetterComponent/LetterComponent'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.rende... |
__tests__/index.ios.js | PowerlineApp/powerline-rn | 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 />
);
});
|
src/svg-icons/notification/sms-failed.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSmsFailed = (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>
);
NotificationSmsFail... |
ajax/libs/react-intl/1.0.0/react-intl-with-locales.js | magoni/cdnjs | (function() {
"use strict";
var $$utils$$hop = Object.prototype.hasOwnProperty;
function $$utils$$extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
... |
src/svg-icons/image/filter.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter = (props) => (
<SvgIcon {...props}>
<path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1... |
src/components/MainMenu/components/Plugins.js | jaruba/PowderPlayer | import React from 'react';
import _ from 'lodash';
import plugins from '../../../utils/plugins';
import async from 'async';
import MetaInspector from 'node-metainspector';
import ls from 'local-storage';
import ModalActions from '../../Modal/actions';
var skipScroll;
var titleCase = str => {
var splitStr = str.toL... |
packages/material-ui-icons/src/LiveTv.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LiveTv = props =>
<SvgIcon {...props}>
<path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8l7-4z" />
... |
1_simple_server_render/server.js | chkui/react-server-demo | 'use strict';
require('babel-polyfill');
require('babel-register')({
presets: ['es2015', 'react', 'stage-0'],
plugins: ['add-module-exports']
});
//启动一个koa实例
const koa = require('./koa'),
// koa的垫片,将旧的generator模式替换为promise模式
convert = require('koa-convert'),
//webpack工具
webpack = require('we... |
src/components/ContainerDetailsSubheader.react.js | scalopus/kitematic | import _ from 'underscore';
import React from 'react';
import shell from 'shell';
import metrics from '../utils/MetricsUtil';
import ContainerUtil from '../utils/ContainerUtil';
import classNames from 'classnames';
import containerActions from '../actions/ContainerActions';
import dockerMachineUtil from '../utils/Docke... |
src/components/SearchByText/test.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import { SearchByText } from '.';
const renderer = new ShallowRenderer();
describe('<SearchByText />', () => {
test('should render', () => {
renderer.render(<SearchByText main={'search'} />);
expect(renderer.getR... |
app/components/export.js | sirbrillig/voyageur-js-client | import React from 'react';
import { connect } from 'react-redux';
import { getLocations } from 'lib/selectors';
const ExportPanel = ( props ) => {
const output = JSON.stringify( props.locations.map( location => {
return {
name: location.name,
address: location.address,
};
} ) );
return (
... |
app/components/Footer.js | tenshiemi/DoDidDone | import React from 'react';
export const Footer = () => (
<div className="footer">
<p>Copyright TrussWorks, 2016</p>
</div>
);
export default Footer;
|
src/svg-icons/action/account-balance.js | pancho111203/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... |
src/html.js | richardwestenra/gatsby-contentful-static-test | import React from 'react';
import { TypographyStyle } from 'react-typography';
import * as PropTypes from 'prop-types';
import typography from './utils/typography';
let stylesStr
if (process.env.NODE_ENV === `production`) {
try {
stylesStr = require(`!raw-loader!../public/styles.css`)
} catch (e) {
console... |
src/svg-icons/notification/airline-seat-legroom-normal.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomNormal = (props) => (
<SvgIcon {...props}>
<path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.... |
src/svg-icons/av/library-music.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryMusic = (props) => (
<SvgIcon {...props}>
<path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57... |
node_modules/react-router/es6/IndexRoute.js | ASIX-ALS/asix-final-project-frontend | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/components/Counter/index.js | LeoLeBras/react-native-redux-starter-kit | /* @flow */
import React from 'react'
import { View, Text } from 'react-native'
import Button from '@components/Button'
import styles from './styles'
type Props = {
value: number,
decrement: Function,
increment: Function,
}
const Counter = (props: Props) => {
const { value, decrement, increment } = props
r... |
src/components/Footer/Footer.js | bleedjent/ab_application | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* 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, { Component } from 'react';
import s from '.... |
ReactNative/node_modules/react-navigation/src/views/Header/ModularHeaderBackButton.js | tahashahid/cloud-computing-2017 | import React from 'react';
import { I18nManager, Image, Text, View, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
class ModularHeaderBackButton extends React.PureComponent {
static defaultProps = {
tintColor: '#037aff',
truncatedTitle: 'Back',
// eslint-disable-next-lin... |
src/routes/Barmen/components/CommonBarmenView/CommonBarmenView.js | hrnik/roofbar | import React from 'react'
import Dropdown from 'react-dropdown'
import Loader from 'components/Loader'
import './CommonBarmenView.scss'
import { BAR_STATUS_OPENED, BAR_STATUS_CLOSED } from 'store/bar'
const defaultRoutes = [{ value: '/barmen', label: 'Orders' }, { value: '/manage', label: 'Manage' }]
const barStatusVa... |
examples/03 - Basic auth/components/App.js | gilesvangruisen/browserify-react-live | import React from 'react';
import auth from '../vendor/auth';
import Router from 'react-router';
var { RouteHandler, Link } = Router;
export default class App extends React.Component {
state = {
loggedIn: auth.loggedIn(),
}
setStateOnAuth(loggedIn) {
this.setState({
loggedIn: loggedIn,
});
... |
pootle/static/js/admin/components/ItemTable.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import ItemTableRow from './It... |
ajax/libs/react-flip-move/1.0.0/react-flip-move.js | sufuf3/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
packages/react/src/components/InlineLoading/InlineLoading.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { CheckmarkFilled16, ErrorFilled16... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | im-in-space/mastodon | import Blurhash from 'mastodon/components/blurhash';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state';
import { isIOS } from 'mastodon/is_mobile';
import PropTypes from 'prop-types';
import React from 'react... |
src/Rainbow/WIDEBundle/Resources/public/lib/ext-js/docs/output/Ext.picker.Month.js | cristi23/WIDE | Ext.data.JsonP.Ext_picker_Month({"tagname":"class","html":"<div><pre class=\"hierarchy\"><h4>Alternate names</h4><div class='alternate-class-name'>Ext.MonthPicker</div><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.Base' rel='Ext.Base' class='docClass'>Ext.Base</a><div class='subclass '><a href... |
packages/material-ui-icons/src/MinimizeOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6 19h12v2H6v-2z" /></React.Fragment>
, 'MinimizeOutlined');
|
packages/material-ui-icons/src/BrightnessAutoOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 7l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L13 7h-2zm-.15 5.65L12 9l1.15 3.65h-2.3zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zm-2 5.79V18h-3.52L12 ... |
src/playground/components/DivSpanExample.react.js | Indoqa/indoqa-rebass-components | import React from 'react'
import Div from '../../main/components/Div.react'
import Span from '../../main/components/Span.react'
import {Heading, Pre} from 'rebass'
const ListExample = () => (
<Div>
<Heading level={2}> Div/Span </Heading>
<Div>
<Pre> <Span style={{backgroundColor: 'red'... |
app/livechat/client/views/app/livechatCustomFieldForm.js | subesokun/Rocket.Chat | import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Template } from 'meteor/templating';
import toastr from 'toastr';
import { t, handleError } from '../../../../utils';
import { getCustomFormTemplate } from './cust... |
src/components/Header/Header.js | amcsi/szeremi-webpack-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.scss';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Comp... |
app/components/LoadingIndicator/index.js | ParAnton/ngps-gui-core | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
server/sonar-web/tests/apps/permission-templates-test.js | joansmith/sonarqube | /* eslint no-unused-expressions: 0 */
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Defaults from '../../src/main/js/apps/permission-templates/permission-template-defaults';
import SetDefaults from '../../src/main/js/apps/permission-templates/permission-template-set-defaults';
let... |
client/src/app.js | mikelearning91/seeme-starter | import React, { Component } from 'react';
import HeaderTemplate from './components/template/header';
import FooterTemplate from './components/template/footer';
import ListShadow from './components/template/list-shadow';
import MatchList from './components/template/match-list';
import CSSTransitionGroup from 'react-tran... |
ajax/libs/angular.js/1.0.0rc10/angular-scenario.js | thetable/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* 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-client/scripts/display-cargo-details.js | Dolpator/iLuggit | import Backbone from 'backbone'
import React from 'react'
import ACTIONS from './ACTIONS.js'
import LuggAuthView from './lugg-auth-view.js'
import $ from 'jquery'
const CargoDisplay = React.createClass({
_acceptLugg: function(){
let userid = this.refs.id.dataset.id
// console.log('id', userid);
... |
app/components/weatherCardGroup.component.js | bryantwang1/react-weather | import React from 'react';
import WeatherCard from './weatherCard.component';
class WeatherCardGroup extends React.Component {
render() {
let weatherData = this.props.daily.data;
let weatherCards = [];
if (typeof weatherData != 'undefined') {
let counter = 0;
weatherCards = weatherData.map(... |
server/server.js | Ripley6811/TAIMAU-CHARTS | import Express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import cookieParser from 'cookie-parser';
import path from 'path';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.