path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/app/containers/ClockContainer.js | XPRO-LTD/resource-managment-react | import React, { Component } from 'react';
import Clock from '../components/Clock'
class ClockContainer extends Component {
constructor(props){
super(props);
this.state = { date : [] };
}
createRandomHash = () =>{
let arr = [getRandomHex(),getRandomHex(),getRandomHex()];
ret... |
react/features/unsupported-browser/components/PageSelector.js | gpolitis/jitsi-meet | import React from 'react';
import { useSelector } from 'react-redux';
import { isVpaasMeeting } from '../../jaas/functions';
import JaasUnsupportedDesktopBrowser from './JaasUnsupportedDesktopBrowser';
import UnsupportedDesktopBrowser from './UnsupportedDesktopBrowser';
const PageSelector = () => {
const isJaas ... |
app/components/PatternRow.js | leckman/purlpal | import React from 'react';
import { connect } from 'react-redux'
import Messages from './Messages';
class PatternRow extends React.Component {
renderRow(row) {
return <Row value={row} />;
}
render() {
let users = [];
let that = this;
this.state.users.forEach(function(user, i) {
users.push... |
src/containers/damagereport.js | bryankle/dungeoncrawler | import React, { Component } from 'react';
import { connect } from 'react-redux';
const DamageReport = function(props) {
// Will have to use Redux to pass on damage
return (
<div>
<h1>You have inflicted {props.damage} damage to rat</h1>
</div>
)
}
function mapStateToProps(state... |
src/components/Tags.js | Oluwasetemi/Oluwasetemi.github.io | import {graphql, Link, useStaticQuery} from 'gatsby'
import React from 'react'
import styled from 'styled-components'
const TagsStyles = styled.div`
color: var(--color);
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 4rem;
a {
display: grid;
grid-template-columns: auto 1fr;
gap: 0 1r... |
ui/src/components/Menu.js | nateinaction/nateanddanielle.love | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import AppBar from '@material-ui/core/AppBar';
import Drawer from '@material-ui/core/Drawer';
import Hidden from '@material-ui/core/Hidden';
import IconButton from '@material-ui/core/IconButton';
import Link from '@mat... |
packages/material-ui-icons/src/StyleOutlined.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="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zM22.03 15.95L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1... |
example/examples/StaticMap.js | mvakulich/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_... |
src/js/containers/SearchBar.js | nicksp/react-geo-weather | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {
term: ''
};
// Context bindings
thi... |
pages/index.js | koistya/react-static.tarkus.me | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Home Page</h1>
<p>Coming ... |
ajax/libs/monaco-editor/0.32.0-dev.20220130/min/vs/base/worker/workerMain.min.js | cdnjs/cdnjs | !function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)t[r]=i[e[r]];return t}var t,m,r,s,a,l,u,n,i=["require","exports","vs/base/common/strings","vs/base/common/platform","vs/base/common/event","vs/editor/common/core/position","vs/editor/common/core/range","vs/base/common/lifecycle","vs/base/common/path","vs/bas... |
demo08/src/components/PublishTopic/PublishTopic.js | lxlneo/reactdemo | import React, { Component } from 'react';
import { Form, Select, Input, Button } from 'antd';
import LzEditor from 'react-lz-editor'
import styles from './PublishTopic.css';
const FormItem = Form.Item;
const Option = Select.Option;
class PublishTopic extends Component {
constructor(props) {
super(props);
th... |
client/src/components/auth/reset_password.js | iNeedCode/mern-starter | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Field, reduxForm } from 'redux-form';
import { resetPassword } from '../../actions/auth';
const form = reduxForm({
form: 'resetPassword',
validate,
});
function validate(formProps) {
const errors = {};
if (!formProps.pa... |
src/svg-icons/content/content-paste.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentPaste = (props) => (
<SvgIcon {...props}>
<path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s... |
packages/ringcentral-widgets-docs/src/app/pages/Components/RecentActivityPanel/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import RecentActivityPanel from 'ringcentral-widgets/components/RecentActivityPanel';
const props = {};
props.title = 'test string';
props.onPanelToggle = () => null;
props.expanded = false;
/**
* A example of `RecentActivityPanel`
*/
const RecentActivityPanelD... |
src/packages/@ncigdc/components/RelayLoadingContainer.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { connect } from 'react-redux';
import {
compose,
pure,
setDisplayName,
} from 'recompose';
import Overlay from '@ncigdc/uikit/Overlay';
import Particle from '@ncigdc/uikit/Loaders/Particle';
const RelayLoadingContainer = ({ relayLoading }) => (
<Overlay className="te... |
content/gocms/src/admin/containers/adminPages/components/mainMenu/MainMenu.js | menklab/goCMS | 'use strict';
import React from 'react';
import {connect} from 'react-redux'
import {logout} from '../../../../services/authentication'
import {browserHistory} from 'react-router'
class BasicComponent extends React.Component {
constructor(props) {
super(props);
this.handleMenuOpenCloseClick = thi... |
ajax/libs/handsontable/0.11.0-beta2/jquery.handsontable.full.js | luhad/cdnjs | /**
* Handsontable 0.11.0-beta2
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012-2014 Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Thu Jul 24 2014 13:18:23 GMT+0200 (CEST)
... |
src/components/__tests__/general/placeholder-test.js | GlenHughes/thegymbuddy | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Placeholder from '@components/general/Placeholder';
it('Placeholder renders correctly', () => {
const tree = renderer.create(
<P... |
pages/index.js | alexpalombaro/react-static | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Home Page</h1>
<p>Coming ... |
lib/components/filter-input-field.js | gness1804/shoot-the-breeze | import React, { Component } from 'react';
import firebase, { reference, signIn } from '../firebase';
import { pick, map, extend } from 'lodash';
class FilterInputField extends React.Component {
constructor(props) {
super(props);
}
//had to pass the event into the function passed down from parent as a prop.
re... |
src/components/Page/Page.js | bmatthews/haze-lea | /**
* 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 PropTypes from 'prop-... |
node_modules/react-icons/fa/crop.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaCrop = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m13.9 28.6h13.3v-13.3z m-1-1l13.3-13.3h-13.3v13.3z m25.7 1.7v4.3q0 0.3-0.2 0.5t-0.5 0.2h-5v5q0 0.3-0.2 0.5t-0.5 0.2h-4.3q-0.3 0-0.5-0.2t-0.2-0.5v-5h-19.3q-0.3 0-0.5-0.2t... |
examples/todomvc/components/MainSection.js | quicksnap/redux | import React, { Component, PropTypes } from 'react';
import TodoItem from './TodoItem';
import Footer from './Footer';
import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters';
const TODO_FILTERS = {
[SHOW_ALL]: () => true,
[SHOW_UNMARKED]: todo => !todo.marked,
[SHOW_MARKED]: todo => todo... |
src/renderer/components/Settings/index.js | protonmail-desktop/application | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
export default class Settings extends React.Component {
static propTypes = {
darkTheme: PropTypes.bool.isRequired,
onChangeSetting: PropTypes.func.isRequired,
useProtonMailBeta: PropTypes.bool.isRequired,
... |
frontend/src/Components/Page/Header/PageHeaderActionsMenuConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { restart, shutdown } from 'Store/Actions/systemActions';
import PageHeaderActionsMenu from './PageHeaderActionsMenu';
function createMapStateToProps() ... |
Bundle/CoreBundle/Resources/public/vendor/jquery/1.10.2/jquery-1.10.2.js | alexislefebvre/victoire | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
ajax/libs/forerunnerdb/1.3.602/fdb-core+persist.min.js | iwdmb/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/hekla-viewer/src/ContentPane/DependencyChart/ComponentContextMenu.js | andrewjensen/hekla | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import ArrowUpward from 'material-ui/svg-icons/navigation/arrow-upward';
import ArrowDownward from 'material-ui/svg-icons/navigation/arrow-downward';
import Delete from 'ma... |
wwwroot/app/src/components/MyRecipesPage/Recipe.js | AlinCiocan/FoodPlanApp | import React from 'react';
import Ingredients from './Ingredients';
import InputGroup from '../base/form/InputGroup';
import TextareaGroup from '../base/form/TextareaGroup';
const Recipe = (props) => {
const {recipe, onChange} = props;
return (
<div className="my-recipe">
<InputGroup
... |
client/modules/App/__tests__/Components/Footer.spec.js | denistakeda/evolution | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
ajax/libs/react-router/0.12.4/ReactRouter.js | jessepollak/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
packages/@lyra/form-builder/src/utils/fallback-preview/PreviewObject.js | VegaPublish/vega-studio | // @flow
import React from 'react'
import {capitalize} from 'lodash'
import {PreviewAny} from './PreviewAny'
type Props = {
value: Object,
maxDepth?: number,
_depth?: number
}
export function PreviewObject(props: Props) {
const {value, maxDepth = 4, _depth = 0, ...rest} = props
const {_type, _key, ...restVa... |
src/components/ProgressBar/ProgressBar.js | GetAmbassador/react-ions | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import ProgressBarLabel from './ProgressBarLabel'
import style from './style.scss'
/**
* The ProgressBar fills from 0% to 100% to show the progress of a task.
*/
const ProgressBar = props => {
let percentage = props.va... |
ajax/libs/rxjs/2.2.7/rx.lite.js | flosse/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/common/components/NavigationRoutes.js | elailai94/elailai94.github.io | import React, { Component } from 'react';
import { Menu } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import NavigationRouteItem from './NavigationRouteItem';
class NavigationRoutes extends Component {
render() {
const { active } = this.props;
const { routes } = this.props;
return (
... |
src/components/ForkMeOnGithubRibbon.js | alanrsoares/redux-game-of-life | import React from 'react'
const PROJECT_URL = 'https://github.com/alanrsoares/redux-game-of-life'
const ribbon = (
<div className='github-fork-ribbon'>
<a href={PROJECT_URL}>Fork me on Github</a>
</div>
)
export default () => (
<div>
<div className='github-fork-ribbon-wrapper right-bottom visible-xs'>
... |
src/challenges/react/React_29.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
recipe-server/client/control/tests/components/test_RecipeHistory.js | Osmose/normandy | import React from 'react';
import { shallow, mount } from 'enzyme';
import { HistoryItem, HistoryList } from 'control/components/RecipeHistory';
import DraftStatus, { STATUS_MESSAGES } from 'control/components/DraftStatus';
import DraftStatusIcon, { STATUS_ICONS } from 'control/components/DraftStatusIcon';
describe('R... |
addons/knobs/src/components/Panel.js | nfl/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash.debounce';
import PropForm from './PropForm';
import Types from './types';
const getTimestamp = () => +new Date();
const styles = {
panelWrapper: {
width: '100%',
},
panel: {
padding: '5px',
width: 'auto',
... |
src/routes.js | raymondji/focus21-sampleapp | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import NotFoundPage from './components/NotFoundPage.js';
import AppsPage from './containers/AppsPage.js';
import LoginPage from './containers/LoginPage.js';
import AuthHelper from './businessLogic/authHelp... |
pages/blog/index.js | rpowis/pusscat.lol | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Blog</h1>
<p>Coming soon.... |
ajax/libs/jQRangeSlider/4.2.4/jQRangeSliderBar.min.js | hasantayyar/cdnjs | (function(a,b){a.widget("ui.rangeSliderBar",a.ui.rangeSliderDraggable,{options:{leftHandle:null,rightHandle:null,bounds:{min:0,max:100},type:"rangeSliderHandle",range:false,drag:function(){},stop:function(){},values:{min:0,max:20},wheelSpeed:4,wheelMode:null},_values:{min:0,max:20},_waitingToInit:2,_wheelTimeout:false,... |
src/pages/packages_overview/PackageOverviewPackagesPage.js | belaczek/BeerCheese-client | import React, { Component } from 'react';
import { Table, Button, Input } from 'reactstrap';
import { Link } from 'react-router';
import localizedTexts from '../../text_localization/LocalizedStrings';
import { updateCart } from '../../actions/cart';
import { connect } from 'react-redux';
import { openModal } from '../.... |
client/components/Form/__tests__/AutoSuggestField-test.js | freakimkaefig/melodicsimilarity | import React from 'react';
import { shallow, mount } from 'enzyme';
import sinon from 'sinon';
import AutoSuggestField from '../AutoSuggestField';
import AutoSuggest from 'react-autosuggest';
describe('<AutoSuggestField/>', () => {
var wrapper;
beforeEach(() => {
jest.resetModules();
});
it('should rend... |
website/src/react-native/index.js | jadbox/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 strict... |
example/src/App/App.js | lokiuz/redraft | import React, { Component } from 'react';
import { EditorState, convertToRaw, convertFromRaw } from 'draft-js';
import { MegadraftEditor, editorStateFromRaw } from 'megadraft';
import Button from '../Button/Button';
import LoadJSON from '../LoadJSON/LoadJSON';
import Preview from '../Preview/Preview';
import ForkRibbon... |
src/components/antd/popconfirm/index.js | hyd378008136/olymComponents | var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ... |
plugins/content/sigplus/js/jquery.js | jbelborja/ferbelia-nueva | /*!
* 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/components/header.js | jtparrett/countcals | import React from 'react'
import { StyleSheet, View, Text } from 'react-native'
export default class Header extends React.Component {
constructor(props) {
super(props)
this.state = {
title: props.title || 'Countcals'
}
}
render() {
return (
<View style={ styles.header }>
<T... |
node_modules/react-icons/io/help.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoHelp = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27 6c1.9 1.5 3 3.6 3 6.5 0 1.7-0.6 3.3-1.5 4.5-0.5 0.7-1.6 1.6-3.1 2.8l-1.6 1.1c-0.8 0.6-1.4 1.4-1.6 2.1-0.2 0.5-0.2 1.5-0.2 2.3 0 0.2-0.1 0.5-0.6 0.5h-4.8c-0.6 0-0.6-0... |
assets/global/plugins/highcharts/js/highcharts.src.js | nguyenanhnhan/chamcong | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.9 (2015-10-07)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInt... |
wp-content/cache/autoptimize/js/autoptimize_9cc39c028e9cabbf556b15f85d41b0b8.js | nilmadhab/webtutplus | writeCookie();function writeCookie()
{the_cookie=document.cookie;if(the_cookie){if(window.devicePixelRatio>=2){the_cookie="pixel_ratio="+window.devicePixelRatio+";"+the_cookie;document.cookie=the_cookie;}}};window._wpemojiSettings={"baseUrl":"http:\/\/s.w.org\/images\/core\/emoji\/72x72\/","ext":".png","source":{"conca... |
ajax/libs/6to5/3.6.1/browser-polyfill.js | samthor/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/index.js | mikeyamadeo/node-api-server | import './styles/main.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router'
import routes from './config/routes'
// Router.run(routes, function(Handler) {
// React.render(<Handler />, document.getElementById('app'))
// })
const Root = props => (
<div>
<Router>
... |
packages/material-ui-icons/src/CloudQueueSharp.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="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.... |
src/svg-icons/content/unarchive.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
src/svg-icons/maps/hotel.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... |
collect-webapp/frontend/src/surveydesigner/pages/SurveysListPage.js | openforis/collect | import './SurveysListPage.scss'
import React from 'react'
import { connect } from 'react-redux'
import {
Button,
DropdownItem,
DropdownToggle,
DropdownMenu,
Row,
Col,
UncontrolledButtonDropdown,
UncontrolledTooltip,
} from 'reactstrap'
import { withNavigate } from 'common/hooks'
import MaxAvailableSpa... |
src/components/Pokeball.js | mineralmink/poke | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchMonster,fetchThrow } from '../actions/index';
import { Link } from 'react-router';
import { getValueFromCookie } from '../components/Cookie';
import _ from 'underscore';
class Pokeball extends Component {
state... |
docs/src/pages/blog.js | Gisto/Gisto | import React from 'react';
import { Helmet } from 'react-helmet';
import { graphql, Link } from 'gatsby';
import Header from 'components/header';
import Footer from 'components/footer';
const Blog = ({ data }) => (
<React.Fragment>
<Helmet>
<title>Blog</title>
</Helmet>
<Header/>
<h1>Blog</h... |
floodwatch/src/js/components/comparison_modal/OptionDropdown.js | O-C-R/floodwatch | // @flow
import React from 'react';
import { MenuItem, ButtonToolbar, DropdownButton } from 'react-bootstrap';
import { extraCategoryNamesRequired } from '../../common/comparisontools';
import type { Preset, FilterPresetsJSON } from '../../common/types';
import type { PersonResponse, FilterRequestItem } from '../../... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | kirakiratter/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
unblockAccount,
unmuteAccount,
pinAccount,
unpinAccount,
} from '../../../actions/accounts';
import {
m... |
examples/counter/test/components/Counter.spec.js | ellbee/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Counter from '../../components/Counter'
function setup() {
const actions = {
increment: expect.createSpy(),
incrementIfOdd: expect.createSpy(),
incrementAsync: expect.createSpy(),
decrement: e... |
react/react-login/src/components/LoginForm/index.js | kobeCan/practices | import React from 'react';
import LoginInput from '../LoginInput';
import LoginButton from '../LoginButton';
import { CircleTooltip } from '../CircleTooltip';
class LoginForm extends React.Component {
constructor (props) {
super(props);
this.state = {
emailCorrect: false,
username: '',
userpwd: '',
p... |
src/svg-icons/hardware/toys.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
packages/react/src/Signup.js | js-accounts/react | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { PasswordSignupFields, validators } from '@accounts/common';
import isString from 'lodash/isString';
import { Form, FormInput } from 'react-form';
class Signup extends Component {
static propTypes = {
accounts: PropTypes.object... |
app/components/ExperienceSelector/index.js | simon-johansson/PB-labz |
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { createStructuredSelector } from 'reselect';
import Slider from 'react-rangeslider';
import { selectKnownExperiences } from 'containers/App/selectors';
import {
setExperience,
removeExperience,
} f... |
test/frontend/components/molecules/CandidateMatchProfileBadgeSpec.js | wbprice/okcandidate | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import { expect } from 'chai'
import CandidateMatchProfileBadge
from '../../../../assets/js/components/molecules/CandidateMatchProfileBadge'
describe('The candidate badge', () => {
let badge
beforeEach(() => {
badge = TestUtils.rende... |
modules/saldotuc-website/src/views/FourOhFour/index.js | nerdify/saldotuc | import React from 'react';
import { Text, Title, Wrapper } from './style';
function FourOhFour() {
return (
<Wrapper>
<Title title="Not Found">404</Title>
<Text>Parece que te quedaste sin saldo</Text>
</Wrapper>
);
}
export default FourOhFour;
|
server/server.js | sfi-ru/encultN | // This file is a mumbo-jumbo, that should be refactored
import express from 'express';
import bodyParser from 'body-parser';
import compression from 'compression';
import cookieParser from 'cookie-parser';
import favicon from 'serve-favicon';
import proxy from 'express-http-proxy';
import path from 'path';
import Rea... |
src/components/ButtonFlatError.js | mikebarkmin/gestyled | import React from 'react';
import { withTheme } from 'styled-components';
import ButtonFlat from './ButtonFlat';
/**
* See ButtonFlat for possible props.
*/
const ButtonFlatError = props => {
const { theme } = props;
const color = theme.colors.error;
return <ButtonFlat color={color} {...props} />;
};
export d... |
files/rxjs/2.2.28/rx.js | bonbon197/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/components/MatchingView.js | dggriffin/MPSOhhh | require('styles/App.css');
import testImg from '../images/Matching_high_2.png';
import React from 'react';
import TimerContainer from '../containers/TimerContainer.js';
class MatchingView extends React.Component {
handleOnClick() {
let code = prompt('Please enter your code to proceed');
this.... |
node_modules/react-bootstrap/lib/Label.js | NickingMeSpace/questionnaire | 'use strict';
exports.__esModule = true;
var _values = require('babel-runtime/core-js/object/values');
var _values2 = _interopRequireDefault(_values);
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime... |
src/docs/examples/TextInput/ExampleOptional.js | ebirito/ps-react-ebirito | import React from 'react';
import TextInput from 'ps-react-ebirito/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={() => ... |
Paco-Server/ear/default/web/eod/jquery.js | athoo/paco | /*!
* jQuery JavaScript Library v1.5.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/runner/tests.react.js | JasonStoltz/test-runner-demo | import React from 'react';
import PureComponent from '../../../node_modules/react-pure-render/component';
export default class Tests extends PureComponent {
static propTypes = {
tests: React.PropTypes.object.isRequired
};
render() {
const {tests} = this.props;
return (
<div>
{tests.ma... |
src/modules/Rooms/components/Chat/index.js | hdngr/mantenuto | /* eslint-disable */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import app from 'app';
import { pushMessage, addMessage, loadMessages } from '../../actions';
import Chat from './Chat';
import ChatIconButton from './ChatIconButton';
@connect(state => ({
messages: state.rooms.mes... |
src/svg-icons/communication/contact-mail.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContactMail = (props) => (
<SvgIcon {...props}>
<path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3... |
fixtures/nesting/src/modern/HomePage.js | acdlite/react | import React from 'react';
import {useContext} from 'react';
import {Link} from 'react-router-dom';
import ThemeContext from './shared/ThemeContext';
import Clock from './shared/Clock';
export default function HomePage({counter, dispatch}) {
const theme = useContext(ThemeContext);
return (
<>
<h2>src/mo... |
src/main.js | adammockor/fridge | import React from 'react';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { syncReduxAndRouter } from 'redux-simple-router';
import routes from './routes';
import Root from './containers/Root';
import configureStore from './redux/configureStore';
const his... |
RN HotUpdate/SmartHomeII/SmartHome/CommView/NavigatorItem.js | HarrisLee/React-Native-Express | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
Platform,
Navigator,
Image,
TouchableHighlight,
} from 'react-native';
export default class NavigatorItem extends Component {
constructor(props) {
super(props);
this.state = {
left: this.pr... |
src/desktop/apps/webpack/components/App.js | mzikherman/force | import React, { Component } from "react"
import styled from "styled-components"
const Container = styled.div`
background: black;
font-size: 40px;
color: white;
`
export class App extends Component {
render() {
return <Container>hi!!!!! 10</Container>
}
}
|
ajax/libs/jointjs/0.6.4/joint.min.js | holtkamp/cdnjs | /*! JointJS v0.6.4 - JavaScript diagramming library 2013-10-15
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 http://mozilla.org/MPL/2.0/.
*/
!function(a,b){function c(a){var b=a.length,c=ib.type(a)... |
src/svg-icons/communication/portable-wifi-off.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPortableWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02.... |
test/components/Counter.spec.js | sheldhur/Vector | import { spy } from 'sinon';
import React from 'react';
import { shallow } from 'enzyme';
import { BrowserRouter as Router } from 'react-router-dom';
import renderer from 'react-test-renderer';
import Counter from '../../app/components/Counter';
function setup() {
const actions = {
increment: spy(),
incremen... |
files/rxjs/2.2.26/rx.lite.js | as-com/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
packages/wix-style-react/src/DragAndDrop/docs/Styles/examples/ItemPlaceholder.js | wix/wix-style-react | import React from 'react';
import { dndStyles } from 'wix-style-react';
export default () => (
<div className={dndStyles.itemPlaceholder}>a simple item</div>
);
|
src/parser/shared/modules/resources/mana/ManaUsageGraph.js | yajinni/WoWAnalyzer | import React from 'react';
import { AutoSizer } from 'react-virtualized';
import PropTypes from 'prop-types';
import BaseChart, { formatTime } from 'parser/ui/BaseChart';
const COLORS = {
MANA: {
background: 'rgba(2, 109, 215, 0.25)',
border: 'rgba(2, 109, 215, 0.6)',
},
HEALING: {
background: 'rgba(... |
ajax/libs/webshim/1.14.4-RC3/dev/shims/combos/26.js | dominicrico/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 ... |
static/Brython3.1.1-20150328-091302/Lib/jqueryui/jquery-1.11.2.min.js | 40223133/w188 | /*! 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/svg-icons/hardware/sim-card.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
js/jqwidgets/demos/react/app/chart/columnseriewithconditionalcolors/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'csv',
datafields: [
{ name: 'Quarter' },
... |
docs/src/components/layout.js | evanlucas/node-tap | import React from 'react';
import styled from 'styled-components';
import Navbar from './navbar';
import Sidebar from './sidebar';
import {Flex} from 'rebass';
const WidthWrapper = styled.div`
max-width: 750px;
margin: 0 auto;
width: 100%;
padding: 20px;
box-sizing: border-box;
`;
const Layout = ({showSideb... |
src/svg-icons/image/transform.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
node_modules/react-icons/lib/fa/language.js | bengimbel/Solstice-React-Contacts-Project | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
src/svg-icons/device/screen-lock-portrait.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockPortrait = (props) => (
<SvgIcon {...props}>
<path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.... |
node_modules/react-virtualized/dist/es/Table/defaultRowRenderer.js | xuan6/admin_dashboard_local_dev | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
/**
* Default row renderer for Table.
*/
export default function defaultRowRenderer(_ref) {
var className = _ref.className,
columns = _ref.columns,
index = _ref.index,
isScrolling = _ref.isScrolling,
key = _re... |
lib/yuilib/2in3/2.9.0/build/yui2-containercore/yui2-containercore.js | ansaner/avemoodle | YUI.add('yui2-containercore', function(Y) {
var YAHOO = Y.YUI2;
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the imple... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.