path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/stories/list/unstyled-list.js | kemuridama/rectangle | import React from 'react';
export default class UnstyledList extends React.Component {
render() {
return (
<div className="con">
<div className="p">
<div className="p__body">
<ul className="list list--unstyled">
<li>List Item</li>
<li>List Item</li... |
node_modules/touchstonejs/lib/ui/KeypadButton.js | robhowell/snake-diary-web | var React = require('react/addons'),
classnames = require('classnames'),
Tappable = require('react-tappable'),
Navigation = require('../mixins/Navigation');
module.exports = React.createClass({
mixins: [Navigation],
propTypes: {
action: React.PropTypes.func,
aux: React.PropTypes.bool,
className: React.PropT... |
src/scripts/components/user/UserForm.component.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program 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 ... |
app/javascript/spec/remove-catalog-item-modal/remove-catalog-item-modal.spec.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import configureStore from 'redux-mock-store';
import fetchMock from 'fetch-mock';
import { mount, shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import RemoveCatalogItemModal from '../../components/remove-catalog-item-modal';
import { removeCatalogItems } from '../../component... |
ajax/libs/react/0.11.0/react.js | aaqibrasheed/cdnjs | /**
* React v0.11.0
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var d... |
test/InputSpec.js | mmartche/boilerplate-shop | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Button from '../src/Button';
import DropdownButton from '../src/DropdownButton';
import Glyphicon from '../src/Glyphicon';
import Input from '../src/Input';
import MenuItem from '../src/MenuItem';... |
src/components/aboutEth.js | ckwong93/TailsFromTheCrypt | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import Nav from '../components/nav';
import sr from './scrollReveal.js'
export default class AboutEth extends Component {
props: Props;
componentDidMount = () => {
const config_eth_title = {
origin: 'top',
... |
ajax/libs/react-select/1.0.0-rc.8/react-select.es.js | joeyparrish/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
client/components/navbar/loggedUser.js | TecProgPurrsuit/TeamBasedLearningApp | /**
* This file is responsible for creating links to all pages on navbar when the user is logged
*
* @summary Navbar when the user is logged.
* @class LoggedUser
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { selectGroupAnswering, selec... |
components/Form/Checkbox/Checkbox.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import cx from 'classnames';
import uniqueId from 'lodash/fp/uniqueId';
import css from './Checkbox.css';
import noop from '../../../utils/noop';
import Icon from '../../Icon/Icon';
import ScreenReadable from '../../ScreenReadable/ScreenRead... |
src/svg-icons/maps/streetview.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
jquery1.8.1/jquery-1.8.1.min.js | Cai-Dongsheng/Cai-Dongsheng.github.io | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
test/unit/src/common/components/repository-row/t_repository-row.js | canonical-ols/build.snapcraft.io | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import { RepositoryRowView } from '../../../../../../src/common/components/repository-row';
import { Row } from '../../../../../../src/common/components/vanilla/table-interactive';
import {
NameMismatchDropdown,
RemoveRepoDro... |
ajax/libs/rxjs/2.4.8/rx.compat.js | kiwi89/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
};
... |
app/containers/ReleaseNotes.js | LeagueDevelopers/lol-skins-viewer | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ReleaseNotes from '../components/ReleaseNotes';
import * as releaseNotesActionCreators from '../actions/releaseNotes';
@connect(
state => ({
releases: state.releaseNote... |
ajax/libs/monaco-editor/0.3.1/min/vs/editor/editor.main.nls.zh-cn.js | seogi1004/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
*-------------------------------------... |
src/TimePicker/TimePicker.js | pradel/material-ui | import React from 'react';
import warning from 'warning';
import TimePickerDialog from './TimePickerDialog';
import TextField from '../TextField';
import {formatTime} from './timeUtils';
const emptyTime = new Date();
emptyTime.setHours(0);
emptyTime.setMinutes(0);
emptyTime.setSeconds(0);
emptyTime.setMilliseconds(0);... |
src/svg-icons/maps/navigation.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
docs/src/app/components/pages/components/GridList/ExampleSingleLine.js | verdan/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
src/containers/__tests__/app-container-test.js | noahsug/sprite-world | import React from 'react'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import { shallow } from 'enzyme'
import AppContainer from '../AppContainer'
import reducers from '../../reducers'
describe('app', () => {
let app
beforeEach(() => {
const store = createStore(reducers)
app =... |
ajax/libs/yasr/1.1.8/yasr.min.js | Mrkebubun/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASR=e()}}(function(){var e;return function t(e,n,r){function i(a,s){if(!n[a]){if(!e... |
ajax/libs/yui/3.10.1/datatable-core/datatable-core-debug.js | WireShout/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/svg-icons/action/announcement.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAnnouncement = (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-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/>
</SvgIcon>
);
ActionAnnouncement = pu... |
examples/fiber/debugger/src/Editor.js | bspaulding/react | import React, { Component } from 'react';
class Editor extends Component {
constructor(props) {
super(props);
this.state = {
code: props.code
};
}
render() {
return (
<div style={{
height: '100%',
width: '100%'
}}>
<textarea
value={this.state.c... |
components/Footer.js | jkling38/carbon | import React from 'react'
import Link from 'next/link'
import { COLORS } from '../lib/constants'
const Footer = props => (
<div className="mt3">
<div className="mt3">
<Link href="/about">
<a className="link">about</a>
</Link>
<a className="link" href="https://github.com/dawnlabs/carbon/... |
src/index.js | Esslamb/my-portfolio | import React from 'react';
import ReactDOM from 'react-dom';
import WebFont from 'webfontloader';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
WebFont.load({
google: {
families: ['Work Sans:300,400,700', 'sans-serif']
}
});
Re... |
js/components/Timelines/Card.js | furgat/sabertoot | 'use strict';
import React from 'react';
export default class Card extends React.Component {
render() {
const defaults = { userIcon: 'iconpath' };
const {cardHeader, cardType, userUrl, displayName, userName, timeStamp, cardMsg} = this.props;
const {userIcon} = (this.props.userIcon === undefined ? default... |
src/modules/remindersList/RemindersListRenderer.native.js | kuzzmi/rmndrz | import React from 'react';
import {
StyleSheet,
ListView,
View,
} from 'react-native';
import { RemindersListItem } from '../remindersListItem';
export default function(props) {
const ds = new ListView.DataSource({
rowHasChanged: (r1, r2) => r1 !== r2,
});
const data = ds.cloneWithRow... |
ajax/libs/vis/1.1.0/vis.js | shobhitmittal/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 1.1.0
* @date 2014-06-06
*
* @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... |
src/components/App.js | AndrewGibson27/react-webpack-single-page-app | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
mounted: false
};
}
componentDidMount() {
const self = this;
setInterval(function(){
self.setState({
... |
src/components/Base/Form/Button/index.spec.js | apedyashev/react-calendar-app | import React from 'react';
import test from 'ava';
import {shallow} from 'enzyme';
import sinon from 'sinon';
import Button from './index.js';
test('Button', (t) => {
const props = {
type: 'submit',
disabled: false,
onClick: sinon.spy(),
};
let el = shallow(<Button {...props}>Go</Button>);
t.is(el... |
NativeBaseDemo/demo/Drawer/ZWDrawView.js | MisterZhouZhou/ReactNativeLearing | import React, { Component } from 'react';
import {StyleSheet, Text, View, TouchableOpacity, Dimensions, Image} from 'react-native';
import {Drawer} from '../../src';
const {width, height} = Dimensions.get('window');
export default class ZWDrawView extends Component {
static navigationOptions = {
title:'ZWDrawVie... |
test/PagerSpec.js | zerkms/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pager from '../src/Pager';
import PageItem from '../src/PageItem';
describe('Pager', function () {
it('Should output a unordered list as root element with class "pager"', function () {
let instance = ReactTestUtils.renderInt... |
node_modules/react-icons/fa/dollar.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaDollar = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.3 26.4q0 3.5-2.2 5.9t-5.8 3.1v3.9q0 0.3-0.2 0.5t-0.5 0.2h-3q-0.3 0-0.5-0.2t-0.2-0.5v-3.9q-1.5-0.2-2.8-0.7t-2.3-1-1.7-1.1-1-0.8-0.4-0.4q-0.4-0.5 0-0.9l2.3-3q0.1-0.3... |
examples/counter/containers/App.js | hzoo/redux | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider r... |
src/components/Breadcrumb/index.js | jiangxy/react-antd-admin | import React from 'react';
import {Breadcrumb, Icon} from 'antd';
import sidebarMenu, {headerMenu} from 'menu.js'; // 注意这种引用方式
import Logger from '../../utils/Logger';
import './index.less';
const Item = Breadcrumb.Item;
const logger = Logger.getLogger('Breadcrumb');
/**
* 定义面包屑导航, 由于和已有的组件重名, 所以改个类名
*/
class Brea... |
example/normal(react)/client/static/js/index.wp.js | dnxbf321/node-project-template | import React from 'react'
import ReactDom from 'react-dom'
import App from './app.jsx'
console.log('client = ', client, typeof client)
console.log('client.publicPath = ', client.publicPath)
console.log('debug = ' + debug, typeof debug)
console.log('array1 = ', array1)
let arr = [1, 2, 3]
let copyArr = [...arr]
consol... |
src/views/components/chatroom/comment/comment-no-data.js | EragonJ/Kaku | import React, { Component } from 'react';
import L10nSpan from '../../shared/l10n-span';
class CommentNoDataComponent extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="comment">
<div className="comment-no-data">
<L10nSpan l10nId="chatroo... |
dashboard/src/containers/DevTools.js | checkr/codeflow | 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"
>
... |
client/routes/Items/components/ItemDeletePrompt.js | patzj/ims | import React from 'react'
import { connect } from 'react-redux';
import { itemDelete } from '../../../actions/items-action';
import { closeItemModal } from '../../../actions/modal-action';
let ItemDeletePrompt = ({currentItem, yes, no}) => {
return (
<div className="row">
<div className="row te... |
test/dashboard-test.js | DarwinSmith/tentara-pelajar-client | /**
* Created by lightmitch on 4/13/17.
*/
import React from 'react';
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const mainContent = renderer.create(
<MainContent/>
).toJSON();
expect(mainContent).toMatchSnapshot();
});
|
example/examples/PolygonCreator.js | parkling/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js | barakmitz/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleLoading = () => (
<div style={style.container}>
<RefreshI... |
node_modules/grunt-cmd-transport/node_modules/handlebars/node_modules/uglify-js/tmp/app.js | luxueyan2008/family-web | /* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Build: http://www.modernizr.com/download/#-iepp
*/
;window.Modernizr=function(a,b,c){function w(a,b){return!!~(""+a).indexOf(b)}function v(a,b){return typeof a===b}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function t(a){j.cssText=a}var d="2.0.6",e={},f=b.do... |
ajax/libs/react-bootstrap/0.24.5/react-bootstrap.js | dc-js/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
client/screens/Guia/GuiaContainer.js | francixcoag/trace_packages | import React, {Component} from 'react'
import { reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import Guia from './Guia';
class GuiaItem extends React.Component {
constructor(props) {
super(props)
console.log(props);
}
render() {
return (
<Guia
accountId={this.props.u... |
src/svg-icons/content/gesture.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... |
src/vlogs/src/App.js | niln1/niln1.com | import React, { Component } from 'react';
import Header from './components/Header/';
import VlogsGrid from './components/VlogsGrid';
import API from './utils/API'
class App extends Component {
state = {
vlogs: []
}
componentDidMount() {
this.fetchVlogs()
}
fetchVlogs = () => {
API.getVlogs()... |
ajax/libs/material-ui/4.11.0/AppBar/AppBar.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
ui/src/Components/BookingForm/BookingForm.js | hloughrey/js-end-to-end-app | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class BookingForm extends Component {
constructor(props) {
super(props);
this.state = {
booking: {
cruise: '',
name: '',
email: ''
}
};
this.onChange = this.onChange.bind(this);
}
... |
ajax/libs/polymer/0.5.3/polymer.js | lucasls/cdnjs | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
src/error/index.js | leo60228/HouseRuler | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
index.ios.js | react-native-community/react-native-linear-gradient | /**
* @providesModule LinearGradient
* @flow
*/
import React, { Component } from 'react';
import { processColor, View } from 'react-native';
import NativeLinearGradient, { type Props } from './common';
const convertPoint = (name, point) => {
if (Array.isArray(point)) {
console.warn(
`LinearGradient '${... |
src/components/layout/Nav.js | SpencerCDixon/BleedingEdge | import React, { Component } from 'react';
import { LinkContainer } from 'react-router-bootstrap';
import { RaisedButton } from 'material-ui';
const styles = {
navButton: {
marginRight: '20px',
}
}
class Nav extends Component {
render() {
return (
<div className="nav">
<LinkContainer to="/"... |
client/index.js | bsubedi26/Project-Revised | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware, compose } from 'redux';
import jwtDecode from 'jwt-decode';
import { Router, browserHistory, hashHistory, useRouterHistory } from 'react-router';
i... |
packages/ui-toolkit/src/message/__tests__/message.spec.js | yldio/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import { Message, Title, Description } from '../';
import { Theme } from '../../mocks';
describe('Message', () => {
test('Message', () => {
const tree = renderer
.create(
<Theme>
<Mess... |
src/docs/examples/EyeIcon/EyeIconExample.js | patchygreen/ps-react-patchygreen | import React from 'react';
import EyeIcon from 'ps-react/EyeIcon';
/** SVG Eye Icon */
export default function EyeIconExample() {
return <EyeIcon />;
} |
packages/frint-router-react/src/Switch.spec.js | Travix-International/frint | /* eslint-disable import/no-extraneous-dependencies, func-names, no-unused-expressions */
/* global describe, it */
import { expect } from 'chai';
import React from 'react';
import PropTypes from 'prop-types';
import { shallow, mount } from 'enzyme';
import { createApp } from 'frint';
import { MemoryRouterService } fro... |
src/components/header/mobile/mobile-menu.js | datea/datea-webapp-react | import React from 'react';
import {observer, inject} from 'mobx-react';
import {t, translatable} from '../../../i18n';
import Avatar from '@material-ui/core/Avatar';
import Drawer from '@material-ui/core/Drawer';
import MenuItem from '@material-ui/core/MenuItem';
import MenuList from '@material-ui/core/MenuList';
impor... |
src/mui/input/NullableBooleanInput.spec.js | marmelab/admin-on-rest | import assert from 'assert';
import { shallow } from 'enzyme';
import React from 'react';
import { NullableBooleanInput } from './NullableBooleanInput';
describe('<NullableBooleanInput />', () => {
const defaultProps = {
input: {},
meta: {},
translate: x => x,
};
it('should give t... |
ajax/libs/rxjs/2.3.10/rx.all.compat.js | janpaepke/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... |
docs/app/Examples/collections/Message/Variations/MessageCompactExample.js | ben174/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageCompactExample = () => (
<Message compact>
Get all the best inventions in your e-mail every day. Sign up now!
</Message>
)
export default MessageCompactExample
|
app/common/components/Mark/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { transparentize } from 'polished';
import { blue } from 'common/styles/colors';
export const StyledMark = styled.mark`
color: ${({ color }) => color};
background-color: ${({ bgColor }) => bgColor};
bord... |
actor-apps/app-web/src/app/components/dialog/messages/State.react.js | WangCrystal/actor-platform | import React from 'react';
import { MessageContentTypes } from '../../../constants/ActorAppConstants';
class State extends React.Component {
static propTypes = {
message: React.PropTypes.object.isRequired
};
render() {
const { message } = this.props;
if (message.content.content === MessageContentTy... |
node_modules/webpack-stream/node_modules/webpack/lib/HotModuleReplacement.runtime.js | mwangaben/spendkit | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
/*global $hash$ installedModules $require$ hotDownloadManifest hotDownloadUpdateChunk modules */
module.exports = function() {
// Copied from https://github.com/facebook/react/blob/bef45b0/src/shared/utils/canDefinePro... |
src/bundles/SellerRegistration/EnterPasswordWidget.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import { Provider } from 'react-redux'
import RegisterComponent from '../../RegisterComponent'
import createStore from './redux/create'
import EnterPasswordForm from './components/EnterPasswordForm'
export const EnterPasswordWidget = (props) => {
const store = createStore(props)
return (... |
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-coverage.js | justinelam/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/e... |
src/components/safari/line-wordmark/SafariLineWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './SafariLineWordmark.svg'
/** SafariLineWordmark */
function SafariLineWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'SafariLineWor... |
public/app/components/ui-project-tab/properties-window.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import icons from '../icons';
import PropertiesLabel from '../properties/properties-label';
import PropertiesTitle from '../properties/properties-title';
import PropertiesEditor from '../properties/properties-editor';
import ImageSelectorContainer from '../../containers/ui-pr... |
src/svg-icons/action/settings-input-component.js | pomerantsev/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.... |
ajax/libs/yui/3.14.1/event-custom-base/event-custom-base.js | binki/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/containers/Charts/reactVis/charts/candleStick/candlestick.js | EncontrAR/backoffice | import React from 'react';
import { AbstractSeries } from 'react-vis';
const predefinedClassName = 'rv-xy-plot__series rv-xy-plot__series--candlestick';
export default class CandlestickSeries extends AbstractSeries {
render() {
const {className, data, marginLeft, marginTop} = this.props;
if (!data) {
... |
src/routes/job/View.js | Jose4gg/GSW-P2 | import { Col, Row } from 'react-bootstrap';
import { Paper, RaisedButton } from 'material-ui'
import Layout from '../../components/Layout';
import Link from '../../components/Link'
import React from 'react';
import gql from 'graphql-tag';
import { graphql } from 'react-apollo';
import history from '../../core/history'... |
ajax/libs/x-editable/1.4.6/jquery-editable/js/jquery-editable-poshytip.js | Nadeermalangadan/cdnjs | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
addons/docs/src/frameworks/react/__testfixtures__/8428-js-static-prop-types/input.js | storybooks/storybook | import React from 'react';
import PropTypes from 'prop-types';
// eslint-disable-next-line react/prefer-stateless-function
export default class Test extends React.Component {
static propTypes = {
/**
* Please work...
*/
test: PropTypes.string,
};
render() {
return <div>test</div>;
}
}
e... |
websocket/client/Client/node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.android.js | prayuditb/tryout-01 | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/index.js | tapka/pedigree | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import { createStore, applyMiddleware } from 'redux';
import reducers from './reducers';
import promise from 'redux-promise';
import App from './components/app';
const... |
client/routes.js | realsoftdev/knack | /* eslint-disable global-require */
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './modules/App/App';
import AdminComponents from './components/AdminComponents';
import UserListPage from './modules/Users/pages/UserListPage'
import RecordsListPage from './modules/Records/p... |
packages/material-ui-icons/src/AccountBalanceTwoTone.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M6.29 6l5.21-2.74L16.71 6z" opacity=".3" /><path d="M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-9L2 6v2h19V6l-9.5-5zM6.29 6l5.21-2.74L16.71 6H6.29z" />... |
client/app/schema.js | DynamicTeapot/BitBargain | import React from 'react';
const item = React.PropTypes.shape({
title: React.PropTypes.string.isRequired,
description: React.PropTypes.string.isRequired,
price: React.PropTypes.string,
location: React.PropTypes.string.isRequired,
posted_at: React.PropTypes.string,
updated_at: React.PropTypes.string,
cate... |
src/svg-icons/content/add-box.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddBox = pu... |
src/index.js | tanem/react-redux-playground | import 'babel-core/polyfill';
import React from 'react';
import { render } from 'react-dom';
import Root from './containers/Root';
import configureStore from './store/configureStore';
const store = configureStore();
render(
<Root store={store} />,
document.getElementById('root')
);
|
home/static/Fullcalendar/js/Fullcalendar/fullcalendar.js | sriamazingram/SE2017 | /*!
* FullCalendar v3.6.1
* Docs & License: https://fullcalendar.io/
* (c) 2017 Adam Shaw
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
define([ 'jquery', 'moment' ], factory);
}
else if (typeof exports === 'object') { // Node/CommonJS
module.exports = factory(require('jquery'), ... |
ajax/libs/video.js/5.0.2/alt/video.novtt.js | viskin/cdnjs | /**
* @license
* Video.js 5.0.2 <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>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}e... |
exercise-03/src/components/PokemonPage.js | learnapollo/pokedex-react | import React from 'react'
import { withRouter } from 'react-router'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import PokemonCard from './PokemonCard'
class PokemonPage extends React.Component {
static propTypes = {
router: React.PropTypes.object.isRequired,
params: React.PropType... |
src/react/notifications/notifications.js | pivotal-cf/pivotal-ui | import React from 'react';
import PropTypes from 'prop-types';
import {Icon} from '../iconography';
import {Dropdown} from '../dropdowns';
import classnames from 'classnames';
import {mergeProps} from '../helpers';
const defaultChild = (icon, message) =>
(<div className="dropdown-notifications-none" role="presentati... |
lib/components/analysis/__tests__/advanced-settings.js | conveyal/scenario-editor | // @flow
import React from 'react'
import AdvancedSettings from '../advanced-settings'
import {
mockProfileRequest,
mockRegion,
mockRegionalAnalyses,
mockWithProvider
} from '../../../utils/mock-data'
describe('Components > Analysis > Advanced Settings', () => {
const props = {
showBoundsEditor: jest.fn... |
src/components/navbar/index.js | absolute413/MagnussonFarm.com | import React from 'react'
import Img from 'gatsby-image'
import { Route } from 'react-router-dom'
import Updates from 'components/updates'
const Link = ({ to, children, ...props }) => (
<Route path={to} {...props}>
{({ match }) => (
<li className={match ? 'active' : null}>
<a href={to}>{children}<... |
ajax/libs/yui/3.1.1/loader/loader-base.js | nareshs435/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
App/ui/components/Footer.js | nthbr/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. You can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
... |
ajax/libs/inferno/1.0.0-beta41/inferno-mobx.js | x112358/cdnjs | /*!
* inferno-mobx v1.0.0-beta41
* (c) 2016 Ryan Megidov
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('mobx'), require('./inferno-create-class'), require('./inferno-... |
effcalculator/frontend/assets/js/routes/detectors/containers/forms/LayerForm.js | alvcarmona/efficiencycalculatorweb | /**
* Created by alvarocbasanez on 04/08/17.
*/
import React from 'react'
import {Field, reduxForm} from 'redux-form'
const { DOM: { input, select, textarea } } = React
import {connect} from 'react-redux';
import {Grid, Button, Row, Col, Panel, PageHeader, small} from 'react-bootstrap'
const required = value => val... |
frontend/Editor/TextElements/Link/Link.js | fdemian/Morpheus | import React from 'react';
import {Entity} from 'draft-js';
const Link = (props) => {
const {url} = Entity.get(props.entityKey).getData();
return (
<a href={url}>{props.children}</a>
);
};
export default Link; |
react-router-demo/lessons/08-index-routes/modules/Repo.js | zhangjunhd/react-examples | import React from 'react'
export default React.createClass({
render() {
return (
<div>
<h2>{this.props.params.repoName}</h2>
</div>
)
}
})
|
src/components/ui/atoms/Heading/Heading.js | asukaleido/react-flux-example | import classNames from 'classnames';
import React from 'react';
import s from './Heading.css';
export default function Heading({ children, className }) {
return (
<h1 className={classNames(className, s.container)}>
{children}
</h1>
);
}
Heading.propTypes = {
children: React.PropTypes.string,
cla... |
js/row.js | PhompAng/OpenTLE-Glossary | import React from 'react'
export default class Row extends React.Component {
constructor(props) {
super(props)
}
render() {
return <tr key={this.props.key}>
<td>{this.props.word}</td>
<td>{this.props.meaning}</td>
</tr>
}
}
|
Paths/React/05.Building Scalable React Apps/2-react-boilerplate-building-scalable-apps-m2-exercise-files/After/app/containers/NotFoundPage/index.js | phiratio/Pluralsight-materials | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor i... |
src/components/Carte.js | olivmarcel/aquack | import React, { Component } from 'react';
import ol from "openlayers";
import carroyage from './carr.js';
export default class Carte extends Component {
componentDidMount() {
//let fish = this.props.fish;
let fish = ['algue', 'poisson'];
console.log(fish);
let styleDefault = new ol.style.Style({... |
inventapp/src/Home/Home.js | ladanv/learn-react-js | import React from 'react';
import { FormattedMessage } from 'react-intl';
import styles from './Home.scss';
const Home = () => (
<p className={styles.intro}>
<FormattedMessage
id={'Home.intro'}
defaultMessage={'The goal of this project is to learn React Js ecosystem while creating simple SPA.'}
/... |
src/server.js | Poirette/dotamath | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.