path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/rxjs/2.3.11/rx.js | bdukes/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... |
__tests__/index.ios.js | pabloalonsos/react-cross-platform | import 'react-native';
import React from 'react';
import Index from '../index.ios.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/Main.js | 441953309/joke-by-redux | import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice">Please edit <code>src/components/Main.js</code> to... |
src/svg-icons/device/battery-charging-80.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
src/modules/settings/components/CommentaryWorks/AddNewWork.js | CtrHellenicStudies/Commentary | import React from 'react';
import './AddNewWork.css';
const AddNewWork = ({ toggleWorkSelectorModal }) => (
<button
className="addNewWork workTeaser"
onClick={toggleWorkSelectorModal}
type="button"
>
<i className="mdi mdi-plus addNewWorkIcon" />
<label>
Add new work
</label>
</button>
);
expor... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js | Bogala/create-react-app-awesome-ts | /**
* Copyright (c) 2015-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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return [
{ id: 1, name: '1'... |
src/components/Login.js | akiokio/ReactSignupLoginComponent | import PropTypes from 'prop-types';
import React from 'react';
const localStyles = {
wrapper: {
backfaceVisibility: 'hidden',
position: 'absolute',
top: 0,
left: 0,
zIndex: 2,
transform: 'rotateY(0deg)',
width: '100%',
},
inputWrapper: {
display: 'flex',
flexFlow: 'row wrap',
... |
plugins/highchart/api/js/jquery-1.11.3.min.js | irvanirawan/salestock | /*! 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... |
app/javascript/mastodon/components/error_boundary.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { version, source_url } from 'mastodon/initial_state';
import StackTrace from 'stacktrace-js';
export default class ErrorBoundary extends React.PureComponent {
static propTypes = {
children: Prop... |
client/helpers/handlebars.js | wilsonpeng8/growthintensive | // ** Handlebars helpers **
UI.registerHelper('eachWithRank', function(items, options) {
// not used, forces multiple renders
// note: cannot use this because it would delete and recreate all nodes
items.rewind();
var out = '';
items.forEach(function(item, i){
var key = 'Branch-' + i;
out = out + Spa... |
client/components/layout/nav.js | maodouio/meteor-react-redux-base | import React from 'react';
import {Link} from 'react-router';
export default (props) => (
<nav className="navbar navbar-default navbar-fixed-top">
<div className="container">
<div className="navbar-header">
<button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="coll... |
src/components/Posts.js | blade254353074/react-router-lazy-import | import { Link } from 'react-router'
export default class Posts extends React.PureComponent {
render () {
return (
<div>
<h2>Posts</h2>
<ul>
<li><Link to='/posts/1'>article1</Link></li>
<li><Link to='/posts/2'>article2</Link></li>
<li><Link to='/posts/3'>article... |
frontend/src/components/user-menu/guest-nav.js | 1905410/Misago | import React from 'react';
import Avatar from 'misago/components/avatar'; // jshint ignore:line
import RegisterButton from 'misago/components/register-button'; // jshint ignore:line
import SignInModal from 'misago/components/sign-in.js';
import dropdown from 'misago/services/mobile-navbar-dropdown';
import modal from '... |
demo/webpack.config.js | asinner/react-conf-webrtc | var webpack = require('webpack');
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
// NOTE(andrews): Set default environment to "development".
const NODE_ENV = process.env.NODE_ENV || 'development';
// NOTE(andrews): U... |
node_modules/react-router/es/Link.js | saltypaul/SnipTodo | 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 = {... |
fields/components/columns/ArrayColumn.js | kwangkim/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
examples/Chips.js | jhernandezme/react-materialize | import React from 'react';
import Row from '../src/Row';
import Col from '../src/Col';
import Chip from '../src/Chip';
import Tag from '../src/Tag';
export default
<Row>
<Col s={12}>
<Chip>
<image src='assets/yuna.jpg' alt='Contact Person' />
Jane Doe
</Chip>
<Tag>tag</Tag>
</Col>
</Row>;
|
frontend/src/app/components/MainInstallButton.js | clouserw/testpilot | import React from 'react';
import classnames from 'classnames';
export default class MainInstallButton extends React.Component {
constructor(props) {
super(props);
this.state = {
isInstalling: false
};
}
install() {
const { requireRestart, sendToGA, eventCategory, hasAddon, installAddon }... |
packages/material-ui-icons/custom/Telegram.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42... |
public/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Autodrop3d/autodrop3dServer | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/pages/login/page.js | pheuter/essential-react | import React from 'react';
import { browserHistory } from 'react-router';
import styles from './style.css';
export default class LoginPage extends React.Component {
signUp() {
browserHistory.push('/home');
}
render() {
return (
<div className={styles.content}>
<h1 className={styles.head... |
app/clients/next/components/form/button_dropdown.js | garbin/koapp | import React from 'react'
import { ButtonDropdown } from 'reactstrap'
export default class extends React.Component {
constructor () {
super()
this.state = { open: false }
}
handleToggle () {
this.setState({open: !this.state.open})
}
render () {
return (
<ButtonDropdown isOpen={this.state... |
docs/app/Examples/collections/Table/Variations/TableExampleColumnCount.js | ben174/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleColumnCount = () => {
return (
<Table columns={5}>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>A... |
packages/bonde-admin/src/pages/admin/mobilizations/widgets/pressure/settings/autofire/page.spec.js | ourcities/rebu-client | import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import * as mock from '@/utils/mock'
import Page from './page'
describe('routes/admin/authenticated/sidebar/widgets-pressure-settings/autofire/page', () => {
let wrapper
const props = {
fields: {
sender_name: {},
... |
packages/blaze/materializer.js | allanalexandre/meteor | // Turns HTMLjs into DOM nodes and DOMRanges.
//
// - `htmljs`: the value to materialize, which may be any of the htmljs
// types (Tag, CharRef, Comment, Raw, array, string, boolean, number,
// null, or undefined) or a View or Template (which will be used to
// construct a View).
// - `intoArray`: the array of DO... |
src/basic_usage/use_link_component/View.js | Lucifier129/react-imvc-template | import React from 'react'
import { Link } from 'react-imvc/component'
import Layout from '../../component/Layout'
export default function View() {
return (
<Layout>
<div>Link 组件用来实现页面跳转</div>
<p><Link to="/">点击我去首页,可以回退到本页</Link></p>
<p><Link to="/" replace>点击我去首页,不可以回退到... |
node_modules/core-js/client/library.js | verych/dymatrix | /**
* core-js 2.4.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
app/containers/Contacts/AddEditContactForm/index.js | Get-In-Touch/get-in-touch | import React from 'react';
import { Field, reduxForm } from '../../../../node_modules/redux-form/immutable';
import { Button, Glyphicon } from 'react-bootstrap';
import styles from './styles.css';
import formStyles from '../../../assets/formStyles.css';
import { contactValidation, contactWarning, normalizePhone } from ... |
src/client/test/components/SearchTextInput.spec.js | urbantumbleweed/food-truck-locator | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import SearchTextInput from '../../components/SearchTextInput'
function setup(propOverrides) {
const props = Object.assign({
filterTrucks: expect.createSpy(),
revealTrucks: expect.createSpy(),
text: 'Bur... |
src/components/Checkbox.js | bradparks/elemental | var blacklist = require('blacklist');
var classNames = require('classnames');
var React = require('react/addons');
var Checkbox = React.createClass({
propTypes: {
className: React.PropTypes.string,
disabled: React.PropTypes.bool,
focusOnMount: React.PropTypes.bool,
indeterminate: React.PropTypes.bool,
inlin... |
RNDemo/RNComment/node_modules/react-native/Libraries/Components/WebView/WebView.ios.js | 995996812/Web | /**
* 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/common/components/Footer.js | barolab/razzle-complete-example | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Container, Menu } from 'semantic-ui-react';
export const FooterComponent = ({ t, location }) => {
const links = [
{ path: '/page/not-found', label: t('Unfound page') },
{ path: '/not-found', label... |
src/svg-icons/editor/format-align-right.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignRight = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignRight = pure(EditorFormatAlign... |
RNApp/app/routes/SignIn/SignIn.js | abhaytalreja/react-native-telescope | import React from 'react';
import { Text, View, Image } from 'react-native';
import KeyboardSpacer from 'react-native-keyboard-spacer';
import Button from '../../components/Button';
import GenericTextInput, { InputWrapper } from '../../components/GenericTextInput';
import images from '../../config/images';
import style... |
packages/icons/src/md/notification/SmsFailed.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSmsFailed(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 4c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H12l-8 8 .02-36c0-2.21 1.77-4 3.98-4h32zM26 28v-4h-4v4h4zm0-8v-8h-4v8h4z" />
</IconBase>
);
}
ex... |
ajax/libs/rxjs/2.3.7/rx.js | sympmarc/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/components/Navigation.js | flq/remorse | import React from 'react';
import { NavLink } from 'react-router-dom';
import './Navigation.css';
import GlobalCommands from "./GlobalCommands";
export default function Navigation() {
return (
<nav>
<NavLink to="/typing">Type text</NavLink>
<NavLink to="/test-writing-morse">Test your writing skills</... |
app/routes/events/components/JoinEventFormCountdownProvider.js | webkom/lego-webapp | // @flow
import type { Node, ComponentType } from 'react';
import { Component } from 'react';
import moment from 'moment-timezone';
import type { Dateish, Event, EventRegistration } from 'app/models';
import { registrationIsClosed } from '../utils';
type Action =
| 'REGISTRATION_AVAILABLE'
| '90_SECONDS_LEFT'
... |
src/Select/renderers/ValueRenderer.js | agutoli/react-styled-select | import React from 'react'
import SelectValueLabel from '../partials/SelectValueLabel'
export default function ValueRenderer (option, className) {
return (
<SelectValueLabel
key={option.key}
multi={option.multi}
className={className}
data-select-value-label>{option.label}
</SelectValue... |
node_modules/react-icons/md/account-balance-wallet.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdAccountBalanceWallet = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.6 22.5q1.1 0 1.8-0.7t0.7-1.8-0.7-1.8-1.8-0.7-1.7 0.7-0.8 1.8 0.8 1.8 1.7 0.7z m-6.6 4.1v-13.2h16.6v13.2h-16.6z m15 3.4v1.6q0 1.4-1 2.4t-2.4 1h-23.2q-... |
client/containers/dev-tools.js | AngryPulpGophers/fairshare | 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 defaultIsVisible={false} toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w">
<Lo... |
node_modules/react-bootstrap/es/NavbarBrand.js | mohammed52/something.pk | 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 ... |
src/routes/home/Home.js | binyuace/vote | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
client/components/NotFound.js | EstebanFuentealba/biobiochile-mobile-spa | import React from 'react';
export default class NotFound extends React.Component{
render() {
return <h1>ERROR 404</h1>
}
}
|
src/react.js | aparticka/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
ajax/libs/yui/3.9.0pr2/event-focus/event-focus-coverage.js | kalkidanf/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
ajax/libs/rxjs/4.0.0/rx.lite.js | sashberd/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo... |
src/components/Giveaway.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import styled from 'styled-components'
import Announcement from './Announcement'
import { graphql, useStaticQuery, Link } from 'gatsby'
import Img from 'gatsby-image'
import { motion } from 'framer-motion'
const StyledGiveaway = styled.div`
border-top: 1px solid #cecece;
padding-top: 1rem... |
node_modules/react-icons/go/quote.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoQuote = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m7.5 20v10h10v-10h-5s0-5 5-5v-5s-10 0-10 10z m25-5v-5s-10 0-10 10v10h10v-10h-5s0-5 5-5z"/></g>
</Icon>
)
export default GoQuote
|
src/components/common/admin/analytics/AnalyticsResultsTable.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { urlToSource, urlToCollection } from '../../../../lib/urlUtil';
const localMessages = {
name: { id: 'analytics.table.name', defaultMessage: 'Name' },
count: { id: 'analytics.table.count... |
src/components/Skills.js | jasonrundell/jasonrundell-react-site-2017 | import React from 'react';
import FontAwesome from 'react-fontawesome';
import './Skills.css';
const Skills = () => (
<div>
<div className="ls-row">
<div className="ls-col-100">
<h1>Skills</h1>
<section className="ls-row">
<div className="skills-group ls-col-100 ls-col-lg-4">
... |
public/js/.module-cache/4e85e696bb364db399004e120e19257fe38aba52.js | inquisive/wallet-manager | /**
* @jsx React.DOM
*/
/* not used but thats how you can use touch events
* */
//React.initializeTouchEvents(true);
/* not used but thats how you can use animation and other transition goodies
* */
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
/**
* we will use yes for true
* we will use no f... |
src/Toolbar/MenuIcon.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class MenuIcon extends React.Component {
props: PropsC
static defaultProps = {
component: 'i',
}
static displayName = 'Toolbar.MenuIcon'
render() {
const { component: Component, menu, className, ..... |
client/desktop/app/components/Profile.js | absurdSquid/thumbroll | import React from 'react'
import {Route, RouteHandler, Link, Button} from 'react-router'
import api from './../utils/api'
import auth from './../utils/auth'
class Profile extends React.Component {
constructor(props){
super(props);
this.state = {
teacherData: {
name: '',
email: '',
... |
examples/with-graphql-faunadb/lib/useFetch.js | flybayer/next.js | import { useState, useEffect } from 'react'
export default function useFetch(url, options) {
const [data, setData] = useState(null)
const [error, setError] = useState(null)
useEffect(() => {
const fetchData = async () => {
try {
const res = await fetch(url, options)
const json = await ... |
tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js | kpreisser/TypeScript | //// [file.tsx]
import React = require('react')
export interface ClickableProps {
children?: string;
className?: string;
}
export interface ButtonProps extends ClickableProps {
onClick: React.MouseEventHandler<any>;
}
export interface LinkProps extends ClickableProps {
to: string;
}
export interfac... |
definitions/npm/react-joyride_v1.x.x/flow_>=v0.23.x/react-joyride_v1.x.x.js | nmn/FlowTyped | import React from 'react';
type ReactJoyride$LocaleOption = {
back?: string,
close?: string,
last?: string,
next?: string,
skip?: string,
}
type ReactJoyride$DefaultProps = {
debug: bool,
keyboardNavigation: bool,
locale: ReactJoyride$LocaleOption,
resizeDebounce: bool,
resizeDebounceDelay: number... |
src/converter/components/Amount.js | antoinejaussoin/mobx-fx | import React from 'react';
import classNames from 'classnames';
import { Input, Label } from 'semantic-ui-react';
import styles from './Amount.css';
export default ({ amount, currency, highlighted, onChange }) => (
<Input
className={classNames(styles.container, { [styles.highlighted]: highlighted })}
labelPo... |
ajax/libs/forerunnerdb/1.3.898/fdb-core.js | cdnjs/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/docs/examples/ProgressBar/Example10Percent.js | arnarleifs/ps-react-arnar | import React from 'react';
import ProgressBar from 'ps-react-arnar/ProgressBar';
/** 10% progress */
export default function Example10Percent() {
return <ProgressBar percent={10} width={150} />
}; |
js/src/views/Status/components/Call/Call.spec.js | pdaian/parity | // 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.... |
blueocean-material-icons/src/js/components/svg-icons/device/signal-wifi-off.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceSignalWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.49.01.01.01-.01 3.9-4.86 3.32 3.32... |
examples/with-redux-persist/components/examples.js | BlancheXu/test | import { connect } from 'react-redux'
import Clock from './clock'
import Counter from './counter'
import DataList from './data-list'
function Examples ({ lastUpdate, light }) {
return (
<div>
<Clock lastUpdate={lastUpdate} light={light} />
<Counter />
<DataList />
</div>
)
}
function map... |
src/shared/components/boardCard/boardCard.js | hollomancer/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './boardCard.css';
const BoardCard = ({ name, role, src, description }) => (
<div className={styles.boardCard}>
<img src={src} alt={`Headshot of ${name}`} />
<h6 className={styles.name}>{name}</h6>
<i className={styles.role... |
webroot/rsrc/js/application/uiexample/notification-example.js | folsom-labs/phabricator | /**
* @requires phabricator-notification
* javelin-stratcom
* javelin-behavior
* @provides javelin-behavior-phabricator-notification-example
*/
JX.behavior('phabricator-notification-example', function() {
var sequence = 0;
JX.Stratcom.listen(
'click',
'notification-example',
... |
ajax/libs/webshim/1.15.1/dev/shims/moxie/js/moxie-swf.js | CrossEye/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 ... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/shared/Card.js | Brandon-J-Campbell/codemash | import React from 'react';
import classNames from 'classnames';
import theme from '../theme/static';
import styles from './Card.css';
export default function Card({ children }) {
return (
<div className={classNames(styles.card, styles[theme])}>{children}</div>
);
}
|
app/components/BusStops/LinkBusStop.js | Donluigimx/transporta2_admin | import React from 'react';
import Plus from 'react-icons/fa/plus'
export default ({routes, onSelectChange, onCreateLink}) => (
<div className="field has-addons">
<div className="control is-expanded">
<div className="select is-fullwidth">
<select name="route" onChange={e => onSel... |
packages/material-ui-icons/src/SignalWifi3BarLockRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0l1.94-2.42V14.5z" /><path d="M15.5 1... |
src/robot/htmldata/lib/jquery.min.js | yahman72/robotframework | /*! 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/forerunnerdb/1.3.724/fdb-core+persist.js | him2him2/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... |
fields/types/boolean/BooleanFilter.js | pr1ntr/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const VALUE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false },
];
function getDefaultValue () {
return {
value: true,
};
}
var BooleanFilter = React.createClass({
propTypes: {
filter: React.Pro... |
include/JS/jquery-1.7.2.min.js | xyleth/Fnh-Returns | /*! 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.frameBord... |
ajax/libs/forerunnerdb/1.3.630/fdb-all.js | emmy41124/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... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | Kgiberson/welp | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
node_modules/native-base/src/basic/Title.js | odapplications/WebView-with-Lower-Tab-Menu | /* @flow */
import React, { Component } from 'react';
import { Text } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Title extends Component {
render() {
return (
<Text ref={c => this._root = c} {...this.props} n... |
app/index.js | luismreis/bootstrap-starter-template-react | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
src/FilterList.js | reactmob/dos-filter | import React from 'react';
import PropTypes from 'prop-types';
import { OrderedMap, Set } from 'immutable';
import { debounce } from 'throttle-debounce';
import { FilterItem } from './FilterItem';
import { Filter } from './Filter';
const emptyFilter = new OrderedMap();
export class FilterList extends React.Component ... |
packages/material-ui-icons/src/SettingsInputCompositeTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M3 16c0 .55.45 1 1 1s1-.45 1-1v-2H3v2zm8 0c0 .55.45 1 1 1s1-.45 1-1v-2h-2v2zm8 0c0 .55.45 1 1 1s1-.45 1-1v-2h-2v2z" opacity=".3" /><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v10c0 1.3... |
src/components/help/help-explorer.js | FranckCo/Operation-Explorer | import React from 'react';
import msdStructure from 'components/connectors/sims-structure'
import Help from './help'
import NotFound from '../not-found';
import Spinner from 'components/shared/spinner';
import D from 'i18n';
const connector = msdStructure
const HelpContainer = ({ simsStructure }) => (
<Help
msdSt... |
node_modules/react-icons/md/note.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdNote = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 9.1v9.3h9.1z m11.6 7.5v13.4c0 1.8-1.4 3.3-3.2 3.3l-26.8 0.1c-1.8 0-3.2-1.6-3.2-3.4v-20c0-1.8 1.4-3.4 3.2-3.4h20z"/></g>
</Icon>
)
export default MdNote
|
ajax/libs/material-ui/4.9.3/esm/ListItemIcon/ListItemIcon.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import ListContext from '../List/Li... |
app/containers/App/index.js | patrykomiotek/seo-monitor-front | /**
*
* App
*
* 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)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';
import F... |
ajax/libs/react-dropzone/4.1.2/index.js | jonobr1/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("prop-types"));
else if(typeof define === 'function' && define.amd)
define(["react", "prop-types"], factory);
else if(typeof exports === 'ob... |
src/scenes/List/components/QuestionList/index.js | Nymoth/aws-quiz | import React, { Component } from 'react';
import {Card, CardHeader, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import QuestionLabels from '../../../../components/QuestionLabels';
import './styles.css';
class QuestionList extends Component {
state = {
correctAnswersVisib... |
app/app.js | c-dagostino/react-boilerplate-example | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import ... |
src/components/FlowText.js | mikebarkmin/gestyled | import React from 'react';
import styled from 'styled-components';
import Text from './Text';
const FlowText = props => <Text fontSize={[1, 2, 3]} {...props} />;
export default FlowText;
|
app.js | websiddu/reactable | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | jdelight/react-router | import React from 'react';
class Announcement extends React.Component {
render () {
var { courseId, announcementId } = this.props.params;
var { title, body } = COURSES[courseId].announcements[announcementId];
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
... |
ajax/libs/antd/1.11.4/antd.min.js | dlueth/cdnjs | /*!
* antd v1.11.4
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.antd... |
docs/app/Examples/collections/Grid/Variations/GridExamplePaddedHorizontally.js | shengnian/shengnian-ui-react | import React from 'react'
import { Grid, Image } from 'shengnian-ui-react'
const GridExamplePaddedHorizontally = () => (
<div>
<p>The following grid has horizontal gutters.</p>
<Grid columns={2} padded='horizontally'>
<Grid.Column>
<Image src='/assets/images/wireframe/paragraph.png' />
<... |
src/modules/universal-discovery/components/selected-content/selected.content.popup.component.js | sunpietro/react-udw | import React from 'react';
import PropTypes from 'prop-types';
import PopupComponent from '../popup/popup.component.js';
import './css/selected.content.popup.component.css';
const SelectedContentPopupComponent = (props) => {
return (
<div className="c-selected-content-popup">
<PopupComponent ... |
src/not-found.react.js | smashercosmo/redux-react-router-issue | import React from 'react';
export default class NotFound extends React.Component {
static propTypes = {
test: React.PropTypes.object.isRequired
};
render() {
return (
<div>
Not Found
{this.props.test.hello}
</div>
);
}
} |
ajax/libs/material-ui/4.9.4/es/Modal/Modal.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { getThemeProps, useTheme } from '@material-ui/styles';
... |
ajax/libs/react-highcharts/8.3.2/RedrawOnPrint.js | dlueth/cdnjs | !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.RedrawOnPrint=r(require("react")):e.RedrawOnPrint=r(e.React)}(this,function(e){return function(e){function r(n){if(t[n])return t[... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | PlantsNetwork/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
tools/serve.js | lycandjava/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 path from 'path';
import cp from 'child_process';
/... |
src/icons/Speakerphone.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Speakerphone extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M70.9,181.5c0-41,25-76.5,60.6-91.5h-7.7c-41.1,0-75.1,32.8-81.1,75.2c-6,1-10.7,7.9-10.7,16.1c0,8.6,5.1,15.4,11.6... |
app/addons/fauxton/appwrapper.js | garrensmith/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/renderers/dom/shared/__tests__/CSSPropertyOperations-test.js | lastjune/react | /**
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.