repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/server/security/rate-limiter.js | server/security/rate-limiter.js |
export function logRateLimit (name, userId, clientAddress) {
console.log(`------ ${name} rate limit, userId ${userId}, userIp ${clientAddress} ------`)
}
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/client/main.js | client/main.js | import React from 'react'
import ReactDOM from 'react-dom'
import { Meteor } from 'meteor/meteor'
import App from '/imports/client'
import '/imports/client/stylesheets/main.scss'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faUserCircle, faCaretDown, faBars, faHome, faCircleInfo,
faShopping... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/client/accounts-reactstrap/Input.js | client/accounts-reactstrap/Input.js | import React from 'react'
import { FormGroup, Label, Input, FormFeedback } from 'reactstrap'
const InputField = (fieldObj) => {
const {
_id,
displayName,
type,
onChange,
placeholder,
required, // By default is true, if equals false than ignore
icon,
focusInput,
error,
defaults... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/client/accounts-reactstrap/index.js | client/accounts-reactstrap/index.js | import React from 'react'
import Button from './Button'
import Errors from './Errors'
import Input from './Input'
import { Form } from 'reactstrap'
const Title = ({ text }) => (
<h1>{text}</h1>
)
export {
Button as SubmitField,
Errors as ErrorsField,
Form as FormField,
Input as InputField,
Title... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/client/accounts-reactstrap/Button.js | client/accounts-reactstrap/Button.js | import React from 'react'
import { Button } from 'reactstrap'
const Button_ = ({
onClick,
social,
text
}) => {
if (social) {
return (
<Button onClick={onClick} className={text}>
<i className={`fab fa-${text}`} /> {`Continue with ${text[0].toUpperCase()}${text.substr(1)}`}
</Button>
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/client/accounts-reactstrap/Errors.js | client/accounts-reactstrap/Errors.js | import React from 'react'
import { Alert } from 'reactstrap'
const Errors = ({ errors }) => {
if (errors.length > 0) {
return (
<Alert color='danger'>
{errors.map((err, i) => (
<b key={i}>{err.errStr}</b>
))}
</Alert>
)
}
return null
}
export default Errors
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/packages/simpl-schema-uniforms/index.js | packages/simpl-schema-uniforms/index.js | require('simpl-schema').default.extendOptions(['uniforms'])
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/packages/simpl-schema-uniforms/package.js | packages/simpl-schema-uniforms/package.js | Package.describe({
name: 'meteoreact:fix-unsupported-properties',
summary: 'Fix simpl-schema unsupported properties',
version: '0.0.1'
})
Package.onUse((api) => {
// api.versionsFrom("1.6.1");
api.use(['ecmascript'], ['client', 'server'])
api.mainModule('index.js', ['client', 'server'])
})
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/packages/accounts-discourse/package.js | packages/accounts-discourse/package.js | Package.describe({
name: 'sylque:accounts-discourse',
summary: 'A login service using Discourse SSO as a provider',
version: '0.0.7',
git: 'https://github.com/sylque/accounts-discourse',
documentation: 'README.md'
})
Package.onUse(function (api) {
// api.versionsFrom('1.6.1')
api.use(['ecmascript', 'acc... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/packages/accounts-discourse/lib/client.js | packages/accounts-discourse/lib/client.js | import { Accounts } from 'meteor/accounts-base'
import { ServiceConfiguration } from 'meteor/service-configuration'
import { Tracker } from 'meteor/tracker'
// ------------------------------------------------------------------------------
// Get the sso query params
const parsedUrl = new URL(location.href)
const sso ... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/packages/accounts-discourse/lib/server.js | packages/accounts-discourse/lib/server.js | import crypto from 'crypto'
import { parse, stringify } from 'querystring'
import { Meteor } from 'meteor/meteor'
import { Random } from 'meteor/random'
import { Accounts } from 'meteor/accounts-base'
import { ServiceConfiguration } from 'meteor/service-configuration'
import { WebApp } from 'meteor/webapp'
import { ch... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/index.js | imports/client/index.js | import '../both'
import './stylesheets/main.scss'
import 'react-day-picker/lib/style.css' // DatePicker styles
import 'bootstrap/dist/css/bootstrap.min.css'
import 'loaders.css/loaders.min.css'
import NProgress from 'nprogress' // Progress Bar
import 'nprogress/nprogress.css'
import App from './ui/app'
window.NProgre... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/history.js | imports/client/utils/history.js | import createHistory from 'history/createBrowserHistory'
const history = createHistory()
export {
history as default
}
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/findNextEvent.js | imports/client/utils/findNextEvent.js | // DESCRIPTION: This is the main function that iterates through event dates
// in order to find the next one from the user's perspective
export function findNextEvent (startingDate, type, every, days, monthly) {
const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
let days... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/DOMInteractions.js | imports/client/utils/DOMInteractions.js |
export function toggleBodyOverflow () {
document.querySelector('body').classList.toggle('overflow')
}
export function scrollToElement (ele, duration = 400) {
const pageY = window.pageYOffset
const eleY = pageY + document.querySelector(ele).getBoundingClientRect().top
const targetY = document.body.scrollHeight... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/Gravatar.js | imports/client/utils/Gravatar.js | const crypto = require('crypto')
export function getGravatar (user, size) {
let hash = crypto.createHash('md5').update(user).digest('hex')
return 'https://s.gravatar.com/avatar/' + hash + '?s=' + size
}
export function isSpecialCategorySelected (categories) {
if (Array.isArray(categories)) {
return categori... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/discourseAvatar.js | imports/client/utils/discourseAvatar.js | import { Meteor } from 'meteor/meteor'
import { getDiscourseOrigin as getSharedDiscourseOrigin } from '/imports/both/utils/discourse'
const AVATAR_CACHE = new Map()
export const getDiscourseOrigin = getSharedDiscourseOrigin
function normalizeKey(username = '', size = 50) {
return `${username.toLowerCase()}|${size}... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/format.js | imports/client/utils/format.js | import haversine from 'haversine'
export function formatMilesFromLocation (userLocation, coordinates) {
if (!userLocation) {
return 'couldn\'t calculate distance to location'
}
const userPosition = { latitude: userLocation.lat, longitude: userLocation.lng }
const addressPosition = { longitude: coordinates... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/__tests__/format.test.js | imports/client/utils/__tests__/format.test.js | import { formatCategories, formatDate } from '../format'
describe('formatCategories', () => {
it('should return the expected result for the following values', () => {
const f = formatCategories
expect(f([])).toBe('')
expect(f([{ name: 'category' }])).toBe('category')
expect(f([{ name: 'category' }, ... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/utils/location/getUserPosition.js | imports/client/utils/location/getUserPosition.js | import { Meteor } from 'meteor/meteor'
export function getCurrentLocation (context) {
if (navigator) {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(({ coords }) => {
const latLng = {
lat: coords.latitude,
lng: coords.longitude
}
if (cont... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/app.test.js | imports/client/ui/app.test.js | import React from 'react'
import { shallow } from 'enzyme'
import App from './app.js'
test('<App /> should render', () => {
const app = shallow(<App />)
expect(app.exists()).toBe(true)
})
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/app.js | imports/client/ui/app.js | // NPM Libraries
import { Meteor } from 'meteor/meteor'
import React, { Component, Fragment, Suspense } from 'react'
import { lazy } from 'react'
import { Router, Route, Redirect } from 'react-router-dom'
import history from '../utils/history'
import qs from 'query-string'
// Includes/Fragments
import MainMenu from '.... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Template/index.js | imports/client/ui/pages/Template/index.js | import React, { Component } from 'react'
import TopImageSection from './TopImageSection'
import FirstSection from './FirstSection'
import SecondSection from './SecondSection'
import AboutSection from '../Home/SecondSection'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
class About extends Component {... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Template/TopImageSection/index.js | imports/client/ui/pages/Template/TopImageSection/index.js | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const { content } = i18n.Template.first_section
const { top_image_url } = content
const TopImageSection = () => (
<section id='top-image-section'>
<Container>
<Row>
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Template/SecondSection/index.js | imports/client/ui/pages/Template/SecondSection/index.js | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import i18n from '/imports/both/i18n/en'
import DCSLink from '/imports/client/ui/components/DCSLink/index.js'
import './styles.scss'
const { title, content } = i18n.Template.second_section
const {
first,
second,
third,
fourth,
fifth,
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Template/FirstSection/index.js | imports/client/ui/pages/Template/FirstSection/index.js | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import i18n from '/imports/both/i18n/en'
import DCSLink from '/imports/client/ui/components/DCSLink/index.js'
import './styles.scss'
const { title, content } = i18n.Template.first_section
const {
first,
second,
third,
fourth,
fifth,
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/TeamMembers/Members.js | imports/client/ui/pages/TeamMembers/Members.js | // External Packages
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import {
Row,
Container,
Col,
Card,
CardImg,
CardText,
CardBody,
CardTitle,
CardSubtitle,
Button
} from 'reactstrap'
// Styles and Other
import './styles.scss'
import i18n from '../../../../bo... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/TeamMembers/index.js | imports/client/ui/pages/TeamMembers/index.js | // External Packages
import React, { Fragment } from 'react'
import { Container } from 'reactstrap'
// Components
import Members from './Members'
import NavMenu from '../WhitePaper/NavMenu'
// Styles and Other
import './styles.scss'
import i18n from '/imports/both/i18n/en'
const TeamMembers = () => (
<div id="team... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Partners/Members.js | imports/client/ui/pages/Partners/Members.js | // Imports
import i18n from '../../../../both/i18n/en'
import React, { Component, Fragment } from 'react'
import './team.css'
import {
Row,
Container,
Col,
Card,
CardImg,
CardText,
CardBody,
CardTitle,
CardSubtitle,
Button
} from 'reactstrap'
const teamData = i18n.Partners.partners
class Members e... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Partners/index.js | imports/client/ui/pages/Partners/index.js | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import i18n from '/imports/both/i18n/en'
import Members from './Members'
const Index = () => (
<React.Fragment>
<Container className="mt-5">
<h1>Partners</h1>
<p>Great people who support us</p>
</Container>
<Members />... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/NewEventModal.js | imports/client/ui/pages/NewEvent/NewEventModal.js | import { Meteor } from 'meteor/meteor'
import PropTypes from 'prop-types'
import qs from 'query-string'
import React, { Component } from 'react'
import { Redirect } from 'react-router-dom'
import { Alert, Button, Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap'
import FormWizard from './FormWizard'
import... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/Loading.js | imports/client/ui/pages/NewEvent/Loading.js |
import React from 'react'
export default function Loading() {
return (
<p> Loading..... </p>
)
} | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/SearchableCategoryInput.js | imports/client/ui/pages/NewEvent/FormWizard/SearchableCategoryInput.js | import React from 'react';
import Select from 'react-select';
import { Label } from 'reactstrap';
const flattenCategories = (groups) => {
return groups.flatMap(group =>
group.categories.map(category => ({
name: category.name,
value: category.name,
group: group.name,
color: category.color,... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/FirstStep.js | imports/client/ui/pages/NewEvent/FormWizard/FirstStep.js | import PropTypes from 'prop-types'
import React, { useEffect, useRef, useState } from 'react'
import { Alert, FormGroup, Input, Label } from 'reactstrap'
import RadioButton from './RadioButton'
import { GoogleAddressInput } from './GoogleAddressInput';
import SearchableCategoryInput from './SearchableCategoryInput';
im... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/SecondStep.js | imports/client/ui/pages/NewEvent/FormWizard/SecondStep.js | import PropTypes from 'prop-types'
import React, { useState } from 'react'
import { Button, Col, FormGroup, Input, Label, Row } from 'reactstrap'
import Recurring from './DateTimeModule/Recurring'
// import WeekDays from './DateTimeModule/WeekDays'
import RadioButton from './RadioButton'
import SameDateHours from './Sa... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/index.js | imports/client/ui/pages/NewEvent/FormWizard/index.js | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { Button } from 'reactstrap'
import FirstStep from './FirstStep'
import SecondStep from './SecondStep'
import { EventsSchema } from '/imports/both/collections/events'
import { getHour } from '/imports/both/collections/events/helpers'
imp... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/RadioButton.js | imports/client/ui/pages/NewEvent/FormWizard/RadioButton.js | import PropTypes from 'prop-types';
import React from 'react';
import { Input, Label } from 'reactstrap';
const RadioButton = ({ label, id, value, type, click, onRadioButtonClick }) => {
return (
<div className="radio-button-wrapper d-flex">
<Input
id={id}
type={type}
checked={value... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/GoogleAddressInput.js | imports/client/ui/pages/NewEvent/FormWizard/GoogleAddressInput.js | import React, { useEffect, useRef, useState } from 'react';
const extractAddressLabel = (value) => {
if (!value) {
return ''
}
if (typeof value === 'string') {
return value
}
if (typeof value === 'object' && value.name) {
return value.name
}
return ''
}
export const GoogleAddressInput = (... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/VideoLink/index.js | imports/client/ui/pages/NewEvent/FormWizard/VideoLink/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { FormGroup, Input, Label } from 'reactstrap'
import { videoHosts } from '/imports/both/collections/events/helpers'
import './styles.scss'
import i18n from '/imports/both/i18n/en'
let labels = i18n.NewEventModal
class VideoLink extend... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/WeekDays/index.js | imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/WeekDays/index.js | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { CustomInput, Input } from 'reactstrap'
const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
class WeekDays extends Component {
render () {
const {
schemaKey,
selectedDays,
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/Recurring/index.js | imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/Recurring/index.js | import PropTypes from 'prop-types'
import React, { Component, Fragment } from 'react'
import { CustomInput, Input } from 'reactstrap'
import Monthly from './Monthly'
import './styles.scss'
import Weekly from './Weekly'
class Recurring extends Component {
state = {
forever: true,
every: this.props.form.getMod... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/Recurring/Weekly/index.js | imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/Recurring/Weekly/index.js | import React, { useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import './styles.scss'
const weekDays = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']
/**
* RecurrWeekly
*
* Props:
* - form: object with getModel() and change(field, value)
* - schemaKey: string path... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/Recurring/Monthly/index.js | imports/client/ui/pages/NewEvent/FormWizard/DateTimeModule/Recurring/Monthly/index.js | import React, { useEffect, useState, useMemo } from 'react'
import PropTypes from 'prop-types'
import Select from 'react-select'
import { determinePosition } from '/imports/both/collections/events/helpers'
const weekdaysMap = {
0: 'Sunday',
1: 'Monday',
2: 'Tuesday',
3: 'Wednesday',
4: 'Thursday',
5: 'Frid... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/SameDateHours/index.js | imports/client/ui/pages/NewEvent/FormWizard/SameDateHours/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Popover, PopoverBody } from 'reactstrap'
import Select from 'react-select'
import possibleEventHours from '/imports/both/collections/events/helpers/possibleEventHours'
import { formatReactSelectOptions } from '/imports/client/utils/for... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/FormWizard/VideoEntry/index.js | imports/client/ui/pages/NewEvent/FormWizard/VideoEntry/index.js | import PropTypes from 'prop-types'
import React from 'react'
import VideoLink from '../VideoLink'
const VideoEntry = React.memo(({ id, form }) => {
return (
<VideoLink
form={form}
name={`video.link${id}`}
/>
)
})
VideoEntry.propTypes = {
id: PropTypes.number.isRequired,
form: PropTypes.obj... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/CongratsModal/index.js | imports/client/ui/pages/NewEvent/CongratsModal/index.js | import React, { Component } from 'react'
import { Meteor } from 'meteor/meteor'
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'
import { Redirect } from 'react-router-dom'
import { formatCategories, formatWhenObject } from '/imports/client/utils/format'
import i18n from '/imports/both/i1... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/FirstStep.test.js | imports/client/ui/pages/NewEvent/__tests__/FirstStep.test.js | import React from 'react'
import { mount } from 'enzyme'
import AutoField from '/imports/client/utils/uniforms-custom/AutoField'
import FormWizard from '../FormWizard'
describe('<FirstStep />', () => {
let element // needed for reactstrap popover component.
beforeAll(() => {
element = document.createElement('... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/FormWizard.test.js | imports/client/ui/pages/NewEvent/__tests__/FormWizard.test.js | import React from 'react'
import { mount } from 'enzyme'
import sinon from 'sinon'
import AutoForm from '/imports/client/utils/uniforms-custom/AutoForm'
import { getHour } from '/imports/both/collections/events/helpers'
import FormWizard from '../FormWizard'
describe('<FormWizard />', () => {
let element // needed f... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/SameDateHours.test.js | imports/client/ui/pages/NewEvent/__tests__/SameDateHours.test.js | import React from 'react'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import Select from 'react-select'
import SameDateHours from '../FormWizard/SameDateHours'
describe('<SameDateHours />', () => {
let element
beforeAll(() => {
element = document.createElement('span')
element.setAttribute('... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/WeekDays.test.js | imports/client/ui/pages/NewEvent/__tests__/WeekDays.test.js | import React from 'react'
import { mount } from 'enzyme'
import sinon from 'sinon'
import AutoForm from 'uniforms/AutoForm'
import { CustomInput } from 'reactstrap'
import AutoField from '/imports/client/utils/uniforms-custom/AutoField'
import { EventsSchema } from '/imports/both/collections/events'
import WeekDays fro... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/NewEvent.test.js | imports/client/ui/pages/NewEvent/__tests__/NewEvent.test.js | import React from 'react'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import NewEventModal from '../index'
describe('<NewEventModal />', () => {
const shallowRenderer = props =>
shallow(
<NewEventModal
isOpen={true}
location={{
pathname: '/',
search: 'new=... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/Recurring-Monthly.test.js | imports/client/ui/pages/NewEvent/__tests__/Recurring-Monthly.test.js | import React from 'react'
import { shallow, mount } from 'enzyme'
import sinon from 'sinon'
import Select from 'react-select'
import Monthly from '../FormWizard/DateTimeModule/Recurring/Monthly'
describe('<Monthly />', () => {
const date = new Date('12/12/2012')
const expectedOptions = [
{ label: 'Monthly on d... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/Recurring-Weekly.test.js | imports/client/ui/pages/NewEvent/__tests__/Recurring-Weekly.test.js | import React from 'react'
import { mount } from 'enzyme'
import sinon from 'sinon'
import AutoForm from 'uniforms/AutoForm'
import { EventsSchema } from '/imports/both/collections/events'
import Weekly from '../FormWizard/DateTimeModule/Recurring/Weekly'
const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'T... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/NewEvent/__tests__/Recurring.test.js | imports/client/ui/pages/NewEvent/__tests__/Recurring.test.js | import React from 'react'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import AutoField from '/imports/client/utils/uniforms-custom/AutoField'
import ErrorField from '/imports/client/utils/uniforms-custom/ErrorField'
import Recurring from '../FormWizard/DateTimeModule/Recurring'
import Weekly from '../For... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/index.js | imports/client/ui/pages/Home/index.js | import React, { Component } from 'react';
// import FloatingSlider from '../../components/FloatingSlider';
import { Tracker } from "meteor/tracker";
import SlideshowBanner from '../../components/SlideBanner';
import EventsSection from './EventsSection';
import MovementSection from './MovementSection';
import ProjectsSe... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/ContributorsSection/index.js | imports/client/ui/pages/Home/ContributorsSection/index.js | import React from 'react'
import { Row, Col } from 'reactstrap'
import Item from './Item'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const ContributorsI18N = i18n.Home.contributors_section
const {
title,
content
} = ContributorsI18N
const {
items
} = content
const ContributorsSection = ()... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/ContributorsSection/Item/index.js | imports/client/ui/pages/Home/ContributorsSection/Item/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item }) =>
<div className="c-item">
<a href={item.link}><img className='contributor' src={item.photo}/></a>
<h3 className='c-name-text'>{item.name}</h3>
</div>
export default Item
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/MovementSection/index.js | imports/client/ui/pages/Home/MovementSection/index.js | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import {
Button,
Container,
Row
} from 'reactstrap'
import Item from './Item'
import './styles.scss'
import i18n from '/imports/both/i18n/en'
const MovementI18N = i18n.Home.movement_section
const {... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/MovementSection/Item-old/index.js | imports/client/ui/pages/Home/MovementSection/Item-old/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item, loginButton }) =>
<div className="item">
<h3 className='item-text'>{item.text}</h3>
{item.link !== undefined ? loginButton : null}
<br/>
<span className='item-subText'>{item.subText}</span>
{item.link !== undefined &&
<a... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/MovementSection/Item/index.js | imports/client/ui/pages/Home/MovementSection/Item/index.js | import React from 'react';
import './styles.scss';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import {
Container,
Row,
Col,
Button,
Card,
CardBody,
CardTitle,
CardText,
CardSubtitle,
CardLink,
} from 'reactstrap';
const Item = ({ item, loginButton }) => (
<Col cl... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/ProjectsSection/index.js | imports/client/ui/pages/Home/ProjectsSection/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import {
Container,
Row,
Col,
Button,
Card,
CardBody,
CardTitle,
CardText,
CardSubtitle,
CardLink,
CardDeck
} from 'reactstrap'
import Item from './Item'
import i18n from '/imports/b... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/ProjectsSection/Item-old/index.js | imports/client/ui/pages/Home/ProjectsSection/Item-old/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item, loginButton }) =>
<div className="item">
<h3 className='item-text'>{item.text}</h3>
{item.link !== undefined ? loginButton : null}
<br/>
<span className='item-subText'>{item.subText}</span>
{item.link !== undefined &&
<a... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/ProjectsSection/Item/index.js | imports/client/ui/pages/Home/ProjectsSection/Item/index.js | import React from 'react';
import './styles.scss';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import {
Container,
Row,
Col,
Button,
Card,
CardBody,
CardTitle,
CardText,
CardSubtitle,
CardLink,
} from 'reactstrap';
const Item = ({ item, loginButton }) => (
<Col cl... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/__tests__/Home.test.js | imports/client/ui/pages/Home/__tests__/Home.test.js | import React from 'react'
import { shallow } from 'enzyme'
import Home from '../index'
import FirstSection from '../FirstSection'
import SecondSection from '../SecondSection'
describe('<Home />', () => {
const component = shallow(<Home />)
it('should render', () => {
expect(component.exists()).toBeTruthy()
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/SecondSection/index.js | imports/client/ui/pages/Home/SecondSection/index.js | import React from 'react'
import { Link } from 'react-router-dom'
import { Container, Row, Col, Button } from 'reactstrap'
import Item from './Item'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const SecondSectionI18N = i18n.Home.second_section
const {
title,
content
} = SecondSectionI18N
co... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/SecondSection/Item/index.js | imports/client/ui/pages/Home/SecondSection/Item/index.js | import React from 'react'
import DCSLink from '/imports/client/ui/components/DCSLink'
import './styles.scss'
const Item = ({ item, index }) =>
<div className="item">
<div className={'icon ' + item.icon} />
<h3 className='item-title'>
<DCSLink badge="true" format="text-link" title={item.title} trigger... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/index.js | imports/client/ui/pages/Home/oldhomepage/index.js | import React, { Component } from 'react'
import FirstSection from './FirstSection'
import SecondSection from './SecondSection'
import HowToHelpSection from './HowToHelpSection'
import './styles.scss'
class Home extends Component {
componentDidMount () {
window.__setDocumentTitle('Home')
}
render () {
le... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/ContributorsSection/index.js | imports/client/ui/pages/Home/oldhomepage/ContributorsSection/index.js | import React from 'react'
import { Row, Col } from 'reactstrap'
import Item from './Item'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const ContributorsI18N = i18n.Home.contributors_section
const {
title,
content
} = ContributorsI18N
const {
items
} = content
const ContributorsSection = ()... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/ContributorsSection/Item/index.js | imports/client/ui/pages/Home/oldhomepage/ContributorsSection/Item/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item }) =>
<div className="c-item">
<a href={item.link}><img className='contributor' src={item.photo}/></a>
<h3 className='c-name-text'>{item.name}</h3>
</div>
export default Item
| javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/__tests__/Home.test.js | imports/client/ui/pages/Home/oldhomepage/__tests__/Home.test.js | import React from 'react'
import { shallow } from 'enzyme'
import Home from '../index'
import FirstSection from '../FirstSection'
import SecondSection from '../SecondSection'
describe('<Home />', () => {
const component = shallow(<Home />)
it('should render', () => {
expect(component.exists()).toBeTruthy()
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/SecondSection/index.js | imports/client/ui/pages/Home/oldhomepage/SecondSection/index.js | import React from 'react'
import { Link } from 'react-router-dom'
import { Container, Row, Col, Button } from 'reactstrap'
import Item from './Item'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const SecondSectionI18N = i18n.Home.second_section
const {
title,
content
} = SecondSectionI18N
co... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/SecondSection/Item/index.js | imports/client/ui/pages/Home/oldhomepage/SecondSection/Item/index.js | import React from 'react'
import DCSLink from '/imports/client/ui/components/DCSLink'
import './styles.scss'
const Item = ({ item, index }) =>
<div className="item">
<div className={'icon ' + item.icon} />
<h3 className='item-title'>
<DCSLink badge="true" format="text-link" title={item.title} trigger... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/FirstSection/index.js | imports/client/ui/pages/Home/oldhomepage/FirstSection/index.js | import React from 'react'
import { Meteor } from 'meteor/meteor'
import { withTracker } from 'meteor/react-meteor-data'
import { Container } from 'reactstrap'
import Find from './Find'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const { Home } = i18n
let color
let titleColor = { color: color }
c... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/FirstSection/Find/index.js | imports/client/ui/pages/Home/oldhomepage/FirstSection/Find/index.js | import React, { Component } from 'react'
import { Redirect } from 'react-router-dom'
import { FormGroup, Label, InputGroup, InputGroupAddon, Input, Button } from 'reactstrap'
import { geocodeByAddress, getLatLng } from 'react-places-autocomplete'
import getUserPosition, { getCurrentLocation, storeUserLocation } from '/... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/FirstSection/Find/__tests__/Find.test.js | imports/client/ui/pages/Home/oldhomepage/FirstSection/Find/__tests__/Find.test.js | import React from 'react'
import { shallow } from 'enzyme'
import Find from '../index.js'
describe('<Find />', () => {
const shallowRenderer = () =>
shallow(
<Find />
)
const wrapper = shallowRenderer()
test('defaults state', () => {
expect(wrapper.state()).toEqual({
error: null,
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/HowToHelpSection/index.js | imports/client/ui/pages/Home/oldhomepage/HowToHelpSection/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import { Container, Row, Col, Button } from 'reactstrap'
import Item from './Item'
import i18n from '/imports/both/i18n/en'
import ContributorsSection from '../ContributorsSection'
import './styles.scss'
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/oldhomepage/HowToHelpSection/Item/index.js | imports/client/ui/pages/Home/oldhomepage/HowToHelpSection/Item/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item, loginButton }) =>
<div className="item">
<h3 className='item-text'>{item.text}</h3>
{item.link !== undefined ? loginButton : null}
<br/>
<span className='item-subText'>{item.subText}</span>
{item.link !== undefined &&
<a... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/EventsSection/index.js | imports/client/ui/pages/Home/EventsSection/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import {
Container,
Row,
Col,
Button,
Card,
CardBody,
CardTitle,
CardText,
CardSubtitle,
CardLink,
CardDeck
} from 'reactstrap'
import Item from './Item'
import i18n from '/imports/b... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/EventsSection/Item-old/index.js | imports/client/ui/pages/Home/EventsSection/Item-old/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item, loginButton }) =>
<div className="item">
<h3 className='item-text'>{item.text}</h3>
{item.link !== undefined ? loginButton : null}
<br/>
<span className='item-subText'>{item.subText}</span>
{item.link !== undefined &&
<a... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/EventsSection/Item/index.js | imports/client/ui/pages/Home/EventsSection/Item/index.js | import React from 'react';
import './styles.scss';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import {
Container,
Row,
Col,
Button,
Card,
CardBody,
CardTitle,
CardText,
CardSubtitle,
CardLink,
} from 'reactstrap';
const Item = ({ item, loginButton }) => (
<Col cl... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/FirstSection/index.js | imports/client/ui/pages/Home/FirstSection/index.js | import React from 'react'
import { Meteor } from 'meteor/meteor'
import { withTracker } from 'meteor/react-meteor-data'
import { Container } from 'reactstrap'
import Find from './Find'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const { Home } = i18n
let color
let titleColor = { color: color }
c... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/FirstSection/Find/index.js | imports/client/ui/pages/Home/FirstSection/Find/index.js | import React, { Component } from 'react'
import { Redirect, Link } from 'react-router-dom'
import { FormGroup, Label, InputGroup, InputGroupAddon, Input, Button } from 'reactstrap'
import { geocodeByAddress, getLatLng } from 'react-places-autocomplete'
import getUserPosition, { getCurrentLocation, storeUserLocation } f... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/FirstSection/Find/__tests__/Find.test.js | imports/client/ui/pages/Home/FirstSection/Find/__tests__/Find.test.js | import React from 'react'
import { shallow } from 'enzyme'
import Find from '../index.js'
describe('<Find />', () => {
const shallowRenderer = () =>
shallow(
<Find />
)
const wrapper = shallowRenderer()
test('defaults state', () => {
expect(wrapper.state()).toEqual({
error: null,
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/HowToHelpSection/index.js | imports/client/ui/pages/Home/HowToHelpSection/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import { Container, Row, Col, Button } from 'reactstrap'
import Item from './Item'
import i18n from '/imports/both/i18n/en'
import ContributorsSection from '../ContributorsSection'
import './styles.scss'
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Home/HowToHelpSection/Item/index.js | imports/client/ui/pages/Home/HowToHelpSection/Item/index.js | import React from 'react'
import './styles.scss'
const Item = ({ item, loginButton }) =>
<div className="item">
<h3 className='item-text'>{item.text}</h3>
{item.link !== undefined ? loginButton : null}
<br/>
<span className='item-subText'>{item.subText}</span>
{item.link !== undefined &&
<a... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/index.js | imports/client/ui/pages/Admin/index.js | import React, { Component } from 'react'
import { Navbar, Nav, Alert, Button, FormGroup, Label, Input } from 'reactstrap'
import { Meteor } from 'meteor/meteor'
import { withTracker } from 'meteor/react-meteor-data'
import { rolesDataKey, checkPermissions } from './RolesPermissions/index'
import AdminTable from './Admi... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/MergeUsersModal/index.js | imports/client/ui/pages/Admin/MergeUsersModal/index.js | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { Modal, ModalHeader, ModalBody, ModalFooter, Button, FormGroup, Label, Input, Alert } from 'reactstrap';
class MergeUsersModal extends Component {
state = {
sourceUserId: '',
targetUserId: '',
loading: false,
er... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/EventsDisplay/EventsDropDown.js | imports/client/ui/pages/Admin/EventsDisplay/EventsDropDown.js | import React, { Component } from 'react'
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Button } from 'reactstrap'
import CategoryDropDown from './CategoryDropDown'
import Toggle from './../../../components/Toggle/index'
import CancelDeleteBtns from './../CancelDeleteBtns/CancelDeleteBtns'
class Events... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/EventsDisplay/index.js | imports/client/ui/pages/Admin/EventsDisplay/index.js | import { Meteor } from 'meteor/meteor'
import React, { Component } from 'react'
import EventsDropDown from './EventsDropDown'
import LinkEvents from './LinkEvents'
class EventsDisplay extends Component {
constructor (props) {
super(props)
this.state = {
allEvents: [],
categoryEvents: [],
cu... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/EventsDisplay/CategoryDropDown.js | imports/client/ui/pages/Admin/EventsDisplay/CategoryDropDown.js | import React, { Component } from 'react'
class CategoryDropDown extends Component {
constructor (props) {
super(props)
this.state = {
value: ''
}
this.change = this.change.bind(this)
}
componentDidUpdate (prevProps, prevState) {
if (prevState.value !== this.state.value) {
this.pr... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/EventsDisplay/LinkEvents.js | imports/client/ui/pages/Admin/EventsDisplay/LinkEvents.js | import React from 'react'
import { Link } from 'react-router-dom'
import CategoryDropDown from './CategoryDropDown'
import CancelDeleteBtns from './../CancelDeleteBtns/CancelDeleteBtns'
const LinkEvents = (props) => {
const { allPosibleCategories, categoryEvents, changeCategory, deleteAllEvents, currentCategory } = ... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/__tests__/AdminTable.test.js | imports/client/ui/pages/Admin/__tests__/AdminTable.test.js | import React from 'react'
import { Meteor } from 'meteor/meteor'
import { shallow, mount } from 'enzyme'
import AdminTable, { Head, Rows } from '../AdminTable/index'
describe('<AdminTable/>', () => {
const userAdmin = {
_id: 'GKnfyoGCYCGXAB9rR',
profile: { _id: '1234', name: 'RR@gmail.com' },
roles: { _... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/__tests__/Admin.test.js | imports/client/ui/pages/Admin/__tests__/Admin.test.js | import React from 'react'
import { shallow } from 'enzyme'
import { Admin } from '../index'
import { Navbar, Nav, Alert, Button } from 'reactstrap'
describe('<Admin />', () => {
const userEmailOnly = {
profile: { name: 'RR@gmail.com' }
}
const userGoogleAuth = {
profile: { name: 'Dan Man' }
}
const u... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/__tests__/CancelDeleteBtns.test.js | imports/client/ui/pages/Admin/__tests__/CancelDeleteBtns.test.js | import React from 'react'
import { shallow } from 'enzyme'
import { Button } from 'reactstrap'
import CancelDeleteBtns from './../CancelDeleteBtns/CancelDeleteBtns'
describe('<CancelDeleteBtns/>', () => {
const user = { _id: '123' }
const deleteUser = () => {
return null
}
const wrapper = shallow(<CancelDe... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/__tests__/Roles.test.js | imports/client/ui/pages/Admin/__tests__/Roles.test.js | import React from 'react'
import { shallow, mount } from 'enzyme'
import Roles from '../AdminTable/Roles'
import { RadioInput } from '../RoleSelect/index'
describe('<Roles/>', () => {
const userAdmin = {
_id: 'GKnfyoGCYCGXAB9rR',
profile: { _id: '1234', name: 'RR@gmail.com' },
roles: { __global_roles__:... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/__tests__/Events.test.js | imports/client/ui/pages/Admin/__tests__/Events.test.js | import React from 'react'
import { shallow, mount } from 'enzyme'
import EventsDisplay from '../EventsDisplay/index'
import LinkEvents from './../EventsDisplay/LinkEvents'
describe('<EventsDisplay/>', () => {
const categoryOne = 'Visit'
const categoryTwo = 'Food'
const organiserOne = { _id: 'A1234', name: 'RR@gm... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/CancelDeleteBtns/CancelDeleteBtns.js | imports/client/ui/pages/Admin/CancelDeleteBtns/CancelDeleteBtns.js | import React, { Component } from 'react'
import { Button } from 'reactstrap'
class CancelDeleteBtns extends Component {
constructor (props) {
super(props)
this.state = {
isCancelConfirm: false
}
}
setCancelConfirmToFalse = () => {
this.setState({ isCancelConfirm: false })
}
setCancelC... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/RolesPermissions/index.js | imports/client/ui/pages/Admin/RolesPermissions/index.js | import { Meteor } from 'meteor/meteor'
export const rolesDataKey = '__global_roles__'
export const admin = 'admin'
export const moderator = 'moderator'
export const user = 'user'
export const roleOptions = [admin, moderator, user]
export const permissions = {
adminPage: [admin, moderator],
changeRole: [admin],
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/UserDisplay/index.js | imports/client/ui/pages/Admin/UserDisplay/index.js | import React from 'react'
const UserDisplay = (props) => {
let { name, role } = props
const capitalRole = role.charAt(0).toUpperCase() + role.slice(1)
const toDisplay = `Welcome: ${capitalRole} ${name}`
return (
<div className="userDisplay-container">
<h6> {toDisplay}</h6>
</div>
)
}
export... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
focallocal/fl-maps | https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/pages/Admin/AdminTable/index.js | imports/client/ui/pages/Admin/AdminTable/index.js | import React from 'react'
import { Table, Col } from 'reactstrap'
import { display } from './helper'
import TableData from './TableData'
export const Head = (props) => {
let titles = props.titles.map(ele => {
return <th key={ele}>{ele}</th>
})
return (
<thead>
<tr>
{titles}
</tr>
... | javascript | MIT | 4b43a50cb113f5dab03073cbba79aa00f3e317c9 | 2026-01-05T03:39:41.226936Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.