path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
app/imports/ui/client/components/CreateProject/CreationForm.js | valcol/ScrumNinja | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { Session } from 'meteor/session';
import { createContainer } from 'meteor/react-meteor-data';
import FeedbackMessage from '../misc/FeedbackMessage';
class CreationForm extends Component {
constructor(props) {
super(props)... |
src/views/WhiteListManage/AddUserIdBox.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Form, Button, Input, Modal, message } from 'antd'
import Spin from 'COMPONENT/effects/Spin'
import { setAddUserIdState, addUserId } from 'REDUCER/pages/whiteListManage'
const FormItem = Form.Item
@conne... |
AssetsMgmtApp/AppIOS/Views/Web/index.js | sunlrain/AssetsMgmt | /*
Coded by: Simar (github.com/iSimar)
GitHub Project: https://github.com/iSimar/HackerNews-React-Native
*/
import React, { Component } from 'react';
import {
View,
WebView,
StyleSheet,
TouchableOpacity,
Text,
} from 'react-native';
var styles = StyleSheet.create({
container: {
flex: 1,
background... |
client/src/js/components/header/Avatar.js | abitlog/retube | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import Spinner from 'react-spinkit';
import { fadeAnimation } from '../../utils/animationSettings';
class Avatar extends React.Component {
static propTypes = {
src: React.PropTypes.string.isRequired
};
cons... |
src/components/videos/VideoPreviewCard.js | mg4tv/mg4tv-web | import * as _ from 'lodash'
import {DocumentCard, DocumentCardPreview, DocumentCardTitle} from 'office-ui-fabric-react'
import React from 'react'
const VideoPreviewCard = (
{
className = '',
videoId,
videos
}) => (
<div className={className}>
<DocumentCard onClickHref={`/videos/${videoId}`}>
... |
ui/src/views/applications/UpdateIntegration.js | brocaar/lora-app-server | import React, { Component } from 'react';
import Grid from '@material-ui/core/Grid';
import Card from '@material-ui/core/Card';
import CardContent from "@material-ui/core/CardContent";
import TitleBar from "../../components/TitleBar";
import TitleBarTitle from "../../components/TitleBarTitle";
import TitleBarButton f... |
src/app/js/icons/Check.js | AppSaloon/socket.io-tester | import React from 'react'
import TemplateIcon from './TemplateIcon'
const Check = ({size, color, customStyle}) =>
<TemplateIcon
size={size}
color={color}
customStyle={customStyle}
viewBox="6 6 12 12"
>
<path d="M9.599,11.86c-0.097-0.097-0.097-0.256,0-0.354l1.01-1.009c0.0... |
src/containers/AdvancedUI/codeMirror/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { Row, Col } from 'antd';
import Switch from '../../../components/uielements/switch';
import Select from '../../../components/uielements/select';
import Form from '../../../components/uielements/form';
import PageHeader from '../../../components/utility/pageHeader';
impo... |
js/components/TodoList.js | RisingStack/graffiti-todo | import React from 'react';
import Relay from 'react-relay';
import ChangeTodoStatusMutation from '../mutations/ChangeTodoStatusMutation';
import Todo from './Todo';
class TodoList extends React.Component {
getFilteredTodos() {
const edges = this.props.todos.edges;
if (this.props.filter === 'active') {
... |
app/components/Header/SecondaryNavBar.js | klpdotorg/tada-frontend | /*
* Secondary navigation bar for filtering/search etc..
*/
import React from 'react';
import PropTypes from 'prop-types';
// import { asyncContainer, Typeahead } from 'react-bootstrap-typeahead';
import { CreateDistrict } from '../../containers/Header';
import { checkPermissions } from '../../checkPermissions';
// co... |
src/Parser/Warlock/Destruction/Modules/Talents/SoulHarvestTalent.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
impo... |
src/renderTemplate.js | jeffhandley/react-composite-pages | import React from 'react';
import ContainerState from './ContainerState';
import ContainerClient from './ContainerClient';
import { renderToStaticMarkup } from 'react-dom/server';
const _ = {
mapValues: require('lodash/mapValues')
};
export default function renderTemplate(template) {
const sections = _.mapValues... |
src/routes.js | mpbill/ca.scta.admin.client | import React from 'react';
import { Route, IndexRoute,IndexRedirect} from 'react-router';
import EditAddressContainer from './containers/EditAddressContainer';
import AddressListPage from './containers/AddressListPage';
import App from './components/App';
import GenericContainer from './containers/GenericContainer';
im... |
src/components/common/books/BookGrid.js | zainxyz/react-reads | import PropTypes from 'prop-types';
import React from 'react';
import shortid from 'shortid';
import Book from './Book';
/**
* Render a collection of books in a grid
* @param {Array} options.booksList The list of books
* @param {Function} options.onShelfChange The callback for shelf change event
* @p... |
src/components/shell/viewMap.js | datea/datea-webapp-react | import React from 'react';
/* VIEWS */
import Home from '../home';
import Landing from '../landing';
import Error404 from '../error/error-404';
import LoginPage from '../account/login-page';
import RegisterPage from '../account/register-page';
import RegisterFormPage from '../account/register-form-page';
import Recove... |
src/App.js | hannes-hochreiner/more-notes | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import FlatButton from 'material-ui/FlatButton';
import MnSnackbar from "./MnSnack... |
src/components/DragBox/DragBoxSelect.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
/**
* **DragBoxSelect** is a specialized usage of [DragBox](#!/DragBox) that is also accessible via `DragBox.Select`. It is
* provided as a convenience as it is a commonly used group of components. All properties available in both
* [Selectable](#!/S... |
static/src/containers/Personal.js | detailyang/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-11T12:16:28+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-04-21T00:14:10+08:00
* @License: The MIT License (MIT)
*/
import React from 'react';
import Antd, {
Upload,
Form,
Button,
Input,
Radio,
... |
lib/js/apps/home/index.js | jneander/learning | import React from 'react';
import Container from 'instructure-ui/lib/components/Container';
import Heading from 'instructure-ui/lib/components/Heading';
import AppHarness from 'js/shared/components/AppHarness';
export default class Home extends React.Component {
render () {
return (
<AppHarness page="home... |
webpack/components/RoutedTabs/index.js | snagoor/katello | import React from 'react';
import { shape, string, number, element, arrayOf } from 'prop-types';
import { Tab, Tabs, TabTitleText } from '@patternfly/react-core';
import { Switch, Route, Redirect, useLocation, withRouter, HashRouter } from 'react-router-dom';
import { head, last } from 'lodash';
const RoutedTabs = ({
... |
src/svg-icons/image/filter-4.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
src/components/Tickets/CreateTicketForm/TicketForm.js | nadavspi/UnwiseConnect | import React from 'react';
import Autocomplete from 'react-autocomplete';
import TicketLink from '../TicketLink';
const TicketForm = (props) => {
return (
<form>
<button
type="button"
className="close-btn btn"
aria-label="close"
onClick={() => props.toggleTicketModal()}
... |
docs/src/app/components/pages/components/SelectField/ExampleLongMenu.js | rscnt/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [];
for (let i = 0; i < 100; i++ ) {
items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />);
}
export default class DropDownMenuLongMenuExample extends React.Compone... |
test/integration/link-ref/pages/child-ref.js | zeit/next.js | import React from 'react'
import Link from 'next/link'
export default () => {
const myRef = React.createRef(null)
React.useEffect(() => {
if (!myRef.current) {
console.error(`ref wasn't updated`)
}
})
return (
<Link href="/">
<a ref={myRef}>Click me</a>
</Link>
)
}
|
app/view/ios/ChatScreen.js | 1598692232/rn-xcf | /**
* Created by bll on 2017/7/18.
*/
import React from 'react';
import {
Button,
Image,
View,
Text
} from 'react-native';
class ChatScreen extends React.Component {
static navigationOptions = {
title:'聊天',
};
render() {
const {params} = this.props.navigation.state;
return (
<View style={{background... |
src/app/starter.js | fouad/aframe-react-starter | import 'aframe-core'
import 'babel-polyfill'
import {Animation, Entity, Scene} from 'aframe-react'
import React from 'react'
import ReactDOM from 'react-dom'
import sample from 'lodash.sample'
import {cdn} from '../utils'
import {Camera, Cursor, Light, Sky, CurvedImage, VideoSphere} from '../components/primitives'
cla... |
src/app.js | Mikel45/GNO | import React, { Component } from 'react';
import { Header, Footer } from './components/index';
export default class App extends Component {
render() {
return (
<div>
<Header />
</div>
);
}
}
|
modules/IndexLink.js | shunitoh/react-router | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Base/Footer/Footer.js | abimarank/carbon-apimgt | /*
* 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.org/li... |
views/decoration_toggle.js | Young55555/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
src/components/Main.js | DaveJump/photo-gallery | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//获取图片相关数据
var imageDatas = require('../data/imageDatas.json');
//将图片名信息转成图片URL路径信息
imageDatas = (function genImageURL(imageDatasArr){
for(var i = 0,j = imageDatasArr.length; i < j; i ++)... |
packages/react-router-config/modules/__tests__/renderRoutes-test.js | asaf/react-router | import React from 'react'
import ReactDOM from 'react-dom'
import ReactDOMServer from 'react-dom/server'
import StaticRouter from 'react-router/StaticRouter'
import Router from 'react-router/Router'
import renderRoutes from '../renderRoutes'
import createHistory from 'history/createMemoryHistory'
describe('renderRoute... |
docs/app/Examples/modules/Progress/States/ProgressExampleError.js | koenvg/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleError = () => (
<Progress percent={100} error>
There was an error
</Progress>
)
export default ProgressExampleError
|
src/containers/pages/reddit/posts/content/header/header-item.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
const RedditHeaderItem = ({name}) => (
<li className={`redditPosts__snippet--${name}`} key={name}>{_.startCase(name)}</li>
);
RedditHeaderItem.propTypes = {
name: PropTypes.string.isRequired
};
RedditHeaderItem.defaultProps = ... |
src/rsg-components/Markdown/Hr/HrRenderer.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Styled from 'rsg-components/Styled';
const styles = ({ space, color }) => ({
hr: {
borderBottom: [[1, color.border, 'solid']],
marginTop: 0,
marginBottom: space[2],
},
});
export function HrRenderer({ classes }) {
return <hr className={cl... |
app/app.js | jesus9ias/solar_system | /**
* 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... |
examples/react-native-expo/SelectFilesButton.js | transloadit/uppy | import React from 'react' // eslint-disable-line no-unused-vars
import { Text, TouchableHighlight, StyleSheet } from 'react-native'
export default function SelectFiles (props) {
return (
<TouchableHighlight
onPress={props.showFilePicker}
style={styles.button}
>
<Text style={styles.text}>Sel... |
src/svg-icons/action/compare-arrows.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows = pure(ActionCompareArrows);
Acti... |
assets/registration/components/AddButton.js | janta-devs/nyumbani | import React, { Component } from 'react';
class AddButton extends Component {
render() {
return (
<span className="input-group-btn input-group-sm">
<button type="button" className="btn btn-fab btn-fab-sm" >
<i className="pe-7s-plus pe-va pe-lg" onClick = {this.props.getAction}>Add Fields</i>
... |
src/svg-icons/action/aspect-ratio.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAspectRatio = (props) => (
<SvgIcon {...props}>
<path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"/>
<... |
app/components/AddNewInvestor/index.js | medevelopment/UMA | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import * as toastify from '../../functions/Toastify';
import styled from 'styled-components';
import axios from 'axios';
import Drawer from 'material-ui/Drawer';
import TextField from 'material-ui/TextField';
import RaisedButton fr... |
index.js | maicki/react-native-event-bridge | /**
* EventBrige
* @flow
*/
// Native Event Bridge
// Wrapper around sending and receieving events that are related to components
// and view hierarchy of a root view
import React from 'react';
import {
findNodeHandle,
NativeModules,
NativeEventEmitter,
} from 'react-native';
import invariant from 'invariant... |
03a-todo-list-from-scratch/src/App.js | dtanzer/react-basic-examples | import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
... |
test/specs/elements/Flag/Flag-test.js | jamiehill/stardust | import React from 'react'
import Flag from 'src/elements/Flag/Flag'
import * as common from 'test/specs/commonTests'
const requiredProps = { name: 'us' }
describe('Flag', () => {
common.isConformant(Flag, requiredProps)
common.propValueOnlyToClassName(Flag, 'name', requiredProps)
it('renders an <i /> element'... |
src/components/Button.js | gbuszmicz/giphyapp | import React, { Component } from 'react';
import {
View,
StyleSheet,
Text,
TouchableOpacity,
Image
} from "react-native";
import AppStyleSheet from "../styles";
import Icon from 'react-native-vector-icons/Foundation';
export default class Button extends Component {
constructor(props) {
super(props)... |
src/Snackbar/Snackbar.spec.js | owencm/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Snackbar from './Snackbar';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Snackbar />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {con... |
src/components/layouts/Auth/index.js | apedyashev/react-universal-jobs-aggregator | // libs
import React from 'react';
import {PropTypes} from 'prop-types';
// components
import {Redirect} from 'react-router-dom';
// other
import styles from './index.less';
export default function AuthLayout({children}, {loggedUserId}) {
if (loggedUserId) {
return <Redirect to="/dashboard" />;
}
return (
... |
src/components/Feedback/Feedback.js | jeffreymoya/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
src/app/atoms/Textarea.react.js | blueberryapps/react-bluekit | import Component from '../PureRenderComponent.react';
import Radium from 'radium';
import React from 'react';
import RPT from 'prop-types';
import * as colors from '../styles/Colors';
@Radium
export default class Textarea extends Component {
static propTypes = {
key: RPT.string,
onChange: RPT.func,
valu... |
src/svg-icons/communication/import-contacts.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportContacts = (props) => (
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2... |
src/admin/ReferralHeader.js | ocelotconsulting/global-hack-6 | import React from 'react'
const RefferalHeader = () => (
<thead>
<tr>
<th>Select</th>
<th>Program Name</th>
<th>Program Location</th>
<th>Program Type</th>
</tr>
</thead>
)
RefferalHeader.displayName = 'RefferalHeader'
export default RefferalHeader
|
src/icons/LocalMallIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LocalMallIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 12h-4c0-5.52-4.48-10-10-10S14 6.48 14 12h-4c-2.21 0-3.98 1.79-3.98 4L6 40c0 2.21 1.79 4 4 4h28c2.21 ... |
code/workspaces/web-app/src/pages/SilentCallbackPage.js | NERC-CEH/datalab | import React from 'react';
import RenewalCallback from '../components/app/RenewalCallback';
const SilentCallbackPage = props => (<RenewalCallback {...props} />);
export default SilentCallbackPage;
|
node_modules/@material-ui/core/es/ListItemAvatar/ListItemAvatar.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import ListContext from '../List/... |
src/components/about/AboutPage.js | fckey/shapit | import React from 'react';
import {Link} from 'react-router';
class HomePage extends React.Component {
render(){
return (
<div className="jumbotron">
<h1>About </h1>
</div>
);
}
}
export default HomePage;
|
public/components/Footer.js | supportivesantas/project-ipsum | import React from 'react';
import {Grid, Row, Col} from 'react-bootstrap';
var handleSubmit = (e) => {
e.preventDefault();
// do login with github here
window.location.href = '/auth/github';
}
class Footer extends React.Component {
render() {
return (
<div className='footer'>
<div className='foo... |
lib/components/SvgCircle/index.js | EloB/code-test | import React from 'react';
const SvgCircle = () => (
<div />
);
export default SvgCircle;
|
app/javascript/mastodon/components/regeneration_indicator.js | Ryanaka/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import illustration from 'mastodon/../images/elephant_ui_working.svg';
const RegenerationIndicator = () => (
<div className='regeneration-indicator'>
<div className='regeneration-indicator__figure'>
<img src={illustration} alt='' />
... |
custom_modules/UIKit/Navbar.js | hustmsc/hustmsc-app | import React, { Component } from 'react';
import {
StyleSheet,
Image,
View,
} from 'react-native';
import Dimensions from 'Dimensions';
export default class LaunchScreen extends Component {
render() {
return (
<Image
style={[styles.backgroundImage, styles.flexContai... |
frontend/js/components/molecules/Tagline.js | Code4HR/okcandidate-platform | 'use strict';
import React, { Component } from 'react';
class Tagline extends Component {
render() {
return (
<div className="tagline">
<div>Made with <span className="heart">♥</span> by Code for Hampton Roads.</div>
<div><a href="#">Leave Feedback</a> <a href="... |
packages/ndla-audio-search/src/AudioSearchList.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import BEMHelper from 'react-bem-helper';
import AudioSearchResult from './Au... |
frontend/src/client.js | lanets/floorplanets | // @flow
import React from 'react';
import styled from 'styled-components';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import logger from 'redux-logger';
import type { FloorplanConfig } from './types';
import reducers from './reduc... |
modules/react-docs/src/components/Sidebar.js | JunisphereSystemsAG/react-color | /* jshint node: true, esnext: true */
"use strict";
import React from 'react';
import ReactCSS from 'reactcss';
import markdown from '../helpers/markdown';
import { Tile } from '../../../react-material-design';
import SidebarItem from './SidebarItem';
class Sidebar extends ReactCSS.Component {
classes() {
ret... |
src/issue/screens/edit-issue-comment.screen.js | Antoine38660/git-point | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
ScrollView,
StyleSheet,
TextInput,
View,
Dimensions,
} from 'react-native';
import { ListItem } from 'react-native-elements';
import { ViewContainer, SectionList, Loa... |
src/Home/Home.js | Xeroeta/nkcgo-webapp | import React, { Component } from 'react';
class Home extends Component {
login() {
this.props.auth.login();
}
render() {
const { isAuthenticated } = this.props.auth;
return (
<div className="container">
{
isAuthenticated() && (
<h4>
You are logged... |
client/src/components/EducationList.js | serban-petrescu/candidate-management | /**
* Created by blajv on 22.06.2017.
*/
import React from 'react';
import {fetchCandidateEducation} from "../actions/CandidateActions";
/**
* Component used to display all the education data of the selected candidate
* by accessing the Education tab.
*/
export default class EducationList extends React.Component {... |
src/svg-icons/maps/local-convenience-store.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalConvenienceStore = (props) => (
<SvgIcon {...props}>
<path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/>
</SvgIcon>
);
MapsLocalConvenienceStore = ... |
src/app/component/search-field/search-field.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import {withState} from '@dump247/storybook-state'
import SearchField from '.'
storiesOf('SearchField', module)
.add(
'default',
withState({value: ''}, store => (
<SearchField
placeholder="Search…"
value={store.state.... |
src/component/home/index.js | Cadburylion/personal-portfolio | import React from 'react'
import ReactDom from 'react-dom'
import {connect} from 'react-redux'
import {withRouter} from 'react-router'
import {NavLink} from 'react-router-dom'
import FontAwesome from 'react-fontawesome'
import * as viewActions from '../../action/viewActions.js'
import * as route from '../../action/rout... |
src/applications/hca/config/chapters/veteranInformation/veteranGender.js | department-of-veterans-affairs/vets-website | import fullSchemaHca from 'vets-json-schema/dist/10-10EZ-schema.json';
import React from 'react';
import PrefillMessage from 'platform/forms/save-in-progress/PrefillMessage';
import AdditionalInfo from '@department-of-veterans-affairs/component-library/AdditionalInfo';
import CustomReviewField from '../../../component... |
src/components/slider/slide/templates/jobs-clients.js | adrienhobbs/redux-glow | import React from 'react';
import styles from './jobs-clients-slide.css';
import AllClients from 'components/ui/clients-component/index.js';
import CustomLink from 'components/nav/custom-link.js';
const JobsClients = React.createClass({
render () {
return (
<div className={styles.outer}>
<div clas... |
src/components/addition.js | shadow-Fiend/reduxTest | import React from 'react'
import PropTypes from 'prop-types'
import Nav from './nav'
const addition = ({ onAChange, onBChange, a, b, c, push }) => (
<div>
<Nav push={push}/>
<span> 加法:</span>
<input onChange={onAChange} value={a} />
+
<input onChange={onBChange} value={b} />... |
server/sonar-web/src/main/js/main/nav/settings/settings-nav.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/_lib/stubs.js | Inkdpixels/react-ux-forms | import React from 'react';
export const fn = () => null;
export const Component = props => <div {...props}/>;
|
modules/react-material-design/src/components/Link.js | JedWatson/react-color | 'use strict';
import React from 'react';
import _ from 'lodash';
class Link extends React.Component {
constructor() {
super();
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
if (this.props.onClick) {
this.props.onClick(e, this.props.callbackValue);
}
}
render() {... |
app/react-icons/fa/mobile.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMobile extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m21.9 31.4q0-0.7-0.6-1.2t-1.2-0.6-1.3 0.6-0.5 1.2 0.5 1.3 1.3 0.5 1.2-0.5 0.6... |
src/components/progressbar.js | kristian76/geezer | /**
*
*
*/
import React from 'react'
const ProgressBar = ({ progress }) => (
<div className="mdl-progress mdl-js-progress is-upgraded" style={{width: 'inherit'}}>
<div data-t={`${progress}%`} className="progressbar bar bar1" style={{width: `${progress}%`}}></div>
<div className="bufferbar bar b... |
docs/src/app/components/pages/components/TextField/ExampleCustomize.js | frnk94/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
import {orange500, blue500} from 'material-ui/styles/colors';
const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocu... |
httpdocs/theme/react/hooks-app/pling-section/components/Header.js | KDE/ocs-webserver | import React from 'react';
import {filterDuplicated} from './util';
const Header = (props) => {
const s = props.supporters.filter(filterDuplicated).length;
let goal = Math.ceil((s/50))*50;
if(goal==0){goal = 50;}
return (
<div className="pling-section-header">
<div className="header-title">
... |
app/jsx/account_course_user_search/components/UserLink.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
test/components/Counter.spec.js | jhen0409/electron-react-boilerplate | /* 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... |
common/components/topic-container/reply-list-item.js | vincent178/scala-china | import React, { Component } from 'react';
import UserAvatar from '../shared/user-avatar';
import styles from './reply-list-item.css';
export default class ReplyListItem extends Component {
render() {
const { user, reply } = this.props;
const replyBodyHtml = {__html: reply.body_html};
return (
<d... |
app/components/faq/FaqcontentXL/index.js | vkurzweg/aloha | /**
*
* Faqcontent
*
*/
import React from 'react';
// import styled from 'styled-components';
import { Link } from 'react-router';
import Q from './Q';
import A from './A';
import FAQ from 'data/Faq';
function Faqcontent() {
const office = 'http://res.cloudinary.com/kurzweg/image/upload/v1494631994/office_tuvew1.p... |
newclient/scripts/components/admin/list-view/sort-arrow/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
src/PopoverMenuItem/index.js | christianalfoni/ducky-components | import Icon from '../Icon';
import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import classNames from 'classnames';
import styles from './styles.css';
function PopoverMenuItem(props) {
return (
<Wrapper
class... |
assets/javascripts/kitten/components/graphics/icons/giropay-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
export const GiropayIcon = ({ className, ...props }) => (
<svg
width="47"
height="20"
viewBox="0 0 47 20"
xmlns="http://www.w3.org/2000/svg"
className={classNames('k-ColorSvg', className)}
{...props}
>
<title>Giropay</title>
... |
spec/javascripts/jsx/authentication_providers/AuthTypePickerSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/js/Form/auth-form.component.js | msdkeian/laleh-react | import React from 'react';
import RegisterFormComponent from './register-form.component';
import SignInFormComponent from './sign-in-form.component';
class AuthFormComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
haveAccount: false,
isA... |
src/svg-icons/notification/vpn-lock.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVpnLock = (props) => (
<SvgIcon {...props}>
<path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-... |
src/bundles/SellerRegistration/components/BusinessInfoForm/BusinessInfoForm.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react';
import PropTypes from 'prop-types'
import {connect} from 'react-redux';
import {Form, Control} from 'react-redux-form';
import Layout from '../../../../shared/Layout';
import BaseForm from '../../../../shared/form/BaseForm';
import SubmitForm from '../../../../shared/form/SubmitForm';... |
src/components/Static/Address/index.js | jmikrut/keen-2017 | import React from 'react';
export default () => {
return (
<div className="studio">
<h5>Studio</h5>
<p>
<a href="https://goo.gl/maps/qqpUKto1ZP12" target="_blank" rel="noopener noreferrer">
500 Stocking Ave NW<br/>
Grand Rapids, MI 49504<br/>
United States
</a>
</p>
</div>
)
} |
icandevit/src/components/Skills.js | yeli-buonya/icandevit.io | import React from 'react';
import FontAwesome from 'react-fontawesome';
import {
Grid,
Row,
Col
} from 'react-bootstrap';
class Skills extends React.Component {
render() {
return (
<section id="skills-section" className="container">
<h2>Skills</h2>
<p... |
packages/icons/src/md/action/SpellCheck.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSpellCheck(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M22.96 31l-2.24-6H9.43l-2.25 6H3L13.22 5h3.71l10.21 26h-4.18zM10.93 21h8.28L15.07 9.95 10.93 21zm30.31 1.17L25.07 38.34 17.73 31l-2.83 2.83L25.07 ... |
src/svg-icons/editor/format-color-fill.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorFill = (props) => (
<SvgIcon {...props}>
<path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 ... |
example/src/screens/types/tabs/TabTwo.js | BrendonSled/react-native-navigation | import React from 'react';
import {View, Text} from 'react-native';
class TabOne extends React.Component {
render() {
return (
<View>
<Text>Tab Two</Text>
</View>
);
}
}
export default TabOne;
|
src/icons/ErrorIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class ErrorIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z"/></svg... |
packages/fyndiq-component-dropdown/src/index.js | fyndiq/fyndiq-ui | import React from 'react'
import PropTypes from 'prop-types'
import Button from 'fyndiq-component-button'
import { Arrow } from 'fyndiq-icons'
import styles from '../styles.css'
// Note on disabled rules: The component is accessible.
// It might not be built in the perfect way (feel free to redo it)
// but it is acce... |
packages/wix-style-react/src/ModalSelectorLayout/ModalSelectorLayout.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import SelectorList from '../SelectorList';
import HeaderLayout from '../MessageBox/FunctionalLayout/HeaderLayout';
import FooterLayout from '../MessageBox/FunctionalLayout/FooterLayout';
import { classes } from './ModalSelectorLayout.st.css';
import deprec... |
src/modules/comments/containers/CommentLemmaSelectContainer/CommentLemmaSelectContainer.js | CtrHellenicStudies/Commentary | import React from 'react';
import { compose } from 'react-apollo';
import textNodesQuery from '../../../textNodes/graphql/queries/textNodesQuery';
import CommentLemmaSelect from '../../components/CommentLemmaSelect/CommentLemmaSelect';
// lib
import Utils from '../../../../lib/utils';
const CommentLemmaSelectCont... |
es/components.js | modosc/react-responsive-redux | import _defineProperty from "@babel/runtime/helpers/defineProperty";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["dispatch", "fakeWidth", "children"];
function ownKeys(object, enumerableOnly) { var keys =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.