path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
fixtures/packaging/systemjs-builder/prod/input.js | yungsters/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
modules/gui/src/app/home/body/process/recipe/classification/panels/trainingData/trainingDataSet.js | openforis/sepal | /* eslint-disable react/jsx-key */
import {Form} from 'widget/form/form'
import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process/recipeFormPanel'
import {compose} from 'compose'
import {msg} from 'translate'
import {selectFrom} from 'stateUtils'
import ClassMappingStep from './classMappingStep'
import Cla... |
app/talk/discussion-preview.spec.js | amyrebecca/Panoptes-Front-End | import React from 'react';
import assert from 'assert';
import {Link} from 'react-router';
import { shallow } from 'enzyme';
import DiscussionPreview from './discussion-preview';
const validProject = {
id: 34,
slug: 'test/project'
};
const discussion = {
id: 42,
board_id: 3456,
latest_comment: 1234
};
desc... |
packages/cf-component-toggle/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import Toggle from 'cf-component-toggle';
class ToggleComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
toggleValue: false
};
}
handleToggle(value) {
this.setState({
toggleValue: value
});
}
render() {
return... |
files/yasqe/2.2.2/yasqe.bundled.min.js | petkaantonov/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,r,i)... |
packages/react-error-overlay/src/components/CodeBlock.js | matart15/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
core/org.wso2.carbon.ui/src/main/resources/web/yui/build/yuiloader/yuiloader-beta.js | maheshika/carbon4-kernel | /*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.3.1
*/
/**
* Provides dynamic loading for the YUI library. It includes the dependency
* info for the library, and will automatically pull in dependencies for
* the modul... |
lib/pages/ListDatasets/index.js | Kitware/light-viz | import React from 'react';
import SvgIcon from 'paraviewweb/src/React/Widgets/SvgIconWidget';
import style from 'LightVizStyle/ListDatasets.mcss';
import { listDatasets } from '../../client';
import ThumbnailList from './ThumbnailList';
import lightVizIcon from '../../../svg/LightViz.svg';
import { loadConfiguration... |
ui/src/core/components/Navigation.js | Hajto/erlangpl | // @flow
import React from 'react';
import { Link, Route } from 'react-router-dom/';
import './Navigation.css';
const NavigationLink = ({ to, icon }) => (
<Route
path={to}
exact={false}
children={({ match }) => (
<div className={`item ${match ? 'active' : ''}`}>
<Link to={to}>
{i... |
ajax/libs/6to5/2.12.1/browser.js | him2him2/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.to5=t()}}(function(){var e,t,r;return function n(e,t,... |
src/assets/components/Main.js | carpeliam/timebox-light | import React from 'react';
import Box from './Box';
export default class Main extends React.Component {
constructor() {
super();
this.toggleActive = this.toggleActive.bind(this);
this.state = { name: 'I am a box', duration: 0, lastCheckedTime: undefined, paused: true };
}
componentDidMount() {
t... |
docs/src/PropTable.js | laran/react-bootstrap | import merge from 'lodash/object/merge';
import React from 'react';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
import Table from '../../src/Table';
let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, '');
let capitalize = str => str[0].toUpperCase() + str.... |
docs/src/app/components/pages/components/Menu/ExampleIcons.js | IsenrichO/mui-with-arrows | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye';
import PersonAdd from 'material-ui/svg-icons/social/person-add';
import ContentLink from 'material-ui... |
src/Pagination.js | modulexcite/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
const Pagination = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
activePage: React.PropTypes.number,
items: React.PropTypes.number,... |
src/js/components/Tag.js | primozs/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Anchor from './Anchor';
import Props from '../utils/Props';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.TAG;
export default class Tag extends Component {
r... |
ajax/libs/aui/5.6.4/aui/js/aui-all.js | joseluisq/cdnjs | !function(){"use strict";function a(a,c){var d=new b(a,c),e=function(){var b=document.createElement(a);return d.init(b),b};return e.listener=d,e}function b(b,c){c||(c={}),"function"==typeof c&&(c={insert:c}),this.component=c,this.id=b,j(this.component,a.defaults),this.component.ready&&u(this),this.component.listen&&thi... |
www/src/components/Navbar.js | haneev/react-widgets | import React from 'react';
import Navbar from 'react-bootstrap/lib/Navbar';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import LinkContainer from 'react-router-bootstrap/lib/LinkContainer';
import WidgetNav from './WidgetNav';
import SubNavbar from './SubNavbar';
cons... |
components/input/Input.js | rahultaglr/taglr-toolbox | import React from 'react';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { INPUT } from '../identifiers.js';
import InjectedFontIcon from '../font_icon/FontIcon.js';
const factory = (FontIcon) => {
class Input extends React.Component {
static propTypes = {
children: R... |
src/js/popup.js | lobbylayer/chrome | import Info from './popup/Info'
import React from 'react'
import { render } from 'react-dom'
import client from './graphql'
import { ApolloProvider } from 'react-apollo'
render(
(
<ApolloProvider client={client}>
<Info />
</ApolloProvider>
),
window.document.getElementById('app-container')
)
|
client/src/components/tutorials/videoItem.js | OpenChemistry/materialsdatabank | import React from 'react';
import withStyles from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import Card from '@material-ui/core/Card';
import VideoIcon from '@material-ui/icons/Videocam';
import { CardContent, CardActionArea } from '@material-ui/core';
const Image = ... |
shared/components/Equilab/Hero/Hero.js | thehink/equilab-web | import React, { Component } from 'react';
import { Element, scroller } from 'react-scroll';
import DownloadBar from 'Equilab/DownloadBar';
import styles from './Hero.scss';
export default class Hero extends Component {
onClick = () => {
scroller.scrollTo('info', {
duration: 500,
delay: 100,
sm... |
docs/src/app/components/pages/components/AppBar/Page.js | ArcanisCz/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import appBarReadmeText from './README';
import AppBarExampleIcon from './ExampleI... |
src/components/Element/ObjectElement.js | fedebertolini/json-editor | import React, { Component } from 'react';
import { Icon } from 'semantic-ui-react';
import Element from './Element';
import Actions from '../Actions';
import withEmitter from '../EventEmitter/withEmitter';
const getPropertyName = (path) => {
return path.length ? `${path[path.length - 1]}` : 'object';
}
class Obje... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedMobile.js | clemensw/stardust | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedMobile = () => (
<Grid reversed='mobile' columns='equal'>
<Grid.Column>Mobile Fourth</Grid.Column>
<Grid.Column>Mobile Third</Grid.Column>
<Grid.Column>Mobile Second</Grid.Column>
<Grid.Column>Mobile First</Gr... |
packs_web/ClioPatria/web/yasqe/dist/yasqe.bundled.js | TeamSPoon/logicmoo_workspace | !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.YASQE=e()}}(function(){var define,module,exports;retu... |
lib/__tests__/index-test.js | mathieumg/react-a11y | var React = require('react');
var assert = require('assert');
var a11y = require('../index');
var assertions = require('../assertions');
var k = () => {};
var captureWarnings = (fn) => {
var _warn = console.warn;
var msgs = {};
console.warn = (id, msg, srcNode) => {
msgs[msg] = srcNode ? srcNode : true;
}... |
ajax/libs/react/0.5.2/react-with-addons.js | jacobq/cdnjs | /**
* React (with addons) v0.5.2
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;
return ... |
public/lib/parsleyjs/src/parsley/form.js | Javier3131/ProyectoDAW | define('parsley/form', [
'parsley/abstract',
'parsley/utils'
], function (ParsleyAbstract, ParsleyUtils) {
var ParsleyForm = function (element, domOptions, options) {
this.__class__ = 'ParsleyForm';
this.__id__ = ParsleyUtils.generateID();
this.$element = $(element);
this.domOptions = domOptions;... |
src/containers/RequestPassword/Phone.js | mrnav90/react-enigma-employee | import React from 'react';
import {MasterLayout} from 'components/Layout';
import {ResetPasswordViaPhone} from 'components/ResetPasswordForm';
export default class RequestPasswordPhone extends React.Component {
render() {
return (
<MasterLayout>
<ResetPasswordViaPhone/>
</MasterLayout>
);... |
public/assets/scripts/containers/highlights/index.js | luisfbmelo/reda | import React from 'react';
import { Component } from 'react';
import { connect } from 'react-redux';
import { fetchHighlights } from '@/actions/resources';
import { bindActionCreators } from 'redux';
import ResourceHighlights from '@/components/resources/highlights';
function mapStateToProps(state) {
return {
hi... |
frontend/app_v2/src/components/Dictionary/DictionaryPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import DictionaryList from 'components/DictionaryList'
import DictionaryGrid from 'components/DictionaryGrid'
import SearchInput from 'components/SearchInput'
import useIcon from 'common/useIcon'
function DictionaryPr... |
vendor/svg-edit/svg-edit/jquery.js | shailendrairis/TikiWiki12.2 | /*! 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/App/presentation.js | chocolateorange/new-post.crx | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames/bind';
import Definitions from '../Definitions';
import HorizontalLine from '../HorizontalLine';
import LabeledInput from '../LabeledInput';
import LabeledTextArea from '../LabeledTextArea';
import TitleHeader from '../Ti... |
internals/templates/app.js | gihrig/react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/router.js | pekkis/web-development-with-js | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import { receiveTodos } from './actions/todo-actions';
import App from './components/container/AppContainer';
import IndexPage from './components/container/IndexPageContainer';
import TodoPage from './components/container/TodoPageCont... |
fields/types/password/PasswordField.js | kwangkim/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'PasswordField',
getInitialState () {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create' ? true :... |
app/react-icons/fa/flag.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaFlag extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m7 6.1q0 1.5-1.4 2.4v27.5q0 0.3-0.2 0.5t-0.5 0.2h-1.4q-0.3 0-0.5-0.2t-0.2-0.5v-... |
src/basic/FooterTab.js | sampsasaarela/NativeBase | import React, { Component } from 'react';
import { View } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class FooterTab extends Component {
render() {
return (
<View ref={c => this._root = c} {...this.props}... |
ajax/libs/analytics.js/2.0.0/analytics.min.js | MisatoTremor/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
js/components/badge/index.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Badge, Text, Left, Right, Body } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
class NHBadge extends Component { //eslint-... |
src/components/Cat.js | alexedev/relay-workshop | import React from 'react';
const Cat = ({ cat, onToggleShwifty, onDelete }) => (
<div>
{cat && (
<article className="dt w-100 bb b--black-05 pb2 mt2" href="#0">
<div className="dtc w2 w3-ns v-mid">
<img
src={cat.imageUrl}
className="ba b--black-10 db br-100 w2 w3-n... |
src/components/Home.js | ArtanisAce/movie-lists | import React from "react";
import styled from "styled-components";
import tmdbLogo from "../svg/powered-by-tmdb.svg";
import SearchBar from "./SearchBar";
import ReactSVG from "react-svg";
const TMDBLogo = styled(ReactSVG)`
float: right;
height: 48px;
width: 122px;
margin-right: 16px;
`;
const Footer = styled... |
tests/react_imports/es-default.js | claudiopro/flow | import React from 'react';
(React.Component: Object); // OK
(React.Component: number); // Error
('Hello, world!': React.Node); // Error: Not in default export.
({}: React.Node); // Error: Not in default export.
(null: React.Missing); // Error: Not in default export.
|
src/containers/Asians/_components/ViewLockedRound/Ballots/LargeBallots/Instance/OverviewInstance/Total.js | westoncolemanl/tabbr-web | import React from 'react'
import List, {
ListItem,
ListItemIcon,
ListItemText
} from 'material-ui/List'
import StarIcon from 'material-ui-icons/Star'
export default ({
total,
winner
}) =>
<div
className={'w-100'}
>
<List>
<ListItem>
{winner && <ListItemIcon>
<StarIcon />
... |
ajax/libs/babel-core/4.0.1/browser.js | viskin/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... |
lib/types/TimeFloatImage.js | Kitware/arctic-viewer | import FloatDataImageBuilder from 'paraviewweb/src/Rendering/Image/FloatDataImageBuilder';
import FloatTimeDataImageBuilder from 'paraviewweb/src/Rendering/Image/FloatTimeDataImageBuilder';
import GenericViewer from 'paraviewweb/src/React/Viewers/ImageBuilderViewer';
import OverlayWindow from 'paraviewweb/src/React/Con... |
server/dashboard/js/components/TimelineElement.react.js | timofey-barmin/mzbench | import React from 'react';
import moment from 'moment';
import RelativeDate from './RelativeDate.react';
import MZBenchActions from '../actions/MZBenchActions';
import Star from './Star.react';
import MZBenchRouter from '../utils/MZBenchRouter';
import GlobalStore from '../stores/GlobalStore';
import PropTypes from 'p... |
test/specs/elements/Step/Step-test.js | Semantic-Org/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Step from 'src/elements/Step/Step'
import StepContent from 'src/elements/Step/StepContent'
import StepDescription from 'src/elements/Step/StepDescription'
import StepTitle from 'src/elements/Step/StepTitle'
import * as common from 'test/specs/commonTests'
impo... |
Examples/UIExplorer/UIExplorerTitle.js | lightsofapollo/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,
... |
docs/src/app/components/pages/components/Toolbar/ExampleSimple.js | manchesergit/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from... |
app/src/components/common/NoData.js | templatetools/trace | /**
* Created by qcm on 2017/8/2.
*/
import React from 'react'
import PropTypes from 'prop-types'
import order from '../../../asset/common/list@3x.png'
import message from '../../../asset/common/cooperation_msg_default.svg'
import assets from '../../../asset/common/assets@3x.png'
class NoData extends React.Compone... |
examples/test-cra/src/index.js | jribeiro/storybook | import React from 'react';
import ReactDOM from 'react-dom';
import { document } from 'global';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
sites/all/modules/ctools/js/dependent.js | JennyLeeSilver/writeoutsidethelines | /**
* @file
* Provides dependent visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('ctools_process_dependency'),
* - '#dependency' => array('id-of-form-item' => array(list, of, values, that,
* make, this, item, show),
*
* Special considerations:
... |
src/components/home.js | djake1680/React-Weight-Calculator | import React, { Component } from 'react';
import Header from './header';
import WeightForm from './weight-form';
export default class App extends Component {
render() {
return (
<div>
<Header />
<WeightForm />
</div>
);
}
} |
src/tile/__tests__/FeaturedTile.js | kosiakMD/react-native-elements | import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import FeaturedTile from '../FeaturedTile';
describe('FeaturedTitle component', () => {
it('should render without issues', () => {
const component = shallow(
<FeaturedTile imageSrc={{ url: 'http://google.com' ... |
src/components/Link/Link.js | LeraSavchenko/Maysternia | import React from 'react';
import PropTypes from 'prop-types';
import history from '../../history';
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
class Link extends React.Component {... |
app/components/Header/Header.js | celikmus/MathWise | import React from 'react';
import PropTypes from 'prop-types';
import { View, Text, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { MaterialCommunityIcons } from '@expo/vector-icons';
import { getIconName } from '../../utils/icons';
import styles from './styles';
const Header = ... |
src/router.js | wachterjohannes/officular | import React from 'react';
import Router from 'react-routing/src/Router';
import App from './components/App';
import NotFoundPage from './components/NotFoundPage';
import ErrorPage from './components/ErrorPage';
import HomePage from './components/HomePage';
const router = new Router(on => {
on('*', async (state, ... |
src/encoded/static/components/PageTitle.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import url from 'url';
import memoize from 'memoize-one';
import { Alerts } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/Alerts';
import { LocalizedTime } from '@hms-dbmi-bgm/shared-portal-compone... |
src/components/molecules/career-summary-section.js | raulfdm/cv | import React from 'react';
import styled from 'styled-components';
import { MainContext } from 'src/contexts/main';
import { Section, SectionBody, SectionTitle } from 'atoms/section';
import { stringToArrayOfParagrahs } from 'utils/string.utils';
const CareerParagraph = styled.p`
margin-bottom: 0.8rem;
`;
const Ca... |
client/react/src/components/orderItem/OrderItemsView.js | peasy/peasy-js-samples | import React from 'react';
import { Link } from 'react-router-dom';
import OrderItemActions from '../../actions/orderItemActions';
import InventoryItemActions from '../../actions/inventoryItemActions';
import constants from '../../constants';
import ListViewBase from '../../components/common/ListViewBase';
let orderIt... |
html.js | inthegully/reactPortfolio | import React from 'react'
import PropTypes from 'prop-types'
import { prefixLink } from 'gatsby-helpers'
import { TypographyStyle } from 'react-typography'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
export default class HTML extends React.Component {
static propTypes = {
... |
package.js | okgrow/meteor-persistent-session | Package.describe({
name: "u2622:persistent-session",
version: "0.4.4",
summary: "Persistently store Session data on the client",
git: "https://github.com/okgrow/meteor-persistent-session"
});
Package.onUse(function(api) {
api.versionsFrom('0.9.1'),
api.use(['jquery', 'amplify', 'tracker', 'reactive-dict', ... |
src/svg-icons/action/room.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z... |
React Native/Demos/react_native_net/main/index.js | AngryLi/note-iOS | /**
* Created by Liyazhou on 16/9/7.
*/
import React from 'react';
import {
AppRegistry,
View,
StyleSheet,
TouchableOpacity,
Text,
PixelRatio,
AlertIOS
} from 'react-native';
export default class Index extends React.Component {
render() {
return (
<View style={[st... |
ajax/libs/yui/3.6.0/event-focus/event-focus.js | mitsuruog/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = YLang.isFunction(
Y... |
app/javascript/mastodon/features/compose/components/character_counter.js | pixiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
ajax/libs/material-ui/4.10.0/esm/withWidth/withWidth.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import{getDisplayName}from"@material-ui/utils";import{getThemeProps}from"@material-ui/styles";import hoistNonRea... |
js/components/sortableTable.js | manninglucas/browser-laptop | /* 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/. */
const React = require('react')
const ImmutableComponent = require('./immutableComponent')
const tableSort = requir... |
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | vanloswang/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
Examples/ExampleAPI25/App.js | devstepbcn/react-native-android-wifi | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Modal,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
ScrollView,
View,
PermissionsAndroid
} from 'react-native';
import wifi from 'react-native-android-wifi';
... |
src/app/components/gridOil.js | webcoding/reactui-starter | import React from 'react';
import Reflux from 'reflux';
import Griddle from 'griddle-react';
import cx from 'classnames';
import { Link } from 'react-router';
import oilsStore from 'stores/oils';
import GriddlePager from 'components/griddlePager';
import Spinner from 'components/spinner';
let oilLinkColumn = React.c... |
__tests__/src/components/progress.spec.js | bluedaniel/Kakapo-app | import React from 'react';
import renderer from 'react-test-renderer';
import Progress from 'components/ui/progress/progress';
test('<Progress/> render', () => {
const tree = renderer.create(<Progress />).toJSON();
expect(tree).toMatchSnapshot();
});
test('<Progress/> rounds 0.415 to 42% ', () => {
const tree =... |
ajax/libs/video.js/5.0.0-19/video.js | samthor/cdnjs | /**
* @license
* Video.js 5.0.0-19 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Ve... |
src/Tile.js | liuxiaole/2048-react | import React, { Component } from 'react';
import './Tile.css';
const TILE_WIDTH = 100;
const TILE_GAP = 10;
export default class Tile extends Component {
render () {
let {cell, col, row} = this.props;
let classMap = {
tile: true,
[`tile-${cell.number}`]: true,
'tile-new': cell.newGenerated... |
src/partials/contributors.js | getinsomnia/website | import React from 'react';
import contributors from '../assets/contributors.json';
import Waypoint from 'react-waypoint';
import Link from '../components/link';
class Contributors extends React.Component {
state = {
contributors: []
};
load() {
this.setState({ contributors });
}
render() {
cons... |
src/components/entities/Eye.js | DelvarWorld/some-game | import React, { Component, PropTypes } from 'react';
import THREE from 'three';
import { Mesh } from '../';
export default class Eye extends Component {
render() {
const {
position, quaternion, rotation, scale, materialId, assets
} = this.props;
return <Mesh
ref="... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/All.js | ylu1317/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps: DefaultProps = {};
props: Props;
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Componen... |
routes/Statistic/components/Card/ViewNumber.js | YongYuH/Ludo | import React from 'react';
import styled from 'styled-components';
const eyeIconSrc = './static/eye.svg';
const Icon = styled.img`
height: 15px;
width: 15px;
`;
const Number = styled.span`
font-size: 12px;
`;
const Wrapper = styled.div`
align-items: center;
bottom: 5px;
justify-content: flex-end;
displa... |
src/js/components/ui/Loader.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... |
fields/types/numberarray/NumberArrayFilter.js | jacargentina/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between' },
];
... |
ajax/libs/material-ui/4.9.3/esm/BottomNavigationAction/BottomNavigationAction.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBa... |
web/components/shared/effects/FadeIn.js | skidding/flatris | // @flow
import React, { Component } from 'react';
import type { Node } from 'react';
type Props = {
children: ?Node,
};
export default class FadeIn extends Component<Props> {
render() {
const { children } = this.props;
return (
<div className="fade-in">
{children}
<style jsx>{`
... |
ajax/libs/forerunnerdb/1.3.46/fdb-core.min.js | keicheng/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/esm/components/typography/sup-title/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
import { Text } from '../../typography/text';
export var SupTitle = function SupTitle(props) {
return /*#__PURE__*/React.createElement(Text, _extends({
size: "small",
lineHeight: "normal",
transform: "uppercase",
weight:... |
src/svg-icons/action/view-headline.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewHeadline = (props) => (
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/>
</SvgIcon>
);
ActionViewHeadline = pure(ActionViewHeadline);
ActionViewHeadline.d... |
src/components/LightingDirectional.js | kelsonic/Kelsonic | // Dependencies
import 'aframe';
import React from 'react';
const LightingDirectional = () => (
<a-light
color="#fff"
intensity="0.2"
position="-1 2 1"
type="directional"
/>
);
export default LightingDirectional;
|
packages/component/src/Toast/createToastMiddleware.js | billba/botchat | /* eslint react/prop-types: "off"*/
import React from 'react';
import BasicToast from '../BasicToast';
function createToastMiddleware() {
return () => () => ({ notification }) => <BasicToast notification={notification} />;
}
export default createToastMiddleware;
|
fields/types/relationship/RelationshipColumn.js | andreufirefly/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var Relat... |
vendor/bundle/ruby/2.3.0/gems/babel-source-5.8.35/lib/babel/polyfill.js | aamin005/Firdowsspace | (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/FlatChat.js | Marcotrombino/react-native-flat-chat |
/**@class FlatChat
* @author: Marco Trombino
* @version: 0.1.0 Last update: 09-23-2017
* @see https://github.com/Marcotrombino/react-native-flat-chat
* @license GPL-3.0
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... |
src/client/assets/js/nodes/processors/uibuilder/features/mapper/components/Mapper/Mapper.js | me-box/iot.red | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { actionCreators as mapperActions, viewConstants, selector, NAME } from '../..';
import { actionCreators as shapeActions, NAME as CANVASNAME } from 'nodes/processors/uibuilder/features/can... |
ajax/libs/yasgui/0.0.5/yasgui.bundled.min.js | tresni/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
components/ImpactLeague/ImpactLeagueHome.js | akashnautiyal013/ImpactRun01 |
'use strict';
import React, { Component } from 'react';
import{
StyleSheet,
View,
Image,
ScrollView,
Dimensions,
TouchableOpacity,
Text,
ListView,
AlertIOS,
NetInfo,
AsyncStorage,
RefreshControl,
} from 'react-native';
import apis from '../apis';
import commonStyles f... |
client/js/demos/onchange-examples.js | training4developers/react_06262017 | import React from 'react';
import ReactDOM from 'react-dom';
import '../css/styles.scss';
class FormDemo extends React.Component {
constructor(props) {
super(props);
this.state = {
inputText: '',
inputNumber: 0,
inputColor: '#000000',
inputRange: 0,
inputEmail: '',
inpu... |
src/js/components/icons/base/FastForward.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/VmModals/DeleteConfirmationModal.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import { MessageDialog, Icon } from 'patternfly-react'
import { msg } from '_/intl'
class DeleteConfirmationModal extends React.Component {
constructor (props) {
super(props)
this.state = { show: false }
this.handleTriggerClick = this.handleTri... |
app/src/pages/UserProfilePage/index.js | udacityalumni/udacity-alumni-fe | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { UserProfileContainer } from 'containers';
const UserProfilePage = () => (
<div className={styles.container}>
<UserProfileContainer />
</div>
);
export default cssModules(UserProfilePage, s... |
src/components/Person.stories.js | janimattiellonen/fgr | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Person from './Person';
import faker from 'faker';
import uuid from 'uuid';
const male = {
firstName: 'Ville',
lastName: 'Mikkola',
gender: 'm',
avatar: faker.image.avatar(),
id: uuid.v4(),
};
const female = {
firstNa... |
src/pages/reference/states.js | inkdropapp/docs | import React from 'react'
import { StaticQuery, graphql, Link } from 'gatsby'
import ReferenceLayout from '../../components/reference-layout'
export default function StatesIndex() {
return (
<ReferenceLayout currentPageTitle="App States">
<h1>App States</h1>
<StaticQuery
query={menuQuery}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.