path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
website/src/pages/index.js | blitze/phpBB-ext-sitemaker | import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import Translate from '@docusaurus/Translate';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Features from '../components/Features';
import Hero from '../components/... |
web-app/src/components/OnBoard/Fase1/components/Slider.js | oSoc17/code9000 | import React, { Component } from 'react';
import Flickity from 'flickity';
import 'flickity/dist/flickity.min.css';
import './Slider.css';
class Slider extends Component {
constructor(...props) {
super(...props);
this.state = {
selectedIndex: 0,
};
}
componentDidMount() {
this.flickity ... |
src/js/analysis/App.js | CT-Data-Collaborative/edi-v2 | import React, {Component} from 'react';
import PDFViewer from './components/pdfviewer';
class App extends Component {
constructor(props) {
super(props)
const mainElement = document.getElementById('main');
console.log(mainElement);
this.state = {
file: window.pdfFilePath,
height: mainEleme... |
ajax/libs/angular-data/1.4.1/angular-data.js | rileyjshaw/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.4.0 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
src/components/TechnologyList.js | babymaychen/react-webpack | require('normalize.css/normalize.css');
require('styles/TechnologyList.css');
var superagent = require('superagent');
import React from 'react';
import { Grid, Row, Col, Image } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import Markdown from 'react-remarkable';
/*import { mongoose... |
client/modules/Post/__tests__/components/PostList.spec.js | Cathje/KLP | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
ajax/libs/forerunnerdb/1.3.615/fdb-core.min.js | keicheng/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... |
frontend/containers/NotFound.js | Londeren/lists | import React, { Component } from 'react';
import { connect } from 'react-redux';
class List extends Component {
render() {
return (
<div>
Not found
</div>
);
}
}
export default connect((state) => {
return {};
})(List); |
ajax/libs/forerunnerdb/1.3.606/fdb-core.js | sufuf3/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... |
ajax/libs/material-ui/4.9.4/esm/Portal/Portal.js | cdnjs/cdnjs | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { exactProp } from '@material-ui/utils';
import setRef from '../utils/setRef';
import useForkRef from '../utils/useForkRef';
function getContainer(container) {
container = typeof container === 'function' ? contain... |
src/components/Chatbot/index.js | jainvabhi/PWD | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import VoicePlayer from './lib/VoicePlayer.js';
import VoiceRecognition from './lib/VoiceRecognition.js';
import BotCard from './BotCard';
import LoadingSvg from '../Auth/LoadingSvg';
import ChatBotSvg from './ChatBotSvg';
class VoicePlayer... |
site/components/Cover.js | konce/react-dnd | import React from 'react';
import './Cover.less';
export default class Cover {
render() {
return (
<div className="Cover">
<div className="Cover-header">
<p className="Cover-description">
Drag and Drop for React
</p>
</div>
</div>
);
}
} |
lavalab/html/node_modules/react-bootstrap/es/BreadcrumbItem.js | LavaLabUSC/usclavalab.org | 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 ... |
tests/views/PlayListsView.spec.js | franferdez/fuga-challenge | import React from 'react'
describe('(View) PlayLists', () => {
it('should exist', () => {
})
})
|
lib/riemann/dash/public/vendor/backbone.js | ociule/riemann-dash | // Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){
// Initial Setup
// -------------
// Save a reference to the global object (`wi... |
webpack/scenes/Subscriptions/Details/SubscriptionDetailProductContent.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Col, ListView } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import SubscriptionDetailProduct from './SubscriptionDetailProduct';
const SubscriptionDetailProductContent = ({ productContent }) => {
const li... |
src/client/app/footer.react.js | sljuka/portfolio-este | import Component from '../components/component.react';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
export default class Footer extends Component {
static propTypes = {
msg: React.PropTypes.object.isRequired
}
render() {
const {msg: {app: {footer}}} = this.props;
ret... |
src/About.js | mkery/SSUI-Homework-4 | import React, { Component } from 'react';
import './App.css';
import lunaImage from './images/Luna.png';
import ollieImage from './images/Ollie.png';
class About extends Component{
render() {
return (
<div>
<p className="App-aboutUs">
More about us! Here at Pip Pup Shop, our happy pup... |
tests/routes/Home/components/HomeView.spec.js | rwade628/react-redux-starter-kit | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
app/javascript/mastodon/components/loading_indicator.js | imas/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
ajax/libs/monaco-editor/0.3.1/min/vs/editor/editor.main.nls.fr.js | joeyparrish/cdnjs | /*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.3.1(bac26893f27c9ed9e67951f467120ce782f58226)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-------------------------------------... |
BUILD/js/components_js/product-details/product-detail-content.js | kevincaicedo/MyStore-Front-end | import React from 'react'
export default class ProductContent extends React.Component {
render(){
return <div className="caption-full">
<h4 className="pull-right price">{this.props.price}</h4>
<h4><a href="#">{this.props.name}</a></h4>
<p>{this.props.brand}</p>
... |
src/interface/others/Feeding.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Icon from 'common/Icon';
import { TooltipElement } from 'common/Tooltip';
// import Toggle from 'react-toggle';
function formatThousands(number) {
return (`${Math.round... |
src/svg-icons/action/tab-unselected.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTabUnselected = (props) => (
<SvgIcon {...props}>
<path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v... |
ui/src/main/js/components/Diff.js | apache/aurora | import React from 'react';
import { diffJson } from 'diff';
import { clone } from 'utils/Common';
import { isThermos } from 'utils/Task';
function maybeParseThermos(task) {
if (isThermos(task)) {
const modifiedTask = clone(task);
modifiedTask.executorConfig.data = JSON.parse(task.executorConfig.data);
r... |
src/components/ZipForm.js | krismatson/react-weather-app | import React from 'react';
class ZipForm extends React.Component {
render() {
return (
<div className="zip-form">
<form>
<label htmlFor="zipcode">Zip Code</label>
<input
className="form-control"
type="input"
name="zipcode"/>
<button ... |
Examples/UIExplorer/Navigator/JumpingNavSample.js | corbt/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,
... |
src/components/icon/icons/index.js | quark-ui/quark-ui | import React from 'react';
import account from './account.svg';
import arrowDown from './arrow-down.svg';
import arrowLeft from './arrow-left.svg';
import arrowRight from './arrow-right.svg';
import arrowUp from './arrow-up.svg';
import attachment from './attachment.svg';
import car from './car.svg';
import caution fro... |
packages/material-ui-icons/src/PlaylistAddCheck.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PlaylistAddCheck = props =>
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z" />
</SvgIcon>;
PlaylistAddCheck = pure(P... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | way1989/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
src/components/navbar.js | mattstuhring/youtube_redux | import React from 'react';
const Navbar = () => {
return (
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-header">
<a className="navbar-brand" href="#" >
<img alt="Brand" src="../style/icon.png" />
</a>
</div... |
static/js/admin.js | stamhe/zulip | var admin = (function () {
var exports = {};
exports.show_or_hide_menu_item = function () {
var item = $('.admin-menu-item').expectOne();
if (page_params.is_admin) {
item.show();
} else {
item.hide();
}
};
function failed_listing_users(xhr, error) {
loading.destroy_indicator($('#s... |
react-flux-mui/js/material-ui/src/svg-icons/editor/insert-chart.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertChart = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
Editor... |
ajax/libs/react-slick/0.12.3/react-slick.min.js | sreym/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,... |
src/components/popup/Alert.js | belaczek/BeerCheese-client | import React from 'react';
import { Alert, Modal } from 'reactstrap';
import { css } from 'glamor';
const rule = css({
marginBottom: 0,
height: '50px'
});
export default props => (
<Modal isOpen={true} toggle={props.hideModals}>
<Alert id="alert" {...rule} color={props.data.type} toggle={props.hideModals}>
... |
app/components/FollowButton.js | flyingkrai/react-flux-blogging-app | import _ from 'lodash';
import React from 'react';
import UserStore from '../stores/users';
import actions from '../actions';
import storeBind from '../mixins/store-bind';
const getState = function () {
let currentUser = UserStore.currentUser;
return {
currentUser: currentUser,
following: currentUser.fol... |
src/components/Link.js | jamescchu/jameschu-v5 | import React from 'react'
import styled from 'styled-components'
import { rhythm } from '../utils/typography'
import Link from 'gatsby-link'
export default styled(Link)`
position: relative;
text-transform: uppercase;
text-decoration: none;
font-size: ${rhythm(2 / 5)};
&:hover {
background: none;
col... |
src/components/Root/Root.prod.js | esphen/RESTED | import React from 'react';
import { Grid } from 'react-bootstrap';
import App from 'components/App';
export default function Root() {
return (
<Grid fluid>
<App />
</Grid>
);
}
|
protractor-dart2js.conf.js | bbss/angular | var data = module.exports = require('./protractor-shared.js');
var config = data.config;
config.baseUrl = 'http://localhost:8002/';
config.exclude.push(
'dist/js/cjs/examples/e2e_test/sourcemap/sourcemap_spec.js',
// TODO: remove this line when largetable dart has been added
'dist/js/cjs/benchmarks_external/e2e... |
docs/src/table.js | primer/primer-css | import {Box} from '@primer/components'
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
import {fontSize} from 'styled-system'
const Table = styled.table`
display: table !important;
width: 100%;
border-collapse: separate;
border-spacing: ${props => props.borde... |
blueocean-material-icons/src/js/components/svg-icons/hardware/power-input.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwarePowerInput = (props) => (
<SvgIcon {...props}>
<path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/>
</SvgIcon>
);
HardwarePowerInput.displayName = 'HardwarePowerInput';
HardwarePowerInput.muiName = 'SvgIcon';
export... |
packages/material-ui-icons/src/AccountCircle.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AccountCircle = props =>
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6... |
examples/todomvc/test/components/TodoTextInput.spec.js | jdlehman/redux | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import TodoTextInput from '../../components/TodoTextInput';
function setup(propOverrides) {
const props = Object.assign({
onSave: expect.createSpy(),
text: 'Use Redux',
placeholder: 'What needs to be ... |
src/components/itemsManager/GuardianSelector.js | MrRandol/littleLight | /******************
REACT IMPORTS
******************/
import React from 'react';
import { View, Image, Text, Modal, TouchableOpacity, TouchableWithoutFeedback, Dimensions, Button } from 'react-native';
/*****************
CUSTOM IMPORTS
******************/
import T from 'i18n-react';
var styles = require('../../st... |
spec/containers/LoginSpec.js | fgoncalves/supplies.spa | import { expect } from 'chai';
import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { Login, mapDispatchToProps } from 'src/containers/Login';
import GoogleSignInButton from 'src/components/GoogleSignInButton';
import { requestGoogleSignIn } from 'src/dux/loginReducer';
descri... |
src/components/mmr/CountryMmrs.js | byronsha/open_dota | import React from 'react'
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn
} from 'material-ui/Table'
import {Flag} from 'semantic-ui-react'
import countries from '../../constants/countries'
const styles = {
header: {
textAlign: 'center',
fontSize: '1.5em',
... |
server/www/player/video.dev.js | CodeWall-EStudio/SWall | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library o... |
test/ButtonSpec.js | leozdgao/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Button from '../src/Button';
describe('Button', function () {
it('Should output a button', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Button>
Title
</Button>
);
assert.equal(... |
apps/app/src/pages/AuthCallback.js | argos-ci/argos | import React from 'react'
import { useHistory, useLocation } from 'react-router-dom'
import qs from 'query-string'
import axios from 'axios'
import { useAuth } from '../containers/Auth'
const api = axios.create({
baseURL: process.env.API_BASE_URL,
})
export function AuthCallback() {
const location = useLocation()... |
ajax/libs/angular-google-maps/1.0.17/angular-google-maps.js | mikelambert/cdnjs | /*! angular-google-maps 1.0.17 2014-03-30
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
(function() {
angular.element(document).ready(function() {
if (!(google || (typeof google !== "undefined" && google !== null ? google.maps : void 0) || (google.maps.... |
example/react-native-gifted-chat/src/Composer.js | Karkin/react-native-gifted-chat | import React from 'react';
import {
Platform,
StyleSheet,
TextInput,
} from 'react-native';
export default class Composer extends React.Component {
onChange(e) {
const contentSize = e.nativeEvent.contentSize;
if (!this.contentSize) {
this.contentSize = contentSize;
this.props.onInputSizeCha... |
packages/material-ui-icons/src/LensSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
, 'LensSharp');
|
grunt/config/browserify.js | JoshKaufman/react | /*eslint-disable no-multi-str */
'use strict';
var envify = require('envify/custom');
var grunt = require('grunt');
var UglifyJS = require('uglify-js');
var uglifyify = require('uglifyify');
var derequire = require('derequire');
var collapser = require('bundle-collapser/plugin');
var envifyDev = envify({NODE_ENV: pr... |
__tests__/components/SkipLinks-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import SkipLinks from '../../src/js/components/SkipLinks';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('SkipLinks',... |
client/components/NavBar/Drawer.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'react-toolbox/lib/button';
import Drawer from 'react-toolbox/lib/drawer';
import styles from '../NavBar/NavBar.css';
// import repoData from './repodata';
import { fetchUserRepos } from '../../actions/githubActions/... |
Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js | thotegowda/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/components/Router.js | leapfrogtechnology/chill-dashboard | import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import config from '../config';
import * as routes from '../constants/routes';
import Header from './commons/Header';
import Footer from './commons/Footer';
import StatusPage from './dashboard/StatusPage';
const { logoUrl, lo... |
client/admin/permissions/NewRolePage.js | Sing-Li/Rocket.Chat | import React from 'react';
import { Box, FieldGroup, ButtonGroup, Button, Margins } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import RoleForm from './RoleForm';
import { useForm } from '../../hooks/useForm';
import { useTranslation } from '../../contexts/Translatio... |
src/components/modals/NewMarkerForm/index.js | Guseff/services-on-map-demo | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Form from '../Form';
import { regNewTask } from '../../../actions/MarkerActions';
class NewMarkerForm extends Form {
constructor(props) {
super(props);
th... |
node_modules/expo/src/AppLoading.ios.js | jasonlarue/react-native-flashcards | 'use strict';
import React from 'react';
import { NativeModules, requireNativeComponent } from 'react-native';
const NativeAppLoading = requireNativeComponent('ExponentAppLoading', null);
export default class AppLoading extends React.Component {
componentWillUnmount() {
NativeModules.ExponentAppLoadingManager... |
node_modules/react-slick/src/default-props.js | yhx0634/foodshopfront | import React from 'react';
var defaultProps = {
className: '',
accessibility: true,
adaptiveHeight: false,
arrows: true,
autoplay: false,
autoplaySpeed: 3000,
centerMode: false,
centerPadding: '50px',
cssEase: 'ease',
customPaging: function(i) {
return <button>{i + 1}</b... |
src/svg-icons/action/settings-input-component.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputComponent = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.... |
app/assets/javascripts/graphql/vendor/code_mirror_editor.js | impurist/beer-graph | // auto-generated from index.js via build.js, do not edit directly
CodeMirrorEditor = (function (require, module) {
'use strict';
var React = require('react');
var CodeMirror;
// adapted from:
// https://github.com/facebook/react/blob/master/docs/_js/live_editor.js#L16
// also used as an example:
// ht... |
src/components/common/svg-icons/action/opacity.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.... |
common/components/Publish.js | laoqiren/isomorphic-redux-CNode | import React from 'react';
import {connect} from 'react-redux';
import fetch from 'isomorphic-fetch'
import {browserHistory} from 'react-router';
import {Input,Button,Menu,Dropdown} from 'antd'
import {invalidatePosts,fetchUser,fetchPostsIfNeeded} from '../actions/actions'
class Publish extends React.Component {
co... |
example/App/index.js | packetloop/component-router | import React from 'react';
import PropTypes from 'prop-types';
import {locationHistory, locationHash, actions, href, isActive} from '../../src';
import {createStore} from './store';
const store = createStore();
if (process.env.HISTORY === 'HASH') {
// When publishing to GitHub Pages we cannon use HTML5 history na... |
example/src/routes/index.js | delvallejonatan/generator-create-redux-app | import React from 'react'
import CounterContainer from '../containers/CounterContainer'
import Header from '../components/Header'
import { Router, Route, Switch } from 'react-router-dom'
import { createBrowserHistory } from 'history'
import styled from '@emotion/styled'
const Container = styled.div`
text-align: cent... |
examples/pure-chart/index.js | oksktank/react-native-pure-chart | import React from 'react'
import PropTypes from 'prop-types'
import {View} from 'react-native'
import LineChart from './components/line-chart'
import ColumnChart from './components/column-chart'
import PieChart from './components/pie-chart'
export default class PureChart extends React.Component {
constructor (props)... |
src/components/Footer.js | neontribe/gbptm | import React from 'react';
import { Link } from 'react-router-dom';
import Box from './Box';
import Text from './Text';
const Footer = ({ children }) => (
<Box
as="footer"
display="flex"
flexDirection={['column', 'row']}
justifyContent="space-between"
alignItems="center"
px={[3, 4]}
py={... |
zt/20150314wmznq/atest/ytslider/js/jquery-1.7.2.min.js | linmingling/demo | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
react_docs/src/components/section.js | GobHash/GobHash-Backend | import React from 'react';
import remark from 'remark';
import PropTypes from 'prop-types';
import remarkHTML from 'remark-html';
import remarkHighlight from '../highlight';
import { postHighlight, remarkPlugins } from '../custom';
function renderHighlighted(nodes) {
return {
__html: postHighlight(remark()
... |
packages/material-ui-icons/src/NetworkWifiTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.94L12 21.5l8.47-10.56c-.43-.33-3.66-2.95-8.47-2.95s-8.04 2.62-8.47 2.95z" /... |
src/common/components/dumb/Footer.js | ThinkingInReact/ThinkingInReact.xyz | import React, { Component } from 'react';
import Links from 'content//FooterLinks.js';
import Author from 'components//static/Author';
class Footer extends Component {
static defaultProps = { links: Links }
render() {
let links = [];
this.props.links.map((link, index) => {
links.push(<a href={link.... |
sites/all/modules/devel/jquery-1.4.4-uncompressed.js | tribesbcn/hexacath | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/react-dom/16.3.0-alpha.2/cjs/react-dom.development.js | seogi1004/cdnjs | /** @license React v16.3.0-alpha.2
* react-dom.development.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(function(... |
app/components/Img/index.js | ParkarDev/react-resume | /**
*
* Img.react.js
*
* Renders an image, enforcing the usage of the alt="" tag
*/
import React from 'react';
function Img(props) {
return (
<img className={props.className} src={props.src} alt={props.alt} />
);
}
// We require the use of src and alt, only enforced by react in dev mode
Img.propTypes ... |
views/static/js/node_modules/babelify/node_modules/babel-core/node_modules/babel-register/node_modules/core-js/client/core.js | himanshuo/gameoflife | /**
* core-js 1.2.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/app/js/components/App.js | AppSaloon/socket.io-tester | import React from 'react'
import Column from './column/ColumnView'
import Head from './head/Head'
import Message from './messages/Messages'
import Search from './search/Search'
import ColorPicker from './ColorPicker'
import UpdateMessage from './UpdateMessage'
const App = () =>
<div className... |
src/svg-icons/av/forward-30.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward30 = (props) => (
<SvgIcon {...props}>
<path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4... |
docs/src/app/components/pages/components/Drawer/Page.js | barakmitz/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 drawerReadmeText from './README';
import DrawerSimpleExample from './Exam... |
src/js/LudoPage/DesktopLudoPage/index.js | ludonow/ludo-beta-react | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { withTab } from './TabList';
import DesktopCardContent from './DesktopCardContent';
import DesktopReportPage from './DesktopReportPage';
const getIsStageOfCardReady = (playerId) => (
playerId === '0'
);
... |
src/svg-icons/maps/directions-bus.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBus = (props) => (
<SvgIcon {...props}>
<path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8... |
src/AppBar/AppBar.spec.js | hai-cea/material-ui | /* eslint-env mocha */
import React from 'react';
import {spy} from 'sinon';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import AppBar, {getStyles} from './AppBar';
import getMuiTheme from '../styles/getMuiTheme';
import IconButton from '../IconButton';
import FlatButton from '../FlatButton';
describe... |
internals/templates/containers/App/index.js | dvm4078/dvm-blog | /**
*
* App.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 hot
... |
app/components/AddRoomModal/index.js | seanng/web-server | import React from 'react';
import { Modal, FormGroup, Form, FormControl, Col, ControlLabel } from 'react-bootstrap';
import Button from '../Button';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
class AddRoomModal extends React.Component {
... |
ajax/libs/video.js/5.0.0-rc.61/video.js | keicheng/cdnjs | /**
* @license
* Video.js 5.0.0-rc.61 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
assets/js/vendor/jquery.min.js | kingawaclawik/BrandIt | /*! 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... |
index.js | jepz20/coffee_tracker | import App from './components/App';
import configureStore from './store/configureStore';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import { grey50, brown700 } from 'material-ui/styles/colors';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import {... |
web-server/v0.4/src/pages/Results/index.js | gurbirkalsi/pbench | import React, { Component } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { Card, Form } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import SearchBar from '@/components/SearchBar';
import RowSelection from '@/components/RowSelection';
impo... |
src/containers/Notes/index.js | kajas90/redux-sagas-challenge | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components'
import { connect } from 'react-redux';
import { toJS } from 'immutable';
import { getNotes } from 'actions/notesActions';
import NotesList from 'components/Notes';
const PageWrapper = styled.section`
position: rel... |
pages/venue/index.js | jsis/jsconf.is | import React from 'react'
import BoxPage from '../../components/box-page'
import content from './_venue.md'
import icon from '!svg-inline!../../images/tonkvisl.svg'
const title = 'Venue'
export default () =>
<BoxPage icon={icon} title={title}>
<div dangerouslySetInnerHTML={{ __html: content.body }} />
</BoxPa... |
src/components/Common/List/Components/Authors/Views/Desktop/index.js | LifeSourceUA/lifesource.ua | import React from 'react';
import cx from 'classnames';
import Styles from './Styles/main.scss';
import Grid from 'theme/Grid.scss';
function Desktop() {
const sortItemClass = cx({
[Styles.item]: true,
[Styles.active]: true
});
return (
<section className={ Styles.authorsComponent... |
src/components/button/button.story.js | dima-bu/b2b.core | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import Button from './button';
const sizes = ['sm', 'md', 'lg'];
const themes = ['primary', 'danger'];
const full = [];
sizes.forEach(size => {
themes.forEach(theme => {
full.push({
size: size,
theme: theme
})
})
... |
app/public/src/js/App/Index/Index.js | ShawnCC/magic-mirror | 'use strict';
import React from 'react';
import Clock from '../Clock/Index';
import Weather from '../Weather/Index';
export default class Index extends React.Component {
constructor() {
super();
}
render() {
return (
<div className="wrapper">
<Clock></Clock>
... |
gatsby-node.js | xpchbill/xpchbill.github.io | import path from 'path';
exports.modifyWebpackConfig = (webpackConfig, env) => {
webpackConfig.merge({
resolve: {
modulesDirectories: ['src']
}
});
webpackConfig.loader('source-map-loader', (cfg) => {
const config = cfg;
config.test = /\.js$/;
config.loader = 'source-map-loader';
r... |
ajax/libs/forerunnerdb/1.4.19/fdb-core.min.js | dlueth/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... |
src/search/search-bar/__tests__/scope-test.js | KleeGroup/focus-components |
import TestUtils from 'react-dom/test-utils';
import React from 'react';
import ReactDOM from 'react-dom';
const { renderIntoDocument, Simulate } = TestUtils;
import identity from 'lodash/utility/identity';
import { init } from 'focus-core/translation';
const i18nConfig = {
resources: {},
lng: 'fr-FR'///lan... |
src/PaginationButton.js | cgvarela/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import createSelectedEvent from './utils/createSelectedEvent';
import CustomPropTypes from './utils/CustomPropTypes';
const PaginationButton = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
... |
react-flux-mui/js/material-ui/src/svg-icons/notification/do-not-disturb-off.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOff = (props) => (
<SvgIcon {...props}>
<path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78... |
node_modules/socket.io-client/socket.io.js | toko926/sakerakuintweb | (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["io"] = factory();
else
root["io"] = fac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.