path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
imports/ui/components/map/leaflet-map-single.js
irvinlim/free4all
import React from 'react'; import * as Helper from '../../../util/helper'; export default class LeafletMapSingle extends React.Component{ constructor(props) { super(props) this.elemId = 'map-single'; this.marker = null; this.map = null; this.previewTimeout = null; } componentDidMount() { ...
src/components/Home.js
Sven-da-cyberpunk/Sven-da-cyberpunk.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import { Code } from '../styles/style'; import s from '../styles/home.style'; export default function Home() { const repoReadmeLink = text => ( <Interactive as="a" {...s.link} href="...
ajax/libs/react-slick/0.8.0/react-slick.js
holtkamp/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Slider"] = factory(...
ajax/libs/webshim/1.15.6-RC1/dev/shims/moxie/js/moxie-html4.js
dlueth/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
app/components/Settings/components/sounds-panel.js
builtwithluv/ZenFocus
import React from 'react'; import PropTypes from 'prop-types'; import { Checkbox } from '@blueprintjs/core'; const SoundsPanel = ({ audioPhaseDisabled, audioTickDisabled, onSettingsChange, toggleAudioPhase, toggleAudioTick, className }) => ( <div className={className}> <Checkbox label="Play tic...
client/router/routeConfig.js
jkettmann/universal-react-relay-starter-kit
import React from 'react' import Route from 'found/lib/Route' import RedirectException from 'found/lib/RedirectException' import makeRouteConfig from 'found/lib/makeRouteConfig' import UniversalComponent from '../components/UniversalComponent' import AppRouteConfig from '../pages/App/AppRoute' import HomeRouteConfig ...
src/index.js
larsvinter/react-awesome-seven-segment-display
import React from 'react'; const digitToSegmentMap = { 0: [1, 1, 1, 1, 1, 1, 0], 1: [0, 1, 1, 0, 0, 0, 0], 2: [1, 1, 0, 1, 1, 0, 1], 3: [1, 1, 1, 1, 0, 0, 1], 4: [0, 1, 1, 0, 0, 1, 1], 5: [1, 0, 1, 1, 0, 1, 1], 6: [1, 0, 1, 1, 1, 1, 1], 7: [1, 1, 1, 0, 0, 0, 0], 8: [1, 1, 1, 1, 1, 1, 1], 9: [1, 1, ...
packages/material-ui-icons/src/VideoCallOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM15 16H5V8h10v8zm-6-1h2v-2h2v-2h-2V9H9v2H7v2h2z" /> , 'VideoCallOutlined');
node_modules/material-ui/svg-icons/content/content-cut.js
jotamaggi/react-calendar-app
'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/UIShell/__tests__/SideNavItem-test.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { mount } from 'enzyme'; import SideNavItem from '../SideNavItem'; describe('SideNavItem', () => { let m...
src/svg-icons/editor/border-left.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z...
js/App.js
epavan/react-videos
import React from 'react' import { Match } from 'react-router' import preload from '../public/data.json' import Landing from './Landing' import Search from './Search' import DetailCard from './DetailCard' if (global) { global.System = { import () {} } } const App = () => { return ( <div className='app'> ...
app/js/vendor/jquery/jquery.min.js
valera-rozuvan/kddi6
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
website/core/HeaderLinks.js
dubert/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...
www/src/InstanceInfo.js
ctnitchie/ec2-dashboard
import React from 'react'; import {ec2Service, eventBus} from './services'; import autobind from 'react-autobind'; import moment from 'moment'; export default class InstanceInfo extends React.Component { constructor(props) { super(props); this.state = { state: props.record.state, launched: props....
app/app.js
SakuB/cloudmusic_web
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; import './global-styles'; /* eslint-disable import/no-unresolved */ // Load the favicon, manifest.json file and the .nginx.conf file import '!file?name=[name].[ext]!./favicon.ico'; import '!f...
src/components/App/App.js
yurikrupnik/meaner
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, {Component, PropTypes} from 'react'; import ...
app/static/src/diagnostic/TestResultForm.js
vsilent/Vision
import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; import Modal from 'react-bootstrap/lib/Modal'; import EquipmentTestForm from './EquipmentTestForm'; var selectRowProp = { mode: "checkbox", clickToSelect: true, bgColor: "rgb(238, 193, 213)", onSelect: ...
sites/default/files/js/js_8rRelfN5WLwSOx9CjLmTe6fYi-QHYkHCK1Unhq34C4Y.js
xic3fox/drupaltest
/*! jQuery v2.2.4 | (c) jQuery Foundation | 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 window?window:this,fun...
Examples/ForTest/AppRoot.js
ksti/react-native-utils
import React from 'react'; import {AppRegistry, Navigator, StyleSheet, Text, Image, View, ToastAndroid,BackAndroid} from 'react-native' import {Scene, Reducer, Router, Switch, TabBar, Modal, Schema, Actions} from 'react-native-router-flux' //当前面面所需的组件 import { connect } from 'react-redux'; import { bindActionCreator...
react/tic-tac-toe/src/App.js
ripter/Workshops
import React from 'react'; import { Board } from './Board'; import { useWASMState } from './useWASMState'; import './App.css'; export function App() { const { state, hasLoaded, dispatch } = useWASMState(); if (!hasLoaded) { return <div className="tic-tac-toe"> <p>Loading...</p> </div>; } re...
app/containers/HomePage/index.js
huahuaxiong/console
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Helmet from 'react-helmet'; import messages from './messages'; import { createStructuredSelector } from 'reselect'...
public/api/docs/lib/jquery-1.8.0.min.js
alexcu/doubtfire-api
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
ajax/libs/yui/3.9.0/datatable-body/datatable-body-debug.js
chrillep/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
js/components/main/main.js
ugeHidalgo/relay-treasurehunt
import React from 'react'; import { render } from 'react-dom'; import Relay from 'react-relay'; import Header from '../common/header/header'; import Footer from '../common/footer/footer'; //import jQuery from 'jquery'; import './main.css'; //let $=jQuery; class Main extends React.Component { render () { return ...
examples/simple-todo/index.js
zalmoxisus/mobx-remotedev
import React from 'react'; import ReactDOM from 'react-dom'; import * as mobx from 'mobx'; import mobxReact from 'mobx-react'; import remotedev from 'mobx-remotedev/lib/dev'; mobx.useStrict(true); var todoFactory = function (title) { var todo = { id: Math.random(), toggleStatus: mobx.action(function toggleS...
mlflow/server/js/src/experiment-tracking/components/CompareRunPage.js
mlflow/mlflow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import qs from 'qs'; import { connect } from 'react-redux'; import { getRunApi, getExperimentApi } from '../actions'; import RequestStateWrapper from '../../common/components/RequestStateWrapper'; import CompareRunView from './CompareRunView'...
webpack.config.js
Markcial/fish-shell-presentation
/* eslint-disable */ var path = require("path"); var webpack = require("webpack"); module.exports = { devtool: "source-map", entry: [ "webpack-hot-middleware/client", "babel-polyfill", "./index" ], output: { path: path.join(__dirname, "dist"), filename: "bundle.js", publicPath: "/dist/...
docs/src/app/components/pages/components/Drawer/ExampleSimple.js
w01fgang/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerSimpleExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handl...
ajax/libs/rxjs/2.3.7/rx.lite.extras.js
mscharl/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
examples/ariatemplates/js/lib/aria/ariatemplates-1.3.5.js
JinaLeeK/todomvc
/* * Aria Templates 1.3.5 - 22 Feb 2013 * * Copyright 2009-2013 Amadeus s.a.s. * 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 * * Un...
tmpl/react-redux/src/pages/Detail/index.js
zdying/hiipack
/** * @file * @author zdying */ import React from 'react'; import {connect} from 'react-redux'; import MdArrowBack from 'react-icons/lib/md/arrow-back'; import MdRefresh from 'react-icons/lib/md/refresh'; import * as Actions from './action'; import Header from '../../components/Header'; import Footer from '../.....
src/svg-icons/device/battery-charging-50.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging50 = (props) => ( <SvgIcon {...props}> <path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V...
node_modules/react-dom/lib/Danger.js
qingege/react_draft
/** * 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 directory. * */ 'use strict...
packages/mui-icons-material/lib/SensorDoorRounded.js
oliviertassinari/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
d6rkaiz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
src/test/app/lang/langMixin.js
cluelessjoe/heroesdesk-front-web
'use strict'; import ReactIntl from 'react-intl'; var IntlMixin = ReactIntl.IntlMixin; /** * Wrapper of ReactIntl.IntlMixin to handle unknown messages. */ export var langMixin = { getText: function( message ){ try { return this.getIntlMessage( message ); } catch( err ) { ...
Fire/__tests__/index.android.js
deepmehtait/React-Native-Firebase-Auth
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/components/Classification/VersionSelector/VersionSelector.js
City-of-Helsinki/helerm-ui
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'react-select'; import { withRouter } from 'react-router-dom'; import { getStatusLabel, formatDateTime } from '../../../utils/helpers'; import './VersionSelector.scss'; const getVersionLabel = ({ state, version, modified_at: modifiedAt...
src/sheetElems/manyRequiredAnswers/preview.js
lukaszmakuch/quiz
import React from 'react'; import TextField from 'material-ui/TextField'; export default answer => { return <div style={{ whiteSpace: 'nowrap' }}> {answer.answers.map((value, index) => { return <div key={index + value}> <TextField value={value} disabled /> ...
src/components/home.js
RichardDorn/mastermind-clone
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { startNewGame, setDifficulty, setGameType } from '../actions'; import {Link} from 'react-router'; const DIFFICULTIES = [ 'EASY', 'MEDIUM', 'HARD' ]; class Home extends Component { onChangeDifficulty(e...
client/index.js
Rebulus/ikea-basket
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import { compose, createStore, applyMiddleware } from 'redux' import reducers from './reducers' import thunkMiddleware from 'redux-thunk'; import { Provider } from 'react-redux'; import { ActionCreators } from 'redux-undo'; import pers...
wwwroot/app/src/components/MyRecipesPage/ViewRecipe.js
AlinCiocan/FoodPlanApp
import React from 'react'; const ViewRecipe = (props) => { const { recipe } = props; return ( <div className="view-recipe"> <h2 className="view-recipe__title"> {recipe.name} </h2> <div className="view-recipe__img-container"> </div> <div className="view-...
form/SubmitButton.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {reduxForm} from 'redux-form'; import Button from './Button'; const ButtonHoc = connect( (state, props) => ({ form: props.formId, }) )(reduxForm({})(Button)); export default class SubmitButton e...
ajax/libs/6to5/2.6.1/browser-polyfill.js
F2X/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/common/components/navbar/index.js
jimboslicethat/rpi-home-dashboard
import React from 'react' import CssModules from 'react-css-modules' import { Link } from 'react-router' import Icon from '../icon' import css from './index.css' function NavBar(props) { return ( <div styleName="container"> <div styleName="left-side"> <Link to="/weather"><Icon name="cloud" /></Li...
src/views/components/tracklist/index.fix.js
zerubeus/sawt
import React from 'react'; import { shallow } from 'enzyme'; import { List } from 'immutable'; import { createTrack } from '../../../core/tracks'; import { testUtils } from '../../../core/utils/testify'; import { Tracklist } from './index'; describe('views', () => { describe('Tracklist', () => { let props; ...
src/TimePicker/TimePicker.js
rscnt/material-ui
import React from 'react'; import warning from 'warning'; import TimePickerDialog from './TimePickerDialog'; import TextField from '../TextField'; import {formatTime} from './timeUtils'; const emptyTime = new Date(); emptyTime.setHours(0); emptyTime.setMinutes(0); emptyTime.setSeconds(0); emptyTime.setMilliseconds(0);...
packages/twitch-extension-frontend/src/config/Config.js
Ell/twitch-extension-boilerplate
import React from 'react'; const Config = () => ( <div className="config-container"> <h1>Hello, Config</h1> </div> ); export default Config;
src/svg-icons/notification/airline-seat-legroom-normal.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
react-music-player/app/final/components/listitem.js
zhongshanxian/SUM
import React from 'react'; require('./listitem.less'); let PubSub = require('pubsub-js'); class ListItem extends React.Component { constructor(props) { super(props); //函数需要绑定,否则报错'setState'undefined } deleteHandler(item, event) { event.stopPropagation(); PubSub.publish('DEL_MUSIC', item); } playMusic(i...
src/components/user/User.js
primosdace/Mousie
import React from 'react'; const User = props => ( <div className="User"> <h3>User {props.params.id}</h3> </div> ); User.propTypes = { params: React.PropTypes.shape({ id: React.PropTypes.string, }), }; User.defaultProps = { params: null, }; export default User;
ajax/libs/font-awesome/5.13.0/js/brands.js
cdnjs/cdnjs
/*! * Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ (function () { 'use strict'; var _WINDOW = {}; var _DOCUMENT = {}; try { if (typeof window !== 'undefined') _WINDOW = wi...
src/Parser/Priest/Discipline/Modules/Items/Estel.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Atonement from '../Spell...
app/javascript/mastodon/features/compose/components/navigation_bar.js
ambition-vietnam/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import Permalink from '../../../components/permalink'; import { FormattedMessage } from 'r...
app/containers/ListPage/index.js
simon-johansson/PB-labz
/* * ListPage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import _ from 'lodash'; import Tappable from 'react-tappable'; import { defaults, Doughnut, Bar } from 'react-chartjs-2'; ...
app/modules/humnos/components/Lists.bak.js
arizto/humnos-mobile
'use strict'; import React, { Component } from 'react'; import { InteractionManager, View, ListView, VirtualizedList, Text, ActivityIndicator, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { List } from 'immutable'; import * as configs from '../../../constants/confi...
docs/src/develop/patterns/DashboardDoc.js
rstuven/grommet
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P. var React = require('react'); var Article = require('grommet/components/Article'); var Title = require('grommet/components/Title'); var Header = require('grommet/components/Header'); var Search = require('grommet/components/Search'); var Gravatar = r...
src/common/movie-list.js
rldona/react-native-tab-view-seed
import React, { Component } from 'react'; import { View, Text, Image, TouchableOpacity, ListView, StyleSheet, Dimensions, InteractionManager } from 'react-native'; import * as themoviedb from '../services/movies-service.js'; import * as colors from './colors'; import Icon from 'react-native-vector-ic...
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js
badelas/pd7
/*! 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===...
ajax/libs/rxjs/2.3.23/rx.lite.compat.js
Piicksarn/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...
src/svg-icons/social/sentiment-satisfied.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1...
src/index.js
gambleros/bodyShredCal
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
app/components/A/index.js
PanJ/SimplerCityGlide
/** * A link to a certain page, an anchor tag */ import React, { PropTypes } from 'react'; import styles from './styles.css'; function A(props) { return ( <a className={ props.className || styles.link } {...props} /> ); } A.propTypes = { className: PropTypes.string, href:...
src/components/InfoIcon.js
ctlusto/gifsmos
import React, { Component } from 'react'; import info from './icons/info.svg'; import './InfoIcon.css'; export default class InfoIcon extends Component { constructor(props) { super(props); this.state = { show: false }; this.toggleInfo = this.toggleInfo.bind(this); } toggleInfo() { this...
src/@ui/SecondaryNav/index.js
NewSpring/Apollos
import React from 'react'; import { StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { withProps, compose } from 'recompose'; import withToggleLike from '@data/likes/withToggleLike'; import TabBar, { Link } from '@ui/TabBar'; import { share } from '@utils/content'; export { Link }; export ...
server/sonar-web/src/main/js/apps/settings/components/WildcardsHelp.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/svg-icons/action/important-devices.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionImportantDevices = (props) => ( <SvgIcon {...props}> <path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1....
examples/universal/client/index.js
bjfletcher/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
ajax/libs/6to5/1.12.8/browser.js
luanlmd/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...
app/ui/client/views/app/secretURL.js
4thParty/Rocket.Chat
import { Meteor } from 'meteor/meteor'; import { ReactiveVar } from 'meteor/reactive-var'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { Session } from 'meteor/session'; import { Template } from 'meteor/templating'; import { settings } from '../../../../settings'; import { KonchatNotification } from...
dvl/d8/d80k/screens/LinkScreen.js
pip/Octology
import React from 'react'; import { ScrollView, StyleSheet } from 'react-native'; import { ExpoLinksView } from '@expo/samples'; export default function LinkScreen() { return ( <ScrollView style={styles.container}> {/** * Go ahead and delete ExpoLinksView and replace it with your content; * w...
docs/src/app/components/pages/discover-more/RelatedProjects.js
manchesergit/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownElemen...
app/components/Dashboard/TestingSessions/CreatePages/Plans.js
cdiezmoran/AlphaStage-2.0
import React from 'react'; import uuid from 'uuid/v4'; import { array, func, number } from 'prop-types'; import styles from './Plans.scss'; const Plans = ({ plans, selectedPlan, setState }) => { const handlePlanClick = (index) => () => setState('selectedPlan', index); const renderPerks = (perks) => perks.map(...
skins/Vector/GCWeb/js/jquery/1.11.1/jquery.js
tbs-sct/gcpedia
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
packages/article-in-depth/__tests__/shared-internal-components.js
newsuk/times-components
import TestRenderer from "react-test-renderer"; import { addSerializers, compose, enzymeRenderedSerializer, minimaliseTransform, minimalWebTransform, print } from "@times-components/jest-serializer"; import "./mocks"; import shared from "./shared-internal-components.base"; const omitProps = new Set([ "cl...
ui/src/index.js
smurawczik/got-a-drink
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/app/App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
ajax/libs/clappr/0.0.25/clappr.js
sevypannella/cdnjs
require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
ajax/libs/rxjs/2.3.12/rx.lite.js
GaryChamberlain/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...
packages/material-ui-icons/src/PanTool.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.4...
src/page/todo/components/Footer.js
xincyang/webpack-demo
import React from 'react' import FilterLink from '../containers/FilterLink.js' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL">ALL</FilterLink> {" "} <FilterLink filter="SHOW_ACTIVE">ACTIVE</FilterLink> {" "} <FilterLink filter="SHOW_COMP...
packages/material-ui-icons/src/RepeatTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 22v-3h12v-6h-2v4H7v-3l-4 4zM21 6l-4-4v3H5v6h2V7h10v3z" /> , 'RepeatTwoTone');
wp-content/themes/roots/assets/js/vendor/jquery-1.10.2.min.js
imovertheinternet/AtomicDC
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
test/OverlayDeprecationSpec.js
thealjey/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Position from '../src/Position'; import Transition from '../src/Transition'; import Portal from '../src/Portal'; import { shouldWarn } from './helpers'; describe('Components moved to react-overlays', () => { it('should warn ab...
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/components/detail-component.js
JMwill/wiki
import React from 'react' import Empty from './empty' import utils from '../utils' const Loading = () => ( <div className='lock'> <div className='loader' /> <div className='mask' /> </div> ) export default (ComposedComponent, load) => class DetailComponent extends React.Component { constructor(props...
ajax/libs/yui/3.12.0/scrollview-base/scrollview-base-coverage.js
js-data/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.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":...
src/utils/string-utils.js
FranckCo/Operation-Explorer
import React from 'react'; export const tidyString = string => string && <span>{string.split(/\n/).map((s, i) => <p key={i}>{s}</p>)}</span>; export const capitalizeFirstLetter = string => string && string.charAt(0).toUpperCase() + string.slice(1);
modules/__tests__/Router-test.js
ArmendGashi/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' import Route from '../Route' describe('Router', function () { let node beforeEach(function () { node = document....
ajax/libs/analytics.js/1.5.5/analytics.js
ethantw/cdnjs
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
src/components/Footer.js
shp54/cliff-effects
import React from 'react'; import { Grid, Header, Icon, Segment, } from 'semantic-ui-react'; import { interpolateSnippets } from '../utils/interpolation'; const inlineComponents = { __heartIcon__: <Icon name='heart' size='small' />, }; const Footer = ({ snippets }) => { snippets = interpolateSni...
app/src/routes/profile/AddCompany.js
grantrules/bikeindustryjobs
import React from 'react'; import ControlledForm from '../../components/ControlledForm' import CompanyService from '../../services/companies' import RichTextEditor from 'react-rte'; import { withRouter } from 'react-router-dom'; import ReactS3Uploader from 'react-s3-uploader'; class AddCompany extends ControlledForm ...
tools/build.js
zhiyelee/react-starter-kit
/** * React Starter Kit (http://www.reactstarterkit.com/) * * Copyright © 2014-2015 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 run from './run'; /** * Compiles the project from ...
node_modules/grunt-jsmin-sourcemap/test/expected/compact.min.js
devlato/matreshka
(function(window,undefined){var document=window.document,navigator=window.navigator,location=window.location;var jQuery=(function(){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery);},_jQuery=window.jQuery,_$=window.$,rootjQuery,quickExpr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]...
src/website/app/demos/ThemeProvider/common/Sample.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; const Root: StyledComponent<{ [key: string]: any }> = styled('span')( ({ theme }) => ({ backgroundColor: theme.Sample_backgroundColor || 'lavender', color: theme...
lib/src/header/title.js
Hezko/MineBlown-GameUI
import React from 'react'; const line1 = ' __ __ __ __ __ ______ ______ __ ______ __ __ __ __ '; const line2 = '/\\ \"-./ \\ /\\ \\ /\\ \"-.\\ \\ /\\ ___\\ /\\ == \\ /\\ \\ /\\ __ \\ /\\ \\ _ \\ \\ /\\ \"-.\\ \\ '; const line3 = '\\...
test/spec/dom.wrapper.js
smelukov/basisjs
module.exports = { name: 'basis.dom.wrapper', sandbox: true, init: function(){ var basis = window.basis.createSandbox(); var catchWarnings = basis.require('./helpers/common.js').catchWarnings; var Class = basis.Class; var DOM = basis.require('basis.dom'); var AbstractNode = basis.require('ba...
ajax/libs/yui/3.10.0/simpleyui/simpleyui-debug.js
samthor/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
src/components/Heading.js
dlindahl/stemcell
import { func, node, oneOf, oneOfType, string } from 'prop-types' import React from 'react' import Text from './Text' const LEVELS = [ 'canon', // H1 'trafalgar', // H2 'doublePica', // H3 'greatPrimer', // H4 'pica', // H5 'longPrimer' // H6 ] const Heading = ({ as, children, level, ...props }, { theme }...
app/containers/Login.js
xiplias/github-browser
import React from 'react'; import { Flex, Box } from 'reflexbox'; import { Input, Button, Panel, PanelHeader } from 'rebass'; const localStorage = global.window.localStorage; class Login extends React.Component { // eslint-disable-line react/prefer-stateless-function constructor() { super(); this.state = {...
lib/shared/screens/admin/screens/settings/screens/google/index.js
relax/relax
import Component from 'components/component'; import Content from 'components/content'; import React from 'react'; import SettingsForm from 'components/settings-form'; import mapSettingsIds from 'helpers/map-settings-ids'; import {googleAPI} from 'statics/settings-keys'; const options = [ { label: 'Google API ID...