path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
DEM_MVC_UI/src/scripts/components/Organisms/PostArray/index.js | AndreyShpilevoy/DemProject | import React, {PropTypes} from 'react';
import _ from 'lodash';
import ContentHolder from 'Organisms/ContentHolder';
import PostItem from 'Molecules/PostItem';
import TermItem from 'containers/TermItem';
class PostArray extends React.Component {
static propTypes = {
postArray: PropTypes.arrayOf(
PropTypes.... |
rn-15-DrawerNavigator/App.js | KyoungRan/react-native-ex-NDH | import React, { Component } from 'react';
import { Button, Text, Platform, ScrollView, StyleSheet } from 'react-native';
import { DrawerNavigator } from 'react-navigation';
import FirstScreen from './screens/FirstScreen';
import SecondScreen from './screens/SecondScreen';
const DrawerExample = DrawerNavigator(
{
... |
node_modules/react-router/umd/ReactRouter.min.js | rblin081/drafting-client | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
examples/react-router-v4-and-redux/src/App.js | pbeshai/react-url-query | import React, { Component } from 'react';
import {
Route,
} from 'react-router-dom';
import MainPage from './MainPage';
class App extends Component {
render() {
return (
<div>
<h3>react-url-query example: react-router-v4-and-redux</h3>
<Route exact path="/:word" component={MainPage} />
... |
ajax/libs/yui/3.14.0/datatable-body/datatable-body-debug.js | lhorie/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = ... |
app/jsx/gradebook/default_gradebook/GradebookGrid/editors/TotalGradeOverrideCellEditor/index.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
ajax/libs/flocks.js/0.16.1/flocks.min.js | vfonic/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
ajax/libs/6to5/3.0.9/browser-polyfill.js | TerryMooreII/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/react/0.9.0/react.js | solojavier/cdnjs | /**
* React v0.9.0
*/
!function(e){if("object"==typeof exports)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 define,module,exports;return (fun... |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | barakmitz/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="http://lorempixel.c... |
src.test/utils-is-xxx.js | epsitec-sa/electrum | /* global describe it */
import {expect} from 'mai-chai';
import React from 'react';
import {isComponent} from '../src/utils/is-component.js';
import {isStatelessFunctionComponent} from '../src/utils/is-stateless-function-component.js';
/******************************************************************************/... |
ajax/libs/yui/3.17.2/datatable-body/datatable-body-debug.js | JimBobSquarePants/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
src/frontend/containers/auth/admin.js | PiTeam/garage-pi | import React from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import { getAuthPropType } from 'proptypes';
export function requireAdminAuth(Component) {
class AdminAuthenticated extends React.Component {
constructor(props) {
super(props);
this.check... |
transforms/__testfixtures__/undecorate/multiple-decorators.output.js | tizmagik/undecorate-codemod | import React from 'react';
import withParam from 'withParam';
import hoc1 from 'hoc1';
import hoc2 from 'hoc2';
import taggedTemplate from 'taggedTemplate';
const myParam = 'test';
export default withParam(myParam)(hoc1(hoc2()(taggedTemplate`
.thing {}
`(class Thing extends React.Component {
render() {
return... |
node_modules/react-router/es/Route.js | rwarr/futaba-db | 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 _classCallCheck(instance, Constructor) { if (!(insta... |
src/js/components/Winner.js | jwmickey/picture-puzzle | import React from 'react';
export default function Winner({ image, close }) {
return (
<div onClick={close}
className="winner"
style={{backgroundSize:'cover',backgroundImage: 'url('+ image +')'}}><h1>WINNER!</h1></div>
)
} |
packages/browser/src/components/Cell/Cell.js | appbaseio/dejaVu | // @flow
import React from 'react';
import { func, bool, any, object } from 'prop-types';
import { isObject } from '../../utils';
import { dateFormatMap } from '../../utils/date';
import BooleanCell from './BooleanCell';
import TextCell from './TextCell';
import NumberCell from './NumberCell';
import ArrayCell from ... |
packages/reactor-kitchensink/src/examples/Charts/ChartToolbar.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Label, Spacer, Button, Toolbar, SegmentedButton, Menu, MenuItem } from '@extjs/ext-react';
Ext.require([
'Ext.chart.theme.Blue',
'Ext.chart.theme.Green',
'Ext.chart.theme.Muted',
'Ext.chart.theme.Red',
'Ext.chart.theme.Sky',
'Ext.chart.theme.Ye... |
app/scripts/MainViews/Playlist.js | nthitz/playlist_archive_site | import React from 'react'
import request from 'superagent'
import SortableMixin from '../mixins/react-sortable-mixin'
import RefluxActions from '../RefluxActions'
import GrabButton from '../CommonControls/GrabButton'
import RemoveButton from '../CommonControls/RemoveButton'
var mediaRoot = '/media/'
class Song exten... |
src/components/common/layouts/Container/Container.js | AlbertFazullin/redux-form-demo | import React from 'react';
import s from './container.pcss';
export default props => (
<div className={ s.wrapper }>
{ props.children }
</div>
);
export const Header = props => (
<header className={ s.wrapper__header } >
{ props.children }
</header>
);
export const Content = props => (
<div classNa... |
webpack/move_to_foreman/components/common/ConfirmDialog/ConfirmDialog.js | tstrachota/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'patternfly-react';
import Dialog from '../Dialog';
const ConfirmDialog = (props) => {
const {
onCancel, cancelLabel, onConfirm, confirmLabel, confirmStyle, ...otherProps
} = props;
const buttons = [
<Button
key=... |
server/sonar-web/src/main/js/apps/account/components/FavoriteIssueFilters.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/components/DetailScreen.js | CodeLanka/ez-net-app | import React, { Component } from 'react';
import {
StyleSheet,
Linking,
} from 'react-native';
import { Container, Content } from 'native-base';
import PropTypes from 'prop-types';
import TwoColumnView from './common/TwoColumnView';
import BoxItem from './common/BoxItem';
const styles = StyleSheet.create({
cont... |
examples/huge-apps/components/GlobalNav.js | neebz/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
src/components/EyeIcon/EyeIcon.js | abhiisheek/ps-react-abhiisheek | import React from 'react';
/** SVG Eye Icon */
function EyeIcon() {
// Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg
return (
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<g transform="matrix(.02146 0 0 .02146 1 1)" fill... |
lib/index.js | mtuck063/remontant | import React from 'react'
import { render } from 'react-dom'
import Autocomplete from './Autocomplete'
require('../assets/stylesheets/index.scss');
require('../assets/stylesheets/custom.scss');
const App = React.createClass({
getInitialState() {
return { theme: 'custom' }
},
autocompleteCallback(v, autocomp... |
src/components/Word.js | fracasula/react-redux-jest-boilerplate | import React from 'react';
import {Link} from 'react-router-dom';
const Word = (props) => (
<div className="App-word">
<Link to={"/word/" + props.word}>{props.word}</Link>
</div>
);
export default Word;
|
src/svg-icons/communication/stop-screen-share.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStopScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1... |
src/server/modules/core/index.js | worldline/rhapidux | import React from 'react';
import { renderToString } from 'react-dom/server';
import Html from '../../../client/html.jsx';
import Root from '../../../client/components/root/root.jsx';
const register = function(server, options, next) {
server.route({
method: 'GET',
path: '/bundle.js',
handler: {
fi... |
admin/client/App/screens/Item/index.js | ratecity/keystone | /**
* Item View
*
* This is the item view, it is rendered when users visit a page of a specific
* item. This mainly renders the form to edit the item content in.
*/
import React from 'react';
import { Center, Container, Spinner } from '../../elemental';
import { connect } from 'react-redux';
import { Link } from ... |
app/components/PreschoolProject/NoPermission.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
const NoPermissionView = ({ project }) => {
return (
<div>
<div className="alert alert-danger">
<i className="fa fa-lock fa-lg" aria-hidden="true" />
Insufficient Privileges. Only administrators can modify boundary details.
... |
node_modules/react-router/es6/RouterContext.js | aleksandrsmolin/react-redux-weather | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
public/js/components/profile/visitor/activityfeed/activityMain.react.js | IsuruDilhan/Coupley | import React from 'react';
import ActivityContainer from './activityContainer.react';
import ActivityList from './activityListComp.react';
const ActivityMain = React.createClass({
render: function () {
return (
<div>
<div>
<ActivityContainer/>
... |
packages/material-ui-icons/src/FlightLandOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2.5 19h19v2h-19v-2zm16.84-3.15c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l16.57 4.44z" />
, 'FlightLandOutlined');
|
ajax/libs/6to5/2.4.4/browser.js | NameFILIP/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
app/components/HomeBanner.js | ianmilliken/origimill | import React from 'react';
//require('../styles/_page_banner.scss');
class HomeBanner extends React.Component {
render() {
return (
<div className="page-banner">
<h1 className="example">Hi, I'm Ian!</h1>
<p>I specialize in branding, design, + development</p>
</div>
)
}
}
export... |
packages/rex-intl-translator-example/app/app.js | linear-bits/linear-bits | import React from 'react'
import {FormattedMessage} from 'react-intl'
const App = () => (
<div>
<FormattedMessage id='title' description='Title' defaultMessage='TITLE'/>
<p>
<FormattedMessage id='body'
description='Body'
defaultMessage='BODY {val, number}'
values={{
va... |
test/PanelSpec.js | Lucifier129/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Panel from '../src/Panel';
import Table from '../src/Table';
describe('Panel', () => {
it('Should have class and body', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Pane... |
src/components/compact/CompactFields.js | casesandberg/react-color | import React from 'react'
import reactCSS from 'reactcss'
import { EditableInput } from '../common'
export const CompactFields = ({ hex, rgb, onChange }) => {
const styles = reactCSS({
'default': {
fields: {
display: 'flex',
paddingBottom: '6px',
paddingRight: '5px',
positi... |
local-cli/templates/HelloNavigation/App.js | cdlewis/react-native | /**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './views/HomeScreenTabN... |
react-dev/containers/search_bar.js | WDTAnyMore/WDTAnyMore.github.io | import React, { Component } from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import IconButton from 'material-ui/IconButton';
import AutoComplete from 'material-ui/AutoComplete';
import { fetchPosts } from '../actions';
class SearchBar extends Component {
getSearchBarWidth() {
cons... |
pages/advanced/content/size.js | CarlRosell/glamorous-website | module.exports = {
title: 'Optimizing Bundle Size',
description: `
If your use case is really size constrained, then you might consider using the "tiny" version of glamorous for your application.
It is a miniature version of ~glamorous~ with a few limitations:
1. No built-in component factories (~glamo... |
src/svg-icons/editor/show-chart.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShowChart = (props) => (
<SvgIcon {...props}>
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</SvgIcon>
);
EditorShowChart = pure(EditorShowChart);
EditorShowChart.displayNa... |
ajax/libs/rxjs/2.4.3/rx.all.js | bsquochoaidownloadfolders/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
};
... |
web/src/index.js | miaolz123/samaritan | import routes from './routes';
import configureStore from './store/configureStore';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
const store = conf... |
node_modules/babel-core/lib/transformation/transformers/other/react-compat.js | fyafighter/informifly | "use strict";
exports.__esModule = true;
exports.manipulateOptions = manipulateOptions;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newOb... |
src/FAB/FAB.js | mkermani144/wanna | /* eslint-env browser */
import React, { Component } from 'react';
// import { SpeedDial, SpeedDialItem } from 'react-mui-speeddial';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import Add from 'material-ui/svg-icons/content/add';
import Done from 'material-ui/svg-icons/action/done';
import Li... |
react/features/overlay/components/PageReloadOverlay.js | parisjulien/arkadin-jitsimeet | import React from 'react';
import { connect } from 'react-redux';
import { translate } from '../../base/i18n';
import AbstractPageReloadOverlay from './AbstractPageReloadOverlay';
import OverlayFrame from './OverlayFrame';
/**
* Implements a React Component for page reload overlay. Shown before the
* conference is... |
src/client/main/conversation/components/Message.stories.js | leagueofcake/Project-Resistance | import React from 'react';
import { withKnobs, object } from '@storybook/addon-knobs';
import Message from './Message';
export default {
component: Message,
title: 'MainPanel/Conversation/Components/Message',
decorators: [withKnobs],
excludeStories: /.*Data$/,
};
export const messageData = [
{
usernam... |
examples/js/jquery.js | ericariyanto/feedback.js | /*! 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... |
www/docs/en/operations-guide/5.2-rev7/content/search/index-3.js | midonet/midonet-docs | //Auto generated index for searching.
w["packetpipelinemet"]="151";
w["packetqueu"]="151";
w["packetsdrop"]="151";
w["packetsexecut"]="151";
w["packetsonhold"]="151";
w["packetspostpon"]="151";
w["packetsprocess"]="151";
w["page"]="32,63,137";
w["page-s"]="3";
w["pair"]="9,25,39,56,75,117,135,136,152,164,171";
w["parag... |
src/components/app/App.js | jshack3r/ws-redux-counters-router | import React from 'react'
import Header from '../../containers/Header'
import Footer from '../footer/Footer'
const App = ({children}) =>
<div>
<Header />
<hr />
{ children }
<Footer />
</div>
export default App
|
app/components/UpdateBlock.js | Toreant/monster_web | /**
* Created by apache on 15-12-15.
*/
import React from 'react';
import UpdateBlockActions from '../actions/UpdateBlockActions';
import UpdateBlockStore from '../stores/UpdateBlockStore';
class UpdateBlock extends React.Component {
constructor(props) {
super(props);
this.state = UpdateBlockStor... |
ajax/libs/webshim/1.14.3-RC3/dev/shims/moxie/js/moxie.js | ColinEberhardt/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 ... |
tests/menu/Menu.spec.js | isogon/styled-mdl | import React from 'react'
import { shallow } from 'enzyme'
import Portal from 'react-portal'
import { Menu } from '../../src/components/menu/Menu'
import MenuItem from '../../src/components/menu/MenuItem'
import Button from '../../src/components/buttons/Button'
import {
MenuContainer,
MenuOutline,
MenuBase,
} fro... |
app/javascript/src/components/hooks/useClickOutside.js | michelson/chaskiq | // from https://usehooks.com/
import React from 'react'
// Hook
export default function useOnClickOutside (ref, handler) {
React.useEffect(
() => {
const listener = (event) => {
// Do nothing if clicking ref's element or descendent elements
if (!ref.current || ref.current.contains(event.ta... |
MobileApp/App/components/closetrade.js | VowelWeb/CoinTradePros.com | /**
* CoinTradePros.com React Native App
* http://www.cointradepros.com/
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Image,
TouchableOpacity,
PixelRatio,
Text,
TouchableHighlight,
ScrollView,
TextInput,
Picker,
} from 'react-native';
import ImagePicker ... |
examples/medium-app/src/js/server-profiles/ServerProfile.js | brountreeRS/grommet | // (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
var React = require('react');
var MediumResource = require('../MediumResource');
var VIEWS = [
{label: 'Overview', name: 'overview', route: 'server profile overview'},
{label: 'Map', name: 'map', route: 'server profile map'},
{label: 'Activity... |
packages/material-ui-icons/src/SmartphoneSharp.js | allanalexandre/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="M5 1v22h14V1H5zm12 18H7V5h10v14z" /></g></React.Fragment>
, 'SmartphoneSharp');
|
test/JumbotronSpec.js | Azerothian/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | rainyday/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
client/src/javascript/components/modals/ModalFormSectionHeader.js | jfurrow/flood | import React from 'react';
class ModalFormSectionHeader extends React.PureComponent {
render() {
return <h2 className="h4">{this.props.children}</h2>;
}
}
export default ModalFormSectionHeader;
|
docs/pages/TextField/index.js | collegepulse/material-react-components | import Colors from '../../../src/variables';
import Grid, {GridItem} from '../../../src/Grid';
import Page from '../Page';
import React from 'react';
import Switch from '../../../src/Switch';
import TextField from '../../../src/TextField';
class TextFieldDocs extends React.Component {
constructor(props) {
super... |
src/common/components/TextInput.js | skallet/este | // @flow
import type { TextProps } from './Text';
import type { Theme } from '../themes/types';
import React from 'react';
import Text, { computeTextStyle } from './Text';
import color from 'color';
import isReactNative from '../../common/app/isReactNative';
// Universal text input component. By default, it looks like... |
ajax/libs/cyclejs-dom/5.0.0/cycle-dom.js | shelsonjava/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleDOM = f()... |
src/components/frontPageView.js | gordongordon/hom | import {
Toast,
WhiteSpace,
WingBlank,
Button } from 'antd-mobile';
import React from 'react';
// import MobxStore from 'mobxStore'
import views from 'views';
//import FrontPageDisplay from 'frontPageDisplay'
//import {FrontPageTabBar} from 'frontPageTabBar'
import {inject, observer} from 'mobx-re... |
modules/jaggery-apps/admin-dashboard-web/src/site/themes/default/lib/jquery-1.7.1.min.js | ayyoob/product-apim | /*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/components/TagFilters.js | guryanov-a/react-search | import React, { Component } from 'react';
import { connect } from 'react-redux';
import FilterList from './FilterList';
import { searchQuery, filtersQuery } from '../api';
import {
changeSearchOffset,
changeSearchOffsetEnd,
changeCurrentPage,
toggleArticleTagFilter,
} from '../actions';
class TagFilters extend... |
node_modules/react-tools/src/event/__tests__/EventPluginRegistry-test.js | boyers/hamlit | /**
* 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... |
nativeExample/reactNativeDemo/__tests__/index.ios.js | zhanglizhao/react-native-knowledge | 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 />
);
});
|
client/containers/clients.js | vidi-insights/vidi-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import LineChart from '../components/line-chart'
import {Panel} from '../components/index'
import D3 from 'd3'
import Lodash from 'lodash'
export const Clients = React.createClass({
render: function () {
const {data} = this.props
co... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | fhchina/actor-platform | import _ from 'lodash';
import React from 'react';
import mixpanel from 'utils/Mixpanel';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'action... |
__tests__/components/Chart-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Area from '../../src/js/components/chart/Area';
import Axis from '../../src/js/components/chart/Axis';
import Base from '../../src/js/components/chart/Base';
import Chart ... |
components/admin/tools/table/actions/DeleteAction.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
// Services
import { deleteTool } from 'services/tools';
import { toastr } from 'react-redux-toastr';
class DeleteAction extends React.Component {
handleOnClickDelete = (e) => {
if (e) {
e.preventDefault();
e.stopPropagation();
}
... |
src/client/node_modules/react-router/es/Redirect.js | severnsc/brewing-app | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/collections/Table/TableFooter.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { META } from '../../lib'
import TableHeader from './TableHeader'
function TableFooter(props) {
return <TableHeader {...props} />
}
TableFooter._meta = {
name: 'TableFooter',
type: META.TYPES.COLLECTION,
parent: 'Table',
}
TableFooter.defaultProps = {
as: 'tfoot',
}
expor... |
tests/e2e/components/test-redux/components/ProductListItem/ProductListItem.spec.js | notonthehighstreet/toga | import helper from '../../../../../../tests/helper';
import React from 'react';
import {shallow} from 'enzyme';
import Product from './ProductListItem';
import createFakeProduct from '../../spec-helpers/createFakeProduct';
import createSanitisedProduct from '../../spec-helpers/createSanitisedProduct';
const {chance, s... |
public/src/product/ProductTable.js | codelegant/react-action | /**
* Author: CodeLai
* Email: codelai@dotdotbuy.com
* DateTime: 2016/7/14 16:46
*/
import React from 'react';
import ProductCategoryRow from './ProductCategoryRow';
import ProductRow from './ProductRow';
export default class ProductTable extends React.Component {
render() {
const rows = [];
let lastCa... |
src/components/donation-frequency.js | ScottDowne/donate.mozilla.org | import React from 'react';
import listener from '../lib/listener.js';
import form from '../lib/form.js';
import reactGA from 'react-ga';
module.exports = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
propTypes: {
name: React.PropTypes.string.isRequired
},
getInitialState: functi... |
components/ActionBar/index.js | praida/admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import api from '../../api'
import Message from 'praida-message/'
import '../../styles/message.scss'
import './styles.scss'
class ActionBar extends React.Component {
constructor (props) {
super(props)
this... |
dva/dva-demo/src/router.js | gubaojian/trylearn | import React from 'react';
import { Router, Route } from 'dva/router';
import IndexPage from './routes/IndexPage';
import MYButton from './routes/MYButton';
function RouterConfig({ history }) {
return (
<Router history={history}>
<Route path="/" component={IndexPage} />
<Route path="/button" compon... |
src/components/molecules/PrimaryNavigation/index.stories.js | DimensionLab/narc | import React from 'react'
import { storiesOf } from '@storybook/react'
import { PrimaryNavigation } from 'components'
storiesOf('PrimaryNavigation', module)
.add('default', () => (
<PrimaryNavigation />
))
.add('reverse', () => (
<PrimaryNavigation reverse />
))
|
client/src/containers/TodosActions.js | welldone-software/cf-demo-micro-app | import React from 'react';
import { connect } from 'react-redux';
import { saveMyTodos, loadMyTodos, loadTodos, login, addList } from '../actions';
import Modal from 'react-modal';
import _ from 'lodash';
const customStyles = {
content: {
top: '40%',
left: '50%',
right: 'auto',
bottom: 'auto',
ma... |
ajax/libs/mediaelement/2.10.3/jquery.js | featurist/cdnjs | /*!
* jQuery JavaScript Library v1.7
* 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/Toolbar/Toolbar.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
position: 'relative',
display: 'flex',
alignItems: 'center',
minHeight: 56,
[`${the... |
src/svg-icons/device/usb.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.... |
docs/src/app/components/pages/customization/InlineStyles.js | pomerantsev/material-ui | import React from 'react';
import Title from 'react-title-component';
import Checkbox from 'material-ui/Checkbox';
import CodeExample from '../../CodeExample';
import typography from 'material-ui/styles/typography';
class InlineStyles extends React.Component {
getStyles() {
return {
headline: {
fon... |
js/highcharts.src.js | wimea-ict/weatherapp | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.7 (2015-06-26)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
ajax/libs/rxjs/2.3.10/rx.lite.extras.js | mayur404/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
examples/real-world/src/root/Root.dev.js | ioof-holdings/redux-dynamic-reducer | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import routes from './routes'
import DevTools from './containers/DevTools'
import { Router } from 'react-router'
const Root = ({ store, history }) => (
<Provider store={store}>
<div>
<Router history={history... |
src/App.js | carlpagelsLNU/2DV607_project | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello there, world</h1>
);
}
}
|
ajax/libs/react-native-web/0.0.0-a55272399/exports/DeviceEventEmitter/index.js | cdnjs/cdnjs | import RCTDeviceEventEmitter from '../../vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter';
export default RCTDeviceEventEmitter; |
src/routes/Setting/components/SettingView.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import keygen from 'keygenerator'
import clipboard from 'clipboard-js'
import ContentContainer from 'components/ContentContainer'
import TextArea from 'components/TextArea'
import AvatarImgInput from ... |
ajax/libs/antd-mobile/1.6.2/antd-mobile.min.js | holtkamp/cdnjs | /*!
* antd-mobile v1.6.2
*
* 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?export... |
src/components/ItemImage.js | dominic-blain/viper-visualizer | import React from 'react';
import ReactMarkdown from 'react-markdown';
import { computeOptionsClass } from '../utils';
class ItemImage extends React.Component {
render() {
const schema = this.props.schema;
const item = this.props.item;
const contents = this.props.contents;
const image = contents[item.content... |
modules/__tests__/IndexLink-test.js | mozillo/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
import IndexLink from '../IndexLink'
describe('An <In... |
app/javascript/mastodon/features/community_timeline/index.js | tootcafe/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
docs-ui/components/button.stories.js | ifduyue/sentry | import React from 'react';
import styled from 'react-emotion';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import {action} from '@storybook/addon-actions';
import {boolean} from '@storybook/addon-knobs';
import Button from 'app/components/button';
import DropdownButton f... |
src/app/main/action-bar/index.js | jl-/bronote | import React, { Component } from 'react';
import cx from 'classnames';
import SearchCtrl from './search-ctrl';
import styles from './style.scss';
class GlobalActionBar extends Component {
constructor(props, context) {
super(props, context);
this.createNotebook = ::this.createNotebook;
}
createNotebook() ... |
src/icons/CodeIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CodeIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M18.8 33.2L9.7 24l9.2-9.2L16 12 4 24l12 12 2.8-2.8zm10.4 0l9.2-9.2-9.2-9.2L32 12l12 12-12 12-2.8-2.8z"/></svg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.