path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
pages/guides/api.js | allanalexandre/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/guides/api', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../docs/src... |
ajax/libs/yui/3.10.2/scrollview-base/scrollview-base-coverage.js | LorenzoBoccaccia/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
src/components/TweetsPanel/TweetsPanel.js | Donnzh/TwitterTrends | import React from 'react';
import './TweetsPanel.scss';
export const TweetsPanel = () => (
<div className={'panelRight'}>
<div>
<h4>Welcome!</h4>
<br />
<h4>NEW FEATURES COMING SOON !</h4>
</div>
</div>
);
export default TweetsPanel;
|
src/components/App.js | AlexKVal/vote-client | import React from 'react';
export default React.createClass({
render: function() {
return this.props.children;
}
})
|
components/SongList.js | calvinmikael/Radio | /**
* @flow
*/
import React from 'react';
import {
Text,
View,
} from 'react-native';
import moment from 'moment';
import styles from './styles';
import Timestamp from './Timestamp';
const SongList = ({ title, songs, error, errorText, force }) => (
<View style={styles.songListView}>
<View style={styles.so... |
test/client/components/logo.js | berkeley-homes/near-miss-positive-intervention | import test from 'tape'
import React from 'react'
import { shallow } from 'enzyme'
import Logo from '../../../src/client/components/logo.js'
test('Logo page includes Photo', t => {
const wrapper = shallow(<Logo />)
t.equal(wrapper.contains(<div><img src='' alt='Logo' /></div>), true)
t.end()
})
|
ajax/libs/react-instantsearch/5.0.0/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 5.0.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/index.js | ajmers/chordb | /*
This is the entry point for the application.
It instantiates the application store and renders the Redux provider and
application router.
*/
import 'babel-polyfill';
/* React and Redux */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import conf... |
src/svg-icons/content/sort.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSort = (props) => (
<SvgIcon {...props}>
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
</SvgIcon>
);
ContentSort = pure(ContentSort);
ContentSort.displayName = 'ContentSort';
ContentSort.mui... |
Example/src/component/Article/index.js | rnxteam/rnx-ui | /**
* 带标题展示组件
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
} from 'react-native';
import PropTypes from 'prop-types';
const styles = StyleSheet.create({
all: {
marginBottom: 10,
},
title: {
paddingVertical: 10,
},
titleText: {
fontSize: 10,
},
});
function Article(pro... |
src/components/Post/Post.js | colmdoyle/colmdoyle.github.io | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import Author from './Author';
import Comments from './Comments';
import Content from './Content';
import Meta from './Meta';
import Tags from './Tags';
import styles from './Post.module.scss';
import type { Node } from '../../types';
type Props... |
src/Wizard/components/Grid.js | nkiateam/polestar-antd | import React from 'react';
class Grid extends React.Component {
render() {
const horizontalStyle = {
};
const verticalStyle = {
display: 'flex',
};
return (
<div
className="polestar-wizard-grid"
style={this.props.dire... |
__tests__/index.ios.js | BinaryNate/voxophone-react-native | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/js/components/roles/RoleDetail.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* 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... |
packages/television/src/components/Start/index.js | accosine/poltergeist | import React from 'react';
import PropTypes from 'prop-types';
import Body from '../Body';
import Pager from '../Pager';
import Analytics from '../Analytics';
import SvgSpritemap from '../SvgSpritemap';
import SvgLogos from '../SvgLogos';
import Header from '../Header';
import Menu from '../Menu';
import Footer from '... |
js/components/Entry/Avatar.js | eburillo/relay-chat | import React from 'react';
import Relay from 'react-relay';
class Avatar extends React.Component {
render() {
let imgSource = "./assets/" + this.props.viewer.avatar;
return (
<div className="avatar">
<img src={imgSource} />
</div>
);
}
}
export default Relay.createContainer(Avatar,... |
test/com/facebook/buck/js/testdata/android_rn/js/app/sample.android.js | pwz3n0/buck | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
} = React;
var {someFunction} = require('./helpers.js');
var MyProject = React.createClass({
render: function() {
return (
<V... |
src/routes/BusinessPage/MappingTable/index.js | janeluck/red | /**
* Created by janeluck on 17/6/6.
*/
import React from 'react'
import _ from 'lodash'
import Immutable from 'immutable'
import style from './index.less'
import classNames from 'classnames';
import {Spin} from 'antd'
//todo: 每条数据id
const oData = [
{
Name: 'alex',
Phone: '13512345678',
Mail: 'alex@qq.... |
src/gm3/components/catalog/tools/legend.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
components/Modes/Menu.js | whatever555/countries | import React, { Component } from 'react';
import {
allDifficulties,
allContinents,
allGameModes,
Themes,
} from '../../common/consts';
import { BigButton } from '../../common/styles';
import Footer from '../Footer';
import styled from 'styled-components';
const MenuBlock = styled.div`
box-sizing: border-box... |
website/src/components/button.js | explosion/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Link from './link'
import Icon from './icon'
import classes from '../styles/button.module.sass'
export default function Button({
to,
variant = 'secondary',
large = false,
icon,
className,
ch... |
src/index.js | Pamplemaus/raincloud | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('app-container'));
|
packages/mineral-ui-icons/src/IconZoomIn.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 IconZoomIn(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
shared/components/Equilab/Info/Info.js | thehink/equilab-web | import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import { Element } from 'react-scroll';
import image1 from 'assets/images/mobile2.png';
import image2 from 'assets/images/mobile1.png';
import PreloadImage from 'Equilab/PreloadImage';
import styles from './Info.scss';
class In... |
src/lib/components/navBar/NavBar.js | lighter-cd/ezui_react_one | import React from 'react';
import PropTypes from 'prop-types';
import injectSheet from 'react-jss';
import classNames from 'classnames';
import Link from '../../utils/Link';
import { Icon } from '../icon';
const styles = {
root: {
display: 'flex',
zIndex: 500,
width: '100%',
backgroundColor: props =>... |
src/index.js | asndev/webpack2-react-auth-starter | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { firebaseAuth } from 'store/firebase';
import { authActions } from './store/auth/actions';
im... |
src/app/views/GovHack/index.js | nhardy/web-scaffold | // @ flow
import React from 'react';
import { Helmet } from 'react-helmet';
import config from 'app/config';
import { makeTitle } from 'app/lib/social';
import DefaultLayout from 'app/layouts/Default';
import P from 'app/components/P';
import YouTube from 'app/components/YouTube';
import styles from './styles.styl';
... |
node_modules/babel-register/node_modules/core-js/modules/es6.promise.js | lujinming1/hejicaoye | 'use strict';
var LIBRARY = require('./_library');
var global = require('./_global');
var ctx = require('./_ctx');
var classof = require('./_classof');
var $export = require('./_export');
var isObject = require('./_is-object');
var aFunction = require('./_a-function');
var anInstance = require('./_an-instance');
var fo... |
src/components/my-books.js | KoushikKumar/trade-a-book-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Iphone from './iphone';
import Book from './book';
import { fetchMyBookDetails } from '../actions';
class MyBooks extends Component {
componentWillMount() {
this.props.fetchMyBookDetails();
}
render() {
... |
src/svg-icons/av/featured-play-list.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedPlayList = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/>
</SvgIcon>
);
AvFeaturedPlayList = pu... |
js/components/LocationOverview.js | a-omsk/Vegreact | import React from 'react';
import Rater from 'react-rater';
import CityStore from '../stores/CityStore';
import Haversine from './common/Haversine';
import { Link } from 'react-router';
const firstRowStyle = {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
};
const distanceStyle =... |
src/FontIcon/FontIcon.spec.js | matthewoates/material-ui | /* eslint-env mocha */
import React from 'react';
import sinon from 'sinon';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import FontIcon from './FontIcon';
import getMuiTheme from '../styles/getMuiTheme';
describe('<FontIcon />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (... |
src/index.js | jcohen/aurora-react | import React, { Component } from 'react';
import Router, { HistoryLocation, Route, RouteHandler } from 'react-router';
import HomePage from './components/HomePage';
import RolePage from './components/RolePage';
const routes = (
<Route handler={Aurora}>
<Route name='home' path='/' handler={HomePage} />
<Route... |
ajax/libs/forerunnerdb/1.3.831/fdb-core.js | jdh8/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/control/ProjectController.js | TalesM/taskblob | import React from 'react';
import Task from '../model/Task';
export default class extends React.Component {
constructor(props) {
super(props);
this.state = { project: props.project.toArray() };
}
render() {
return (
<this.props.template
project={this.state.project}
onInsertItem... |
packages/material-ui-icons/lib/TwoKSharp.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
packages/idyll-cli/test/env-options/outer-project/components/custom-component.js | idyll-lang/idyll | import React from 'react';
class CustomComponent extends React.PureComponent {
render() {
const { hasError, updateProps, idyll, ...props } = this.props;
return <div {...props}>This is a custom component</div>;
}
}
export default CustomComponent;
CustomComponent.IndexedComponent = class extends React.Pure... |
ajax/libs/react/0.13.0-rc2/react.min.js | F2X/cdnjs | /**
* React v0.13.0-rc2
*
* 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... |
src/components/portfolio-page.js | relwiwa/fcc-portfolio-page | import React from 'react';
import PortfolioFooter from './portfolio-footer';
import PortfolioHeader from './portfolio-header';
import PortfolioMain from './portfolio-main';
import '../styles/portfolio-page.scss';
import portfolioData from '../data/portfolio-page.json';
const PortfolioPage = (props) => {
return (
... |
assets/js/components/people-browser/PeopleTable.js | tdfischer/organizer | import React from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes'
import { connect } from 'react-redux'
import Chip from '@material-ui/core/Chip'
import Typography from '@material-ui/core/Typography'
import { withStyles } from '@material-ui/styles'
import Checkbox from '@material-ui/core/Checkbox'
im... |
src/views/dictionary/conjunctiond/ConjunctiondRow.js | bostontrader/senmaker | // @flow
import React from 'react'
import Conjunctiond from '../../../data/dictionary/conjunctiond/Conjunctiond'
import ConjunctiondActions from '../../../data/dictionary/conjunctiond/ConjunctiondActions'
function ConjunctiondRow(props:Object):Object {
let {conjunctiond}:Object = props
const onClickE... |
assets/jqwidgets/demos/react/app/chart/stackedandgroupedcolumnseries/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [
{ Day: 'Monday', Running: 30, Swimming: 5, Cycling: 25, Riding: 10 },
{ Day: 'Tuesday', ... |
src/pages/home/components/HomePage.js | Perspicere/PerspicereMagazine | import React from 'react'
import PropTypes from 'prop-types'
import Layout from '../../layout'
import { Loader } from '../../../components'
// import TopicEntry from '../../components/TopicEntry'
import Instruction from './Instruction'
import SubjectBanner from './SubjectBanner'
import ArticleCover from './ArticleCove... |
stories/Dropdown/ExampleControlled.js | skyiea/wix-style-react | import React from 'react';
import Dropdown from 'wix-style-react/Dropdown';
const style = {
display: 'inline-block',
padding: '0 5px 0',
width: '200px',
lineHeight: '22px',
marginBottom: '160px'
};
const options = [
{id: 1, value: 'Option 1'},
{id: 2, value: 'Option 2'},
{id: 3, value: 'Option 3'},
... |
versions/3-redux/2-thunk/client/src/components/Counter.js | hamczu/techsummit-web2016 | import React from 'react'
export default ({ onClick, count }) => (
<div>
<button onClick={onClick}>click me!</button>
<span>{count}</span>
</div>
)
|
website/modules/components/FakeBrowser.js | DelvarWorld/react-router | import React from 'react'
import { MemoryRouter, Route } from 'react-router-dom'
import { Block, Col, Row } from 'jsxstyle'
import { LIGHT_GRAY, GRAY } from '../Theme'
const LeftArrowIcon = (props) => (
<svg {...props} fill="currentColor" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid meet">
<path d="m28.3 18... |
src/routes/product.js | iwang/maodou | import React from 'react';
import { connect } from 'dva';
import styles from './product.css';
import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button } from 'antd';
const FormItem = Form.Item;
function Product({
dispatch,
form: {
getFieldDecorator,
validateFieldsAndScroll
}
}) {... |
src/reactions/ReactionList.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { ReactionType } from '../types';
import Reaction from './Reaction';
import aggregateReactions from './aggregateReactions';
const styles = StyleSheet.create({
reactions: {
flexDirection: 'row',
flexWrap: 'wrap',
... |
imports/ui/LinksListFilters.js | dandev237/short-lnk | /**
* Created by Daniel on 28/06/2017.
*/
import React from 'react';
import {Session} from 'meteor/session';
import {Tracker} from 'meteor/tracker';
export default class LinksListFilters extends React.Component {
constructor(props){
super(props);
this.state = {
showVisible: true
... |
src/components/TransactionForm/TransactionForm.js | baruinho/cashier | import React from 'react';
import { Field, reduxForm, FormSection } from 'redux-form';
import * as actions from '../../redux/modules/transactions/actions';
import { fetchData } from '../../redux/modules/accounts/actions';
import * as modalActions from '../../redux/modules/modal/actions';
import { connect } from 'react-... |
ajax/libs/angular.js/0.9.11/angular-scenario.js | RubaXa/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
sonar-flow-plugin/src/main/js/components/flow/Invoke.js | I8C/sonar-flow-plugin | import React from 'react';
import {getChildren} from './functions/flowUtils.js'
export default class Invoke extends React.PureComponent {
//this.props.invoke
//this.props.issueLine
constructor(props) {
super(props);
}
render(){
let isSelected=this.props.issueLine==this.props.invoke.line;
retur... |
ajax/libs/yui/3.8.1/event-custom-base/event-custom-base.js | jtushar53/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... |
lens-ui/app/components/AdhocQueryComponent.js | sushilmohanty/incubator-lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
src/routes/Templates/components/Templates/Templates.js | prescottprue/devshare-site | import React from 'react'
import classes from './Templates.scss'
export const Templates = () => (
<div className={classes['Templates']}>
<h4>Templates</h4>
</div>
)
export default Templates
|
examples/js/column-filter/date-filter-with-default-value.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const startDate = new Date(2015, 0, 1);
const endDate = new Date();
... |
ajax/libs/clappr/0.0.63/clappr.js | yogeshsaroya/cdnjs | require=(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)... |
ajax/libs/rxjs/2.5.0/rx.lite.extras.js | kellyselden/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,
'und... |
ui/src/main/js/components/__tests__/JobStatus-test.js | medallia/aurora | import React from 'react';
import { shallow } from 'enzyme';
import CronJobPreview from '../CronJobPreview';
import JobStatus from '../JobStatus';
import TaskList from '../TaskList';
import { Tab } from '../Tabs';
import {
ScheduledTaskBuilder,
TaskConfigBuilder,
createConfigGroup
} from 'test-utils/TaskBuilder... |
ajax/libs/nuclear-js/1.2.0/nuclear.min.js | stefanneculai/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Nuclear=e():t.Nuclear=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[... |
tests/lib/rules/vars-on-top.js | domharrington/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
docs/build.js | BespokeInsights/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
app/containers/admin/family/AdminFamilySearchPage.js | geekmansam/Olive-Check-In | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AdminSearchFamily from '../../../components/admin/family/AdminFamilySearch';
import { Creators } from './../../../actions/navigation';
class AdminFamilySearchPage extends Component {
co... |
packages/material-ui-icons/src/ZoomIn.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ZoomIn = props =>
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4... |
src/Stepper/StepConnector.spec.js | pomerantsev/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {PlainStepConnector as StepConnector} from './StepConnector';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepConnector />', () => {
const muiTheme = getMuiTheme();
const themedShal... |
ajax/libs/ngOfficeUiFabric/0.9.0/ngOfficeUiFabric.js | dannyxx001/cdnjs | /*!
* ngOfficeUIFabric
* http://ngofficeuifabric.com
* Angular 1.x directives for Microsoft's Office UI Fabric
* https://angularjs.org & https://dev.office.com/fabric
* v0.9.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exp... |
src/components/Footer/TwitterIcon.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {Svg} from '../Svg/Svg'
export const TwitterIcon = (props: Object) => (
<Svg {...props}>
<path d="M 50.0625 10.4375 C 48.214844 11.257813 46.234375 11.808594 44.152344 12.058594 C 46.277344 10.785156 47.910156 8.769531 48.675781 6.371094 C 46.691406 7.546875 44.484375 8.... |
ajax/libs/yui/3.12.0/event-custom-base/event-custom-base-debug.js | bragma/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... |
ajax/libs/yui/3.17.2/event-focus/event-focus-debug.js | maruilian11/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('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
ajax/libs/analytics.js/2.2.1/analytics.js | qrohlf/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
packages/mui-icons-material/lib/esm/DialpadTwoTone.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M18 7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm2 8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-8 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM6 5c1.1 0... |
src/CardPanel.js | 15lyfromsaturn/react-materialize | import React from 'react';
import cx from 'classnames';
const CardPanel = ({
className,
children,
...props
}) => {
const classes = {
'card-panel': true
};
return (
<div className={cx(classes, className)} {...props}>
{children}
</div>
);
};
export default CardPanel;
|
ajax/libs/react-virtualized/5.5.2/react-virtualized.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("react"),require("react-dom")):e.ReactVirtualized=t(e.React,e.ReactDO... |
src/components/Footer/Footer.js | langpavel/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
packages/material-ui-icons/src/FirstPageRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 0v24H0V0h24z" opacity=".87" /><path d="M17.7 15.89L13.82 12l3.89-3.89c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39... |
ajax/libs/yui/3.1.0/loader/loader.js | matteofigus/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 = ... |
src/web/components/PrintVersion.js | faalsh/LamaDesktop | import React from 'react'
import { StyleSheet, css } from 'aphrodite'
import _ from 'lodash'
class Report extends React.Component {
render(){
const styles = StyleSheet.create({
board: {
margin: '20px',
},
boardTitle: {
fontSize: '24px',
fontWeight: 'bold',
text... |
src/components/__tests__/ui/form-label-test.js | visa-innovation-sf/ldn-retail-demo | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import FormLabel from '@ui/FormLabel';
it('FormLabel renders correctly', () => {
const tree = renderer.create(
<FormLabel>John Smith</F... |
src/components/PossiblePasswords.js | nickmccurdy/password-entropy | import { faList, faRandom } from '@fortawesome/fontawesome-free-solid'
import Icon from '@fortawesome/react-fontawesome'
import PropTypes from 'prop-types'
import React from 'react'
import {
Card,
CardBody,
FormGroup,
FormText,
Label,
Progress
} from 'reactstrap'
export default function PossiblePasswords({... |
app/javascript/mastodon/components/loading_indicator.js | NS-Kazuki/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
20161216/cnode/app/HomePage.js | fengnovo/react-native | import React from 'react';
import { Text, View, ScrollView, Image,
RefreshControl,
TouchableHighlight, StyleSheet } from 'react-native';
import Detail from './Detail';
class HomePage extends React.Component {
constructor(props) {
super(props);
this.state = {
lists: []
}
// this._onScr... |
app/javascript/mastodon/features/account_timeline/index.js | kagucho/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines';
import StatusL... |
src/index.js | opensourcery-io/app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'normalize.css/normalize.css';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker(); |
build/lib/locations/TestLocation.js | lingard/react-router | 'use strict';
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i... |
src/icons/TerrainIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TerrainIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 12l-7.5 10 5.7 7.6L23 32c-3.38-4.5-9-12-9-12L2 36h44L28 12z"/></svg>;}
}; |
packages/material-ui-icons/src/FlareOutlined.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="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2... |
test/PageItemSpec.js | jesenko/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import PageItem from '../src/PageItem';
describe('PageItem', () => {
it('Should output a "list item" as root element, and an "anchor" as a child item', () => {
let instance = ReactTestUtils.render... |
src/client/assets/js/features/driver/components/Wizard/Wizard.js | me-box/databox-sdk | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class Wizard extends Component {
render(){
return <h1> [software] [hardware] [upload] </h1>
}
} |
src/pages/Tables/ExtendedTables/index.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import TableWithSwitch from './TableWithSwitch';
import TableWithLinks from './TableWithLinks';
import BigTable from './BigTable';
const ExtendedTables = () => (
<div className="container-fluid">
<div className="row">
<div className="col-md-6">
<TableWithLinks />
</... |
src/Parser/Druid/Restoration/Modules/Traits/NaturalMending.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/Sp... |
docs-ui/components/confirm.stories.js | gencer/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import {action} from '@storybook/addon-actions';
import Confirm from 'sentry-ui/confirm';
import Button from 'sentry-ui/buttons/button';
storiesOf('Confirm/Confirm', module).add(
'default',
withI... |
test/components/TemplateComponentTest.js | cised-ca/se-dir-frontend-react | /* eslint-env node, mocha */
/* global expect */
/* eslint no-console: 0 */
'use strict';
import React from 'react';
import { shallow } from 'enzyme';
import TemplateComponent from 'components/TemplateComponent.js';
import { HomepageComponent } from 'components/HomepageComponent.js';
describe('TemplateComponent', ()... |
docs/src/pages/demos/text-fields/OutlinedTextFields.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import MenuItem from '@material-ui/core/MenuItem';
import TextField from '@material-ui/core/TextField';
const styles = theme => ({
container: {
display: 'flex... |
fields/types/password/PasswordField.js | MORE-HEALTH/keystone | var _ = require('underscore'),
React = require('react'),
Field = require('../Field');
module.exports = Field.create({
displayName: 'PasswordField',
focusTarget: 'password',
getInitialState: function() {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create... |
ajax/libs/react-bootstrap-typeahead/2.0.0-alpha.3/react-bootstrap-typeahead.js | wout/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
modules/State.js | jeffreywescott/react-router | import React from 'react';
var { object } = React.PropTypes;
/**
* A mixin for components that need to know the path, routes, URL
* params and query that are currently active.
*
* Example:
*
* import { State } from 'react-router';
*
* var AboutLink = React.createClass({
* mixins: [ State ],
* re... |
examples/material-UI-components/src/index.js | react-tools/react-table | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
src/components/desktop/Content/Content.js | pppp22591558/ChinaPromotion | import React, { Component } from 'react';
import withStyles from '../../decorators/withStyles';
import styles from './Content.css';
@withStyles(styles)
class Content extends Component {
state = {
viewport: 0
}
componentDidMount() {
this.setState({
viewport: window.innerWidth
});
}
render(){... |
src/components/NotFound/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Card, {
CardContent
} from 'material-ui/Card'
import Typography from 'material-ui/Typography'
import withStyles from 'material-ui/styles/withStyles'
const styles = theme => ({
head: {
backgroundColor: theme.palette.primary[500],
paddingTop: theme.spacing.unit * 8
}
})
... |
app/components/Footer/index.js | luandro/luandro.me | /**
*
* Footer
*
*/
import React from 'react';
import Marker from './marker.svg';
import styles from './styles.css';
function Footer() {
return (
<div className={styles.wrapper}>
<div className={styles.location}>
<img src={Marker} alt="local" />
<span>em Alter do Chão, Pará</span>
</... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.