target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
src/components/Card.js
jubianchi/semver-check
import React from 'react'; import PropTypes from 'prop-types'; import './Card.scss'; const Card = props => ( <div className={`card ${props.className}`}> <div className="card-body">{props.children}</div> </div> ); Card.propTypes = { className: PropTypes.string, children: PropTypes.oneOfType([Pr...
src/icons/AndroidFavorite.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidFavorite extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,448l-30.164-27.211C118.718,322.442,48,258.61,48,179.095C48,114.221,97.918,64,162.4,64 c36.399,0,70.71...
src/FormControls/Static.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
src/client/App.js
IguteChung/react-redux-hot-boilerplate
import React from 'react'; import { Helmet } from 'react-helmet'; import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom'; import Home from './containers/Home/Home'; import About from './containers/About/About'; import NotFound from './containers/NotFound/NotFound'; import './styles/common.css';...
src/components/SocialLink.js
kazupooot/kazupooot.github.io
import React from 'react'; import FontAwesome from 'react-fontawesome'; import { Link } from 'rebass'; import { Tooltip } from 'react-tippy'; import styled from 'styled-components'; import PropTypes from 'prop-types'; const IconLink = styled(Link)` transition: color 0.5s; color: ${props => props.theme.colors.prima...
packages/theme-patternfly-org/helpers/asyncComponentFactory.js
patternfly/patternfly-org
const React = require('react'); const cache = {}; function asyncComponentFactory(route, pageData) { const { Component } = pageData; class AsyncComponent extends React.Component { state = { isLoaded: false }; static preload() { return Component().then(res => { cache[route] = res.de...
packages/material-ui-icons/src/LockRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><g fill="none"><path d="M0 0h24v24H0V0z" /><path d="M0 0h24v24H0V0z" opacity=".87" /></g><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V...
examples/src/js/index.js
sdeleon28/react-fullscreen-gallery
import React from 'react'; import ReactDOM from 'react-dom'; import Gallery from '../../../src/js/index'; const app = document.getElementById('app'); // Include jScrollPane styles (either like this or with a link in your HTML) require('../../../node_modules/jscrollpane/style/jquery.jscrollpane.css'); /* eslint-disa...
files/highcharts/4.0.3/highcharts.src.js
walkermatt/jsdelivr
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.3 (2014-07-03) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
react/Loader/Loader.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Loader.less'; import classnames from 'classnames'; export default function Loader({ _small, compact }) { return ( <div className={classnames(styles.root, { [styles.small]: _small, [styles.compact]: compact })}> <div classN...
js/vendor/jquery-1.11.2.min.js
aabuqasem/website
/*! 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/components/__tests__/FormButton-test.js
MakeSchool-17/ios-app-DennisAleynikov
/** * # FormButton-test.js * * This class tests that the form button displays correctly * * *Note:* if you want to understand the structures here, add a * ```console.log``` and then ```npm test```. */ 'use strict'; jest.autoMockOff(); /** * ## Imports */ const React = require('react-native'); const { View }...
dashboard/js/jquery.js
bclark8923/proactive-law
/*! 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...
imports/Client/Components/task/Task.js
darodriguez15/booksWebDev
import React, { Component } from 'react'; import PropTypes from "prop-types"; // Task component - represents a single todo item export default class Task extends Component { render() { return ( <li>{this.props.task.text}</li> ); } } Task.propTypes = { // This component gets the...
web/src/js/components/Settings/Widgets/WidgetsSettingsView.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import QueryRendererWithUser from 'js/components/General/QueryRendererWithUser' import graphql from 'babel-plugin-relay/macro' import SettingsChildWrapper from 'js/components/Settings/SettingsChildWrapperComponent' import WidgetsSettings from 'js/components/...
node_modules/react-bootstrap/es/Label.js
nikhil-ahuja/Express-React
import _Object$values from 'babel-runtime/core-js/object/values'; import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
Example/components/TabIcon.js
hungtn/react-native-router-flux
import React, { PropTypes, } from 'react'; import { Text, } from 'react-native'; const propTypes = { selected: PropTypes.bool, title: PropTypes.string, }; const TabIcon = (props) => ( <Text style={{ color: props.selected ? 'red' : 'black' }} > {props.title} </Text> ); TabIcon.propTypes = propTy...
app/javascript/flavours/glitch/components/admin/Trends.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'flavours/glitch/util/api'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Hashtag from 'flavours/glitch/components/hashtag'; export default class Trends extends React.PureComponent { static pr...
src/js/components/RangeInput/stories/Disabled.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, RangeInput } from 'grommet'; import { grommet } from 'grommet/themes'; const customThemeRangeInput = { rangeInput: { disabled: { track: { color: '#2196f3', }, thumb: { color: 'red', }, }, }, }; export const Disabled...
ajax/libs/styled-components/2.3.3-0/styled-components.min.js
sufuf3/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled={},e.React)}(this,function(e,t){"use strict";function n(e){return e.replace(g,"-$1").toLowerCase()}function r(e){return C(e).replace(v,"-ms-")}fu...
extensions/amp-twitter/1.0/test/test-component.js
media-net/amphtml
import {mount} from 'enzyme'; import {serializeMessage} from '#core/3p-frame-messaging'; import {createRef} from '#preact'; import * as Preact from '#preact'; import {WithAmpContext} from '#preact/context'; import {waitFor} from '#testing/helpers/service'; import {BentoTwitter} from '../component'; describes.sandb...
src/routes/dashboard/components/completed.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import styles from './completed.less' import classnames from 'classnames' import { color } from '../../../utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' function Completed ({ data }) { r...
lib/components/term-group.js
AlmirKadric/hyperterm
import React from 'react'; import {connect} from 'react-redux'; import Component from '../component'; import {decorate, getTermProps} from '../utils/plugins'; import {resizeTermGroup} from '../actions/term-groups'; import Term_ from './term'; import SplitPane_ from './split-pane'; const Term = decorate(Term_, 'Term');...
src/routes.js
lmammino/judo-heroes
'use strict'; import React from 'react' import { Route, IndexRoute } from 'react-router' import Layout from './components/Layout'; import IndexPage from './components/IndexPage'; import AthletePage from './components/AthletePage'; import NotFoundPage from './components/NotFoundPage'; const routes = ( <Route path="/...
ajax/libs/reactive-coffee/1.2.1/reactive-coffee.js
zhangbg/cdnjs
(function() { var rxFactory, __slice = [].slice, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne...
ajax/libs/zxcvbn/1.0/zxcvbn.js
NMastracchio/cdnjs
(function(){var w,p,q,x,J,K,L,M,N,O,P,Q,y,s,z,R,S,T,U,V,W;P=function(b){var a,d;d=[];for(a in b)d.push(a);return 0===d.length};y=function(b,a){return b.push.apply(b,a)};V=function(b,a){var d,c,e,f,g;f=b.split("");g=[];c=0;for(e=f.length;c<e;c++)d=f[c],g.push(a[d]||d);return g.join("")};R=function(b){var a,d,c,e;d=[];c=...
setup/src/universal/features/user/components/ProfilePicture/index.js
ch-apptitude/goomi
/** * * ProfilePicture * */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import InitialsBadge from 'features/common_ui/components/InitialsBadge'; const SizedProfilePicture = styled.div` width: ${props => props.size}px; height: ${props => props.size}px; `;...
src/input/SKTextArea.js
ShaneKing/sk-antd
import {Input} from 'antd'; import PropTypes from 'prop-types'; import {Mesgs, Proxy0, SK} from 'sk-js'; import AntdComp from '../AntdComp'; import React from 'react'; const {TextArea} = Input; TextArea.defaultProps = SK.extends(true, {}, {}, TextArea.defaultProps, {}); TextArea.propTypes = SK.extends(true, {}, { ...
src/modules/editor/components/popovers/addTooltip/AddItemButton/AddItemButton.js
CtrHellenicStudies/Commentary
import React from 'react'; import autoBind from 'react-autobind'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../../actions'; // components import AddTooltipButton from '../../AddTooltipButton'; class AddItemButton extends React.Component { constructor(props) { super(props...
src/components/ButtonFlatSuccess.js
mikebarkmin/gestyled
import React from 'react'; import { withTheme } from 'styled-components'; import ButtonFlat from './ButtonFlat'; /** * See ButtonFlat for possible props. */ const ButtonFlatSuccess = props => { const { theme } = props; const color = theme.colors.success; return <ButtonFlat color={color} {...props} />; }; expo...
ajax/libs/rxjs/3.1.2/rx.lite.compat.js
2947721120/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exp...
exercises/2/src/server/index.js
Randynamic/redux-exercises
/** * Based on React Starter Kit (https://www.reactstarterkit.com/) */ import path from 'path'; import express from 'express'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import React from 'react'; import ReactDOM from 'react-dom/server'; import PrettyError from 'pretty-error'; i...
src/helpers/__tests__/makeRouteHooksSafe-test.js
xanf/letsreact2
import { expect } from 'chai'; import React from 'react'; import { IndexRoute, Route } from 'react-router'; import makeRouteHooksSafe from '../makeRouteHooksSafe'; describe('makeRouteHooksSafe', () => { it('should work with JSX routes', () => { const onEnter = () => { throw new Error('Shouldn\'t call onE...
webapp/app/components/Save/Table/ModalInstantRestore/index.js
EIP-SAM/SAM-Solution-Node-js
// // Modal to launch an instant restore in save page // import React from 'react'; import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from 'components/SaveHistory/Table/ModalInstantSave/styles.css'; /* eslint-disable react/prefer-stat...
src/components/chart.js
seanrtaylor/ReactWeather
import React from 'react'; import _ from 'lodash'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; function average(data) { return _.round(_.sum(data)/data.length); } export default (props) => { return ( <div> <Sparklines height={100} width={100} data={props.data}...
src/entypo/ArrowLongUp.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ArrowLongUp'; let EntypoArrowLongUp = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,0.75L15.5,6H12v13H8V6H4.5L10,0.75z"/> </EntypoIcon> ); export default EntypoArrowL...
blueocean-material-icons/src/js/components/svg-icons/device/signal-cellular-null.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSignalCellularNull = (props) => ( <SvgIcon {...props}> <path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellularNull.displayName = 'DeviceSignalCellularNull'; DeviceSignalCellularNull.muiName = 'SvgIcon'; ...
modules/gui/src/app/home/body/process/recipe/ccdcSlice/panels/chartPixel.js
openforis/sepal
import {CCDCGraph} from '../../ccdc/ccdcGraph' import {Form, form} from 'widget/form/form' import {Panel} from 'widget/panel/panel' import {RecipeActions, loadCCDCSegments$} from '../ccdcSliceRecipe' import {Subject, takeUntil} from 'rxjs' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom...
src/svg-icons/editor/mode-edit.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorModeEdit = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"...
files/babel/5.4.7/browser-polyfill.js
spud2451/jsdelivr
(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...
packages/@lyra/default-login/src/UnauthorizedUser.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import FullscreenDialog from 'part:@lyra/components/dialogs/fullscreen' import userStore from 'part:@lyra/base/user' import Button from 'part:@lyra/components/buttons/default' function handleLogout() { userStore.actions.logout() } export default function ...
src/js/Main/components/Navbar.js
fr3nchN/proactive
import React from 'react' import { Link } from 'react-router-dom' import links from "./../links" // TODO: Change logo to ProActive const Navbar = () => ( <nav className="head-bar navbar navbar-expand-lg navbar-light bg-light border-bottom fixed-top border-bottom-grey"> <div className="container"> ...
src/components/Layout/index.js
stk-dmitry/react-minimal-config
// @flow import React from 'react'; import { node } from 'prop-types'; import { NavLink } from 'react-router-dom'; import Layouter from './styled'; type Props = { children: Object, } const Container = ({ children }: Props) => { return ( <Layouter> <h1>Hello</h1> <NavLink to="/" activeClassName="is...
node_modules/react-bootstrap/es/Badge.js
superKaigon/TheCave
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
geonode/contrib/monitoring/frontend/src/components/organisms/geonode-status/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import HoverPaper from '../../atoms/hover-paper'; import CPU from '../../cels/cpu'; import Memory from '../../cels/memory'...
ajax/libs/forerunnerdb/1.3.611/fdb-core.min.js
pombredanne/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...
edwin/client/static/js/components/TeamList.js
mythmon/edwin
import React from 'react'; import Router from 'react-router'; const {Link} = Router; import {Data} from './'; import {ControllerComponent, edwinAPI} from '../utils/'; import {TeamStore} from '../stores/'; import {TimelineActions} from '../actions/'; /** * Shows a list of teams. * @class */ export default class Te...
js/jquery.js
jkunnum1/jkunnum1.github.io
/*! 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...
ajax/libs/swagger-ui/3.0.14/swagger-ui-standalone-preset.js
jonobr1/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUIStandalonePreset=t():e.SwaggerUIStandalonePreset=t()}(this,function(){return function(e){function t(i){if(r[i])return r[i].exports;var n=r[i]={...
src/js/components/dashboard/index.js
kukua/dashboard
import _ from 'underscore' import React from 'react' import { current as user } from '../../models/User' import { Link } from 'react-router' class DashboardIndex extends React.Component { getDashboards () { return (user.getConfig('dashboards') || []) } render () { return ( <div> <h1>Dashboards</h1> ...
fields/types/relationship/RelationshipFilter.js
kumo/keystone
import async from 'async'; import React from 'react'; import xhr from 'xhr'; import { Button, FormField, FormInput, InputGroup, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Linked To', value: false }, { label: 'NOT Lin...
js/jquery-1.11.1.min.js
stefanomarty/cryptoteam
/*! 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...
ajax/libs/vis/0.3.0/vis.js
schoren/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.3.0 * @date 2014-01-14 * * @license * Copyright (C) 2011-2013 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
client/src/demo/Demo.js
ziel5122/autograde
import Paper from 'material-ui/Paper'; import React from 'react'; import Feedback from './Feedback'; import Instructions from './Instructions'; import Options from './Options'; const leftStyle = { display: 'flex', flex: 1, flexDirection: 'column', height: '100%', }; const paperStyle = { display: 'flex', ...
node_modules/redux-async-connect/modules/ReduxAsyncConnect.js
HasanSa/hackathon
import React from 'react'; import RouterContext from 'react-router/lib/RouterContext'; import { beginGlobalLoad, endGlobalLoad } from './asyncConnect'; import { connect } from 'react-redux'; const { array, func, object, any } = React.PropTypes; /** * We need to iterate over all components for specified routes. * Co...
imports/Client/Components/userBook/App.js
darodriguez15/booksWebDev
import React, { Component } from 'react'; import { createContainer } from 'meteor/react-meteor-data'; import PropTypes from "prop-types"; import ReactDOM from 'react-dom'; import Book from './Book'; import { Meteor } from 'meteor/meteor'; import { Books } from "../../../api/books"; import AccountsUIWrapper from './Acco...
profiles/openchurch/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js
eddymitchou/openchurch
/*! * 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. ...
packages/material-ui-icons/src/BeachAccessTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7.6 7.6c-.47 2.34.03 4.78 1.39 6.83l5.45-5.45c-1.53-1.02-3.28-1.56-5.08-1.56-.6 0-1.19.06-1.76.18zM13.12 5c-.93 0-1.82.16-2.67.46 1.91.19 3.79.89 5.44 2.07l1.39-1.39C16.03 5.4 14.61 5...
ajax/libs/material-ui/4.9.8/esm/internal/svg-icons/Close.js
cdnjs/cdnjs
import * as React from 'react'; import createSvgIcon from './createSvgIcon'; /** * @ignore - internal component. */ export default createSvgIcon( /*#__PURE__*/React.createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), 'Close');
ajax/libs/tinymce/4.1.7/plugins/legacyoutput/plugin.js
rivanvx/cdnjs
/** * plugin.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align * attributes and so...
app/components/feed-pane/feed-view.js
derycktse/reedee
import React from 'react' import styles from './feed-view.css' import ToolBox from './toolbox' const Feed = ({ id, title, contentPreview, viewFeedContent, origin: { title: feedName }, crawlTimeMsec, activeFeedId }) => { let date = new Date(parseInt(crawlTimeMsec, 10)).toLocaleString() return ( <l...
app/components/H3/index.js
sulthan16/awesome-jr-frontend-sulthan
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/components/CourseListItem.js
Youjingyu/react-study163-home-page
import React, { Component } from 'react'; export default class ListItem extends Component { render() { const itemData = this.props.itemData; return ( <li className='course_list_item'> <a href='#'> <img className='course_img' src={itemData.middlePhotoU...
src/views/components/Nought.js
john-d-pelingo/tic-tac-toe
import React from 'react'; import PropTypes from 'prop-types'; import { DEFAULT_COLOR, ANDROID_COLOR, APPLE_COLOR } from 'core/constants'; const propTypes = { winner: PropTypes.bool, roundEndedAsDraw: PropTypes.bool }; const defaultProps = { roundEndedAsDraw: false, winner: false }; const Nought = ({ roundE...
src/components/content_card.js
kebugcheckex/zhihu-electron
import React, { Component } from 'react'; import { ButtonToolbar, Panel } from 'react-bootstrap'; class ContentCard extends Component { render() { return ( <Panel className="content-card"> <div> <div className="main-content"> {this.props.content} </div> <Bu...
hosted-demo/src/components/PokemonCard.js
learnapollo/pokedex-react
import React from 'react' import { propType } from 'graphql-anywhere' import gql from 'graphql-tag' import { graphql } from 'react-apollo' import styled from 'styled-components' const Button = styled.div` background-color: ${props => props.save ? '#2BC3A1' : ''}; color: ${props => props.save ? 'white' : props.dele...
src/svg-icons/action/open-in-browser.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
icons/action/hourglass-empty.js
mikamaunula/react-material-icons
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var ActionHourglassEmpty = createClass({ displayName: 'ActionHourglassEmpty', render: function render() { return React.createElement( SvgIcon, ...
tests/components/Header/Header.spec.js
dmitriys-lits/gradient-descent
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header />) }) it('Renders a welcome message', () => { ...
src/svg-icons/action/markunread-mailbox.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMarkunreadMailbox = (props) => ( <SvgIcon {...props}> <path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionMarkunreadMailbox = pu...
files/yasr/2.5.3/yasr.bundled.min.js
gswalden/jsdelivr
!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){...
ajax/libs/alexandernst-angular-multi-select/7.0.0/angular-multi-select.min.js
viskin/cdnjs
/*! angular-multi-select 7.0.0 */ "use strict";function _taggedTemplateLiteral(a,b){return Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var _slicedToArray=fu...
ajax/libs/onsen/2.0.0-beta.8/js/onsenui.min.js
maruilian11/cdnjs
/*! onsenui v2.0.0-beta.8 - 2016-03-25 */ "undefined"==typeof WeakMap&&!function(){var defineProperty=Object.defineProperty,counter=Date.now()%1e9,WeakMap=function(){this.name="__st"+(1e9*Math.random()>>>0)+(counter++ +"__")};WeakMap.prototype={set:function(key,value){var entry=key[this.name];return entry&&entry[0]===k...
node_modules/react-router/es/IndexRedirect.js
rralian/steckball-react
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, object = _React$PropTypes.object; /** * An <IndexRedir...
src/containers/lookup.js
everywherebible/app
// @flow import React from 'react'; import {connect} from 'react-redux'; import type {Match} from 'react-router'; import {Route} from 'react-router-dom'; import {addRecent} from '../actions'; import type {Action} from '../actions'; import type {Reference} from '../data/model'; import {populateStoreWithRecents} from '...
src/ReduxBlockUi.js
Availity/react-block-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import BlockUi from './BlockUi'; import { register, unregister } from './reduxMiddleware'; class ReduxBlockUi extends Component { constructor(props) { super(props); this.middleware = this.middleware.bind(this); this.blocking ...
components/org.wso2.carbon.business.rules.web/src/constants/BusinessRulesMessages.js
Nethmi-Pathirana/carbon-analytics
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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....
Js/Ui/Components/Filters/Date.js
Webiny/Webiny
import React from 'react'; import Webiny from 'webiny'; class Date extends Webiny.Ui.Component { } Date.defaultProps = { format: null, default: '-', value: null, renderer() { try { return <span>{Webiny.I18n.date(this.props.value, this.props.format)}</span>; } catch (e) { ...
tests/client/core/components/TestPaginate.js
mstriemer/addons-frontend
/* global document, Node */ import React from 'react'; import { render, findDOMNode } from 'react-dom'; import { renderIntoDocument, findRenderedComponentWithType, } from 'react-addons-test-utils'; import { Route, Router, createMemoryHistory } from 'react-router'; import I18nProvider from 'core/i18n/Provider'; im...
django/webcode/webcode/frontend/node_modules/react-router/es/Router.js
OpenKGB/webcode
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; }; function _classCallCheck(instance, Constructor) { if (!(insta...
packages/material-ui-icons/src/AccessibilityNewRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20.75 6.99c-.14-.55-.69-.87-1.24-.75-2.38.53-5.03.76-7.51.76s-5.13-.23-7.51-.76c-.55-.12-1.1.2-1.24.75-.14.56.2 1.13.75 1.26 1.61.36 3.35.61 5 .75v12c0 .55.45 1 1 1s1-.45 1-1v-5h2v5c0 .55.45 1 1 1s1-...
src/js/components/home/homecard.js
axuebin/react-blog
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; export default class HomeCard extends React.Component { render() { const contentList = this.props.cardContent.map(item => <li key={item.id}><Link to={item.url}>{item.title}</Link></li>); return ( <di...
packages/fyndiq-ui-test/stories/illustrations.js
fyndiq/fyndiq-ui
import React from 'react' import { storiesOf } from '@storybook/react' import { FileUploadIllustration, LoginIllustration, SearchIllustration, SearchNoResultIllustration, } from 'fyndiq-illustrations' const h2 = { color: '#666', fontSize: '15px', padding: '8px 10px', background: '#EEE', fontFamily: '...
client/src/components/forms/Configuration.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import { Form } from 'react-form'; import Alert from 'react-bootstrap/lib/Alert'; import BootstrapForm from 'react-bootstrap/lib/Form'; import Panel from 'react-bootstrap/lib/Panel'; import Tab from 'react-bootstra...
app/src/components/options/attendees.js
dotKom/regme
import { BASE } from 'common/constants'; import {ServiceContext} from 'services/ServiceProvider' import React, { Component } from 'react'; import List from './list'; const orderMap = { NAME: c => c ? ((a, b) => (a.lfullname > b.lfullname) ? -1 : 1) : ((a, b) => (a.lfullname < b.lfullname) ? -1 : 1), DATE: c => ...
src/About.js
Hydrock/monsterlessons-react
import React, { Component } from 'react'; import Menu from './Menu'; class About extends Component { render() { return ( <div> <Menu/> About About About </div> ) } } export default About;
examples/passing-props-to-children/app.js
rubengrill/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link, History } from 'react-router' require('./app.css') const history = useBasename(createHistory)({ basename: '/passing-props-to-children' }) const App = React.createClass({ ...
client/main.js
bnjbvr/kresus
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter, Route, Switch, Link, Redirect } from 'react-router-dom'; import { connect, Provider } from 'react-redux'; import PropTypes from 'prop-types'; import throttle from 'lodash.throttle'; // Global variables import { get, init, rx, actions ...
src/SafeAnchor.js
dongtong/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
public/js/components/SubmitButton.js
davejtoews/cfl-power-rankings
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; module.exports = class extends React.Component { static contextTypes = { feathersApp: PropTypes.object, login: PropTypes.bool }; state = { submission: { user: this.props.userId, ...
ajax/libs/yui/3.0.0/loader/loader-debug.js
r3x/cdnjs
YUI.add('loader', function(Y) { (function() { /** * Loader dynamically loads script and css files. It includes the dependency * info for the version of the library in use, and will automatically pull in * dependencies for the modules requested. It supports rollup files and will * automatically use these when app...
ajax/libs/forerunnerdb/1.3.482/fdb-all.js
dc-js/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...
libs/angular.js/1.0.0rc4/angular-scenario.js
wayou/baiducdnstatic
/** @license * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Lic...
node_modules/react-proxy/dist/ReactProxy.js
gunaangs/Feedonymous
(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') exports["ReactProxy"] = factory(); else root["ReactP...
ajax/libs/aui/5.6.8/aui/js/aui-dependencies.js
emijrp/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
fields/types/color/ColorField.js
dryna/keystone-twoje-urodziny
import { SketchPicker } from 'react-color'; import { css, StyleSheet } from 'aphrodite/no-important'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InlineGroup as Group, InlineGroupSection as Section, } from '../../../admin/client/App/elemental'; import transparentSwatch from ...
app/containers/App/index.js
HRR20-Lotus/affirmation
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
local-cli/templates/HelloNavigation/views/MainNavigator.js
clozr/react-native
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './HomeS...
packages/material-ui-icons/src/ViewStreamRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5 18h15c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zM4 6v4c0 .55.45 1 1 1h15c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1H5c...
ajax/libs/vkui/4.27.1/components/NativeSelect/NativeSelect.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/extends";import _defineProperty from"@babel/runtime/helpers/defineProperty";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style","defaultValue","align","pla...