path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react-bootstrap/0.23.1/react-bootstrap.js | calebmer/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
examples/counter/index.js | chrisclarke1977/redux | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
js/components/pages/Dashboard.react.js | Wedjaa/fit-calendar | /*
* HomePage
*
* The Dashboard is only visible to logged in users
* Route: /dashboard
*
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
class Dashboard extends Component {
render() {
return (
<article>
<section className="text-section">
<h1>Dash... |
ajax/libs/react-router-bootstrap/0.17.1/ReactRouterBootstrap.js | iwdmb/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-bootstrap"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-bootstrap"], factory);
else if(typeof expor... |
src/components/SideMenuItem.js | cessien/buzzer | // src/components/SideMenuItem.js
import React from 'react';
export default class SideMenuItem extends React.Component {
render() {
return (
<a className="menu-item" href="/">
<i className={"icon fa fa-" + (this.props.icon || 'plus') } />
<span className="name"> {this.props.name || ... |
login/src/components/MainList.js | bobmacneal/react-native-firebase-auth | import React, { Component } from 'react';
import { Text } from 'react-native';
import { Card, CardSection } from './common';
class MainList extends Component {
render() {
return (
<Card>
<CardSection>
<Text>Item 1</Text>
</CardSection>
<CardSection>
<Text>Item 2<... |
src/common/components/Message.js | chad099/react-native-boilerplate | // @flow
import type { TextProps } from './Text';
import React from 'react';
import Text from './Text';
const Message = (props: TextProps) => {
const {
bold = true,
color = 'white',
padding = 0.5,
maxWidth = 21,
...restProps
} = props;
return (
<Text
bold={bold}
color={color}
... |
src/svg-icons/action/code.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCode = (props) => (
<SvgIcon {...props}>
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/>
</SvgIcon>
);
ActionCode = pure(ActionCode);
ActionCode.di... |
blueocean-material-icons/src/js/components/svg-icons/content/move-to-inbox.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentMoveToInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"/>
</Sv... |
ajax/libs/material-ui/5.0.0-alpha.18/styles/ThemeProvider.js | cdnjs/cdnjs | import React from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider as MuiThemeProvider } from '@material-ui/styles';
import { exactProp } from '@material-ui/utils';
import { ThemeContext as StyledEngineThemeContext } from '@material-ui/styled-engine';
import useTheme from './useTheme';
function Inne... |
components/Link.js | react-community/native-directory | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import { StyleSheet, css } from 'glamor/aphrodite';
export default class CustomLink extends React.PureComponent {
static propTypes = {
href: PropTypes.string,
target: PropTypes.string,
isStyled: PropTypes.bool,
... |
docs/app/Examples/elements/Container/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Variations from './Variations'
const ContainerExamples = () => (
<div>
<Types />
<Variations />
</div>
)
export default ContainerExamples
|
src/components/tweets-list/TweetsList.js | Reuvenc/twitter-oauth-api-usage | import './TweetsList.css';
import React, { Component } from 'react';
import Tweet from '../tweet/Tweet';
class TweetsList extends Component {
title = "Recent #ai Related Tweets";
getTweets() {
try {
return JSON.parse(this.props.tweets).statuses;
} catch (e) {
return ... |
src/client/index.js | kevinhikaruevans/uojs2 | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import BrowserRouter from 'react-router-async/browser-router';
import { hookRedux } from 'hook-redux';
import Application from 'component/application';
import r... |
ajax/libs/6to5/2.4.9/browser-polyfill.js | dryajov/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/components/Social/index.js | benceg/dani | import React from 'react';
if (process.env.WEBPACK) require('./stylesheet.styl');
import {
FacebookButton,
FacebookCount,
TwitterButton,
TwitterCount,
RedditButton,
RedditCount,
EmailButton
} from 'react-social';
const getUrl = () => `https://daniellebooysen.com${location.pathname}`
const Social = ({
... |
pootle/static/js/auth/components/SocialSignInForm.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
src/client/components/InformationsDisplay.js | dherault/ethperiment | import React from 'react';
import { readInformations } from '../state/actionCreators';
const POOL_LIKE_CRAZY = false;
const POOL_PERIOD = 3000; //ms
export default class InformationsDisplay extends React.Component {
constructor() {
super();
this.state = {
hovered: false,
opened: false,
};... |
gmatgamefrontend/src/ProfileButtons/DoneButton.js | decodeMERV/GMATgameFE | import React from 'react';
export default (props) => (
<i className="fa fa-check fa-2x" onClick={this.onClick} ></i>
);
|
Example/__tests__/index.android.js | smiletime/react-native-twilio-video-webrtc | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
assets/javascripts/kitten/components/interaction/drag-and-drop-list/test.js | KissKissBankBank/kitten | import React from 'react'
import ReactDOM from 'react-dom'
import renderer from 'react-test-renderer'
import { DragAndDropList } from './index'
describe('<DragAndDropList />', () => {
let component
describe('by default', () => {
beforeEach(() => {
ReactDOM.createPortal = jest.fn(element => {
ret... |
app/javascript/mastodon/features/compose/components/upload.js | masarakki/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injec... |
src/components/Arc/Arc.js | k2data/svg-react-playground |
import React from 'react'
import * as d3 from 'd3'
import { Col, Row } from 'antd'
import styles from './Arc.css'
class Arc extends React.Component {
constructor (props) {
super(props)
this.rainbow = this.rainbow.bind(this)
}
componentDidMount () {
this.rainbow()
this.ColorClock()
this.pie(... |
media/src/js/third-party/jquery-1.10.1.js | wevoice/wesub | /*!
* jQuery JavaScript Library v1.10.1
* 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-05-30T21:49Z
*/
(function( window, undefined ) {
// ... |
src/statics/EmptyUserOwnProfile.js | Sekhmet/busy | import React from 'react';
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';
const EmptyUserProfile = () =>
<div className="text-center">
<h3>
<FormattedMessage id="empty_user_own_profile" defaultMessage="You didn't publish any stories yet." />
<Link to="/write">
... |
packages/cf-component-header/test/Hamburger.js | jroyal/cf-ui | import React from 'react';
import renderer from 'react-test-renderer';
import Hamburger from '../src/Hamburger';
import { felaSnapshot } from 'cf-style-provider';
test('should render', () => {
const snapshot = felaSnapshot(<Hamburger onClick={() => {}} />);
expect(snapshot.component).toMatchSnapshot();
expect(sn... |
src/components/Main.js | helloworldzxy/gallery-by-react | require('normalize.css/normalize.css');
require('../css/App.css');
import React from 'react';
import ReactDOM from 'react-dom';
//获取图片相关数据
var imageDatas = require('../data/imageDatas.json');
//只执行一次的函数适用这种自执行函数(即时函数)的写法
imageDatas = (function genImageURL(imageDatasArr){
for(var i = 0, len = imageDatasArr.length; ... |
app/javascript/mastodon/features/ui/components/media_modal.js | KnzkDev/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ExtendedVideoPlayer from 'mastodon/components/extended_video_player';
import classNames ... |
src/routes/dashboard/components/weather.js | caijinchun/hsweb-antd | import React from 'react'
import PropTypes from 'prop-types'
import styles from './weather.less'
function Weather ({ city, icon, dateTime, temperature, name }) {
return (<div className={styles.weather}>
<div className={styles.left}>
<div className={styles.icon} style={{
backgroundImage: `url(${icon... |
public/js/components/notifications/NotificationContainer.react.js | TRomesh/Coupley | import React from 'react';
import Notification from './Notification.react';
import List from 'material-ui/lib/lists/list';
import NotificationAction from '../../actions/NotificationActions';
import NotificationStore from '../../stores/NotificationStore';
const NotificationContainer = React.createClass({
getInitialSt... |
dist/module/components/animated.js | jpb12/react-tree-graph | import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
import PropTypes from 'prop-types';
import React from 'react';
import Container from './container.js';
class Animated extends React.PureComponent {
static propTypes = {
getChildren: PropTypes.func.isRequired,
keyProp: PropTypes.s... |
src/app/index.js | vicvinc/yimanga | import React from 'react';
import initReactFastclick from 'react-fastclick';
import { Route, Switch } from 'react-router-dom';
import Home from '../route/home/container';
import ComicInfo from '../route/comic';
// global style css
class App extends React.Component {
componentDidMount() {
// fast click attachmen... |
app/classifier/tasks/single/index.spec.js | amyrebecca/Panoptes-Front-End | /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-boolean-value': ['error', 'always'], 'react/jsx-filename-extension': 0 */
/* global describe, it, beforeEach */
import { shallow } from 'enzyme';
import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import SingleTask from './'... |
src/browser/createRoutes.js | stephengfriend/cmsbl-este | import App from './app/App.react';
import Auth from './auth/Page.react';
import Home from './home/Page.react';
import Me from './me/Page.react';
import NotFound from './notfound/Page.react';
import Profile from './me/Profile.react';
import React from 'react';
import Settings from './me/Settings.react';
import Todos fro... |
app/components/Login/Login.js | leesander1/hearmenow-electron | // @flow
import React, { Component } from 'react';
// import { Link } from 'react-router';
import styles from './Login.css';
export default class Login extends Component {
render() {
return (
<div>
<h4>Login</h4>
</div>
);
}
}
|
app/components/Option.js | nosplashurinal/order-management | import React from 'react';
import styles from '../styles/select.scss';
const Option = () =>
<div className={styles.custom_option}>
{
<a>
{type.boxType === 'checkBox' && <span className={styles.cb}></span>}
<span className={styles.val}>{value}</span>
... |
07-react-refs-lab4/src/FancyForm.js | iproduct/course-node-express-react | import React from 'react';
import FancyButton from './FancyButton';
import logPropsHOC from './logPropsHOC';
class FancyForm extends React.Component {
constructor(props) {
super(props);
this.inputRef = React.createRef();
this.buttonRef = React.createRef();
this.focusInput = this.focusInput.bind(this)... |
packages/cf-builder-table/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import { connect } from 'react-redux';
import { TableBuilder, tableReducer, tableActions } from 'cf-builder-table';
import { TableCell } from 'cf-component-table';
import { Button } from 'cf-component-button';
const EXAMPLE_TABLE = 'EXAMPLE_TABLE';
class BuilderTable extends React.Component... |
app/pages/LoginInfo.js | SarasotaSun/koa-react-isomorphic-io-mongo-passport | import React, { Component } from 'react';
class LoginInfo extends Component {
render() {
return <h1>Please log-in</h1>;
}
}
export default LoginInfo;
|
src/common/components/view-case/GovRec-recovery-edit.js | ChrisWphoto/react-ccms | import React from 'react';
import t from 'tcomb-form';
import DatePicker from 'react-bootstrap-date-picker';
import {Button} from 'react-bootstrap';
import restCalls from '../../../utils/restCalls';
const Form = t.form.Form;
console.log(t.form.Form.templates);
const payment = t.struct({
amount: t.Number,
date: t... |
docusaurus/src/pages/index.js | klis87/redux-saga-requests | import React from 'react';
import classnames from 'classnames';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Highlight, { defaultProps } from 'prism-react-renderer';
i... |
lib/components/__tests__/search-test.js | CBIConsulting/ProperSearch | 'use strict';
var _search = require('../search');
var _search2 = _interopRequireDefault(_search);
var _reactAddonsTestUtils = require('react-addons-test-utils');
var _reactAddonsTestUtils2 = _interopRequireDefault(_reactAddonsTestUtils);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);... |
lib/components/modifications-map/__tests__/add-trip-pattern-layer.js | conveyal/scenario-editor | // @flow
import React from 'react'
import {Map} from 'react-leaflet'
import AddTripPatternLayer from '../add-trip-pattern-layer'
import {mockWithProvider, mockSegment} from '../../../utils/mock-data'
describe('Project-Map > AddTripPatternLayer', () => {
it('renders correctly', () => {
// mount component
exp... |
ajax/libs/react-contextmenu/2.2.0/react-contextmenu.js | jdh8/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactContextMenu=t(require("react")):e.ReactContextMenu=t(e.React)}(this,function(e){return function(e){function t(o){if(n[o])ret... |
app/routes.js | innFactory/aws-session-token-gui | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
export default () => (
<App>
<Switch>
<Route path="/" component={HomePage} />
</Switch>
</App>
);
|
examples/js-relay/js/components/StarWarsShip.js | Youshido/GraphQL | /**
* This file provided by Facebook is 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,
* FITNES... |
test/JumbotronSpec.js | insionng/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
src/mui/field/ReferenceField.js | azureReact/AzureReact | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import LinearProgress from 'material-ui/LinearProgress';
import get from 'lodash.get';
import { crudGetManyAccumulate as crudGetManyAccumulateAction } from '../..... |
modules/withRouter.js | aaron-goshine/react-router | import invariant from 'invariant'
import React from 'react'
import hoistStatics from 'hoist-non-react-statics'
import { routerShape } from './PropTypes'
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component'
}
export default function withRouter(Wrappe... |
src/index.js | currency-cop/currency-cop | import React from 'react'
import { render } from 'react-dom'
// Import styles
import 'material-design-icons/iconfont/material-icons.css'
import 'typeface-roboto'
import './assets/fonts/segmdl2-webfont.woff2'
// Import application
import App from './components/App'
// Generate application element
let el = null
el = ... |
src/app/components/pages/configuration/Configuration.js | santthosh/swagger-sleek | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../presentation/MarkdownElement';
import AddAPICard from './containers/AddAPICard';
import SwaggerAPIDefinitions from './containers/SwaggerAPIDefinitions';
import configuration from './configuration.md';
const Configu... |
fields/components/columns/ArrayColumn.js | everisARQ/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
pages/clubs/form/data/step-one.js | mozilla/learning.mozilla.org | var Select = require('react-select');
var LocationSelector = require('../../../../components/LocationSelector.jsx');
module.exports = {
'full_name': {
type: "text",
label: "Name",
placeholder: "Your full name.",
validator: {
error: "You must provide a name for your club."
}
},
location:... |
ajax/libs/forerunnerdb/1.3.896/fdb-legacy.min.js | kennynaoh/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-client/scripts/display-cargo-details.js | PaulRSwift/iLuggit | import Backbone from 'backbone'
import React from 'react'
import ACTIONS from './ACTIONS.js'
import LuggAuthView from './lugg-auth-view.js'
import $ from 'jquery'
const CargoDisplay = React.createClass({
_acceptLugg: function(){
let userid = this.refs.id.dataset.id
// console.log('id', userid);
... |
misc/jquery.js | marlonyazit/cacecos |
/*!
* 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.... |
example/components/react/Routes/Foo.js | subuta/router-redux | import React from 'react'
const onEnter = ({state}) => {
console.log('[foo]entered', state);
};
const onLeave = ({state}) => {
console.log('[foo]leave', state);
};
const render = () => {
return <h1>foo</h1>;
};
export default {
onEnter,
onLeave,
render
};
|
apps/dashboard/components/Board.js | chengethem/fangxia_WIT | import React, { Component } from 'react';
class Board extends Component {
render() {
return (<div></div>);
}
}
export default Board; |
frontend/src/components/common/Button.js | icedcoffeeallday/CostPers | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={onPress} style={styles.buttonContainer}>
<Text style={styles.buttonText}>
{children}
... |
src/Containers/MainContainer/Header.js | sirjuan/harmonical-oscillation | import React from 'react';
import { Row, Col, Input } from 'reactstrap';
const Header = ({onFileChange}) => (
<Row className='header'>
<Col xs={12} className='header text-center'>
<Input className='center-block' type="file" onChange={onFileChange} />
</Col>
</Row>
)
export default Header;... |
src/social/assets/twitter.js | Ciunkos/ciunkos.com | import React from 'react'
export default props => (
<svg viewBox="0 0 48 48" style={{ background: '#1da1f3' }} {...props}>
<path
fill="#fff"
d="M18.432 36.192c11.316 0 17.508-9.384 17.508-17.508 0-.264 0-.528-.012-.792a12.536 12.536 0 0 0 3.071-3.192 12.451 12.451 0 0 1-3.54.972 6.19 6.19 0 0 0 2.713... |
components/WelcomeJumbotron.js | aunnnn/open-ideas | import React from 'react'
import Link from 'next/link'
import Colors from '../utils/Colors'
const WelcomeJumbotron = () => (
<div id="main">
<div id="content">
{/* <img src="/static/plato-red.jpg" /> */}
<h1>Platonos<sub id="beta">beta</sub></h1>
<h2>Fostering Your Ideas</h2>
<div id="bg-... |
manager/src/Router.js | diegopoli/sample-react-native-projects | import React from 'react';
import { Scene, Router, Actions } from 'react-native-router-flux';
import LoginForm from './components/LoginForm';
import EmployeeList from './components/EmployeeList';
import EmployeeCreate from './components/EmployeeCreate';
import EmployeeEdit from './components/EmployeeEdit';
const Route... |
src/nav/MainNavBar.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { connect } from 'react-redux';
import { StyleSheet, View } from 'react-native';
import { ZulipStatusBar } from '../common';
import { BRAND_COLOR } from '../styles';
import { isStreamNarrow, isTopicNarrow } from '../utils/narrow';
import Title from '../title/Title';
import... |
test/specs/views/Stastistic/Statistic-test.js | Rohanhacker/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import Statistic from 'src/views/Statistic/Statistic'
import StatisticGroup from 'src/views/Statistic/StatisticGroup'
import StatisticLabel from 'src/views/Statistic/StatisticLabel'
import StatisticValue from 'src/view... |
src/components/InputSection.js | sunilgautam/ReduxTodo | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
View,
TextInput,
} from 'react-native';
import dismissKeyboard from 'react-native/Libraries/Utilities/dismissKeyboard';
import Button from './Button';
class InputSection extends Component {
constructor(props) {
super(props);
... |
test/aliyun-ecs-test/test-output/jquery-1.7.1.min.js | yanzhijun/jclouds-aliyun | /*! 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... |
React/02 React Components.js | iitjee/SteppinsWebDev | /* React ess Tra Lyn
(continuation of 1Intro.js)
We'll build a simple activity counter : counts number of times you've done the activity
data structure for this application:
{
resort: "somestring",
date: "somestring",
powder: true|flase, //is it powderday?
backcountry: true | false //is it backcountry day?
... |
packages/material-ui-icons/src/VignetteOutlined.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="M21 5v14H3V5h18m0-2H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /><path d="M12 8c3.25 0 6 1.83 6 4s-2.75 4-6 4-6-... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-tree.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js';
import List from './tree-list.js';
import Item from './tree-item.js';
import './tree.less';
export const Tree = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
Conten... |
misc/tabledrag.js | Nico420/web-repository-mnm | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | Freakland/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize... |
app/components/spinner.js | garth/material-components | import React from 'react';
import { connect } from '@cerebral/react';
import Example from './example';
import { Checkbox, Col, Row, Spinner } from '../../lib';
import { state, signal } from 'cerebral/tags';
const SpinnerDemo = ({ spinner, isLoadingChanged }) => (
<div>
<Example
code={`
import { Spinner } f... |
client/src/index.js | paulvoloschuk/ncms-back | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter as Router } from 'react-router-redux'
import store from './store'
import { history } from './middleware'
import { storageListener, createStoragePusher, unregisterPage } from './sync'
import Applic... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import Immuta... |
client/components/SecondaryNav.js | steveliles/react-ssr-codesplit | import React from 'react'
import Link from 'redux-first-router-link'
import styles from './SecondaryNav.css'
const SecondaryNav = ({ tabs }) => (
<ol className={styles.bar}>
{tabs.map(t => (
<li key={t.name}><Link href={t.href || t.name}>{t.name}</Link></li>
))}
</ol>
)
export default SecondaryNav
|
ajax/libs/react-router/1.0.0-rc1/ReactRouter.min.js | sreym/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
src/renderers/dom/shared/DOMPropertyOperations.js | it33/react | /**
* 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.
*
* @providesModule ... |
src/svg-icons/content/reply.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReply = (props) => (
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReply = pure(ContentReply);
ContentReply.displayName = 'ContentReply'... |
docs/src/app/components/pages/components/RefreshIndicator/Page.js | nathanmarks/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 refreshIndicatorReadmeText from './README';
import RefreshIndicatorExampl... |
src/main/resources/public/js/components/pill-input-button.js | ozwillo/ozwillo-portal | import React from "react";
import PropTypes from "prop-types";
export default class PillInputButton extends React.Component {
render(){
const {id, label, ...rest} = this.props;
return(
<React.Fragment>
<input
{...rest}
id={id}
... |
app/components/AddUser/UserSelect/index.js | theterra/newsb | import React from 'react';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.css';
import { session, userRole, userRoleType } from '../../../Api/ApiConstants';
export default class UserSelect extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.stat... |
ajax/libs/antd-mobile/1.0.0-alpha.40/antd-mobile.min.js | holtkamp/cdnjs | /*!
* antd-mobile v1.0.0-alpha.40
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof expor... |
components/Navigation/Navigation.js | austinsamsel/react-static | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
import './Navigation.scss';
import Link from '../Link';
function Navigation() {
return (
<ul className="Navigation" role="menu">
... |
misc/tabledrag.js | dabur75/inbalbn | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
examples/js/hacker-news/client/containers/CommentsByPage.js | reimagined/resolve | import React from 'react'
import { Redirect } from 'react-router-dom'
import { Comment } from '../components/Comment'
import { Pagination } from '../components/Pagination'
import { CommentsPaginateRenderless } from '@resolve-js/module-comments'
import { ITEMS_PER_PAGE } from '../constants'
const CommentsByPage = ({
m... |
app/javascript/components/conditions/ConstraintsFormField/component.js | thecartercenter/elmo | import React from 'react';
import PropTypes from 'prop-types';
import ConstraintFormField from './ConstraintFormField';
class ConstraintsFormField extends React.Component {
static propTypes = {
type: PropTypes.string.isRequired,
constraints: PropTypes.arrayOf(PropTypes.object).isRequired,
refableQings: ... |
element-react-test/src/containers/NoneedLogin.js | fengnovo/fengnovo-react-test | import React from 'react'
import {
Layout,
Menu,
Breadcrumb,
Table,Form,
DateRangePicker,
Button,
Select,
Input,
Pagination
} from 'element-react'
import { mockData } from '../mock'
class NoneedLogin extends React.Component {
constructor(...args){
super(...args)
... |
ajax/libs/vega/2.0.2/vega.js | viskin/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.vg = f()}})(fu... |
RN HotUpdate/SmartHomeII/SmartHome/BaseView.js | HarrisLee/React-Native-Express | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
Image,
Platform,
Navigator,
TouchableHighlight,
TouchableOpacity
} from 'react-native';
import Constanst from '.... |
src/components/Carousel/Slide/Slide.js | easingthemes/notamagic | import React from 'react';
import FeIcons from 'components/FeIcons';
import SlideCaption from '../SlideCaption/SlideCaption';
export const Slide = (props) => {
let style = ' item carousel-img ';
if (props.index === props.initialSlideIndex) {
style = 'active ' + style;
}
return (
<div className={style} style={{... |
react-router-demo/lessons/07-more-nesting/modules/Repo.js | zhangjunhd/react-examples | import React from 'react'
export default React.createClass({
render() {
return (
<div>
<h2>{this.props.params.repoName}</h2>
</div>
)
}
})
|
ajax/libs/material-ui/5.0.0-beta.5/node/MobileStepper/MobileStepper.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
... |
frontend/src/app/home/heropage/components/Roles.js | migcruz/dota2analytics | import React from 'react';
import { Image, Grid } from 'semantic-ui-react';
import { VictoryChart, VictoryBar, VictoryStack, VictoryPolarAxis, VictoryTheme, VictoryPie } from 'victory';
const staticRoot = window.django.urls.staticRoot;
const role_ticks = {0: "Carry", 40: "Escape", 80: "Pusher", 120: "Jungler", 160: ... |
retired/sparkler-ui/src/index.js | USCDataScience/sparkler | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import { BrowserRouter } from 'react-router-dom'
import App from './App';
import thunk from 'redux-thunk';
import {fetchAllModels} from "./actions";
import ... |
frontend/src/router/router.js | marcelib/Community | import React from 'react';
import { Route, Redirect, IndexRoute } from 'react-router';
import App from 'container/App';
import SimpleListComponent from 'container/SimpleListComponent';
import PrivatePage from 'container/PrivatePage';
import LoginPage from 'container/LoginPage';
import privateRoute from 'router/private... |
ajax/libs/core-js/0.9.6/core.js | sreym/cdnjs | /**
* Core.js 0.9.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
__tests__/tests/components/IssueListItem.js | gitpoint/git-point | import React from 'react';
import { shallow } from 'enzyme';
import { IssueListItem } from 'components';
const defaultProps = {
type: 'issue',
issue: {
state: 'open',
number: 101,
title: 'My Issue',
user: {
login: 'gitpoint'
},
comments: 5,
cr... |
src/routes/login/index.js | jaruesink/ruesinkdds | /**
* 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 Layout from '../../co... |
src/modules/slide/code/component.js | danielsneijers/markslide | // @flow
import React from 'react'
import { compose } from 'ramda'
import classNames from 'classnames'
import { fullScreenOption, autoScaleContent } from 'higher-order-components'
import CSS from './style.css'
type Props = {
index: number,
content: string,
meta: {
class?: string // eslint-disable-line react/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.