path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/lists/TransactionList.js | whphhg/vcash-ui | import React from 'react'
import List from 'react-list'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
/** Components */
import TransactionListItem from './TransactionListItem.js'
import { Placeholder } from '../utilities/Common.js'
@translate(['common'])
@inject('gui', 'rates... |
client/src/Pages/Preview.js | ciex/mietlimbo | // @flow
import React from 'react'
import { NavLink } from 'react-router-dom'
import logoOkf from '../Graphics/logo-okfn.svg'
import logoBmbf from '../Graphics/logo-bmbf.svg'
import { grey500, blue500 } from 'material-ui/styles/colors'
import RaisedButton from 'material-ui/RaisedButton'
import EmailIcon from 'material... |
client/components/settings/bank-accesses/account.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { translate as $t } from '../../../helpers';
import { actions, get } from '../../../store';
import DisplayIf from '../../ui/display-if';
import LabelComponent from '../../ui/label';
import { DELETE_ACCOUNT_MO... |
components/list/ListItem.js | showings/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import { LIST } from '../identifiers';
import InjectListItemContent from './ListItemContent';
import InjectListItemLayout from './ListItemLayout';
import rippleFactory from '../ripple/Ripple';
const f... |
src/App.js | shaunstanislaus/react-transform-boilerplate | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
frontend/app_v2/src/common/icons/Mail.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Mail
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Mail({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}>
<title>Send link by email</t... |
src/routes/Dashboard/components/CandidateList/CandidateList.js | imrenagi/rojak-web-frontend | import React from 'react'
import { Icon, Table, Button } from 'semantic-ui-react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as Actions from './../../actions'
import { withRouter } from 'react-router-dom'
import data from './candidates.json'
class CandidateList extends R... |
react/features/filmstrip/components/native/ScreenShareIndicator.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { IconShareDesktop } from '../../../base/icons';
import { BaseIndicator } from '../../../base/react';
/**
* Thumbnail badge for displaying if a participant is sharing their screen.
*
* @returns {React$Element<any>}
*/
export default function ScreenShareIndicator() {
... |
src/components/search_bar.js | akh000/YoutubeApp | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: ''};
}
render(){
return (
<div className="search-bar input-group">
<span className="input-group-addon"><i className="fa fa-search"></i></span>
<inpu... |
test/GlyphiconSpec.js | egauci/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Glyphicon from '../src/Glyphicon';
describe('Glyphicon', () => {
it('Should have correct class', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Glyphicon glyph='star' />
... |
fixtures/dom/src/components/TestCase.js | flipactual/react | import cn from 'classnames';
import semver from 'semver';
import React from 'react';
import PropTypes from 'prop-types';
import { parse } from 'query-string';
import { semverString } from './propTypes';
const propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.node.isRequired,
resolvedIn: semverS... |
src/svg-icons/image/tag-faces.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTagFaces = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.... |
node_modules/react-icons/io/shuffle.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoShuffle = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.4 14.1c-4.1 0-6.5 3.4-9.4 7.2-3.2 4.3-6.8 9.4-13.3 9.4h-3.7v-4.9h3.7c4 0 6.5-3.7 9.4-7.5 3.2-4.3 6.8-9.1 13.3-9.1h2.3v-4.2l6.3 6.3-6.3 6.6v-3.8h-2.3z m-16.9 2.9c-... |
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js | imas/mastodon | import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... |
node_modules/react-color/.storybook/report.js | together-web-pj/together-web-pj | import React from 'react'
import _ from 'lodash'
import PropTypes from 'prop-types'
import PROP_TYPE_SECRET from 'prop-types/lib/ReactPropTypesSecret'
import { number, color, select, array, boolean } from '@storybook/addon-knobs'
const THIS_STRING_SHOULDNT_MATCH = 'THIS_STRING_SHOULDNT_MATCH'
export const generatePro... |
ajax/libs/material-ui/5.0.0-alpha.38/modern/ImageList/ImageList.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["children", "className", "cols", "component", "rowHeight", "gap", "style", "variant"];
import { unstable_composeClasses as composeClasses } f... |
lib/component.js | wilsontayar/hyper | import React from 'react';
import {StyleSheet, css} from 'aphrodite-simple';
export default class Component extends React.PureComponent {
constructor() {
super();
this.styles_ = this.createStyleSheet();
this.cssHelper = this.cssHelper.bind(this);
}
createStyleSheet() {
if (!this.styles) {
... |
ajax/libs/analytics.js/2.8.4/analytics.js | blairvanderhoof/cdnjs | (function umd(require){
if ('object' == typeof exports) {
module.exports = require('1');
} else if ('function' == typeof define && define.amd) {
define(function(){ return require('1'); });
} else {
this['analytics'] = require('1');
}
})((function outer(modules, cache, entries){
/**
* Global
... |
addons/themes/forty/includes/Footer.js | rendact/rendact | import React from 'react';
class Footer extends React.Component {
render(){
return (
<footer id="footer">
<div className="inner">
<ul className="copyright">
<li>Forty based theme</li>
<li>html5up</li>
<li>converted by Rendact Team</li>
</ul>
... |
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | vetruvet/framework | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
... |
app/components/Timer.js | Zyst/Aergia | // @flow
import React, { Component } from "react";
type Props = {
active: boolean,
minutes: number,
break: number,
pomodoroDone: () => void
};
type State = {
time: number,
break: boolean
};
class Timer extends Component {
props: Props;
state: State;
timeout: number;
static defaultProps = {
a... |
src/CarouselItem.js | albertojacini/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
examples/Tab.js | react-materialize/react-materialize | import React from 'react';
import Tabs from '../src/Tabs';
import Tab from '../src/Tab';
export default
<Tabs className='tab-demo z-depth-1'>
<Tab title="Test 1">Test 1</Tab>
<Tab title="Test 2" active>Test 2</Tab>
<Tab title="Test 3">Test 3</Tab>
<Tab title="Test 4">Test 4</Tab>
</Tabs>;
|
docs/src/sections/ListGroupSection.js | Sipree/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ListGroupSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
docs/lib/Components/PlayTogglePage.js | video-react/video-react | /* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { PrismCode } from 'react-prism';
import { Button } from 'reactstrap';
import Helmet from 'react-helmet';
import PlayToggleExample from '../examples/PlayToggle';
const PlayToggleExampleSource = require('!!raw-loader!../examples/P... |
ajax/libs/jointjs/0.8.1/joint.js | tjbp/cdnjs | /*! JointJS v0.8.1 - JavaScript diagramming library 2014-02-24
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*!
* jQuery JavaScript Library v2.0.3
* http://jquery... |
src/js/components/deployments/deployment-report/deploymentstatus.js | michaelatmender/gui | import React from 'react';
import { TwoColumnData } from '../../common/configurationobject';
import { defaultColumnDataProps } from '../report';
import { deploymentDisplayStates, pauseMap } from '../../../constants/deploymentConstants';
import { groupDeploymentStats } from '../../../helpers';
export const DeploymentSt... |
core/modules/field_ui/field_ui.es6.js | marteenzh/d1 | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($, Drupal, drupalSettings) {
/**
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Adds behaviors to the field storage add form.
*/
Drupal.behaviors.fieldUIFieldStorageAddForm = {
attach(context) {... |
ajax/libs/material-ui/4.9.2/Tabs/ScrollbarSize.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = ScrollbarSize;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutProperties2 = _in... |
lib/common/components/StatusMessage.js | conveyal/datatools-manager | // @flow
import React from 'react'
import { Button } from 'react-bootstrap'
import type {Props as ContainerProps} from '../containers/CurrentStatusMessage'
type Props = ContainerProps & {
message: ?string,
sidebarExpanded: boolean
}
type State = {visible: boolean}
export default class StatusMessage extends Rea... |
src/client.js | coopdevs/katuma-web | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiAjax from './helpers/api/apiAjax';
import {Provider} from 'react-redux';
im... |
__tests__/index.android.js | mchlltt/mementoes-mobile | 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/containers/PromptSwiper.js | codaco/Network-Canvas | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { findIndex } from 'lodash';
import cx from 'classnames';
import { Prompt, Pips } from '../components/';
/**
* Displays a control to swipe through prompts
* @extends Component
*/
class Prom... |
node_modules/react-icons/fa/keyboard-o.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaKeyboardO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8 25.6v2q0 0.4-0.4 0.4h-2q-0.3 0-0.3-0.4v-2q0-0.3 0.3-0.3h2q0.4 0 0.4 0.3z m2.6-5.3v2q0 0.4-0.3 0.4h-4.7q-0.3 0-0.3-0.4v-2q0-0.3 0.3-0.3h4.7q0.3 0 0.3 0.3z m-2.6-5... |
ajax/libs/js-data/1.7.0/js-data.js | tholu/cdnjs | /*!
* js-data
* @version 1.7.0 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
docs/index.js | nlhuykhang/react-switchcase-condition | /* eslint-disable global-require, import/no-unresolved, react/no-multi-comp */
import React from 'react';
import ReactDOM from 'react-dom';
import GithubCorner from 'react-github-corner';
import { Catalog, CodeSpecimen, ReactSpecimen } from 'catalog';
import 'purecss/build/pure.css';
import './main.css';
// Add your ... |
src/parser/paladin/holy/modules/azeritetraits/GraceOfTheJusticar.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import ItemHealingDone from 'interface/others/Item... |
techCurriculum/ui/solutions/3.3/src/components/Message.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
app/containers/App/index.js | be-oi/beoi-training-client | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/index.js | kristingreenslit/react-redux-weather-browser | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
ajax/libs/backbone-react-component/0.5.1/backbone-react-component.js | saitheexplorer/cdnjs | /**
* Backbone.React.Component
* @version 0.5.1
* @author "Magalhas" José Magalhães <magalhas@gmail.com>
* @license MIT <http://opensource.org/licenses/MIT>
*/
'use strict';
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['react', 'backbone', 'underscore'], factory);
els... |
app/components/Profile/TextMetric.js | liuyanghejerry/react-westworld | import React from 'react';
import styled from 'styled-components';
import colors from '../../color-scheme';
import Label from './Label';
function TextMetric({ title, content }) {
const StyledSpan = styled.span`
margin-right: 10px;
`;
const Text = styled.span`
color: ${colors.textNumberGreen};
`;
retu... |
packages/mineral-ui-icons/src/IconPieChartOutlined.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 IconPieChartOutlined(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...i... |
app/features/navigation/NavLink/CountLink.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { selectReviewsCount, selectLessonsCount, selectOnVacation } from 'features/user/selectors';
import NavLink from './NavLink';
import { Li, Link, Text, Count } from './styles';
export class CountLink extends R... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | meraki/react-router | import React from 'react'
class Assignments extends React.Component {
render() {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
)
}
}
module.exports = Assignments
|
packages/material-ui-icons/src/BluetoothAudioRounded.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="M15.98 10.28l-1.38 1.38c-.2.2-.2.51 0 .71l1.38 1.38c.28.28.75.15.85-.23.11-.5.17-1 .17-1.52 0-.51-.06-1.01-.18-1.48-.09-.38-.56-.52-.84-.24zM... |
packages/material-ui-icons/src/CallMissedOutgoing.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z" /></g>
, 'CallMissedOutgoing');
|
project/source/components/word/word-view.js | peterorum/randux | import React from 'react';
import Word from './word';
const WordView = (props) =>
<div>
<Word {...props} />
</div>
export default WordView;
|
src/index.js | shawware/react-playpen | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import Root from './components/root';
import reducers from './reducers';
// Build a store to hold the state.
var store = createSto... |
phpBB3/assets/javascript/jquery.min.js | Agarharsh/hosa_site | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
static/admin/js/jquery.min.js | HarrisonHDU/myerp | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
app/components/todolist/Todo.js | flanamacca/react-learning-kit | import React from 'react'
import PropTypes from 'prop-types'; // ES6
import classNames from 'classnames/bind';
import styles from '../../css/todolist.css';
const cx = classNames.bind(styles);
const Todo = ({ text, completed, onClick, onRemoveTodoClick }) => (
<li>
<input className={cx('todoToggle')} type="ch... |
packages/material-ui-icons/src/FaceTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17.5 8c.46 0 .91-.05 1.34-.12C17.44 5.56 14.9 4 12 4c-.46 0-.91.05-1.34.12C12.06 6.44 14.6 8 17.5 8zM8.08 5.03C6.37 6 5.05 7.58 4.42 9.47c1.71-.97 3.03-2.55 3.66-4.44z" opacity=".3" /... |
dialog-component-explorer/src/containers/FixedDialogSize.js | jacklam718/react-native-dialog-component | import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { DialogComponent, DialogContent } from 'react-native-dialog-component';
import Button from '../components/Button';
export default class FixedDialogSize extends Component {
showA = () => {
this.dialogA.show(... |
react-router-es6-example/node_modules/react-scripts/node_modules/jsx-ast-utils/lib/getPropValue.js | akhilaantony/React-Stylisted | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getPropValue;
exports.getLiteralPropValue = getLiteralPropValue;
var _values = require('./values');
var _values2 = _interopRequireDefault(_values);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? o... |
ajax/libs/vue/2.0.2/vue.js | wout/cdnjs | /*!
* Vue.js v2.0.2
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function... |
tests/layouts/CoreLayout.spec.js | ksevezich/DayOfBlueprint | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
app/components/global/PostLink.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
const { shell } = require('electron');
export default class PostLink extends Component {
handleLink = () => {
const { author, permlink } = this.props;
shell.openExternal(`https://hive.blog/category/@${author}/${permlink}`);
}
render() {
const { au... |
frontend/src/KeyTerms/KeyTerms.js | Jspsun/HackTheNorth2017 | import React from 'react';
import { StyleSheet, css } from 'aphrodite';
import {MaterialCard} from '../UI/MaterialCard'
export class KeyTerms extends React.Component {
render = () => {
console.log(this.props.url)
if (this.props.url === 'https://www.youtube.com/embed/Ykc5COodXis') {
return (
<Ma... |
resource/js/components/PageHistory.js | crow-misia/crowi | import React from 'react';
import Icon from './Common/Icon';
import PageRevisionList from './PageHistory/PageRevisionList';
export default class PageHistory extends React.Component {
constructor(props) {
super(props);
this.state = {
revisions: [],
diffOpened: {},
};
this.getPreviousRe... |
App.js | Angular-Toast/habitat | import React from 'react';
import { StyleSheet, Text, View, AsyncStorage, Button, Alert } from 'react-native';
import { SignedOut, SignedIn, createRootNavigator } from "./src/components/router.js"
import { getUserInfo, isSignedIn } from './src/components/auth.js'
import Login from './src/components/Login/Login.js';
imp... |
docs/src/sections/NavbarSection.js | jesenko/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function NavbarSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<An... |
Examples/UIExplorer/ProgressViewIOSExample.js | sitexa/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
lib/components/ReactableState.js | Centiq/meteor-reactable | import React from 'react';
import createReactClass from 'create-react-class';
ReactableState = createReactClass({
propTypes: ReactableConfigShape,
mixins: [ ReactMeteorData ],
getDefaultProps () {
return {
stateManager: DefaultStateManager,
};
},
getInitialState () {
let state = {
... |
packages/material-ui-icons/src/LocationOnRounded.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="M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2... |
ajax/libs/rxjs/2.3.5/rx.lite.compat.js | codevinsky/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/components/FeedbackBtn.js | voz-living/chrome-extension-react | import React from 'react';
const FeedbackBtn = () => (
<div className="btn-group">
<a
className="btn tooltip-right"
href="https://voz-living.github.io/voz-living-feedback/"
style={{ fontSize: '20px' }}
target="_blank"
data-tooltip="Góp ý/Báo lỗi/Tâm sự"
><i className="fa fa-enve... |
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-debug.js | warpech/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
src/containers/pages/decks/deck-selection/right-container/topbar.js | vFujin/HearthLounge | import React from 'react';
import {icon_filters} from '../../../../../globals/filters';
import Tooltip from 'antd/lib/tooltip';
import _ from 'lodash';
import Icon from "../../../../../components/icon";
const Topbar = ({adventuresToggled, handleFiltersClick, activeAdventure, activeMode, activeClass}) => {
const adv... |
test/regressions/site/src/tests/Switch/DisabledSwitch.js | und3fined/material-ui | // @flow weak
import React from 'react';
import Switch, { LabelSwitch } from 'material-ui/Switch';
export default function DisabledSwitch() {
return (
<div>
<LabelSwitch label="Foo" disabled />
<Switch disabled />
<Switch checked disabled />
</div>
);
}
|
app/components/EmailVerificationSuccess/index.js | vvnsze/Nexcast | /**
*
* EmailVerificationSuccess
*
*/
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import { browserHistory } from 'react-router';
import EmailVerificationPodcastItem from '../../containers/EmailVerificationPodcastItem';
// import styled from 'st... |
components/Loading/index.js | shinosakarb/tebukuro-client | // @flow
import React from 'react'
const Loading = () => (
<div>Loading...</div>
)
export default Loading
|
V2-Node/esquenta.v2/UI/src/views/Base/Breadcrumbs/Breadcrumbs.js | leandrocristovao/esquenta | import React, { Component } from 'react';
import { Breadcrumb, BreadcrumbItem, Card, CardBody, CardHeader, Col, Row } from 'reactstrap';
class Breadcrumbs extends Component {
render() {
return (
<div className="animated fadeIn">
<Row>
<Col xs="12">
<Card>
<CardHe... |
src/components/FloatingActionButtonPrimary.js | mikebarkmin/gestyled | import React from 'react';
import FloatingActionButton from './FloatingActionButton';
import { withTheme } from 'styled-components';
const FloatingActionButtonPrimary = props => {
const { theme } = props;
const bg = theme.colors.primary;
const color = theme.colors.primaryText;
return <FloatingActionButton bg={... |
src/__tests__/resolve-styles-test.js | MicheleBertoli/radium | import React from 'react';
import MouseUpListener from 'plugins/mouse-up-listener.js';
import objectAssign from 'object-assign';
const resolveStyles = require('inject!resolve-styles.js')({
'exenv': require('__mocks__/exenv.js'),
'./prefixer': require('__mocks__/prefixer.js')
});
const genComponent = function() {
... |
src/popup/components/Palette/index.js | fluany/fluany | /**
* @fileOverview A component to change package color
* @name index.js<Palette>
* @license GNU General Public License v3.0
*/
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import Tooltip from 'components/Tooltip'
import * as translator from 'shared/constants/i... |
server/sonar-web/src/main/js/apps/account/components/Account.js | Builders-SonarSource/sonarqube-bis | /*
* 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... |
examples/src/components/NumericSelect.js | pedroseac/react-select | import React from 'react';
import Select from 'react-select';
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.string
},
getInitialState () {
return {
options: [
{ value: 10, label: 'Ten' },
{ value: 11, label: 'Eleven' },
{ ... |
app/domain/page/MyCard.js | njxiaohan/TransPal |
'use strict';
import React, {Component} from 'react'
import {
Text,
View,
StyleSheet,
ScrollView,
Image,
TouchableOpacity,
RefreshControl,
Dimensions,
Alert,
ActivityIndicator,
BackAndroid,
Platform,
Navigator,
} from 'react-native'
import px2dp from '../util'
impor... |
app/routes.js | mohit181191/ixigo-board | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Workspace from './containers/workspace/Workspace';
export default (
<Route path="/" component={Workspace}>
<IndexRoute component={Workspace}/>
</Route>
);
|
test/ModalSpec.js | cesarandreu/react-overlays | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Modal from '../src/Modal';
import { render } from './helpers';
import jquery from 'jquery';
import simulant from 'simulant';
import Transition from '../src/Transition';
let $ = componentOrNode => jquery(React.findDOMNode(component... |
ajax/libs/angular.js/0.10.2/angular.js | noraesae/cdnjs | /**
* @license AngularJS v0.10.2
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
fields/types/textarea/TextareaField.js | michaelerobertsjr/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
statics: {
type: 'Textarea',
},
renderField () {
var styles = {
height: this.props.height,
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props... |
src/components/users/interest.js | bugdrip/omgr-admin | import React from 'react'
import { connect } from 'react-redux'
import { Table, Breadcrumb, Tooltip } from 'antd'
import request from 'superagent'
import TooltipLabel from '../commons/tooltipLabel'
const rowSelection = {
onChange(selectedRowKeys, selectedRows) {
console.log(`selectedRowKeys: ${selectedRo... |
admin/client/App/shared/AlertMessages.js | frontyard/keystone | import React from 'react';
import { Alert } from '../elemental';
import { upcase } from '../../utils/string';
/**
* This renders alerts for API success and error responses.
* Error format: {
* error: 'validation errors' // The unique error type identifier
* detail: { ... } // Optional details specific t... |
react/features/base/avatar/components/native/StatelessAvatar.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { Image, Text, View } from 'react-native';
import { Icon } from '../../../icons';
import { type StyleType } from '../../../styles';
import AbstractStatelessAvatar, { type Props as AbstractProps } from '../AbstractStatelessAvatar';
import styles from './styles';
type Props... |
ajax/libs/mobx-react/3.0.4/native.min.js | joeyparrish/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&c.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=u[t];e[t]=function(){n&&n.apply(this,argume... |
scripts/apps/search/components/fields/markedDesks.js | darconny/superdesk-client-core | import React from 'react';
import PropTypes from 'prop-types';
import {MarkedDesksInfo} from 'apps/search/components';
export function markedDesks(props) {
return React.createElement(MarkedDesksInfo, angular.extend({
key: 'markedDesks'
}, props));
}
markedDesks.propTypes = {
item: PropTypes.any,
}... |
src/Projects.js | pebutler3/new-site | import React, { Component } from 'react';
class Projects extends Component {
render() {
let recentProjects = [
['Roadmap', 'https://github.com/pebutler3/roadmap', 'React'],
['Heron', 'https://github.com/getblackboard/heron', 'SCSS/Flexbox'],
['Wiki Search', 'http://codepen.io/pebutler3/pen/AXkJ... |
test/regressions/index.js | cherniavskii/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import vrtest from 'vrtest/client';
import webfontloader from 'webfontloader';
import TestViewer from './TestViewer';
// Get all the tests specifically written for preventing regressions.
const requireRegression = require.context('./tests', true, /js$/);
con... |
src/js/components/CalculatorButton/CalculatorButtonContainer.react.js | ali404/calculator-on-steroids | import React from 'react'
import Base from '../_helpers/BaseComponent'
import CalculatorButton from './CalculatorButton.react'
import CalculatorActions from '../../actions/CalculatorActions'
export default class CalculatorButtonContainer extends Base {
constructor(props) {
super(props)
this._bin... |
node_modules/react-tools/src/utils/__tests__/OrderedMap-test.js | gauravyeole/iDigBio-appliance | /**
* 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... |
ajax/libs/highstock/2.1.4/highstock.src.js | chrisyip/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.1.4 (2015-03-10)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
user_guide/_static/jquery.js | JaimeRED/mediaServer2 | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
js/App/Components/TabViews/SubViews/Gateway/LocationDetails.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
src/svg-icons/device/screen-lock-landscape.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockLandscape = (props) => (
<SvgIcon {...props}>
<path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c... |
test/JumbotronSpec.js | mcraiganthony/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>... |
packages/material-ui-icons/src/CollectionsSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 18V2H6v16h16zm-11-6l2.03 2.71L16 11l4 5H8l3-4zM2 6v16h16v-2H4V6H2z" />
, 'CollectionsSharp');
|
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | igorbt/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
ajax/libs/yui/3.9.0pr3/datatable-body/datatable-body.js | emmansun/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 = Lang.isA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.