path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/components/Icon/NavigationIcon.js | Digitova/reactova-framework | import React, { Component } from 'react';
import { Text, View, Image, TouchableHighlight, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import Icon from './index'
class NavigationIcon extends Component {
constructor(props) {
super(props);
this.styles = {
navItem: {
flex: 1,
... |
client/src/components/FieldHolder/tests/FieldHolder-test.js | silverstripe/silverstripe-admin | /* global jest, jasmine, describe, it, expect, beforeEach */
import Adapter from 'enzyme-adapter-react-16';
jest.mock('components/FormAlert/FormAlert');
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import fieldHolder from '../FieldHolder';
import Enzyme, { mount } from 'enzyme';
En... |
public/components/NavigationBar.js | rolandfung/project-ipsum | import React from 'react';
import { Navbar, Nav, NavItem, Image} from 'react-bootstrap';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
import { connect } from 'react-redux';
var NavigationBar = (props) => {
return (
<Navbar className="navigation" fluid>
<Navbar.Header>
... |
src/server.js | frankleng/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/components/CharacterListItem.js | rdonnelly/swd-team-builder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Animated,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
import { connect } from 'react-redux';
import FontAwesome5Icon from 'react-native-vector-icons/FontAwesome5';
// import Swipeable from 'react-nati... |
Libraries/Modal/Modal.js | aljs/react-native | /**
* Copyright (c) 2015-present, 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.
*
* @provides... |
assets/jqwidgets/demos/react/app/chart/steplineseries/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: "csv",
datafields: [
{ name: 'Date' },
... |
components/date-picker/date-picker.js | TDFE/td-ui | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-22 11:56:15
* @Last modified by: yzf
* @Last modified time: 2017-06-22 11:56:16
*/
import React from 'react';
import omit from 'lodash/omit';
import moment from 'moment';
import Picker from './picker';
import Input from '../input';
import Icon from '../icon'... |
react/src/containers/NotesFieldsApp/Form/index.js | sinfin/folio | import React from 'react'
import TextareaAutosize from 'react-autosize-textarea'
class Form extends React.Component {
state = { content: '', originalContent: '' }
constructor (props) {
super(props)
this.state = { content: props.content, originalContent: props.content }
}
save = (e) => {
this.prop... |
client/src/pages/index.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import Landing from '../components/landing';
import { AllChallengeNode } from '../redux/propTypes';
export const IndexPage = ({
data: {
allChallengeNode: { edges }
}
}) => {
return <Landing edges={edges} />;
};
... |
docs/src/app/components/pages/components/GridList/ExampleSingleLine.js | mtsandeep/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
client/modules/App/__tests__/Components/Footer.spec.js | b3j0f/lechangement | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
src/Navbar.js | glenjamin/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { elementType } from 'prop-types-extra';
import uncontrollable from 'uncontrollable';
import createWithBsPrefix from './utils/createWithBsPrefix';
import NavbarBrand from './NavbarBrand';
import NavbarCollapse fr... |
src/sections/NotFoundPage/index.js | socialgorithm/ultimate-ttt-web | import React from 'react';
import { Icon, Container, Message } from 'semantic-ui-react';
class NotFound extends React.Component {
render() {
return (
<Container textAlign='center'>
<h1><Icon name='broken chain' /><br /> Not Found!</h1>
<Message warning compact>
Sorry... |
src/MainSection.js | mistermjtek/procrastinot | import React, { Component } from 'react';
import LinkItem from './LinkItem';
// import style from './MainSection.css';
export default class MainSection extends Component {
constructor(props) {
super(props);
}
render() {
const data = [{
link: 'google.com',
name: 'Google',
img: 'card__... |
src/examples/Step3.js | newbreedofgeek/react-stepzilla | 'use strict';
import React, { Component } from 'react';
export default class Step3 extends Component {
constructor(props) {
super(props);
this.state = {
email: props.getStore().email,
gender: props.getStore().gender
};
this._validateOnDemand = true; // this flag enables onBlur validati... |
src/components/TuCao/index.js | sjfkai/mapLocation | import React from 'react'
import './index.css'
export default function TuCao() {
if (!process.env.REACT_APP_TUCAO_ID) {
return null
}
return (
<a className="tucao" target="_blank" href={`https://support.qq.com/products/${process.env.REACT_APP_TUCAO_ID}`}>
反馈 留言
</a>
)
} |
ajax/libs/forerunnerdb/1.3.761/fdb-core+views.min.js | BenjaminVanRyseghem/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/components/NavBar.js | aepyornis/hpd-violations-web | import React from 'react';
import {connect} from 'react-redux';
import {openSidebar} from '../actions/sidebar';
export const NavBar = ({dispatch}) => (
<header className="w-100 h3 bg-light-gray pv0 pl3">
<div className="pv3">
<span onClick={()=> dispatch(openSidebar())}
className="cursor-pointer"
>... |
node_modules/karma-ng-scenario/lib/angular-scenario.js | acalfo/greek-mean | /*!
* jQuery JavaScript Library v1.8.2
* 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: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/shared/components/heading/heading.js | alexspence/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './heading.css';
const Heading = (props) => {
const { text, headingLines, theme, ...otherProps } = props;
const classes = classNames({
[`${styles.heading}`]: true,
[`${styles[theme]}`]: tr... |
2013/NlogTest.Web/NlogTest.Web/Scripts/jquery-1.7.1.js | Code-Inside/Samples | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Released under the the MIT License.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT and BSD Licenses.
*
* Date: ... |
src/components/secrets/SecretFields.js | secretin/secretin-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import SecretField from 'components/secrets/SecretField';
class SecretFields extends Component {
static propTypes = {
fields: PropTypes.array,
isNew: PropTypes.bool,
onChange: PropTypes.func,
canUpdate: PropTypes.bool,
}... |
creditcardsimulation_redux_hooks/src/App.js | balaSpyrus/wave11 | import React, { Component } from 'react';
import './App.css';
import Nav from './components/navigation';
class App extends Component {
render() {
return (
<div className="App">
<Nav />
</div >
);
}
}
export default App;
|
components/Figure/Figure.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Figure from './Figure';
storiesOf('Figure', module)
.add('Figure', () => (
<div>
<Figure
caption={
<span>
Idea 2001:
<a href="http://www.appearhere.co.uk">Edjer x Hour club</a>
... |
src/index.js | amitnavindgi/bonjour | import 'react-hot-loader/patch';
import React from 'react';
import ReactDom from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './app/App.jsx';
const render = Component => {
ReactDom.render(
<AppContainer>
<Component />
</AppContainer>,
document.getElement... |
ajax/libs/yui/3.17.0/event-custom-base/event-custom-base.js | svvitale/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
statics/syntaxhighlighter_3.0.83/tests/js/jquery-1.4.2.js | mattfeel/PySAL | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/javascript/mastodon/components/status_content.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import { FormattedMessage } from 'react-intl';
import Permalink from './permalink';
import classnames from 'classnames';
export default class StatusContent extends ... |
oldx/html/jquery.js | amaurial/mergCanBus | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
integration_tests/babel-plugin-jest-hoist/__tests__/integration-test.js | blainekasten/jest | /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails onca... |
RNDemo/RNComment/node_modules/react-native/local-cli/templates/HelloWorld/index.android.js | 995996812/Web | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
test/CardTest.js | spudly/react-card | import {strictEqual} from 'assert';
import Back from '../src/Back';
import Card from '../src/Card';
import Front from '../src/Front';
import React from 'react';
import ReactDOM from 'react-dom/server';
export default {
Card: {
'contains static references to the Front and Back components': () => {
strictE... |
app/view/main/stream.js | jnoleau/cocoweet | // @flow
import type {RE} from 'app/flow/misc';
import type {TweetStreamType, State} from 'app/store/state';
import React from 'react';
import {connect} from 'react-redux';
import style from 'app/view/main/stream.less';
import StreamList from 'app/view/main/stream.list';
type StreamPropsType = {stream: TweetStreamTy... |
react/js/main.js | quiaro/js-playground | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App cat={12} />, document.getElementById('app'));
|
ajax/libs/core-js/0.4.0/library.js | xymostech/cdnjs | /**
* Core.js 0.4.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
src/server.js | FisherYu-CN/taifinance-rcp | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
examples/counter/index.js | oliverturner/redux-devtools | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
analysis/warlockdestruction/src/modules/talents/ReverseEntropy.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Statistic from 'parser/ui/Statistic';
import BoringSpellValueText from 'parser/ui/BoringSpellValueText';
import UptimeIcon from 'interface/icons/Uptime'... |
app/js/components/fadedBackground.js | leon-4A6C/tplay | import React from 'react';
export default class FadedBackground extends React.Component {
constructor(props) {
super(props);
this.baseUrl = "https://image.tmdb.org/t/p/w780";
}
render() {
if (this.props.src) {
return (
<div className="background">
<img src={this.baseUrl + this... |
src/applications/personalization/profile/tests/helpers.unit.spec.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import {
getServiceBranchDisplayName,
transformServiceHistoryEntryIntoTableRow,
} from '../helpers';
import { USA_MILITARY_BRANCHES } from '../constants';
describe('getServiceBranchDisplayName', () => {
describe('when p... |
src/components/common/FormGroup.js | redux-autoform/redux-autoform-material-ui | import React from 'react';
import PropTypes from 'prop-types';
export default class FormGroup extends React.Component {
static propTypes = {
//Node props
children: PropTypes.node,
//String props
component: PropTypes.string,
displayName: PropTypes.string,
name: PropTypes.string,
help: PropTypes.string,
... |
ajax/libs/forerunnerdb/1.3.26/fdb-all.js | hare1039/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... |
client/components/setupWizard/SetupWizardPage.js | subesokun/Rocket.Chat | import { Box, Margins, Scrollable, Tile } from '@rocket.chat/fuselage';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import React from 'react';
import { useTranslation } from '../../contexts/TranslationContext';
import { useWipeInitialPageLoading } from '../../hooks/useWipeInitialPageLoading';
import {... |
jqwidgets/jqwidgets-react/react_jqxbuttons.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxButton extends React.Component {
componentDidMount() {
let options = this.manageA... |
src/components/LoginForm/LoginForm.js | mramosArg/validator-form | import React from 'react';
import {login, goToSignUp, goToLogin, goToRecover} from './Actions';
import {connect} from 'react-redux';
import ValidatorInput from '../../elements/ValidatorInput/ValidatorInput';
const LoginForm = (props) => {
if(props.hidden){
return(
<div id="loginForm" className="hidden"></d... |
docs/pages/blog/june-2019-update.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './june-2019-update.md';
export default function Page() {
return <MarkdownDocs markdown={markdown} blog disableAd disableToc disableEdit />;
}
|
packages/material-ui-icons/src/WcSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M.01 0h24v24h-24V0z" /><g><path d="M5.5 22v-7.5H4V7h7v7.5H9.5V22h-4zM18 22v-6h3l-3-9h-3l-3 9h3v6h3zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2zm9 0c1.11 0 2-.89 ... |
ajax/libs/material-ui/5.0.0-alpha.29/modern/internal/svg-icons/NavigateNext.min.js | cdnjs/cdnjs | import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";import{jsx as _jsx}from"react/jsx-runtime";export default createSvgIcon(_jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"); |
src/components/ColorGems.js | laurentzziu/color-gems-react | import React, { Component } from 'react';
import autoBind from 'react-autobind';
import ColorGem from './ColorGem';
export default class ColorGems extends Component {
constructor(props) {
super(props);
autoBind(this);
}
render() {
const colors = this.props.colors;
return (
<div classNam... |
Inspector/js/app.js | calabash/WebDriverAgent | /**
* Copyright (c) 2015-present, 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.
*/
import Rea... |
test/utils/bootstrapUtilsSpec.js | Lucifier129/react-bootstrap | import React from 'react';
import tbsUtils, { bsStyles, bsSizes, _curry } from '../../src/utils/bootstrapUtils';
import { render, shouldWarn } from '../helpers';
describe('bootstrapUtils', ()=> {
function validatePropType(propTypes, prop, value, match) {
let result = propTypes[prop]({ [prop]: value }, prop, 'Co... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
src/js/components/InsightList.js | miaopeng/cello | 'use strict';
var React = require('react');
var Actions = require('../actions/AppActions');
var shortdate = require('../utils/format').shortdate;
var mui = require('material-ui');
var Icon = mui.Icon;
var IconButton = mui.IconButton;
var NewInsightDialog = require('./NewInsightDialog');
var InsightList = React.create... |
src/components/Sidebar/Operations/OperationProperties/SweeplineProperties.js | funkBuild/machinist | /*
resolution: 0.1,
boundryOffset: 5,
direction: 'X',
tool: {
diameter: 3,
length: 40
},
stepoverPercent: 50,
zDepthMax: 0,
zDepthStart: 50,
zDepthStep: 25
*/
import React, { Component } from 'react';
import Button from '../../../common/Button';
import PathManager from '.... |
ajax/libs/forerunnerdb/1.3.831/fdb-core.js | jdh8/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
example/index.js | nearmap/refocus | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import App from './app';
import store from './store';
import DevTools from './devtools';
ReactDOM.render(
<Provider store={store}>
<div>
<App />
<DevTools />
</div>
</Provider>,
document.getE... |
httpdocs/theme/react/hooks-app/opendesktop-home/components/ProductsMyGitContainer.js | KDE/ocs-webserver | import React, { Component } from 'react';
import ProductGit from './ProductGit';
class ProductsMyGitContainer extends React.Component {
constructor(props){
super(props);
this.gitUrl = `/json/gitlab?username=${props.user.username}`;
this.gitUserUrl = '/json/gitlabfetchuser?username=';
this.state = {ite... |
src/sv/button/svButtonOutline.js | Synchro-TEC/apollo-11 | import React, { Component } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
class SvButtonOutline extends Component {
render() {
const outLineCss = `out-${this.props.color}`;
const cssClasses = classNames(
'sv-button',
this.props.className,
outLineCss,... |
sample/App.js | nuke99/react-native-file-share | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Image,
Button
} from 'react-native';
import RNFileShare from 'react-native-file-share'
const RNFS = require('react-native-fs');
// ... |
src/svg-icons/image/lens.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
ajax/libs/react/0.9.0/react.js | jaslernl/cdnjs | /**
* React v0.9.0
*/
!function(e){if("object"==typeof exports)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.React=e()}}(function(){var define,module,exports;return (fun... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleCustomNoResultsMessage.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleCustomNoResultsMessage = () => (
<Dropdown
options={[]}
search
selection
placeholder='A custom message...'
noResultsMessage='Try another search.'
/>
)
export default DropdownExampleCustomNoResultsMessag... |
gatsby-strapi-tutorial/cms/plugins/upload/admin/src/components/FileIcon/index.js | strapi/strapi-examples | /**
*
*
* FileIcon
*/
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { trim } from 'lodash';
import ext from './extensions.json';
import styles from './styles.scss';
function FileIcon({ fileType }) {
const iconType = (() => {
switch (true) {
case e... |
src/components/TrackList/components/TrackList.js | altarit/cloudpolis-react | import React from 'react'
import PropTypes from 'prop-types'
import Track from '../../Track'
export class TrackList extends React.Component {
static propTypes = {
songs: PropTypes.arrayOf(PropTypes.object).isRequired,
track: PropTypes.object,
pos: PropTypes.number,
currentTab: PropTypes.string,
... |
client/admin/settings/inputs/FontSettingInput.js | Sing-Li/Rocket.Chat | import { Box, Field, Flex, TextInput } from '@rocket.chat/fuselage';
import React from 'react';
import { ResetSettingButton } from '../ResetSettingButton';
export function FontSettingInput({
_id,
label,
value,
placeholder,
readonly,
autocomplete,
disabled,
hasResetButton,
onChangeValue,
onResetButtonClick,
... |
definitions/npm/react-intl_v2.x.x/flow_v0.23.x-v0.52.x/react-intl_v2.x.x.js | gaborsar/flow-typed | /**
* Original implementation of this file by @marudor at https://github.com/marudor/flowInterfaces
* Copied here based on intention to merge with flow-typed expressed here:
* https://github.com/marudor/flowInterfaces/issues/6
*/
import React from 'react';
// Mostly from https://github.com/yahoo/react-intl/wiki/AP... |
docs-ui/components/confirm.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import {action} from '@storybook/addon-actions';
import Confirm from 'app/components/confirm';
import Button from 'app/components/button';
storiesOf('UI|Confirm', module).add(
'Confirm',
withInfo... |
src/containers/NLP/NLPComprehensiveDisplay.js | nbuechler/ample-affect-exhibit | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Field, reduxForm } from 'redux-form';
import { Table, Button, Row, Col, Panel, Accordion } from 'react-bootstrap';
import NLPComprehensiveForm from '../../components/forms/NLPComprehensiveForm... |
node_modules/material-ui/svg-icons/content/next-week.js | SerendpityZOEY/Solr-Search-React-UI | '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... |
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/src/index.js | itsa-server/itsa-cli | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
render(<App assets={window.assetManifest} />, document);
|
src/routes/home/index.js | OlegVitiuk/Majsternia | /**
* 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 Home from './Home';
i... |
src/svg-icons/image/burst-mode.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
ajax/libs/alt/0.17.4/alt-with-addons.min.js | BenjaminVanRyseghem/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react/addons")):"function"==typeof define&&define.amd?define(["react","react/addons"],e):"object"==typeof exports?exports.Alt=e(require("react"),require("react/addons")):t.Alt=e(t.react,t["react/addons"])}(this,f... |
src/containers/App.js | nunoblue/ts-react | import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import createBrowserHistory from 'history/createBrowserHistory';
import asyncComponent from '../components/AsyncComponent';
import NoMatch from '../compo... |
src/server.js | zeisler/react_tdd_example | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from... |
www/src/index.js | awslabs/lambda-refarch-webapp | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, ... |
src/svg-icons/image/crop-rotate.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81... |
index.android.js | atixlabs/atm-mobileapp | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import './shim.js';
import React from 'react';
import { AppRegistry } from 'react-native';
import { StackNavigator } from 'react-navigation';
import HomeScreen from './src/containers/HomeScreen';
import SendScreen from './src/compo... |
ajax/libs/forerunnerdb/1.3.811/fdb-core.min.js | joeyparrish/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... |
propertyfrontend/static/build/javascripts/land-registry-scripts.js | LandRegistry/property-frontend-alpha | Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.... |
App.js | nikhilsaraf/react-native-todo-app | /**
* @flow
*/
import React from 'react';
import { AsyncStorage } from 'react-native';
import { compose, applyMiddleware, createStore } from 'redux';
import { Provider } from 'react-redux';
import AppMain from './AppMain';
import reducer from './reducers/Reducer';
import { persistStore, autoRehydrate } from 'redux-p... |
modules/Redirect.js | opichals/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './PropTypes';
var { string, object } = React.PropTypes;
/**
* A <Redirect> is used to declare another URL path a client shou... |
src/svg-icons/action/search.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/svg-icons/maps/layers.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayers = (props) => (
<SvgIcon {...props}>
<path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/>
</SvgIcon>
);
MapsLayers = pure(MapsLayer... |
packages/@vega/composer-tool/src/index.js | VegaPublish/vega-studio | import React from 'react'
import {omitBy, isNil} from 'lodash'
import {route} from 'part:@vega/core/router'
import ComposerProvider from './components/ComposerProvider'
import UUID from '@lyra/uuid'
import routerParams from '@vega/utils/routerParams'
const icon = () => <span />
const INTENT_NAMES = ['edit', 'create']... |
app/components/CommonComponents/index.js | rapicastillo/beautifulrising-client | /**
*
* CommonComponents
*
*/
import React from 'react';
import styled from 'styled-components';
import Isvg from 'react-inlinesvg';
import SmallHeaderBlock from 'components/SmallHeaderBlock';
import { TYPE_STORIES, TYPE_TACTICS, TYPE_PRINCIPLES,
TYPE_THEORIES, TYPE_METHODOLOGIES } from './constants';
fun... |
public/js/cat_source/es6/components/outsource/OpenJobBox.js | riccio82/MateCat | import React from 'react'
class OpenJobBox extends React.Component {
constructor(props) {
super(props)
}
openJob() {
return this.props.url
}
getUrl() {
return (
window.location.protocol + '//' + window.location.host + this.props.url
)
}
render() {
return (
<div classNam... |
packages/react-scripts/template/src/Components/Landing.js | HelpfulHuman/helpful-react-scripts | import React from 'react';
export default class Landing extends React.Component {
render() {
if (process.env.NODE_ENV !== 'production') {
console.log('👨🔬 Application properties:\n', this.props);
}
return (
<div className="landing">
<span className="human" role="img" aria-label="sc... |
src/propTypes/ImageStylePropTypes.js | omeid/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageStylePropTypes.js
*/
import React from 'react';
import ColorPropType from './ColorPropType';
import TransformPropTypes from './TransformPropTypes';
import ShadowPropTypesIOS from './ShadowPropTypesIOS';
import LayoutPropTypes from './Layo... |
ajax/libs/react-dom/15.1.0-alpha.1/react-dom-server.min.js | seogi1004/cdnjs | /**
* ReactDOMServer v15.1.0-alpha.1
*
* Copyright 2013-present, 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 th... |
src/components/Core/Core.js | pbarbiero/enhanced-electron-react-boilerplate | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Route, Switch } from 'react-router-dom';
import { ConnectedRouter } from 'connected-react-router';
import { components, history, store } from '../components.js';
import styles from './component.less';
const Core = () => {
ret... |
src/js/lib/jquery-1.8.0.min.js | sil-jterm-2015/sfwebchecks | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/renderer/components/archive/entries-list.js | buttercup-pw/buttercup | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import EntryIcon from './entry-icon';
import { getFacadeFieldValue } from '../../../shared/buttercup/entries';
const ListItemContentWrapper = styled.div`
padding-bottom: 2px;
margin-left: 15px;
flex: 1;
stro... |
examples/tweet/app.js | threepointone/glamor | import { createElement } from '../../src/react' // eslint-disable-line no-unused-vars
/** @jsx createElement */
import React from 'react'
import { insertRule, merge, media } from '../../src'
import '../../src/reset'
import { vars } from '../../src/react'
import { Tweet } from './tweet'
import data from './data.js'
... |
components/TouchTextarea.js | formalfiction/ff-react | import React, { Component, PropTypes } from 'react';
class TouchTextarea extends Component {
static propTypes = {
// default height for the field
defaultHeight : PropTypes.number,
// you should probably name yo fields
name : PropTypes.string.isRequired,
// value of the field
value : PropTypes.string.isReq... |
app/javascript/mastodon/features/ui/components/__tests__/column-test.js | musashino205/mastodon | import { render, fireEvent, screen } from '@testing-library/react';
import React from 'react';
import Column from '../column';
describe('<Column />', () => {
describe('<ColumnHeader /> click handler', () => {
it('runs the scroll animation if the column contains scrollable content', () => {
const scrollToMo... |
test/components/Counter.spec.js | robogroves/bps | /* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import { shallow } from 'enzyme';
import Counter from '../../app/components/Counter';
function setup() {
const actions = {
increment: spy(),
incrementIfOdd: spy(),
incrementA... |
packages/material-ui-icons/src/SwapHorizOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z" /></React.Fragment>
, 'SwapHorizOutlined');
|
src/encoded/static/components/item-pages/components/OverviewHeadingContainer.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import url from 'url';
import _ from 'underscore';
import ReactTooltip from 'react-tooltip';
import Collapse from 'react-bootstrap/esm/Collapse';
/**
* A collapsible panel that is meant to be shown near top of Item views.
* Is meant to dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.