path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react-redux/7.1.0-rc.1/react-redux.js | sufuf3/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) :
(global = global || self, factory(glo... |
app/components/Collaps/index.js | andyzeli/Bil | import Collapsible from 'react-collapsible';
import React from 'react';
import PropTypes from 'prop-types';
import { createStructuredSelector } from 'reselect';
import {makeSelectEncounters} from 'containers/App/selectors';
import { connect } from 'react-redux';
import Chev from '../Chev';
import SCol from './SCol';
i... |
examples/react-refetch/src/index.js | gaearon/react-hot-loader | import React from 'react';
import { render } from 'react-dom';
import App from './App';
const root = document.createElement('div');
document.body.appendChild(root);
render(<App />, root);
|
src/view/error/index.js | fishmankkk/mircowater2.0 | import React from 'react'
import styles from './index.less'
import img404 from '../../public/images/404.gif'
const Error = () => (<div className="content-inner">
<div className={styles.error}>
<img src={img404} alt={'logo'} />
</div>
</div>)
export default Error
|
Examples/UIExplorer/NavigatorIOSColorsExample.js | fengshao0907/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,
... |
app/javascript/mastodon/components/skeleton.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
Skeleton.propTypes = {
width: PropTypes.number,
height: PropTypes.number,
};
export default Skeleton;
|
node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | keithhackbarth/distance.io | /*!
* 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.
... |
webpack.local.config.js | gravitron07/brentayersV6 | var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
/**
* This is the Webpack configuration file for local development. It contains
* local-specific configuration such as the React Hot Loader, as well as:
*
* - The entry point of the application
* - Where the output f... |
ui/src/main/js/components/JobOverview.js | rdelval/aurora | import React from 'react';
import JobHistory from 'components/JobHistory';
import JobStatus from 'components/JobStatus';
import PanelGroup from 'components/Layout';
import Loading from 'components/Loading';
import Tabs from 'components/Tabs';
import { isNully } from 'utils/Common';
export default function JobOvervie... |
packages/material-ui/src/Grow/Grow.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import withTheme from '../styles/withTheme';
import { reflow, getTransitionProps } from '../transitions/utils';
import { useForkRef } from '../utils/reactHelpers';
function getScale(value) {
return `sc... |
findyour3d/static/js/jquery.1.11.1.js | hqpr/findyour3d | /*! 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... |
src/js/components/icons/base/CommandLine.js | codeswan/grommet | import React from 'react';
import Cli from './Cli';
export default (props) => {
console.warn(
'CommandLine has been renamed to Cli.' +
' Plese update your import statement.'
);
return <Cli {...props} />;
};
|
src/containers/AsyncApp/index.js | Junicus/fcc-localweather | import React from 'react';
import { connect } from 'react-redux';
import { getLocation } from '../../actions';
import CurrentWeatherContainer from '../CurrentWeatherContainer';
import HourlyWeatherContainer from '../HourlyWeatherContainer';
import DailyForecastContainer from '../DailyForecastContainer';
import './app... |
src/index.js | ferryhinardi/swapii_ass | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
src/components/Sidebar/Sidebar.js | siddhant3s/crunchgraph | /**
* 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 from 'react';
import withStyles from 'isomorp... |
spec/javascripts/jsx/assignments/GradeSummary/components/FocusableViewSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
client/src/components/Game/Card.js | patteri/slave-cardgame | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import deck from '../../utils/deck';
import './style.css';
const Card = ({ card, selected, onClick }) => (
<input
type="image"
className={classNames('Game-card', { selected: selected })}
src={deck.getCard(... |
ui/src/components/member/Member.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* 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 t... |
tests/components/TextBoxQuestionTest.js | flexiform/flexiform-fill-ui | /**
* Copyright 2016 ReSys OÜ
*
* 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... |
src/assets/js/react/components/Template/TemplateListItem.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { updateTemplateParam } from '../../actions/templates'
import TemplateScreenshot from './TemplateScreenshot'
import ShowMessage from '../ShowMessage'
import { TemplateD... |
packages/react/src/components/atoms/media/SiteLogo/index.js | massgov/mayflower | /**
* SiteLogo module.
* @module @massds/mayflower-react/SiteLogo
* @requires module:@massds/mayflower-assets/scss/01-atoms/site-logo
* @requires module:@massds/mayflower-assets/scss/01-atoms/image
*/
import React from 'react';
import PropTypes from 'prop-types';
import Image from 'MayflowerReactMedia/Image';
impo... |
ajax/libs/forerunnerdb/1.3.484/fdb-core+views.min.js | Piicksarn/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/react/15.0.0/react-dom-server.js | iwdmb/cdnjs | /**
* ReactDOMServer v15.0.0
*
* Copyright 2013-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 d... |
ajax/libs/video.js/5.8.6/alt/video.novtt.js | dc-js/cdnjs | /**
* @license
* Video.js 5.8.6 <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>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}e... |
node_modules/reactify/node_modules/react-tools/src/utils/__tests__/cloneWithProps-test.js | SteveDugas/react-dropdown | /**
* Copyright 2013-2014 Facebook, Inc.
*
* 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 agree... |
test/auto_text_link.js | hokuma/auto-text-link | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import AutoTextLink from '../src/auto_text_link';
describe('AutoTextLink', () => {
let text;
let url;
let renderer;
beforeEach(() => {
url = 'https://github.com/hokuma';
text = `Url ${url} Not U... |
ajax/libs/onsen/2.0.0-rc.6/js/angular-onsenui.js | cdnjs/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-rc.6 - 2016-05-25 */
/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
(function () {
var initializing = false,
fnTest = /xyz/.test(function () {
xyz;
}) ? /\b_super\b/ : /.*/;
// The b... |
node_modules/react-router/Route.js | ishan993/IshanBlogReactRedux | 'use strict';
exports.__esModule = 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]; } } } return target; };
var _warning = req... |
ajax/libs/react-bootstrap/0.22.6/react-bootstrap.min.js | Amomo/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ... |
examples/with-mux-video/pages/asset/[id].js | zeit/next.js | import { useEffect } from 'react'
import Router, { useRouter } from 'next/router'
import Link from 'next/link'
import useSwr from 'swr'
import Spinner from '../../components/spinner'
import ErrorMessage from '../../components/error-message'
import UploadPage from '../../components/upload-page'
const fetcher = (url) =>... |
ajax/libs/choices.js/1.1.7/choices.js | extend1994/cdnjs | /*! choices.js v1.1.7 | (c) 2016 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check... |
ajax/libs/yui/3.18.0/event-focus/event-focus-debug.js | vfonic/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* 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,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | pfm-eyesightjp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import IconButton from '../../../components/icon_button';
import { changeComposeSensitivity } from '../../../actions/compose';
import Motion from 'react-motion/lib/Motion';
import s... |
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... |
docs/app/Examples/modules/Search/Variations/SearchExampleAligned.js | aabustamante/Semantic-UI-React | import React from 'react'
import SearchExampleStandard from '../Types/SearchExampleStandard'
const SearchExampleAligned = () => <SearchExampleStandard aligned='right' />
export default SearchExampleAligned
|
js/container/ArticleDetail.js | yourwafer/u148 | import React from 'react';
import ReactNative from 'react-native';
import { connect } from 'react-redux';
import moment from 'moment';
import ArticleService from '../service/ArticleService';
import template from '../resources/html_tpl';
const { WebView, StyleSheet, Platform, View } = ReactNative;
class ArticleDetail ... |
ajax/libs/core-js/0.4.2/library.js | RoryStolzenberg/cdnjs | /**
* Core.js 0.4.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
fields/types/boolean/BooleanColumn.js | dryna/keystone-twoje-urodziny | import React from 'react';
import Checkbox from '../../components/Checkbox';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var BooleanColumn = React.createClass({
displayName: 'BooleanColumn',
propTypes: {
col: React.PropTypes.object,
... |
Libraries/Components/Touchable/TouchableOpacity.js | luqin/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.
*
* @provides... |
src/test/__tests__/MetaMatchers-test.js | bhamodi/react | /**
* Copyright 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-core
*... |
src/pages/community/section/others/Others.js | HeliumLau/Hoop-react | import React from 'react';
import Part from 'components/Part'
export default class Others extends React.Component {
render() {
const list = [
{
icon: 'icon-rocket',
name: '休斯顿火箭队',
num: 12212,
route: '/news'
},
... |
packages/material-ui-icons/src/BrokenImageOutlined.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="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5v-4.58l.99.99 4-4 4 4 4-3.99L19 12.43V19zm0-9.41l-1.01-1.0... |
packages/material-ui-icons/src/LinkOff.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.7... |
src/demo/foam/build/foam.js | gabrielmancini/interactor |
/**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* 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 requi... |
src/components/link-repo.js | ReactJS-BA/meetup-2016-04-05 | import React from 'react';
import {Link} from 'react-router';
class LinkRepo extends React.Component {
render() {
let url = this.props.repo.owner.login + '/' + this.props.repo.name;
return (
<Link to={url} className="repo-link">
<h2>{url}</h2>
<p>{this.p... |
src/layouts/CoreLayout.js | seespace/dota2assistant | import React from 'react'
// Note: Stateless/function components *will not* hot reload!
// react-transform *only* works on component classes.
//
// Since layouts rarely change, they are a good place to
// leverage React's new Statelesss Functions:
// https://facebook.github.io/react/docs/reusable-components.html#state... |
src/app.js | OssamaZ/canvas-play | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import Application from './containers/Application';
import configureStore from './store/configureStore';
// Initial state
let _initialState;
try {
let _savedStateInstance = localStorage.g... |
src/js/components/Keyboard/stories/OnDocument.js | HewlettPackard/grommet | import React from 'react';
import { Box, Grommet, Heading, Keyboard } from 'grommet';
import { grommet } from 'grommet/themes';
export const OnDocument = () => (
<Grommet theme={grommet}>
{/* eslint-disable no-alert */}
<Keyboard target="document" onEsc={() => alert('You pressed Esc!')}>
<Box pad="lar... |
src/interface/icons/Uptime.js | yajinni/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/duration/370713/
// duration by Bohdan Burmich from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 80 80" className="icon" {...other}>
<path d="M50,86.4865c17.4361,0,31.6216-14.1855,31.6216-31.... |
app/components/Spinner.js | codinglawyer/What-To-Cook-App | import React from 'react'
import ReactLoading from 'react-loading'
const Spinner = () => (
<ReactLoading type="bars" color="#444" className="createLoader" />
)
export default Spinner
|
src/constants/ActionTypes.js | royriojas/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import keyMirror from 'fbjs/lib/keyMirror';
export default keyMirror({
});
|
app/components/steps/SelectAmount.js | rolandaugusto/react-atm-simulator | import React from 'react';
import styles from './../../App.css';
import classnames from 'classnames';
import {steps as STEPS} from './../../steps';
let shakeTimeout;
// This Class behaves almost the same as EnterPIN. In fact we could extend both classes from a more general
// class.
export default class SelectAmount ... |
packages/material-ui-icons/src/PieChartSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z" />
, 'PieChartSharp');
|
src/components/Book/index.js | jongold/goldOS | import React from 'react';
const Book = ({ item }) => {
const width = 100;
const height = 128;
const viewBox = [0, 0, width, height].join(' ');
const d = 'M93,8h-7H7H6C4.9,8,4,7.1,4,6c0-1.1,0.9-2,2-2h74V0H6C2.7,0,0,2.7,0,6v10.5V121c0,3.9,3.1,7,7,7h86c3.9,0,7-3.1,7-7V15C100,11.1,96.9,8,93,8z';
return (
... |
GitHubFinder/src/components/TodoList/TodoList.js | Louis0503/TestRact | import React from 'react';
const TodoList = ({
todos,
onDeleteTodo,
}) => (
<div>
<ul>
{
todos.map((todo, index) => (
<li key={index}>
{todo.get('text')}
<button onClick={onDeleteTodo(index)}>Delete</button>
</li>
)).toJS()
}
</ul>
... |
src/components/Team/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { Route } from 'react-router-dom';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Message, MessageHeader, MessageBody, Box, Title } from 'bloomer';
import Loader from '../Loader';
import Page from '../Page';
import Invite from '../Invites/Invite';
i... |
Paths/React/05.Building Scalable React Apps/5-react-boilerplate-building-scalable-apps-m5-exercise-files/Before/app/components/Navigation/index.js | phiratio/Pluralsight-materials | /**
*
* Navigation
*
*/
import React from 'react';
import styles from './styles.css';
function Navigation({ topics, selectTopic }) {
const topicNodes = topics.map(t => (
<div
key={t.name}
onClick={() => selectTopic(t)}
>
{t.name}
</div>
));
return (
<div className={styles.na... |
src/styles/themeDecorator.js | pradel/material-ui | import React from 'react';
import warning from 'warning';
export default (customTheme) => {
warning(false, 'ThemeDecorator is deprecated, please use MuiThemeProvider instead.');
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object.isRequir... |
ajax/libs/yui/3.3.0/loader/loader-base-debug.js | dylannnn/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
src/svg-icons/hardware/devices-other.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDevicesOther = (props) => (
<SvgIcon {...props}>
<path d="M3 6h18V4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22s.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1... |
packages/material-ui-icons/src/Code.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Code = props =>
<SvgIcon {...props}>
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" />
</SvgIcon>;
Code = pure(Code);
Code.muiName = 'SvgIcon';
ex... |
webapp-src/src/callback.js | babelouest/glewlwyd | /**
*
* Glewlwyd login application
*
* Web application for users to login to Glewlwyd
* Handle password and schemes authentication
*
* Copyright 2019 Nicolas Mora <mail@babelouest.org>
*
*/
import React from 'react';
import ReactDOM from 'react-dom';
import i18next from 'i18next';
import Backend from 'i18... |
src/svg-icons/av/equalizer.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvEqualizer = (props) => (
<SvgIcon {...props}>
<path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/>
</SvgIcon>
);
AvEqualizer = pure(AvEqualizer);
AvEqualizer.displayName = 'AvEqualizer';
AvEqualizer... |
src/svg-icons/action/search.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/routes/dashboard/components/user.js | IssaTan1990/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Button } from 'antd'
import styles from './user.less'
import CountUp from 'react-countup'
import { color } from '../../../utils'
const countUpProps = {
start: 0,
duration: 2.75,
useEasing: true,
useGrouping: true,
separator: ',',
}
functio... |
src/svg-icons/notification/rv-hookup.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1... |
ajax/libs/ionic/0.9.26/js/ionic.js | masimakopoulos/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.26
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
//
window.io... |
contribs/docbook-xsl-1.78.1/webhelp/template/search/nwSearchFnt.js | alastrina123/debrief | /*----------------------------------------------------------------------------
* JavaScript for webhelp search
*----------------------------------------------------------------------------
This file is part of the webhelpsearch plugin for DocBook WebHelp
Copyright (c) 2007-2008 NexWave Solutions All Rights Rese... |
src/containers/__tests__/Collapsible-test.js | qingweibinary/binary-next-gen | import React from 'react';
import { expect } from 'chai';
import { createRenderer } from 'react-addons-test-utils';
import Collapsible from '../Collapsible';
describe('<Collapsible />', () => {
it('should render the same component as the Collapsible component', () => {
const renderer = createRenderer();
renderer.... |
lib/overlay.js | zeeskhan1990/react-native-option-select | import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
TouchableWithoutFeedback,
View,
} from 'react-native';
const window = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0
},
ove... |
tech_stack/src/components/LibraryList.js | victorditadi/IQApp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { ListView } from 'react-native';
import ListItem from './ListItem';
class LibraryList extends Component {
componentWillMount(){
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.dataSou... |
app/components/my_garden.js | bdunams/neo-veg | // Import React
import React, { Component } from 'react';
import axios from 'axios';
import Calendar from './calendar';
// Helper Functions
import Helpers from './utils/helpers.js';
// This is the Main component.
export default class MyGarden extends Component{
constructor(props){
super(props)
this... |
ajax/libs/rxjs/2.2.26/rx.compat.js | RNELord/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/decorators/withViewport.js | materliu/web-cache-speech-auxiliary-program | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
assets/global/plugins/highcharts/js/highcharts.src.js | creatindo/sim_sekolah | // ==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, clearInterval, clear... |
src/components/Login/LoginItem.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
client/components/Greetings/index.js | phytertek/mern-community | import React from 'react'
const Greetings = React.createClass({
render() {
return (
<div>
Greetings
</div>
)
}
})
export default Greetings |
src/routes/login/Login.js | tonimoeckel/lap-counter-react | /**
* 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-... |
client/src/views/InstanceDetail.js | petrleocompel/docker-dash | import React from 'react'
import {responsr, instance, instanceStart, instanceStop, instanceRestart, instanceDelete} from "../api";
import Loader from "../Loader";
import {Button, Card, CardSubtitle, CardText, CardTitle, Col, Row} from "reactstrap";
import PropTypes from 'prop-types'
Card.propTypes = {
// Pass in ... |
packages/generator-prismic-nextjs/generators/slicemachine/templates/pages/_app.js | prismicio/prismic-cli | // pages/_app.js
import React from 'react'
import NextApp from 'next/app'
import { theme } from 'essential-slices'// this is new
import { ThemeProvider, BaseStyles } from 'theme-ui' // this is new
export default class App extends NextApp {
render() {
const { Component, pageProps } = this.props
return (
... |
ajax/libs/react-native-web/0.0.0-da3429ed3/cjs/exports/useWindowDimensions/index.js | cdnjs/cdnjs | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*
*/
'use strict';
exports.__esModule = true;
exports.default = useWindowDimensions;
var _Dimensions = _interopRequi... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | hmoraes/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
modules/__tests__/RouteComponent-test.js | ArmendGashi/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
describe('a Route Component', function () {
let node
beforeEach(function () {
node = document.createElement('div')
})
afterEach(function (... |
app/components/Home.js | azlyth/redub | import fs from 'fs';
import path from 'path';
import React, { Component } from 'react';
import { remote } from 'electron';
import ReactPlayer from 'react-player';
import { Button } from 'react-bootstrap';
import { Scrollbars } from 'react-custom-scrollbars';
import ClipList from './ClipList';
import ProjectSelector fro... |
node_modules/react/lib/ReactDOMInput.js | Win-Myint/ReactChallenge2 | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
react-ui/src/components/presentation/TeamMatch.js | cajmyers/cydercup | import React, {Component} from 'react';
import SelectField from 'material-ui/SelectField';
class TeamMatch extends Component {
render() {
const style = {
h1: {
fontFamily: "Roboto",
fontSize: 22,
fontWeight: 500,
marginTop: 15,
... |
src/public/components/toolbox/default.js | Harrns/segta | import React from 'react'
import List from '@react-mdc/list'
import classnames from 'classnames'
import Color from '../../color'
import { ThreeDotsIcon } from '../image/svg'
export default class Toolbox extends React.Component {
constructor (props) {
super(props)
this.state = {
hover: false,
h... |
ajax/libs/react-redux/7.0.0-beta.1/react-redux.js | cdnjs/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) :
(global = global || self, factory(glo... |
src/components/store.js | AdinoyiSadiq/back-office-tool | import React from 'react';
import Inventory from './inventory';
import Cart from './cart';
class Store extends React.Component {
render() {
return (
<div className="content container">
<div className="row">
<Inventory
carpets={this.props.carpets}
juice={this.props.juice}
addToCart... |
skins/base/views/organisms/CreateRoom.js | Bitcoinsulting/vector-web | /*
Copyright 2015 OpenMarket Ltd
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
... |
src/svg-icons/maps/local-mall.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMall = (props) => (
<SvgIcon {...props}>
<path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3... |
packages/react-ui-core/src/ModalStack/__tests__/__helpers__/TestModal.js | rentpath/react-ui | import React from 'react'
export default () => (
<div>This is a test modal</div>
)
|
src/components/TimeAndSalary/common/withModal.js | goodjoblife/GoodJobShare | import React, { Component } from 'react';
export default (keyName = 'modal') => WrappedComponent => {
class WithModal extends Component {
state = {
isOpen: false,
};
setIsOpen = isOpen => {
this.setState({
isOpen,
});
};
render() {
const props = {
[keyNam... |
client2/src/components/app.js | zhangbenny/Board | import React, { Component } from 'react';
import ColorPicker from 'react-color';
import ToggleDisplay from 'react-toggle-display';
import CanvasDraw from './canvasdraw';
import axios from 'axios';
import { Button } from 'react-bootstrap';
import { ButtonToolbar } from 'react-bootstrap';
import { ButtonGroup } from 'rea... |
ajax/libs/rxjs/2.2.26/rx.lite.compat.js | dhowe/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/components/App.js | utage2002/mm | /**
* 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-... |
app/javascript/mastodon/features/report/comment.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import Toggle from 'react-toggle';
const messages = defineMessages({
placeholder: { id: 'report.placeholder', defaultMessage: 'Typ... |
src/components/__tests__/ui/button-test.js | yursky/recommend | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import { Alert } from 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Button from '@ui/Button';
// Default Button Press function
const onPress = () => Alert.alert('Hey Tester');
it('Button... |
jrt/src/routes/home/index.js | wizzardo/jrtorrent | import React from 'react';
import './style.css';
import {DiskUsage} from "../../components/DiskUsage";
import {TorrentsList} from "../../components/TorrentsList";
import AddButton from "../../components/AddButton";
const Home = () => (
<div className='home'>
<DiskUsage />
<TorrentsList/>
<AddButton/>
</div>
);... |
generators/add/templates/react/component.js | HsuTing/generator-cat | 'use strict';
import React from 'react';
import radium from 'radium';
import Wrapper from 'cat-components/lib/wrapper';
import Normalize from 'componentsShare/Normalize';
<% if(relay) { -%>
import <%= componentName %>Container from 'containers/<%= componentName %>Container';
<% } -%>
@radium
class <%= componentName ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.