path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/plot/series/vertical-rect-series.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
ajax/libs/react-datetime/2.11.0/react-datetime.js | sashberd/cdnjs | /*
react-datetime v2.11.0
https://github.com/YouCanBookMe/react-datetime
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), requi... |
web/dashboard/src/layout/ReactPanel.js | unicesi/pascani-library | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
require("../img/close.png");
require("../img/expand.png");
require("../img/collapse.png");
class ReactPanel extends Component {
static defaultProps = {
active: false,
floating: false,
width: 'regular',
id: undefined,
onBeforeOpen:... |
fields/types/text/TextFilter.js | webteckie/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
... |
Libraries/Geolocation/Geolocation.js | nanpian/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/js/components/DataChart/stories/FourDimension.js | grommet/grommet | import React from 'react';
import { Box, DataChart } from 'grommet';
const data = [];
for (let i = 1; i < 32; i += 1) {
data.push({
name: `Name ${i}`,
strength: Math.sin(i / 2.0) * 4,
risk: Math.cos(i / 2.0) * 4,
cost: Math.abs(Math.cosh(i / 2.0) * 16) % 96,
effort: i % 16,
});
}
export const... |
www/js/jquery.mobile-1.4.5.js | coloraddict/test_app | /*!
* jQuery Mobile 1.4.5
* Git HEAD hash: 68e55e78b292634d3991c795f06f5e37a512decc <> Date: Fri Oct 31 2014 17:33:30 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and othercontributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory )... |
app/javascript/mastodon/features/ui/components/column_subheading.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
src/components/topbar/topbarSearch.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { Modal } from 'antd';
import { connect } from 'react-redux';
import Input from '../../components/uielements/input';
const Search = Input.Search;
class TopbarSearch extends Component {
constructor(props) {
super(props);
this.handleOk = this.handleOk.bind(this... |
app/test/unexpectedWithAddons.js | gustavnikolaj/keepass-reader | import unexpected from 'unexpected'
import unexpectedReactShallow from 'unexpected-react-shallow'
import React from 'react'
export var expectForComponents = unexpected
.clone()
.use(unexpectedReactShallow)
.addAssertion('to render as', (expect, subject, value) => {
var renderer = React.addons.TestUtils.creat... |
app/components/LandingPage.js | jaimemarijke/carbon-zero-ui | import React from 'react';
import styles from './LandingPage.scss';
const LandingPage = () => (
<div className={styles.banner}>
<div className={styles.headline}> <b>Zero</b> your carbon impact. </div>
<div>
<div className={styles.totalFootprint}>
<div className={styles.d... |
ajax/libs/vis/0.7.3/vis.js | SimeonC/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 0.7.3
* @date 2014-04-16
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
spa/pages/list-layers.js | chadwilcomb/routemap2 | import React from 'react';
import ampersandMixin from 'ampersand-react-mixin';
import LayersTable from '../components/layers-table';
export default React.createClass({
mixins: [ampersandMixin],
displayName: 'LayersPage',
render () {
const {layers} = this.props;
return (
<div>
... |
app/routes.js | bigappleinsider/auth-client-prod | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import Signin from './components/auth/signin';
import Signout from './components/auth/signout';
import Signup from './components/auth/signup';
import Feature from './components/feature';
import Welcome from... |
fields/types/geopoint/GeoPointColumn.js | benkroeger/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var GeoPointColumn = React.createClass({
displayName: 'GeoPointColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
app/containers/DeckListContainer.js | Ruin0x11/fleet | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Home from '../components/Home';
import DeckList from '../components/DeckList';
import { getDeckList } from '../selectors/port';
function mapStateToProps (state) {
if(!state.portData.api_deck_port) {... |
ajax/libs/jquery/1.11.0/jquery.js | rm-hull/cdnjs | /*!
* jQuery JavaScript Library v1.11.0
* 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-01-23T21:02Z
*/
(function( global, factory ) {
if ... |
Agenda/src/components/app.js | interlegis/agenda-evento | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getUsuario } from '../actions';
import Navbar from './navbar';
class App extends Component {
constructor(props){
super(props);
}
componentWillMount() {
if (this.props.authenticated) {
this.props.getUsuario();... |
src/templates/tag-template.js | amoseui/blog | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
src/Editor/Editor.js | skystebnicki/chamel | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import ThemeService from '../styles/ChamelThemeService';
import ContentHtml from './ContentHtml';
import ContentSource from './ContentSource';
// Types of content views
const HTML_VIEW = 'html';
const SOURCE... |
examples/PropTable.js | azendoo/react-overlays | import merge from 'lodash/object/merge';
import React from 'react';
import Label from 'react-bootstrap/lib/Label';
import Table from 'react-bootstrap/lib/Table';
let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, '');
function getPropsData(componentData, metadata){
let props = componentData... |
packages/react/components/tabs.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7Tabs extends React.Component {
construc... |
ajax/libs/angular.js/1.0.0rc6/angular-scenario.js | nolsherry/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/IFrameRoutes.js | material-components/material-components-web-catalog | import React from 'react';
import {Route, withRouter} from 'react-router-dom';
import {ButtonHeroLegacy} from './ButtonCatalog';
import {CardHero} from './CardCatalog';
import {CheckboxHero} from './CheckboxCatalog';
import {ChipsHero} from './ChipsCatalog';
import {DialogHero} from './DialogCatalog';
import {DrawerHer... |
blueocean-material-icons/src/js/components/svg-icons/image/brightness-2.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
ImageBrightness2.displayName = 'Im... |
generators/app/templates/app/src/components/SOSearch/SOSearch.js | hasura/generator-hasura-web | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { push } from 'react-router-redux';
import { load as loadResults } from './Actions';
import SOQuestionsList from '../SOQuestionsList/SOQuestionsList';
import SOHot from '../SOHot/SOHot';
import {
LOAD_REQUE... |
ajax/libs/rxjs/2.1.15/rx.js | michaelgarner/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
examples/flux-todomvc/js/components/TodoApp.react.js | lilien1010/flux | /**
* Copyright (c) 2014-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.
*/
/**
* This c... |
common/routes/HomePage/containers/Service.js | luanlv/minhphat | import React from 'react'
import {Link} from 'react-router'
export default class Service extends React.Component {
render () {
const isEn = this.props.isEn
return (
<section id='s_services' className='p-t-100 p-b-100'>
<div className='container'>
<div className='row'>
<di... |
src/components/CreateTeamForm.js | theCoolKidsJavaScriptMeetup/cuddlyGuacamole | import React from 'react'
import { Formik } from 'formik';
import Yup from 'yup';
import Firebase from 'firebase'
import ReactMixin from 'react-mixin'
import ReactFireMixin from 'reactfire'
const CreateTeamForm = ({ match, history }) => {
return (<div className='Content'>
<h2>Create A Team</h2>
<di... |
docs/app/Examples/collections/Message/States/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const MessageStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Hidden'
description='A... |
ajax/libs/griddle-react/1.0.0-alpha.10/griddle.min.js | dlueth/cdnjs | !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Griddle=n(require("react")):e.Griddle=n(e.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_3__){return function(e){function n(r){i... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | greatdinosaur/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
src/svg-icons/action/settings-backup-restore.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBackupRestore = (props) => (
<SvgIcon {...props}>
<path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.... |
Yingping/app/components/detail/ActorPage.js | ganguo/yingping_rn | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
ListView,
TouchableOpacity,
ScrollView,
} from 'react-native';
import CommonModules,{
ThemeStyle,
statusHeight,
GlobalStyle,
MaterialIcons,
LoadingWidget,
fetchCelebrityInfo,
fetchCelebrityMovies,
... |
packages/docs/components/Examples/linkify/gettingStarted.js | draft-js-plugins/draft-js-plugins | // It is important to import the Editor which accepts plugins.
import Editor from '@draft-js-plugins/editor';
import createLinkifyPlugin from '@draft-js-plugins/linkify';
import React from 'react';
// Creates an Instance. At this step, a configuration object can be passed in
// as an argument.
const linkifyPlugin = cr... |
packages/material-ui-icons/src/Battery90.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z" /><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V8H7z" /></g>
, 'Battery90');
|
node_modules/react-icons/md/insert-emoticon.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdInsertEmoticon = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 29.1q-2.9 0-5.2-1.6t-3.3-4.1h17q-1 2.5-3.3 4.1t-5.2 1.6z m-5.9-10.7q-1 0-1.7-0.8t-0.8-1.7 0.8-1.8 1.7-0.7 1.8 0.7 0.7 1.8-0.7 1.7-1.8 0.8z m11.8 0q-1.1 0-1... |
fields/types/boolean/BooleanColumn.js | Redmart/keystone | import React from 'react';
import classnames from 'classnames';
import Checkbox from '../../../admin/client/components/Checkbox';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var BooleanColumn = React.creat... |
packages/mineral-ui-icons/src/IconExposureNeg1.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconExposureNeg1(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
resources/docstrap-master/template/static/scripts/jquery.min.js | nadias/fikagame | /*! 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 ... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | rafmsou/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize: '.8rem',
};
var Cloudin... |
node_modules/react-router/es6/RouteContext.js | MichaelWiss/React_E | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
ajax/libs/babel-core/5.0.3/browser-polyfill.js | kartikrao31/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/react-dom/lib/ReactMarkupChecksum.js | lousanna/sinatrademo | /**
* 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/material-ui-icons/src/LocalPrintshopRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 8H5c-1.66 0-3 1.34-3 3v4c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2h2c1.1 0 2-.9 2-2v-4c0-1.66-1.34-3-3-3zm-4 11H9c-.55 0-1-.45-1-1v-4h8v4c0 .55-.45 1-1 1zm4-7c-.55 0-1-.45-1-1s.45-1 1-1 ... |
imports/ui/Carousel/index.js | smirkspace/smirkspace | import React, { Component } from 'react';
import Slider from 'react-slick';
import Button from '../SpaceButton';
const NextArrow = React.createClass({
render() {
return (
<div {...this.props}>
<button type="button" className="col-sm-offset-6"><i className="glyphicon glyphicon-arrow-right" aria-hid... |
fields/types/date/DateField.js | Tangcuyu/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
/*
TODO: Implement yearRange Prop, or deprecate for max / min values (better)
*/
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD... |
client/scripts/components/user/dashboard/disclosure-archive-button/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
apps/marketplace/components/Brief/Edit/AddSellerActions.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import AUlinklist from '@gov.au/link-list/lib/js/react.js'
import styles from './AddSellerActions.scss'
const AddSellerActions = props => {
const { id, onRemoveSellerClick } = props
return (
<div className={styles.selectedItemActionsContainer}>
... |
packages/material-ui-icons/src/MessageOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4z" /><path d="M6 12h12v2H6v-2zM6 9h12v2H6V9zM... |
examples/todomvc/test/components/MainSection.spec.js | chentsulin/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import MainSection from '../../components/MainSection'
import TodoItem from '../../components/TodoItem'
import Footer from '../../components/Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoFilters... |
examples/src/components/States.js | foxbroadcasting/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
const STATES = require('../data/states');
var StatesField = createClass({
displayName: 'StatesField',
propTypes: {
label: PropTypes.string,
searchable: PropTypes.bool,
... |
packages/javascript/reactjs/react-getstart/react-contact-manager/src/index.js | sharkspeed/dororis | // src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
import { Provider } from 'react-redux'
import 'semantic-ui-css/semantic.min.css'
import './index.css';
import App from './App';
import store from './store'
import registerServiceWorker from ... |
ajax/libs/js-data-http/3.0.0-beta.4/js-data-http.js | wout/cdnjs | /*!
* js-data-http
* @version 3.0.0-beta.4 - Homepage <https://github.com/js-data/js-data-http>
* @copyright (c) 2014-2016 js-data-http project authors
* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>
*
* @overview HTTP (XHR) adapter for js-data in the browser.
*/
(function webpackUniversalM... |
client/src/routes.js | koi-science/incubator-server | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import DeviceListPage from './components/DeviceListPage';
import DevicePage from './components/DevicePage';
export default (
<Route path="/" component={App}>
<IndexRoute component={DeviceListPa... |
src/main/resources/web/lib/jquery.min.js | m1k3lin0/SDNProject | /*! 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... |
packages/material-ui-icons/src/Subject.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'Subject');
|
archimate-frontend/src/main/javascript/components/view/diagram/DragWrapper.js | zhuj/mentha-web-archimate | import React from 'react';
import { DragSource } from 'react-dnd';
const nodeSource = {
beginDrag(props) {
return props;
}
};
@DragSource('node-source', nodeSource, (connect, monitor) => ({
connectDragSource: connect.dragSource(),
connectDragPreview: connect.dragPreview(),
isDragging: monitor.isDragging... |
react-ui/src/components/contact/input/StepTwo.js | MaGuangChen/resume-maguangchen | import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../../../actions/actions';
import Slider from './SalarySlider';
import Calendar from './Calendar';
const StepTwo = (props) => {
const { year, month, date, hour, minute, dispatch,
showCalendar, submitSelectedTime, t... |
packages/cp-frontend/src/components/instances/empty.js | yldio/copilot | import React from 'react';
import { Col, Row } from 'react-styled-flexboxgrid';
import { P } from 'joyent-ui-toolkit';
export default () => (
<Row>
<Col xs={12}>
<P>You don't have any instances</P>
</Col>
</Row>
);
|
__tests__/App.js | ypxu87/listener | import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<App />
);
});
|
src/modules/mapping/components/CwpDialog/SectorPicker.js | devteamreims/4me.react | // @flow
import React, { Component } from 'react';
import { sectors as envSectors } from '../../../../shared/env';
const {
getClusters,
prettyName,
} = envSectors;
import SingleGroupPicker from './SingleGroupPicker';
class SectorPicker extends Component {
render() {
const {
boundSectors,
tempS... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | ro-savage/create-react-app | /**
* 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 from 'react';
import './assets/style.css';
export default () => <p id="feature-css-inclusion">We love useless text.</p>;
|
src/collections/BootNavs/BootNavLink.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
getRef: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
disabled: PropTypes.bool,
acti... |
src/docs/examples/ProgressBar/Example100Percent.js | tlraridon/ps-react-train-tlr | import React from 'react';
import ProgressBar from 'ps-react-train-tlr/ProgressBar';
/** 100% Progress */
export default function Example100Percent() {
return <ProgressBar percent={100} width={150} />
} |
ajax/libs/material-ui/4.10.1/es/ScopedCssBaseline/ScopedCssBaseline.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{withStyles}from"@material-ui/core/styles";import{html,body}from"../CssBa... |
stalk-messenger/examples/ComponentExample/app/components/tabs/follows/index.js | JohnKim/stalk.messenger | /**
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
View,
StyleSheet,
Text
} from 'react-native';
class FollowsMain extends Component {
static propTypes = {
navigator: React.PropTypes.object.isRequired,
};
eventNavBarButton(key) {
console.log(key);
}
constr... |
ajax/libs/6to5/3.0.9/browser-polyfill.js | janpaepke/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... |
app/containers/LanguageProvider/index.js | ducthong1991/React-Sagas | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
client/src/components/svg/HomeIcon.js | Wiredcraft/jekyllpro-cms | import React from 'react';
export default props => {
return (
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
<path d="M0 0h24v24H0z" fill="none" />
</svg>
);
};
|
app/javascript/mastodon/features/ui/components/column_subheading.js | hugogameiro/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
app/components/Button/messages.js | jakubrohleder/aurelius | /*
* InsertButton Messages
*
* This contains all the text for the InsertButton component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.components.InsertButton.header',
defaultMessage: 'This is the InsertButton component !',
},
});
|
src/shared/components/IndexComponent.js | poetcyborg/redux-app-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const newTitleRef = React.createRef();
class IndexComponent extends Component {
changeTitle() {
this.props.changeTitle(newTitleRef.current.value);
}
render() {
return (
<div>
<div cl... |
client/src/components/Dashboard.js | jobn/iceman | // @flow
import React, { Component } from 'react';
export default class Dashboard extends Component<*> {
render() {
return (
<h1>Dashboard</h1>
);
}
}
|
client-react/index/list.js | BclEx/generator-xrm-core | /*
* generator-xrm
* https://github.com/BclEx/generator-xrm
*
* Copyright (c) 2015 Sky Morey, contributors
* Licensed under the MIT license.
*/
'use strict';
// jshint multistr: true
// External libs.
var jsx = require('../../jsx');
var _ = require('lodash');
var chalk = require('chalk');
funct... |
src/components/currency/index.js | aruberto/globalize-webpack-test | import React, { Component } from 'react';
import Globalize from 'globalize';
const basicCurrencyFormatter = Globalize.currencyFormatter('GBP');
const accountingFormatter = Globalize.currencyFormatter('GBP', { style: 'accounting' });
const nameFormatter = Globalize.currencyFormatter('GBP', { style: 'name' });
const cod... |
src/native/app/Root.js | TheoMer/este | // @flow
import App from './App';
import Fela from '../../common/components/FelaProvider';
import React from 'react';
import configureFela from '../configureFela';
import { MemoryRouter } from 'react-router';
import { Provider as Redux } from 'react-redux';
import { Image, Text, TextInput, TouchableOpacity, View } from... |
packages/docs/components/Examples/image/AddImageEditor/index.js | draft-js-plugins/draft-js-plugins | import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from '@draft-js-plugins/editor';
import createImagePlugin from '@draft-js-plugins/image';
import ImageAdd from './ImageAdd';
import editorStyles from './editorStyles.module.css';
const imagePlugin = createImagePlugin();
const plu... |
pages/about.js | halkeye/gavinmogan.com | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import Header from '../components/header.js';
import { withRouter } from 'next/router';
export class About extends React.Component {
static get propTypes () {
return {
router: PropTypes.object.isRequired
};
}
constructor (... |
files/zxcvbn/1.0/zxcvbn.js | hubdotcom/jsdelivr | (function(){var w,p,q,x,J,K,L,M,N,O,P,Q,y,s,z,R,S,T,U,V,W;P=function(b){var a,d;d=[];for(a in b)d.push(a);return 0===d.length};y=function(b,a){return b.push.apply(b,a)};V=function(b,a){var d,c,e,f,g;f=b.split("");g=[];c=0;for(e=f.length;c<e;c++)d=f[c],g.push(a[d]||d);return g.join("")};R=function(b){var a,d,c,e;d=[];c=... |
ajax/libs/yui/3.7.3/datatable-body/datatable-body-coverage.js | Showfom/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... |
lib/Checkbox/stories/Checkbox.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
storiesOf('Checkbox', module)
.addDecorator(withReadme(readme))
.add('Basic Usage', () => (<BasicUsage />));
|
app/javascript/mastodon/features/compose/components/navigation_bar.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
ajax/libs/react/0.14.0-beta1/react.min.js | jonobr1/cdnjs | /**
* React v0.14.0-beta1
*
* 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 directo... |
test/components/DataItem.spec.js | CPatchane/cozy-collect | 'use strict'
/* eslint-env jest */
import React from 'react'
import { shallow } from 'enzyme'
import { tMock } from '../jestLib/I18n'
import { DataItem } from '../../src/components/DataItem'
import datatypesToTest from '../../src/config/datatypes'
const hexColorMock = '#297EF2'
describe('DataItem component', () =... |
src/svg-icons/notification/mms.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
votrfront/js/MojeHodnoteniaPage.js | fmfi-svt/votr |
import React from 'react';
import _ from 'lodash';
import { MojePredmetyColumns } from './MojePredmetyPage';
import { StudiumSelector } from './StudiumSelector';
import { CacheRequester, Loading } from './ajax';
import { coursesStats, renderCredits, renderWeightedStudyAverage } from './coursesStats';
import { classFor... |
lib/jquery/jquery-1.10.2.js | Chitrank-Dixit/suryoday_moodle | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
js/components/side/nav_item.js | Krelix/krelix.github.io | /**
* Created by @krelix on 25/03/2016.
*/
import React from 'react';
import {Link, IndexLink} from 'react-router';
export default class NavItem extends React.Component {
render() {
// Dirty...ish ? Fix it using the router ?
if (this.props.isIndex === true) {
return (
<IndexLink to={this.prop... |
src/components/ShuffleDrawHistory.js | ansonpellissier/gordon-shuffle-react | import React, { Component } from 'react';
import { Link } from 'react-router';
import { isTicketDrawable } from '../core';
class ShuffleDrawHistory extends Component {
render() {
const { tickets } = this.props;
const sortedTicketsListItems = tickets
.map(t => ({
number: ... |
examples/amp-script/todomvc.ssr.js | jmadler/amphtml | !function(){"use strict";function e(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function t(t,n){var o=[],r=void 0,i=void 0,l=void 0,a=void 0;for(a=arguments.length;a-- >2;)K.push(arguments[a]);for(n&&n.children&&(K.length||K.push(n.children),delete n.children);K.length;)if((i=K.pop())inst... |
src/components/common/sectionheader.js | liuyuanquan/kankan | import React from 'react';
class SectionHeader extends React.Component {
render() {
return (
<div className='sectionheader'>
{
this.props.header.map((item, index, arr) => {
return item.show ? <div className={index === 0 ? 'leftarea' : 'rightarea'} key={index}>
<h2>
<a href='javascri... |
src/svg-icons/device/signal-wifi-3-bar-lock.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3BarLock = (props) => (
<SvgIcon {...props}>
<path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-... |
src/withOkapiKy.js | folio-org/stripes-core | import React from 'react';
import PropTypes from 'prop-types';
import ky from 'ky';
import { withStripes } from './StripesContext';
const withOkapiKy = (WrappedComponent) => {
class HOC extends React.Component {
static propTypes = {
stripes: PropTypes.shape({
okapi: PropTypes.shape({
tena... |
packages/material-ui-icons/src/FilterDramaOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 ... |
ajax/libs/react-instantsearch/4.1.1/Connectors.js | jonobr1/cdnjs | /*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
packages/type/examples/styled-components/src/index.js | carbon-design-system/carbon-components | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
examples/InputFields.js | chris-gooley/react-materialize | import React from 'react';
import Input from '../src/Input';
import Row from '../src/Row';
export default
<Row>
<Input placeholder="Placeholder" s={6} label="First Name" />
<Input s={6} label="Last Name" />
<Input s={12} label="disabled" defaultValue="I am not editable" disabled />
<Input type="passwor... |
examples/todos/index.js | edge/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp from './reducers'
import App from './components/App'
let store = createStore(todoApp)
render(
<Provider store={store}>
<App />
</Provid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.