path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
app/javascript/flavours/glitch/features/drawer/search/index.js | vahnj/mastodon | // Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import {
FormattedMessage,
defineMessages,
} from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
// Components.
import Icon from 'flavours/glitch/components/icon';
import Drawe... |
src/parser/deathknight/blood/modules/core/DeathsCaress.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import SpellUsable from 'parser/shared/modules/SpellUsable';
const RANGE_WHERE_YOU_SHOULDNT_DC = 12; // yrd
clas... |
imports/ui/components/AccountCreated/AccountCreated.js | jamiebones/Journal_Publication | import React from 'react';
import { Button , Row , Col ,Jumbotron } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { Meteor } from 'meteor/meteor';
const AccountCreated = ({ history }) => (
<Row>
<Col md={ 8 } mdOffset={2} sm={ 8 } smOffset={2} lg={ 8 } lgOffset={... |
src/index.js | monners/coloring-book | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
fields/types/email/EmailColumn.js | wustxing/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var EmailColumn = React.createClass({
displayName: 'EmailColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
src/main.js | adiachenko/catchy_web | import 'semantic/dist/semantic'
import 'velocity-animate'
import 'velocity-animate/velocity.ui'
import React from 'react'
import {render} from 'react-dom'
import {Router} from 'react-router'
import {Provider} from 'react-redux'
import store from 'store'
import routes from './config/routes'
import {load} from 'reducers... |
app/app.js | ahsan-virani/react-gcd-portal | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/js/components/Chart/stories/Pattern.js | HewlettPackard/grommet | import React from 'react';
import { Box, Chart } from 'grommet';
export const Pattern = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={grommet}>
<Box align="center" pad="large" gap="medium">
{[
'squares',
'circles',
'stripesHorizontal',
'strip... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-doc-kit-demo.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, SectionMixin, LsiMixin} from '../common/common.js';
import {Glyphicon, Footer, Section, Div, Line, Block, Iframe, Button, ButtonGroup, ButtonSwitch, Pre, FileViewer} from '../bricks/bricks.js';
impor... |
data-async-table/src/components/RowTable.js | krescruz/redux-component | import React from 'react'
import PropTypes from 'prop-types'
const RowTable = ({ name, url, forks_count }) => (
<tr>
<td>{name}</td>
<td>{url}</td>
<td>{forks_count}</td>
</tr>
)
RowTable.propTypes = {
name: PropTypes.string.isRequired,
url: PropTypes.string.isRequired,
forks_count: PropTypes.n... |
test/specs/views/Feed/FeedContent-test.js | koenvg/Semantic-UI-React | import React from 'react'
import FeedContent from 'src/views/Feed/FeedContent'
import FeedDate from 'src/views/Feed/FeedDate'
import FeedSummary from 'src/views/Feed/FeedSummary'
import FeedExtra from 'src/views/Feed/FeedExtra'
import FeedMeta from 'src/views/Feed/FeedMeta'
import * as common from 'test/specs/commonTe... |
src/client/meritBadge/MeritBadge.js | jmicmoore/merit-badge-university | import React from 'react';
import {mbuAPI} from './constants';
import FontAwesome from 'react-fontawesome';
import {Link} from 'react-router-dom';
class MeritBadge extends React.Component {
constructor() {
super();
this.handleDeleteMeritBadge = this.handleDeleteMeritBadge.bind(this);
}
ha... |
src/components/ui/FormLabelSimple.js | elarasu/roverz-chat | /**
* Text Input
*
<FormLabel></FormLabel>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormLabel } from 'react-native-elements';
// Consts and Libs
import { AppColors, AppFonts } ... |
Example/components/Home.js | hungtn/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgrou... |
frontend/component/Footer.js | auronzhong/pratice-node-project | /**
* Created by zhongwei on 16/7/5.
*/
import React from 'react';
const footerStyle = {
marginTop: 50,
padding: 20,
};
export default class Footer extends React.Component {
render() {
return (
<div className="text-center" style={footerStyle}>
© CopyRight Node.js... |
app/assets/frontend/components/home/HomePage.spec.js | prdx/kasih.in | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import HomePage from './HomePage.js';
describe('Home Page', () => {
const wrapper = shallow(<HomePage />);
it('has title', () => {
const title = wrapper.find('h1').first();
expect(title.text())
.toEqual('Kasih... |
app/javascript/mastodon/components/column_back_button_slim.js | codl/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class ColumnBackButtonSlim extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (window.history && window.history.length ==... |
frontend/js/components/pages/profile.js | skeswa/equitize | import React from 'react';
import {Navigation, Link} from 'react-router';
import PrivatePageMixin from '../../mixins/privatepage';
const Profile = React.createClass({
mixins: [
PrivatePageMixin
],
render: () => {
return (
<div>
<h1>profile</h1>
</div>... |
src/components/Ingredient.js | kishigo/recipes-react-redux | /**
* Created by Kelvin Ishigo on 10/1/17.
*
* Copyright (c) 2017 Kelvin Ishigo
* Licensed under the MIT License. See LICENSE file in the project root for full license information.
*/
import React from 'react'
import PropTypes from 'prop-types'
/**
* Presentational component for an Ingredient in the IngredientLis... |
src/components/Idea/EditIdea.js | partneran/partneran | import React, { Component } from 'react';
import Footer from '../Footer/Footer'
import { Editor } from 'react-draft-wysiwyg';
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
import draftToHtml from 'draftjs-to-html';
import CategoryDetail from './CategoryDetail';
import { connect } from 'react-redux'
import ... |
src/components/DataTable/DataTable.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
// how many columns are visible when used within right sidebar
const COLLAPSED_COLUMNS_COUNT = 3
/**
* Returns the correct property of layer to be shown on table.
* @param {boolean} isCollapsed If DataTable is collapsed or not
* @return {string}
*/
const featureType = (isCollapsed) => is... |
src/components/NavBar.js | GelaniNijraj/Hovert | import React from 'react';
import { Link } from 'react-router';
class NavBar extends React.Component {
render() {
return (
<nav className={'light-blue darken-3'}>
<div class={'nav-wrapper'}>
<a href={'#'} className={'brand-logo center'}>
<img src='resume.png' style={{height: ... |
templates/rubix/redux/redux-seed/src/routes/Home2.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import { connect } from 'react-redux';
import actions from '../redux/actions';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelContainer,
} from '@sketchpixy/rubix';
@connect((state) => state)
export default class Home extends React.Component {
static fetchData(store) {
r... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | wardy/cool-story-bro | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/components/captcha/index.js | qiuziz/react-captcha | /*
* @Author: qiuziz
* @Date: 2017-08-03 17:44:46
* @Last Modified by: qiuziz
* @Last Modified time: 2017-08-07 11:08:38
*/
import React from 'react';
import { propTypes, defaultProps } from 'prop-types';
import { OPTIONS, CODES } from './config';
export default
class Captcha extends React.Component {
construc... |
app/containers/App/index.js | sairamchappidi/project-x | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/localization/inlineComponents.js | knod/cliff-effects-1 | import React from 'react';
import { Icon } from 'semantic-ui-react';
import { ExternalLink } from './../components/ExternalLink';
import { contributors } from './contributors';
/** @name inlineComponents
* @description Contains inline components that can be
* substituted into translations using the interpolation... |
client/containers/AddPhoto/AddPhoto.js | joshjg/explore | import React from 'react';
import { connect } from 'react-redux';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import S3Uploader from 'react-s3-uploader';
import LinearProgres... |
src/containers/Search/SearchPagination.js | nyaayaIN/frontend | import React from 'react';
import Pagination from 'react-bootstrap/lib/Pagination';
import { browserHistory } from 'react-router'
export default class SearchPagination extends React.Component {
constructor(props) {
super(props);
this.state = {
activePage: this.props.activePage,
};
thi... |
example/index.js | chetstone/react-native-palette | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Sample from './components/sample'
export default class example extends Component {
render() {
retu... |
src/Header.js | Ethbet/ethbet | import React, { Component } from 'react';
class Header extends Component {
render() {
return (
<div className="navbar navbar-default navbar-fixed-top">
<div className="container">
<div className="navbar-header">
<a href="/" className="navbar-brand">E... |
src/main.js | nitinkushwaha/react-sticky-scroll-spy | import React from 'react';
import {render} from 'react-dom';
import DevApp from './dev-app';
import './main.css';
render(<DevApp />, document.getElementById('root'));
|
components/org.wso2.carbon.business.rules.web/src/index.js | grainier/carbon-analytics | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... |
src/components/Account/ResourceList/Resource/Cards/TitleCard/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import Card from '../Card'
import CoinsObject from '../../CoinsObject'
import Link from 'components/Interactive/Link'
import Config from 'shared/Configuration'
import styles from '../style.module.css'
const TitleCard = (props) => {
let link
const docN... |
index.android.js | SergeyKorchevskiy/real-estate | /**
* 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 PropertyFinder extends Component {
render() {
return (
<View style={styles.container}>
... |
client/modules/Photo/pages/PhotoDetailPage/PhotoDetailPage.js | msucorey/street-canvas | import React from 'react';
import { connect } from 'react-redux';
import { isEmpty } from 'lodash';
// import { bindActionCreators } from 'redux';
// Import Style
import styles from '../../Photo.css';
// Import Actions
import { fetchPhoto } from '../../PhotoActions';
// Import Selectors
import { getPhoto } from '../... |
src/components/GameSettingsForm.spec.js | jiparker/bowl-game | import React from 'react';
import {shallow} from 'enzyme';
import GameSettingsForm from './GameSettingsForm';
import TextInput from './TextInput';
describe('< />', () => {
it('should contain <TextInput/> component', () => {
const setupWorkstations = () => {};
const setIterationCount = () => {};
const run... |
src/svg-icons/device/battery-charging-full.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryChargingFull = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H... |
src/svg-icons/device/sd-storage.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSdStorage = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
DeviceSdStorage ... |
app/components/newDefinitionWindow/WordBrowser.js | sedooe/cevirgec | import React, { Component } from 'react';
import {Button, Icon, Input } from 'semantic-ui-react';
import tr from '../../utils/Translation';
/*
Actual stylesheet:
use following regEx to make it one liner: \s{2,}|\n
#cevirgecCopyPopup {
border: 1px solid #333;
position: absolute;
font-family: Helvetic... |
docs/pages/components/hidden.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/hidden';
const requireDemo = require.context('docs/src/pages/components/hidden', false, /\.(js|tsx)$/);
const requireR... |
components/User/SelectInstanceModal.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import FocusTrap from 'focus-trap-react';
import {Form, Button, Input, Modal, Divider, Message, Icon} from 'semantic-ui-react';
import { connectToStores, provideContext } from 'fluxible-addons-react';
import SSOStore from '../../stores/SSOStore';
import clo... |
__tests__/components/Tiles-test.js | nickjvm/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Tiles from '../../src/js/components/Tiles';
import Tile from '../../src/js/components/Tile';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.... |
pages/home/index.js | wasap/beauty_salon | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/client/app.js | MatthewKosloski/server-side-react | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import createStore from '../common/store';
import routes from '../common/routes';
// Have client use the initial state defined by the server
const initialState = window.__INITIAL_STATE__;
const store = createStore(in... |
examples/with-redux-code-splitting/containers/homepage.js | nelak/next.js | import React from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {namespaceConfig} from 'fast-redux'
import Link from 'next/link'
const DEFAULT_STATE = {build: 1}
const {actionCreator, getState: getHomepageState} = namespaceConfig('homepage', DEFAULT_STATE)
const bumpBuil... |
src/components/Mine.js | LukeGeneva/react-sweeper | import React from 'react';
export default function(props) {
return <div>X</div>
}
|
src/TabPane.js | justinanastos/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
frontend/src/components/dialog/leave-group-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { gettext, username } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
import toaster from ... |
docs/src/components/DemoButton.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import find from 'lodash/find';
import { Link } from 'react-router';
import IconButton from 'material-ui/IconButton';
import PlayCircleOutlineIcon from 'material-ui-icons/PlayCircleOutline';
import { kebabCase } from 'docs/src/utils/helpers';... |
src/icons/PlaylistAddCheckIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PlaylistAddCheckIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 20H4v4h24v-4zm0-8H4v4h24v-4zM4 32h16v-4H4v4zm39-9l3 3-13.99 14L23 31l3-3 6.01 6L43 23z"/></sv... |
tests/components/Header/Header.spec.js | amaurisquezada/battleship | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
src/app/components/search/SearchResultsTable/TitleCell.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Box from '@material-ui/core/Box';
import TableCell from '@material-ui/core/TableCell';
import LayersIcon from '@material-ui/icons/Layers';
import VisibilityOffIcon from '@material-ui/icons/VisibilityOff';
import { Link } from 'react-router';
import {... |
website-prototyping-tools/playground.js | heracek/relay | /**
* 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.
*/
import 'babel/pol... |
src/views/pages/unused/LearnerOverviewPage.js | Domiii/project-empire | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { dataBind } from 'dbdi/react';
import {
Alert, Button, Jumbotron, Well, Panel
} from 'react-bootstrap';
import { LoadOverlay } from 'src/views/components/overlays';
import UserBadge from 'src/views/components/users/UserBadge';
im... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Base/index.js | Minoli/carbon-apimgt | import React from 'react';
import Drawer from 'material-ui/Drawer';
import Divider from 'material-ui/Divider';
import ChevronLeftIcon from 'material-ui-icons/ChevronLeft';
import ChevronRightIcon from 'material-ui-icons/ChevronRight';
import FolderOpen from 'material-ui-icons/FolderOpen';
import Dns from 'material-ui-i... |
modules/__tests__/transitionHooks-test.js | axross/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect, { spyOn } from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import execSteps from './execSteps'
import Router from '../Router'
describe('When a router enters a branch', function () {
let node, Dashb... |
app/components/indicator-horizontal.js | 7kfpun/TWAQIReactNative | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { indexRanges } from '../utils/indexes';
import I18n from '../utils/i18n';
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'row',
backgroundColor: 'white',
paddingHorizontal: 10,
padd... |
lib/components/layout.js | ryanbahniuk/isomorphic-app-boilerplate | 'use strict'
import React from 'react';
import { Link } from 'react-router';
const Layout = React.createClass({
propTypes: {
children: React.PropTypes.element.isRequired
},
render: function() {
return (
<html>
<head>
<meta charSet="utf-8" />
<meta name="description" co... |
lib/components/style-sheet.js | derrickpelletier/hyper | import React from 'react';
export default class StyleSheet extends React.PureComponent {
render() {
const {
customCSS,
colors,
cursorColor,
fontSize,
fontFamily,
fontSmoothing,
foregroundColor,
borderColor
} = this.props;
return (
<style
dang... |
src/react/index.js | bloodyowl/redux-devtools | import React from 'react';
import createDevTools from '../createDevTools';
export const DevTools = createDevTools(React);
export { default as LogMonitor } from './LogMonitor';
export { default as DebugPanel } from './DebugPanel';
|
node_modules/rc-dialog/es/Modal.js | ZSMingNB/react-news | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { View, Mo... |
src/components/Header.js | thms-rmb/fcc-random-quote-machine | import React, { Component } from 'react';
/**
* The header section of the web page.
*/
class Header extends Component {
render () {
return (
<div className="uk-section uk-section-primary">
<div className="uk-container">
<h1 className="uk-heading-line uk-tex... |
Example/components/Login.js | peteychuk/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgr... |
src/svg-icons/hardware/speaker-group.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeakerGroup = (props) => (
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2... |
blueocean-material-icons/src/js/components/svg-icons/action/face.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.4... |
imports/startup/client/index.js | jiyuu-jin/openlens |
import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import 'materialize-css';
import 'materialize-css/dist/css/materialize.css';
import MainLayout from '../../ui/components/main_layout.jsx';
Meteor.startup(() => {
Session.set('navLens', 'historical');
render((
... |
src/components/Header/Header.js | erichardson30/react-starter | /**
* React Starter (https://github.com/erichardson30/react-starter)
*
* Copyright © 2016 Eric Richardson. 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, { Component } from 'react';
import wi... |
transitions/app/SharedView.js | lintonye/react-native-diary | // @flow
import React, { Component } from 'react';
import {
View,
UIManager,
findNodeHandle,
} from 'react-native';
import { SharedItem } from './SharedItems';
class SharedView extends Component {
_view: any;
static contextTypes = {
registerSharedView: React.PropTypes.func,
unregi... |
docs/pages/components/grid.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/grid';
const requireDemo = require.context('docs/src/pages/components/grid', false, /\.(js|tsx)$/);
const requireRaw =... |
WasteAppMini/js/components/recipe/milkrecipe.js | airien/workbits | import React, { Component } from 'react';
import { Image,View, ListView,BackAndroid } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, DeckSwiper } from ... |
src/components/_global/Footer/Footer.js | visarts/dotorg | import React from 'react'
import { StyledFooter } from './Footer.style'
const Footer = props => {
return (
<StyledFooter>
{decodeURIComponent('%C2%A9')} 2004-2018 Portitude
</StyledFooter>
)
}
export default Footer
|
src/Containers/TableContainer.js | sirjuan/harmonical-oscillation | import React from 'react';
import { Table } from 'reactstrap';
const TableContainer = ({lines = {}}) => (
<Table striped>
<TableHeader headerLine={Object.keys(lines['1'])}/>
<TableBody lines={Object.values(lines)}/>
</Table>
);
export default TableContainer;
const TableHeader = ({headerLine})... |
frontend/src/components/slidez/index.js | viewportvr/daysinvr | // with a few changes from https://github.com/Pau1fitz/react-slidez
/* eslint-disable no-unused-expressions*/
import React, { Component } from 'react';
import Arrows from './Arrows.js';
import './Slideshow.css';
class Slideshow extends Component {
constructor(props) {
super(props);
this.state = {
curr... |
generators/app/templates/app/components/home/home.js | sgbj/generator-react-sass-es2015 | import React from 'react';
export default class Home extends React.Component {
render() {
return (
<div>
<h2>Home</h2>
<p>
Have fun working on <%= appName %>! <3
</p>
</div>
);
}
}
|
lib/components/DailyExpenses.js | devinmarieb/budget-app | import React from 'react';
import moment from 'moment';
import Expense from './Expense';
const getCurrentExpenses = (dailyExpensesList, handleDelete) => {
const currentArray = dailyExpensesList.filter(data => moment(data.date).isSame(moment(), 'day'));
return currentArray.map(data =>
<Expense key={data.key} ha... |
src/components/common/SimpleText.js | marc-ed-raffalli/geo-game | import React from 'react';
import PropTypes from 'prop-types';
const SimpleText = props => (<span>{props.text}</span>);
SimpleText.propTypes = {
text: PropTypes.string.isRequired
};
export default SimpleText;
|
src/svg-icons/action/lock-outline.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c... |
admin/client/App/components/Navigation/Secondary/index.js | Yaska/keystone | /**
* The secondary navigation links to inidvidual lists of a section
*/
import React from 'react';
import { connect } from 'react-redux';
import { Container } from 'elemental';
import {
setActiveList,
} from '../../../screens/List/actions/active';
import SecondaryNavItem from './NavItem';
var SecondaryNavigation... |
src/components/grid/GridBox.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import BaseView from '../../utils/rnw-compat/BaseView';
import { GRID_SIZES } from '../../utils/constants';
const propTypes = {
children: PropTypes.node.isRequired,
size: PropTypes.oneOf(GRID_SIZES).isRequired,
sizeSm: Pr... |
modules/dreamview/frontend/src/components/StatusBar/Speedometer.js | ycool/apollo | import React from 'react';
const UNITS = [{
name: 'km/h',
conversionFromMeterPerSecond: 3.6,
}, {
name: 'm/s',
conversionFromMeterPerSecond: 1,
}, {
name: 'mph',
conversionFromMeterPerSecond: 2.23694,
}];
export default class Speedometer extends React.Component {
constructor(props) {
super(props);
... |
test/containers/CounterPage.spec.js | adamsome/electron-nav | import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'react-router-redux';
import CounterPage from '../../app/containers/CounterPage';
import { configureStore } from '../../app/store/configureSt... |
src/components/TestForm/TestForm.js | zuban/edhunter | import React from 'react'
import {Field, reduxForm} from 'redux-form';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import {
Col,
Button,
Form,
FormGroup,
Label,
Input,
FormText
} from 'reactstrap';
import s from './Styles.css'
import SyntaxHighlighter from 'react-syntax-highlighter';
... |
src/interface/report/Results/EncounterStats.js | anom0ly/WoWAnalyzer | import { Trans } from '@lingui/macro';
import fetchWcl from 'common/fetchWclApi';
import { formatDuration, formatPercentage, formatThousands } from 'common/format';
import ITEMS from 'common/ITEMS';
import { makeItemApiUrl } from 'common/makeApiUrl';
import SPELLS from 'common/SPELLS';
import ROLES from 'game/ROLES';
i... |
src/pages/school-edit.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | 3846masa/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ColumnCollapsable from '../../../components/column_collapsable';
import SettingToggle from '../../notifications/com... |
tests/components/Counter/Counter.spec.js | dingchaoyan1983/ReactRedux | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
docs/app/Examples/collections/Table/Variations/TableExampleSelectableCell.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleSelectableCell = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Not... |
src/svg-icons/image/assistant-photo.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistantPhoto = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ImageAssistantPhoto = pure(ImageAssistantPhoto);
ImageAssistantPhoto.displayName = 'Image... |
src/OptionButton.js | APSL/react-native-options-button | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
Text,
TouchableOpacity,
StyleSheet,
ViewPropTypes
} from 'react-native';
type Props = {
index: number,
children: string,
onPress: Function,
renderSeparator: boolean,
style?: any,
textStyle?: any,
separato... |
internals/templates/containers/App/index.js | dbrelovsky/react-boilerplate | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
client/components/display-paintingDropdown.js | VaRt-io/V-aRt | import React from 'react';
const memory = 'http://www.artnewsblog.com/wp-content/uploads/2004/09/the-persistence-of-time.jpg';
const redFuji = 'https://data.ukiyo-e.org/aic/images/99027_512658.jpg';
const korea = 'https://upload.wikimedia.org/wikipedia/en/6/63/Picasso_Massacre_in_Korea.jpg';
const starry = 'https://ww... |
packages/es-components/src/components/patterns/callToAction/LightCallToAction.js | jrios/es-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import LightNotification from '../../containers/notification/LightNotification';
import { getCallToActionChildren } from './getCallToActionChildren';
const Container = styled.div`
flex-basis: 100%;
`;
const CallT... |
modules/components/Admin/components/AddUser/index.js | hmltnbrn/classroom-library | import React from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog';
import Snackbar from 'material-ui/Snackbar';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
... |
docs/app/Examples/views/Statistic/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
const StatisticExamples = () => (
<div>
<Types />
<Content />
<Variations />
</div>
)
export default StatisticExamples
|
docs/app/Examples/collections/Grid/Variations/GridExampleStretched.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid, Segment } from 'semantic-ui-react'
const GridExampleStretched = () => (
<Grid columns={3} divided>
<Grid.Row stretched>
<Grid.Column>
<Segment>1</Segment>
</Grid.Column>
<Grid.Column>
<Segment>1</Segment>
<Segment>2</Segment>
... |
tech_stack/src/components/common/Button.js | haaswill/ReactNativeCourses | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>
{children}
</Text>
</Toucha... |
src/components/form/NumberField.js | RelativeMedia/rm-frontend | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
const NumberField = ({ disabled, inputLg, input, label, placeholder, type, meta: {valid, touched, error} }) => {
const classes = classNames('form-group', {
'has-error': (touched && !valid),
'has-success': (touche... |
pages/index.js | Digital-Sandwich/ghibli-api-next | /*TO DO
-display all properties of featured item
-display properties of item when clicked
/TO DO */
import React from 'react';
import axios from 'axios';
import Link from 'next/link';
import PageHead from '../components/head';
import Nav from '../components/nav';
import AppTitle from '../components/app-title';
import ... |
src/Parser/RestoDruid/Modules/Legendaries/T21_2Set.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import Mastery from '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.