target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
app/src/www/containers/DevTools/DevTools.js
juanmadurand/flatboard
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q" defaultIsVisible={fal...
demos/demo/src/components/Date/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import translations from '../../common/computed/translations' import {displayDate} from '../../helpers/dateTime' export default connect( { t: translations }, function Date ({date, t}) { return <span>{displayDate(date, t)}</span> } )
ajax/libs/rollbar.js/2.7.0/rollbar.umd.min.js
cdnjs/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rollbar=e():t.rollbar=e()}(window,function(){return r={},o.m=n=[function(t,e,n){var y=n(10),i={},r=!1;function p(t,e){return e===b(t)}function b(t){var ...
ext/lib/site/topic-layout/topic-article-propuesta/comments/list/comment/replies/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import RepliesForm from './form/component' import RepliesList from './list/component' export default function CommentReplies (props) { if (!props.repliesVisibility) return null return ( <div className='comments-replies-container'> <RepliesList onDeleteReply={props.onDel...
node_modules/discord.js/src/util/Constants.js
OverratedDev/overrateddev-selfbot
exports.Package = require('../../package.json'); /** * Options for a client. * @typedef {Object} ClientOptions * @property {string} [apiRequestMethod='sequential'] One of `sequential` or `burst`. The sequential handler executes * all requests in the order they are triggered, whereas the burst handler runs multiple...
Weather.js
srs1212/drinkSync
'use strict'; var React = require('react-native'); var theDate = new Date(); var timeAmPm = theDate.toLocaleTimeString().replace(/([\d]+:[\d]{2}).*([A-Z]{2}$)/, "$1$2"); // var dateToDisplay = "It's " + timeAmPm + " on " + theDate.toString().substr(0,10); var { StyleSheet, Image, Text, View, } = React; var...
client/src/header/Subheader.js
ziel5122/autograde
import React from 'react'; import AdminButton from './AdminButton'; import DemoButton from './DemoButton'; import Title from './Title'; const style = { display: 'flex', flex: 1, }; const Subheader = () => ( <div style={style}> <Title /> <DemoButton /> <AdminButton /> </div> ); export default Sub...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
cgabilla/cgabilla.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/main.js
SupasitC/Pricetrolley
// import '../styles/bootstrap.min.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import configureStore from './store/configure-store'; import routes from './routes'; const store = configureStore(); con...
src/components/Data.js
alexravs/midgar
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import Flag from './Flag'; import { getCountryName, getCountry } from '../reducers/geojsons'; import '../../css/data.scss'; const Data = ({ countryName, alpha2code, alpha3code }) => ( <Link to={{pathname: `/data/$...
src/svg-icons/image/nature-people.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNaturePeople = (props) => ( <SvgIcon {...props}> <path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ...
node_modules/komada/node_modules/discord.js/src/client/actions/MessageReactionRemoveAll.js
SuvanL/delet
const Action = require('./Action'); const Constants = require('../../util/Constants'); class MessageReactionRemoveAll extends Action { handle(data) { const channel = this.client.channels.get(data.channel_id); if (!channel || channel.type === 'voice') return false; const message = channel.messages.get(da...
src/app/components/team/TeamTasksProject.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import Card from '@material-ui/core/Card'; import Box from '@material-ui/core/Box'; import List from '@material-ui/core/List'; import TeamTasksListItem from './TeamTasksListItem'; const TeamTasksProject = props => props.project.teamTasks.length ? ( <Box ...
docs/src/app/components/pages/components/Stepper/Page.js
kittyjumbalaya/material-components-web
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
packages/material-ui-icons/src/FilterRounded.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="M15.56 10.81l-2.35 3.02-1.56-1.88c-.2-.25-.58-.24-.78.01l-1.74 2.23c-.26.33-.02.81.39.81h8.98c.41 0 .65-.47.4-.8l-2.55-3.39c-.19-.26-.59-.26-...
ajax/libs/6to5/2.6.0/browser.js
NMastracchio/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
examples/with-cerebral/components/Page.js
callumlocke/next.js
import React from 'react' import Link from 'next/link' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import Clock from './Clock' export default connect({ lastUpdate: state`clock.lastUpdate`, light: state`clock.light`, mounted: signal`clock.mounted`, unMounted: signal`c...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
bunnyblue/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
node_modules/eslint-config-airbnb/test/test-react-order.js
tacrow/tacrow
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
packages/frontend/pages/discover.js
rgbkrk/commuter
// @flow import React from "react"; require("isomorphic-fetch"); import TimeAgo from "react-timeago"; import { Item } from "semantic-ui-react"; import Header from "../components/header"; import Body from "../components/body"; const Authors = props => <span className="authors"> {props.authors.map(author => auth...
tosort/2016/jspm/lib_react_103/components/menu/index.js
Offirmo/html_tests
import React from 'react' import PureRenderMixin from 'react-addons-pure-render-mixin' import AppBar from 'material-ui/lib/app-bar' import IconButton from 'material-ui/lib/icon-button' import NavigationClose from 'material-ui/lib/svg-icons/navigation/close' import IconMenu from 'material-ui/lib/menus/icon-menu' import...
docs/src/app/components/pages/components/RaisedButton/Page.js
mmrtnz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import raisedButtonReadmeText from './README'; import raisedButtonExampleSimpleC...
src/public/js/src/TodoPage/AddTodo.js
pvorotnikov/open-home-ui
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Form } from 'semantic-ui-react' import { todoActions } from '../_actions' class AddTodo extends React.Component { constructor(props) { super(props) } onSubmit(e) { e.preventDefault...
examples/files/hooks/useRef.js
dabbott/react-express
import React, { useState, useRef, useEffect } from 'react' import { render } from 'react-dom' function App() { const intervalRef = useRef() const [count, setCount] = useState(0) useEffect(() => { intervalRef.current = setInterval(() => setCount(count => count + 1), 1000) return () => { clearInter...
node_modules/material-ui/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js
TarikHuber/react-redux-material-starter-kit
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/components/NumberComponent/test.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import { NumberComponent } from '.'; const renderer = new ShallowRenderer(); describe('<NumberComponent />', () => { test('should render', () => { renderer.render( <NumberComponent abbr={true} l...
components/Divider.js
amni/portfolio
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' export default class Divider extends React.Component { render () { return ( <hr style= {{marginTop:"8%", width:"10%", marginLeft:"au...
boxroom/archive/backup-js-glow-2018-01-28/src/main/__modules__/react/addons.js
js-works/js-surface
import adaptHtmlBuilders from '../../adaption/adaptHtmlBuilders'; import adaptSvgBuilders from '../../adaption/adaptSvgBuilders'; import React from 'react'; const createElement = React.createElement, Component = React.Component, Fragment = React.Fragment, fragment = createElement.bind(null, React.Fragm...
node_modules/react-router/es6/Link.js
superKaigon/TheCave
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 _objectWithoutProperties(obj, keys) { var target = {...
src/docs/examples/ProgressBar/Example10Percent.js
alexcondorachi/ps-react-alexc
import React from 'react'; import ProgressBar from 'ps-react/ProgressBar'; /** 10% progress */ export default function Example10Percent() { return <ProgressBar percent={10} width={150} /> }
blueocean-material-icons/src/js/components/svg-icons/action/trending-up.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp.displayName = 'ActionTrendingUp'; ActionTrendingUp.muiName = 'SvgIcon'; ...
src/Stepper/Stepper.spec.js
mmrtnz/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Step from './Step'; import StepConnector from './StepConnector'; import Stepper from './Stepper'; import FontIcon from '../FontIcon'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Steppe...
envkey-react/src/components/onboard/onboard_slider.js
envkey/envkey-app
import React from 'react' import R from 'ramda' import h from "lib/ui/hyperscript_with_helpers" import {imagePath, openLinkExternal} from "lib/ui" const OnboardSlider = props =>{ const {selectedIndex, children, className} = props, selectedChild = children[selectedIndex] return h.div(".onboard-slid...
src/svg-icons/action/turned-in.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/Basic/BasicComponent.js
GoTeamEpsilon/angular-to-react
import React from 'react' import moment from 'moment' import { telephoneFormat, socialSecurityFormat } from '../../../../common/Formatters' import Formsy from 'formsy-react' import { wireUpCustomFormsyValidators } from '../../../../common/CustomValidators' import { FormsyInput } from '../../../../common/FormsyInput' im...
app/App.js
uyennguyen87/my-follow-react-pro-ebook
import React, { Component } from 'react'; import {render} from 'react-dom'; import KanbanBoard from './KanbanBoard'; import 'whatwg-fetch'; import 'babel-polyfill'; import update from 'react-addons-update'; /* const API_URL = 'http://kanbanapi.pro-react.com'; const API_HEADERS = { 'Content-Type': 'application/json',...
src/asset-details/AssetDetailsPage.js
binary-com/binary-next-gen
import React from 'react'; import WebPage from '../containers/WebPage'; import AssetDetailsContainer from './AssetDetailsContainer'; export default (props) => ( <WebPage> <AssetDetailsContainer {...props} /> </WebPage> );
src/components/MapState.js
neontribe/gbptm
import React from 'react'; import config from '../config'; const MapStateContext = React.createContext(); const reducer = (state, newState) => { return { ...state, ...newState, }; }; export const MapStateProvider = ({ children }) => { const [state, setState] = React.useReducer(reducer, { center: co...
src/index.js
kangarang/mp-react
import React from 'react' import ReactDOM from 'react-dom' import firebase from 'firebase' import { Router, Route, browserHistory, IndexRoute } from 'react-router' // containers import App from './containers/App' import Connect from './containers/Connect.js' // components import Welcome from './components/Welcome' /...
app/containers/HousePage/Layout.js
coocooooo/webapp
import React from 'react'; import cx from 'classnames'; import { Segment } from 'semantic-ui-react'; /** * Layout * ---------------------------------/------------- * A1 / * -------------------------/-------/ B1 * / A2 / A3 / * ------------------------------...
src/icons/AddAlertIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class AddAlertIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20.02 41.02c0 2.2 1.78 3.98 3.98 3.98s3.98-1.78 3.98-3.98h-7.96zm17.74-8.38V21c0-6.5-4.5-11.94-10.58-13....
App/Root.js
taskrabbit/ReactNativeSampleApp
import React from 'react'; import { View, } from 'react-native'; import assign from 'object-assign'; import Routes from './Navigation/Routes'; import Launch from './Root/Launch'; import LoggedOut from './Root/LoggedOut'; import LoggedIn from './Root/LoggedIn'; import Launcher from './Root/Launcher'; i...
blueprints/view/files/__test__/views/__name__View.spec.js
steelx/ReduxWeatherApp
import React from 'react' describe('(View) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
ajax/libs/jquery-ui-bootstrap/0.5pre/assets/js/jquery-1.8.3.min.js
Stavrakakis/cdnjs
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
src/components/Header/Header.js
KantanGroup/zuzu-sites
/** * 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 withStyles from 'isom...
js/src/views/Status/components/EditableValue/EditableValue.js
kushti/mpt
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
app/javascript/mastodon/features/video/index.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../...
src/components/PostBody/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Header } from '../Header'; import { Nav } from '../Nav'; import { ReadingTime } from '../ReadingTime'; import { TwitterIcon, LinkedInIcon, FacebookIcon } from '../../icons'; export function PostBody({ html, i...
ajax/libs/forerunnerdb/1.3.840/fdb-core.min.js
froala/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...
svg-icons/editor/insert-invitation.js
lunohq/material-ui-dist
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
lib/Components/CurrentWeather.js
anajauregui/Weatherly
import React from 'react'; import '../Styles/CurrentWeather.css'; import Search from './Search'; export default function CurrentWeather(props) { const { getApi, place, currentWeatherImg, condition, day, dateMonth, dateDay, dateYear, temp, highT, lowT, summary } = props return ( <section className="current-we...
examples/fluent-chat/js/components/ThreadSection.react.js
twincl/fluent
/** * This file is provided by Facebook for 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, * FITNESS FOR A PARTICUL...
app/containers/LampConfiguration/Lamp.js
qiubit/lamp-experiment
import React from 'react'; import styled from 'styled-components'; import LampOn from './on.jpg'; import LampOff from './off.jpg'; const figStyle = { width: '10%', display: 'inline-block', padding: '0', margin: '0', fontSize: '30px', textAlign: 'center', }; export default class Lamp extends React.Compone...
node_modules/react-bootstrap/es/Image.js
vitorgomateus/NotifyMe
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 ...
ajax/libs/zeroclipboard/2.1.2/ZeroClipboard.js
hare1039/cdnjs
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.1.2 */ (function(window, undefined) { "use strict";...
app/javascript/mastodon/features/getting_started/components/trends.js
lindwurm/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag'; import { FormattedMessage } from 'react-intl'; expor...
example/examples/MapStyle.js
palexs/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } 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_DELTA = 0.0922; const...
src/components/MainHeader.js
m4n3z40/founders-map-quest
import React, {PropTypes} from 'react'; import cx from 'classnames'; export default function MainHeader({className, brand, brandHref}) { return ( <header className={cx('main-header', className)}> <nav className="navbar navbar-default"> <div className="navbar-header"> ...
src/pages/place/place-intro.js
tableflip/landexplorer
import React from 'react' import { ThreeBounce } from 'better-react-spinkit' import uniq from 'lodash.uniq' import round from '../../lib/round' import canonicalUrl from '../../lib/canonicalUrl' import Icon from './icon' import Share from './share' import LandRegistryButton from './land-registry-btn' export default ({p...
SynapseClient/components/LoginPage.js
jmorg/synapse
import React, { Component } from 'react'; import { Image, Text, View, Navigator, Dimensions, AsyncStorage, } from 'react-native'; export class LoginPage extends Component { componentWillMount() { var navigator = this.props.navigator; var doIntroSequence = this.props.doIntroS...
ajax/libs/rxjs/2.3.0/rx.js
steve-ng/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...
ajax/libs/vkui/4.28.1/hooks/useInsets.js
cdnjs/cdnjs
import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import * as React from "react"; import vkBridge from "@vkontakte/vk-bridge"; import { useIsomorphicLayoutEffect } from "../lib/useIsomorphicLayoutEffect"; var initialState = { bottom: n...
src/routes/tutorials/index.js
goldylucks/adamgoldman.me
import React from 'react' import Tutorials from './Tutorials' import Layout from '../../components/Layout' const title = 'Brain Hacking Automation Tools' const description = 'Rewire your brain step by step tutorials' async function action({ path }) { return { chunks: ['tutorials'], title, description,...
src/Parser/HolyPaladin/Modules/Items/Ilterendi.js
mwwscott0/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Co...
v3-7/src/index.js
web-seminar/hw-reference
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('root'), );
OscWebPage/Scripts/jquery-1.6.4.min.js
dust63/CasparCg-Osc-WebSocket
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"...
src/components/foundation/plain-wordmark/FoundationPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './FoundationPlainWordmark.svg' /** FoundationPlainWordmark */ function FoundationPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className=...
app/containers/Table/Edit/index.js
rayrw/skygear-apitable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { reset } from 'redux-form'; import AddFieldDialog from 'components/Table/Edit/AddFieldDialog'; import RemoveFieldDialog from 'components/Table/Edit/RemoveFieldDialog'; import GetEndPointDialog from 'components/Table/Edit/GetEndPoin...
src/FABButton.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Button from './Button'; const FABButton = (props) => { const { mini, className, children, ...otherProps } = props; const classes = classNames('mdl-button--fab', { 'mdl-button--mini-fab': mini ...
examples/dynamic-segments/app.js
albertolacework/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
MyApp/js/config/Touch.js
xizhouhezai/react-app
import React, { Component } from 'react'; import { Text, View, TouchableNativeFeedback, Animated, StyleSheet } from 'react-native'; class MyButton extends Component { _onPressButton() { alert("You tapped the button!"); } render() { return ( <TouchableNativeFeedbac...
views/SettingsView.js
PaRb/Extend
import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; import MealAdder from '../components/MealAdder'; const SettingsView = props => <View style={styles.container}> <MealAdder {...this.props} /> </View>; const styles = StyleSheet.create({ container: { position: 'rel...
client/containers/Signin.js
viatsko/codingbox
import React from 'react'; import Transmit from 'react-transmit'; import Header from '../components/Header'; import Authentication from '../components/Authentication'; import SigninForm from '../components/SigninForm'; class Signin extends React.Component { render() { return ( <div> <Header /> ...
src/pages/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Layout from '../layouts'; import { graphql } from 'gatsby'; import { Nav } from '../components/Nav'; import { ContactCard } from '../components/ContactCard'; import { Header } from '../components/Header'; import { HomepageHero } from '../components/H...
src/icons/AndroidWalk.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidWalk extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M288,112c22.223,0,39.997-17.776,39.997-40c0-22.225-17.774-40-39.997-40s-40.003,17.775-40.003,40 C247.997,94.22...
node_modules/react-native/node_modules/react-tools/src/shared/utils/__tests__/OrderedMap-test.js
bng11cal/DAF
/** * 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. * * @emails react-co...
node_modules/react-icons/md/local-movies.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdLocalMovies = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 15v-3.4h-3.4v3.4h3.4z m0 6.6v-3.2h-3.4v3.2h3.4z m0 6.8v-3.4h-3.4v3.4h3.4z m-16.6-13.4v-3.4h-3.4v3.4h3.4z m0 6.6v-3.2h-3.4v3.2h3.4z m0 6.8v-3.4h-3.4v3.4h3.4z m...
Examples/UIExplorer/ResponderExample.js
waynett/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, ...
Realization/frontend/czechidm-acc/src/content/wizard/connectorType/AdGroupSystemWizard/StepOne.js
bcvsolutions/CzechIdMng
import {Basic, Domain} from 'czechidm-core'; import React from 'react'; import Joi from 'joi'; import AbstractWizardStep from '../../AbstractWizardStep'; import {SystemMappingManager} from '../../../../redux'; const systemMappingManager = new SystemMappingManager(); /** * First step of Group MS AD connector. * * @...
src/components/books/preview/BookPreviewBody.js
great-design-and-systems/cataloguing-app
import { FormGroup, Img, Loading, StarRating } from '../../common/'; import { LABEL_AUTHOR, LABEL_ISBN_10, LABEL_ISBN_13, LABEL_NA, LABEL_NUMBER_OF_PAGES, LABEL_PUBLISHED_DATE, LABEL_PUBLISHER, LABEL_SUB_TITLE, LABEL_SUMMARY, LABEL_TITLE } from '../../../labels/'; import { Book ...
packages/icons/src/md/image/Brightness1.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdBrightness1(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <circle cx="24" cy="24" r="20" /> </IconBase> ); } export default MdBrightness1;
website/static/vendor/knockout-validation/knockout.validation.js
alexschiller/osf.io
/*============================================================================= Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) Description: Validation Library for KnockoutJS Version: 2.0.0-pre.3 =============...
examples/async/index.js
dherault/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
ajax/libs/material-ui/5.0.0-alpha.33/modern/useScrollTrigger/useScrollTrigger.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";function defaultTrigger(e,t){var{disableHysteresis:r=!1,threshold:o=100,target:s}=t,t=e.current;return s&&(e.current=void 0!==s.pageYOff...
react-client/src/index.js
tobyjohnston38/tobyjohnston38.github.io
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import App from './components/app.js'; ReactDOM.render(<App />, document.getElementById('app'));
assets/javascripts/kitten/components/graphics/icons/filter-icon/filter-icon.stories.js
KissKissBankBank/kitten
import React from 'react' import { FilterIcon } from './index' import { COLORS } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { title: 'Graphics/Icons/FilterIcon', component: FilterIcon, parameters: { docs: { page: () => <DocsPage filepath={__filename} importString="Filte...
examples/js/column-filter/select-filter-with-eq-condition.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const quality = [ 'good', 'Bad', 'unknown' ]; const qualityType = { 'good': 'good', 'Bad': 'Bad', 'unknown': 'unknown' }; function addProducts(quantity) { const ...
src/ContentBlocks/Shared/SlideReordering.js
grommet/grommet-cms-content-blocks
// @flow import React from 'react'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Tabs from 'grommet/components/Tabs'; import Tab from 'grommet/components/Tab'; import Menu from 'grommet/components/Menu'; import PreviousIcon from 'grommet/components/icons/base/Previous...
src/decorators/ClickOutsideComponentDecorator.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
node_modules/react-icons/md/phonelink-lock.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdPhonelinkLock = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15.9 18.4v-2.5c0-1.4-1.2-2.2-2.5-2.2s-2.5 0.8-2.5 2.2v2.5h5z m2.1 0c1 0 2 0.9 2 2.1v5.8c0 1-1 2.1-2.2 2.1h-9.1c-1 0-2.1-1.1-2.1-2.2v-5.9c0-1 1.1-1.9 2.1-1.9v-2...
src/helpers/extract_content.js
Ruffeng/VERMELL_REDUX
import React from 'react'; import _ from 'lodash'; const mapHtmlElements = (value,index,elements) =>{ if(elements.length == 1){return _.first(elements).data;} return _.map(elements, (value, indexElement)=>{ if(!value.localName) {return value.data} return <value.localName key={`${index}-${ind...
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js
mohammed88/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const events = [ { date: '1 Hour Ago', image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg', meta: '4 Likes', summary: 'Elliot Fu added you as a friend', }, { date: '4 days ago', image: 'http://semantic-ui.com/im...
test/test_helper.js
937aaron/reduxblog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
docs/src/app/components/pages/components/TimePicker/Page.js
rscnt/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import timePickerReadmeText from './README'; import TimePickerExampleSimple from...
src/components/AddAppointment/AddAppointment.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import * as actions from 'store/addAppointments'; import {availabilityQuickCheck} from 'actions/appointmentActions'; import {submitAppointment} from 'store/appointments'; import moment from 'moment-timezone'; import './add-appointment.less'; import AppointmentClient f...
ajax/libs/F2/1.3.2/f2.no-easyXDM.min.js
seogi1004/cdnjs
/*! F2 - v1.3.2 - 11-18-2013 - See below for copyright and license */ (function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obta...
src/Parser/Shaman/Restoration/Modules/Spells/GiftOfTheQueen.js
enragednuke/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTrac...
ajax/libs/yui/3.14.1/datatable-core/datatable-core-coverage.js
sullivanmatt/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
src/pages/repos.js
isao/labelr
import React from 'react' import ampersandReactMixin from 'ampersand-react-mixin' export default React.createClass({ mixins: [ampersandReactMixin], render () { const {repos} = this.props return ( <div className='container'> <h1>Repos</h1> <ul> ...
ajax/libs/material-ui/5.0.0-alpha.28/Icon/Icon.min.js
cdnjs/cdnjs
import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";im...