path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/containers/Users/UserList.js | danielmoraes/invoices-web-client | import React from 'react'
import { List } from 'components'
import { User } from 'api/entity-schema'
import { buildListColumns } from 'lib/generator'
const fields = ['id', 'name', 'email']
const options = {
id: {
isKey: true,
hidden: true
},
email: {
width: '60%'
}
}
const columns = buildListCol... |
app/javascript/mastodon/features/favourited_statuses/index.js | masarakki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
src/svg-icons/device/signal-wifi-1-bar.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01... |
src/icons/LineStyleIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LineStyleIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 32h10v-4H6v4zm13 0h10v-4H19v4zm13 0h10v-4H32v4zM6 40h4v-4H6v4zm8 0h4v-4h-4v4zm8 0h4v-4h-4v4zm8 0h4v-4... |
js/components/EventView/CategoryItem.js | weihanglo/pycontw-mobile | import React from 'react'
import PropTypes from 'prop-types'
import {
Modal,
StyleSheet,
TouchableHighlight,
View
} from 'react-native'
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
import WebView from '../../common/PyWebView'
import {Text} from '../../common/PyText'
import * as Colors fr... |
react-native/project/my_first_rn_app/src/components/Button.js | khaosdoctor/my-notes | import React from 'react'
import {TouchableOpacity, Text, StyleSheet} from 'react-native'
export function Button ({onPress, text}) {
return (
<TouchableOpacity
style={styles.button}
activeOpacity={.8}
onPress={onPress}
>
<Text style={styles.text}>{text}</Text>
</TouchableOpacity>
... |
node_modules/react-router/es/Route.js | lujinming1/hejicaoye | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
__tests__/components/Input.spec.js | romagny13/react-form-validation | import React from 'react';
import { mount, shallow } from 'enzyme';
import { Input } from '../../src/index';
describe('Input', () => {
it('Should render with no value', () => {
let props = {
name: 'my-field'
};
const wrapper = shallow(<Input {...props} />);
let input... |
webapp/src/components/orthology/booleanCell.js | nathandunn/agr | import React from 'react';
const BooleanCell = ({value, labelTrue, labelFalse}) => {
const backgroundColor = value ? '#dff0d8' : 'transparent';
return (
<td
style={{
backgroundColor: backgroundColor,
}}
>
{
value ? (labelTrue || 'Yes') : (labelFalse || 'No')
}
</td>
... |
app/components/NoteInput.js | elyamad/brocantelab | import React from 'react';
import { Input } from 'react-bootstrap';
var NoteInput = React.createClass({
propsType: {
isValid: React.PropTypes.fn
},
getInitialState() {
return{
defaultValue: 1,
value: 1,
style: null,
errorMsg: 'Note must be between 1 and 5'
}
},
validatio... |
admin/client/components/Footer.js | wmertens/keystone | import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
brand: React.PropTypes.string,
user: React.PropTypes.object,
User: React.PropTypes.object, // eslint-di... |
node_modules/react-icons/lib/md/brush.js | bairrada97/festival | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
react-dev/containers/footer.js | 575617819/yanghang | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import { connect } from 'react-redux';
import { fetchSiteInfo } from '../actions/index';
import { SocialMediaList } from '../components/social_media_list';
import SignupForm from '../components/signup_form';
class Footer extends Compone... |
app/components/Login.js | billyvg/pokemon-journal | import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import autobind from 'autobind-decorator';
import {
observer,
inject,
} from '... |
app/containers/Home.js | darrylivan/marcojscalise.com | /**
* Created by darrylbrown on 1/15/17.
*/
import React, {PropTypes} from 'react';
import {connect} from 'react-redux';
// import {filterTable} from '../actions';
// import ProductTable from '../components/ProductTable';
// import {home} from '../styles/home.scss';
const Home = ({ }) => {
const divStyle = {
p... |
hello-team/src/index.js | spaceraccoon/code4good-crash-course | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<MuiThemeProvider>
<App />
</MuiThemeProvider>,
documen... |
ajax/libs/rxjs/4.0.2/rx.compat.js | terrymun/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
ajax/libs/yui/3.10.2/datatable-core/datatable-core.js | watsoncj/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/components/Context.js | gaearon/react-redux | import React from 'react'
export const ReactReduxContext = React.createContext(null)
export default ReactReduxContext
|
src/parser/priest/holy/modules/talents/15/Enlightenment.js | ronaldpereira/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
import SpiritOfRedemption from 'parser/priest/holy/modules/spells/SpiritOfRedemption';
import ItemManaGained from 'interf... |
lib/MessageBanner/stories/MessageBanner.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import BasicUsage from './BasicUsage';
import Dismissable from './Dismissable';
import ShowHide from './ShowHide';
import readme from '../readme.md';
storiesOf('MessageBanner', module)
.add... |
docs/app/Examples/collections/Form/FieldVariations/index.js | ben174/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const FormFieldVariationsExamples = () => (
<ExampleSection title='Field Variations'>
<ComponentExample
title='Inline'
... |
docs/src/pages/components/chips/Chips.js | kybarg/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Avatar from '@material-ui/core/Avatar';
import Chip from '@material-ui/core/Chip';
import FaceIcon from '@material-ui/icons/Face';
import DoneIcon from '@material-ui/icons/Done';
const useStyles = makeStyles(theme => ({
root: {
... |
src/index.js | eliaslopezgt/ps-react-eli | /* eslint-disable no-unused-vars */
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Docs from './docs/Docs';
import registerServiceWorker from './registerServiceWorker';
import '../node_modules/highlight.js/styles/ocean.css';
ReactDOM.render(
<Docs />,
document.getElementBy... |
ajax/libs/jquery-mobile/1.4.1/jquery.mobile.js | wuwx/cdnjs | /*!
* jQuery Mobile 1.4.1
* Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
dhtmlx/jquery/jquery-1.10.2.js | dl4gbe/kernel | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/molecules/navigation-bar/presentational-test.js | dsmjs/components | import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import NavigationBar from '.';
suite('navigation bar', () => {
test('that the site navigation and social links are included', () => {
const wrapper = shallow(<NavigationBar />);
assert.isTrue(wrapper.find('SiteNavigation... |
src/svg-icons/navigation/apps.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationApps = (props) => (
<SvgIcon {...props}>
<path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/>
</SvgIcon>
... |
kitsune/sumo/static/sumo/js/tests/showfortests.js | NewPresident1/kitsune | import React from 'react';
import {default as mochaJsdom, rerequire} from 'mocha-jsdom';
import {default as chai, expect} from 'chai';
import chaiLint from 'chai-lint';
import sinon from 'sinon';
import mochaJquery from './fixtures/mochaJquery.js';
import mochaBrowserDetect from './fixtures/mochaBrowserDetect.js';
ch... |
ajax/libs/ag-grid/4.0.4/lib/utils.js | sreym/cdnjs | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.0.4
* @link http://www.ag-grid.com/
* @license MIT
*/
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g;
var Utils = (function () {
... |
packages/react-vis/src/plot/content-clip-path.js | uber-common/react-vis | import React from 'react';
export default function ContentClipPath(props) {
const {id = 'content-area', innerWidth, innerHeight} = props;
return (
<defs>
<clipPath id={id}>
<rect x={0} y={0} width={innerWidth} height={innerHeight} />
</clipPath>
</defs>
);
}
ContentClipPath.requiresS... |
src/api.js | jmoenig/Snap--Build-Your-Own-Blocks | /*
api.js
programmatically interact with a Snap! project
written by Jens Mönig
jens@moenig.org
Copyright (C) 2021 by Jens Mönig
This file is part of Snap!.
Snap! is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
... |
packages/material-ui-icons/legacy/SignalWifi1Bar.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49v.01l.01-.01 5.33-6.63C17.06 14.65 15.03 13... |
react-app/src/sections/dev/dev-content-actions/DevContentActions.js | danieluy/www.danielsosa.uy | import React, { Component } from 'react';
import './DevContentActions.css';
import { LinkIcon } from '../../../assets/icons';
class DevContentActions extends Component {
renderActions() {
if (Array.prototype.isPrototypeOf(this.props.actions))
return this.props.actions.map((action, i) => <div key={i}>{a... |
node_modules/native-base/Components/Widgets/List.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import {View, ListView} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import _ from 'lodash';
export default class ListNB extends NativeBaseComponent {
propTypes: {
... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
packages/react-router/modules/Prompt.js | asaf/react-router | import React from 'react'
import PropTypes from 'prop-types'
import invariant from 'invariant'
/**
* The public API for prompting the user before navigating away
* from a screen with a component.
*/
class Prompt extends React.Component {
static propTypes = {
when: PropTypes.bool,
message: PropTypes.oneOfT... |
client-src/components/search/list/header/SearchHeader.js | minimus/final-task | import React from 'react'
import propTypes from 'prop-types'
export default function SearchHeader({ phrase, count }) {
const text = (count === 0) ? `По запросу "${phrase}" ничего не найдено...` :
`Показан результат поиска по запросу: "${phrase}" `
if (count === 0) {
return (
<div className="search-re... |
ajax/libs/x-editable/1.4.6/jqueryui-editable/js/jqueryui-editable.js | angular-ui/cdnjs | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
app/data/contactpage.js | yasserhennawi/yasserhennawi | import React from 'react';
import Facebook from 'components/icons/Facebook';
import Phone from 'components/icons/Phone';
import Twitter from 'components/icons/Twitter';
import Linkedin from 'components/icons/Linkedin';
import Github from 'components/icons/Github';
import Email from 'components/icons/Email';
export def... |
bower_components/datatables/media/js/jquery.js | tnir/startbootstrap-sb-admin-2 | /*! jQuery v1.11.1 | (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... |
client/src/groups/group.card.component.js | Thiht/docktor | // React
import React from 'react';
import { Link } from 'react-router';
// Dependencies
import moment from 'moment';
// Style
import './group.card.component.scss';
// GroupCard Component
class GroupCard extends React.Component {
render() {
const group = this.props.group;
return (
<div className='u... |
shared/app/Tms/components/PieTimer/PieTimer.js | pebie/react-universally-node-config | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import styles from './PieTimer.scss';
/**
* PieTimer
*
* used to display the progress of user for viewing programs
*
* @param {number} [userProgress] % of progression
*
* 13% = 1/8 of the circle (rounded of 12... |
node_modules/react-bootstrap/es/Pagination.js | ASIX-ALS/asix-final-project-frontend | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/icons/src/md/communication/PhonelinkRing.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPhonelinkRing(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40.225 15.4l-2 2c3.6 3.6 3.6 9.2 0 13l2 2c5-4.6 5-12.2 0-17zm-4.2 4.2l-2 2c1 1.4 1 3.2 0 4.6l2 2c2.4-2.4 2.4-6 0-8.6zm-8-17.6c2.2 0 4 1.8 4 4v... |
ajax/libs/forerunnerdb/1.3.854/fdb-core+persist.min.js | brix/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... |
ajax/libs/6to5/2.9.2/browser-polyfill.js | zhangbg/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... |
chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_widget.js | was4444/chromium.src | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview JavaScript for poppup up a search widget and performing
* search within a page.
*/
goog.provide('cvox.SearchWidget');
goog.requir... |
admin/commands/NbItemsField.js | romainquellec/cuistot | import React from 'react';
import { FunctionField } from 'admin-on-rest/lib/mui'
const render = record => record.basket.length;
const NbItemsField = (props) => <FunctionField {...props} render={render} />;
NbItemsField.defaultProps = {
label: 'Nb Items',
style: { textAlign: 'right' },
headerStyle: { text... |
dispatch/static/manager/src/js/components/ZoneEditor/index.js | ubyssey/dispatch | import React from 'react'
import R from 'ramda'
import { connect } from 'react-redux'
import DocumentTitle from 'react-document-title'
import * as zonesActions from '../../actions/ZonesActions'
import * as Form from '../Form'
import Panel from '../Panel'
import FieldGroup from '../fields/FieldGroup'
import ListItemTo... |
src/components/Footer/Footer.js | i3ringit/mdelc | /**
* 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... |
docs/form/index.js | sunnylqm/amazeui-react | 'use strict';
var fs = require('fs');
var React = require('react');
var ReactBin = require('../ReactBin');
var Markdown = require('../utils').Markdown;
var Doc = require('../utils').Doc;
var examples = {
basicForm: fs.readFileSync(__dirname + '/01-basic-form.js', 'utf-8'),
disableField: fs.readFileSync(__dirname +... |
src/components/dataVisualization/eCharts/EchartsPie.js | SmiletoSUN/react-redux-demo | import React from 'react';
import ECharts from 'echarts-for-react';
const option = {
title: {
text: 'Customized Pie',
left: 'center',
top: 20,
textStyle: {
color: '#777',
},
},
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)',
},
visualMap: {
show: fa... |
local-cli/install.js | sudhirj/react-native | /**
* Copyright 2004-present Facebook. All Rights Reserved.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var NODE_MODULE_PATH = path.resolve(__dirname, 'node_modules');
var PODFILE_PATH = path.resolve(__dirname, 'Podfile');
function addDependency... |
ajax/libs/vue-smart-table/2.5.0-beta1/vue-smart-table.min.js | wout/cdnjs | !function(u,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("Vue")):"function"==typeof define&&define.amd?define(["Vue"],n):"object"==typeof exports?exports.SmartTable=n(require("Vue")):u.SmartTable=n(u.Vue)}(this,function(u){return function(u){function n(e){if(t[e])return t[e].exports;var... |
ajax/libs/mediaelement/1.1.2/jquery.js | voronianski/cdnjs | /*!
* jQuery JavaScript Library v1.4.4
* 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.
... |
app/client/app.js | jbermudezlobo/lolstats-builder | import React from 'react';
import ReactDOM from 'react-dom';
import Main from './components/Main';
const config = {
appContainer: 'builderApp',
appDataContainer: 'builderData',
builderData: {}
};
// document.getElementsByTagName('title')[0] = config.appTitle;
// config.builderData = JSON.parse(document.getEle... |
ajax/libs/react-data-grid/1.0.11/react-data-grid.ui-plugins.js | dakshshah96/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... |
demo/src/examples/SuggestionPortal.js | effektif/react-mentions | import React from 'react'
import { merge } from '../../../src/utils'
import { Mention, MentionsInput } from '../../../src'
import { provideExampleValue } from './higher-order'
import defaultStyle from './defaultStyle'
import defaultMentionStyle from './defaultMentionStyle'
let container
function SuggestionPortal({ va... |
public/app/src/components/Button.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
const Button = props => {
const cls = `btn btn-${props.type} btn-${props.size}`;
return (
<button type='button' className={ cls } onClick={props.click}>
{ props.children }
</button>);
};
Button.defaultProps = {
type: 'default',
size: '... |
demo/index.android.js | vlad-doru/react-native-calendar-datepicker | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class demo extends Component {
render() {
return (
<View style={styles.container}>
<Text sty... |
src/views/dictionary/word/addedit/AEForm.js | bostontrader/senmaker | import React from 'react'
import ReactTestUtils from 'react-dom/test-utils'
import rtRenderer from 'react-test-renderer'
import initialState from '../../../../data/StateGetter'
const testFunction = (AEForm, wordType) => {
const key = 'add' + wordType.charAt(0).toUpperCase() + wordType.slice(1)
let stat... |
ajax/libs/yui/3.3.0pr4/event/event-focus.js | jessepollak/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,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
docs/app/Examples/collections/Message/Variations/MessageExampleFloating.js | koenvg/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleFloating = () => (
<Message floating>
Way to go!
</Message>
)
export default MessageExampleFloating
|
src/Parser/DemonologyWarlock/Modules/Talents/Shadowflame.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon... |
src/components/Header/Header.js | sloppylopez/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
return (... |
src/index.js | VasilyShelkov/Bill | import 'babel-polyfill';
import ReactDOM from 'react-dom';
import React from 'react';
import { combineReducers, compose, applyMiddleware, createStore } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { Provider } from 'react-redux';
import statementsReducer from './statement/statementsReducer';
import B... |
app/components/AccessibilityView.js | STOP2/stop2.0-traveller-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View, StatusBar } from 'react-native';
import colors from '../styles/colors';
export class AccessibilityView extends Component {
componentWillMount() {
StatusBar.setBackgroundColor(colors.statusBar);
}
render() {
... |
src/svg-icons/action/translate.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTranslate = (props) => (
<SvgIcon {...props}>
<path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7... |
src/filter-input.js | leahjlou/react-filter-builder | import React from 'react';
export default class FilterInput extends React.Component {
render() {
// TODO implement all these
switch(this.props.operator.inputType) {
case 'none':
return null;
break;
case 'text':
default:
return (
<div style={{margin: '8px 0'}}>
<input type="text" v... |
react/FacebookIcon/FacebookIcon.sketch.js | seek-oss/seek-style-guide | import React from 'react';
import FacebookIcon from './FacebookIcon';
import generateSketchIconSizes from '../private/generateSketchIconSizes';
export const symbols = {
...generateSketchIconSizes('Facebook/1. Unfilled', <FacebookIcon />),
...generateSketchIconSizes('Facebook/2. Filled', <FacebookIcon filled />)
};... |
src/routes/error/index.js | loganfreeman/react-is-fun | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 App from '../../componen... |
node_modules/material-ui/svg-icons/hardware/devices-other.js | rekyyang/ArtificalLiverCloud | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
examples/using-javascript-transforms/src/templates/mdBlogPost.js | gatsbyjs/gatsby | import React from "react"
import { graphql } from "gatsby"
import BlogPostChrome from "../components/BlogPostChrome"
class mdBlogPost extends React.Component {
render() {
const { html } = this.props.data.markdownRemark
return (
<BlogPostChrome
{...{
frontmatter: this.props.data.markd... |
app/index.js | kosich/pomodoro-pi | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... |
src/index.js | shioyang/couch_dashboard | import React from 'react'
import ReactDOM from 'react-dom'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import Root from './containers/Root'
const App = () => (
<MuiThemeProvider>
<Root />
</MuiThemeProvider>
)
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
blueocean-material-icons/src/js/components/svg-icons/hardware/cast-connected.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H... |
src/Table.js | pombredanne/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
packages/react/src/components/forms/HelperText/index.js | massgov/mayflower | /**
* HelperText module.
* @module @massds/mayflower-react/HelperText
* @requires module:@massds/mayflower-assets/scss/01-atoms/helper-text
*/
import React from 'react';
import PropTypes from 'prop-types';
const HelperText = (props) => (
<label
htmlFor={props.inputId}
aria-labelledby={props.inputId}
... |
src/svg-icons/navigation/expand-more.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandMore = (props) => (
<SvgIcon {...props}>
<path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/>
</SvgIcon>
);
NavigationExpandMore = pure(NavigationExpandMore);
NavigationExpandMore.displayN... |
src/constants/ActionTypes.js | jbsouvestre/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import keyMirror from 'react/lib/keyMirror';
export default keyMirror({
CHANGE_LOCATION: null
});
|
app/containers/Posts/instances/2017-05-06_i-am-too-drunk-to-be-trying-to-work/index.js | brainsandspace/ship | /*
*
* See Slug Slow
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Post from 'components/Post';
import PostHeading from 'components/PostHeading';
import PostTitle from 'components/PostTitle';
import PostDate from 'components/PostDate';
import Chunk from 'components/Chunk';
import post... |
src/client/index.js | eliasmeire/hz-pictionary | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App/App';
import './index.scss';
import store, { history } from './redux/store';
ReactDOM.render(
<Provider store={store}>
<App history={history} />
</Provider>,
document.getElem... |
packages/dailyjack-web/src/pages/App/index.js | kevin940726/dailyjack | import React, { Component } from 'react';
import styled from 'emotion/react';
import { Switch, Route } from 'react-router-dom';
import firebase from 'firebase';
import Header, { HeaderTitle } from './Header';
import Main from './Main';
import ViewAllPage from '../ViewAllPage';
import AddNewPage from '../AddNewPage';
im... |
demos/forms-demo/src/components/Fields/Input/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state, props, signal} from 'cerebral/tags'
import {css} from 'aphrodite'
import styles from './styles'
export default connect({
field: state`${props`path`}.**`,
settings: state`app.settings.**`,
fieldChanged: signal`simple.fieldChanged`
},
... |
src/components/otherCallsToAction/DonateToACLU.js | lukebelliveau/aclu-matchers | import React from 'react';
import { StyleSheet, css } from 'aphrodite';
const styles = StyleSheet.create({
buttonWrapper: {
'@media (max-width: 740px)': {
margin: '10px 15px',
width: 'auto',
display: 'block',
},
'@media (min-width: 740px)': {
... |
source/components/RemountOnNavigate.js | halt-hammerzeit/react-isomorphic-render | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
class RemountOnNavigate extends React.Component {
static propTypes = {
matchedLocation: PropTypes.object.isRequired,
previousLocation: PropTypes.object.isRequired,
children: PropTypes.node.isRequired
}
render()... |
ajax/libs/yui/3.7.2/scrollview-base/scrollview-base-debug.js | pcarrier/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... |
node_modules/react-bootstrap/es/MediaListItem.js | newphew92/newphew92.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.lite.compat.js | YfLn/CEN3031FA14 | // 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
};
v... |
ajax/libs/stellar-base/0.3.2/stellar-base.js | kennynaoh/cdnjs | var StellarBase =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ re... |
packages/material-ui-icons/src/CallSplitOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4h-6zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3L10 4z" />
, 'CallSplitOutlined');
|
hw6-frontend/src/components/article/addComment.js | lanyangyang025/COMP531 | import React from 'react'
import { connect } from 'react-redux'
import { add_Comment } from './articleActions'
//content of a comment
export const AddComment = ({dispatch, article}) => {
let text;
return(
<div className="col-sm-9 col-sm-offset-3">
<input type="text" className="form-control" id="new_comment" placeho... |
ajax/libs/react-popper/0.6.6/react-popper.js | froala/cdnjs | /*!
* React Popper 0.6.6
* https://github.com/souporserious/react-popper
* Copyright (c) 2017 React Popper Authors
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("prop-types"));
else ... |
examples/counter/src/Components/Counter/Counter.js | Annevo/redux-eventually | /* eslint immutable/no-mutation: 0 */
import React from 'react';
import PropTypes from 'prop-types';
const Counter = props => (
<div
className="counter"
style={{
display: 'flex',
justifyContent: 'center',
flexDirection: 'column',
width: '100%',
padding: '50px',
boxShadow:... |
src/containers/board.js | laniywh/game-of-life | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Cell from '../components/cell';
import { bindActionCreators } from 'redux';
import { toggleCell, createCells } from '../actions/index';
class Board extends Component {
renderCells() {
const { cellWidth, cells } = this.props;... |
src/index.js | cezar-carneiro/resume | import React from 'react';
import ReactDOM from 'react-dom';
import Resume from './Resume';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<Resume />, document.getElementById('root'));
registerServiceWorker();
|
media/sourcecoast/js/jq-bootstrap-1.8.3.js | elayarajap/dolo_dev | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function ... |
src/svg-icons/communication/stay-current-portrait.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);... |
src/homepage/___tests__/test_welcome_calendar.js | MichalKononenko/OmicronClient | /**
* Created by Michal on 2016-04-04.
*/
import React from 'react';
import expect from 'expect';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import {CalendarTemplate} from '../welcome_calendar';
describe("Calendar Header Template", () => {
let date;
let on_select_event;
let on_select_event_co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.