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/imports/client/ui/pages/Admin/AdminTable/Roles.js
imports/client/ui/pages/Admin/AdminTable/Roles.js
import React from 'react' import { parseData } from './helper' import RoleSelect from './../RoleSelect/index.js' const Roles = ({ user, changeUserRole }) => { const roles = parseData('role', user) const UserName = parseData('user', user) return ( <RoleSelect rolesData={roles} UserName={UserName} user={user}...
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/Events.js
imports/client/ui/pages/Admin/AdminTable/Events.js
import React, { Component } from 'react' import EventsDisplay from './../EventsDisplay/index' class Events extends Component { constructor (props) { super(props) this.state = { } } render () { const { userEvents, user, isAllEvents, deleteAllEvents } = this.props const safeUserEvents = userEvents...
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/TableData.js
imports/client/ui/pages/Admin/AdminTable/TableData.js
import React from 'react' import Users from './Users' import Roles from './Roles' import Events from './Events' import { userKey, roleKey, eventKey } from './helper' const TableData = ({ tableDataType, user, ...otherProps }) => { const dataComponents = { [userKey]: Users, [roleKey]: Roles, [eventKey]: Ev...
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/Users.js
imports/client/ui/pages/Admin/AdminTable/Users.js
import React from 'react' import CancelDeleteBtns from './../CancelDeleteBtns/CancelDeleteBtns' import { parseData } from './helper' const Users = ({ user, deleteUser }) => { const userName = parseData('user', user) let button = <CancelDeleteBtns idToDelete={user._id} deleteDocument={deleteUser} deleteText={'del'} ...
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/helper.js
imports/client/ui/pages/Admin/AdminTable/helper.js
import { rolesDataKey } from './../RolesPermissions/index' import i18n from './../../../../../../imports/both/i18n/en' export const userKey = 'user' export const roleKey = 'role' export const eventKey = 'event' export const display = [ { title: i18n.Admin.titles[userKey], tableDataType: userKey }, { title: i18n.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/RoleSelect/index.js
imports/client/ui/pages/Admin/RoleSelect/index.js
import React, { Component } from 'react' import { FormGroup, Label, Input } from 'reactstrap' import { roleOptions, user } from './../RolesPermissions/index' export const RadioInput = (props) => { const { rolesData } = props // profile name could have duplication potential for users that sign in through google or...
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/PostsView/index.js
imports/client/ui/pages/Admin/PostsView/index.js
import React, { Component } from 'react'; import { Meteor } from 'meteor/meteor'; import { FixedSizeList as List } from 'react-window'; import { Button, Input, FormGroup, Label } from 'reactstrap'; import { Link } from 'react-router-dom'; import './styles.scss'; class PostsView extends Component { constructor(props)...
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/UserSearch/index.js
imports/client/ui/pages/Admin/UserSearch/index.js
import React, { Component } from 'react' import { Form, FormGroup, Input, Button } from 'reactstrap' class UserSearch extends Component { constructor (props) { super(props) this.userToSearch = React.createRef() } searchForUser = (e) => { e.preventDefault() this.props.searchForUser(this.userToSear...
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/Faq/Content.js
imports/client/ui/pages/Faq/Content.js
// External Libraries import React from 'react' import { Container, Col } from 'reactstrap' // Internal Imports import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import i18n from '/imports/both/i18n/en/' const Content = (props) => { return ( <React.Fragment> <Container className="mt-5">...
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/Faq/index.js
imports/client/ui/pages/Faq/index.js
// Imports import React from 'react' import Content from './Content' const Index = (props) => { return <Content dcsTags={props.dcsTags}/> } export default Index
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/Page/index.js
imports/client/ui/pages/Page/index.js
// External Packages import React, { Component } from 'react' import { Redirect, withRouter } from 'react-router-dom' import PropTypes from 'prop-types' import { Meteor } from 'meteor/meteor' import { withTracker } from 'meteor/react-meteor-data' import { Container, Row, Col, Button, Modal, ModalHeader, ModalBody, Moda...
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/Page/AttendingButton/index.js
imports/client/ui/pages/Page/AttendingButton/index.js
/******************* * CURRENTLY DISABLED - May be added back in future when works across both maps ********************/ import React, { Component } from 'react' import PropTypes from 'prop-types' import { Meteor } from 'meteor/meteor' import { Button } from 'reactstrap' import { Loader } from '/imports/client/ui/comp...
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/Page/__tests__/AttendingButton.test.js
imports/client/ui/pages/Page/__tests__/AttendingButton.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import AttendingButton from '../AttendingButton' /* describe('<AttendingButton />', () => { const shallowRenerer = (props) => shallow( <AttendingButton _id='test id' history={{ push: jest.fn() }} i...
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/Page/__tests__/Page.test.js
imports/client/ui/pages/Page/__tests__/Page.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import { Meteor } from 'meteor/meteor' import { Col } from 'reactstrap' import HoursFormatted from '/imports/client/ui/components/HoursFormatted' import * as DOMInteractions from '/imports/client/utils/DOMInteractions' import * as Page...
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/Page/__tests__/Edit.test.js
imports/client/ui/pages/Page/__tests__/Edit.test.js
import React from 'react' import { shallow } from 'enzyme' import { Button } from 'reactstrap' import Edit from '../Edit' describe('<Edit />', () => { const shallowRenderer = props => shallow( <Edit data={{}} history={{ push: jest.fn() }} {...props} /> ) it('should rend...
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/Page/Edit/index.js
imports/client/ui/pages/Page/Edit/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Button } from 'reactstrap' import './styles.scss' class EditPage extends Component { render () { return ( <div id='edit-page'> <Button color='primary' onClick={this.openEditModal}> Edit Page <i ...
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/About/index.js
imports/client/ui/pages/About/index.js
import React, { Component } from 'react' import TopImageSection from './TopImageSection' import FirstSection from './FirstSection' import SecondSection from './SecondSection' import ThirdSection from './ThirdSection' import AboutSection from '../Home/SecondSection' import i18n from '/imports/both/i18n/en' import './sty...
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/About/TopImageSection/index.js
imports/client/ui/pages/About/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.About.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/About/SecondSection/index.js
imports/client/ui/pages/About/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.About.second_section const { first, second, third, fourth, fifth, y...
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/About/ThirdSection/index.js
imports/client/ui/pages/About/ThirdSection/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.About.second_section const { first, second, third, fourth, fifth, y...
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/About/FirstSection/index.js
imports/client/ui/pages/About/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.About.first_section const { first, second, third, fourth, fifth, yo...
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/Errors/index.js
imports/client/ui/pages/Errors/index.js
import React from 'react' import './styles.scss' export const Error404 = (props) => { return ( <div className="error__container"> <h3 className="error__heading">Page not found</h3> <br/> <p className="error__paragraph">Use the menu bar above to navigate the site.</p> </div> ) }
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/WhitePaper/index.js
imports/client/ui/pages/WhitePaper/index.js
// External Packages import React, { Fragment } from 'react' import { Container } from 'reactstrap' import { Link } from 'react-router-dom' // Components import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import NavMenu from './NavMenu' import { TableOfContents } from './TableOfContents' // Styles 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/WhitePaper/NavMenu.js
imports/client/ui/pages/WhitePaper/NavMenu.js
// External Packages import React, { Fragment } from 'react' import { Container } from 'reactstrap' import { Link } from 'react-router-dom' // Styles and Other import './styles.scss' const links = { Intro: '/whitepaper/intro', Why: '/whitepaper/why', FAQs: '/whitepaper/faqs', Team: '/team', Whitepaper: '/wh...
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/WhitePaper/TableOfContents.js
imports/client/ui/pages/WhitePaper/TableOfContents.js
import React, { Fragment } from 'react' import i18n from '/imports/both/i18n/en/' export const TableOfContents = () => { const fullText = i18n.Whitepaper.FullText let chapter = 0 let section = 0 return ( <React.Fragment> <h2 className='title' style={{ textAlign: 'center' }}>Public Happiness Movement<...
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/WhitePaper/faqs/Content.js
imports/client/ui/pages/WhitePaper/faqs/Content.js
// External Libraries import React from 'react' import { Container, Col } from 'reactstrap' // Internal Imports import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import i18n from '/imports/both/i18n/en/' const Content = (props) => { return ( <React.Fragment> <Container className="mt-5">...
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/WhitePaper/faqs/index.js
imports/client/ui/pages/WhitePaper/faqs/index.js
// Imports import React, { Fragment } from 'react' import Content from './Content' import NavMenu from '../NavMenu' import './styles.scss' const Index = (props) => ( <Fragment> <NavMenu /> <Content dcsTags={props.dcsTags}/> </Fragment> ) export default Index
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/WhitePaper/Intro/index.js
imports/client/ui/pages/WhitePaper/Intro/index.js
// External Packages import React, { Component } from 'react' import { Container } from 'reactstrap' // Componets import TopImageSection from './TopImageSection' import FirstSection from './FirstSection' import SecondSection from './SecondSection' import ThirdSection from './ThirdSection' import NavMenu from '../NavMe...
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/WhitePaper/Intro/TopImageSection/index.js
imports/client/ui/pages/WhitePaper/Intro/TopImageSection/index.js
import React from 'react' import { Container } from 'reactstrap' import i18n from '/imports/both/i18n/en/' import './style.scss' const { top_image_url } = i18n.Whitepaper.Intro const TopImageSection = () => ( <section className='top-image-section'> <Container> <div className="top-image-wrapper"> <...
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/WhitePaper/Intro/SecondSection/index.js
imports/client/ui/pages/WhitePaper/Intro/SecondSection/index.js
import React from 'react' import { Container, Row, Col } from 'reactstrap' import i18n from '/imports/both/i18n/en/' import './style.scss' const { title, content } = i18n.Whitepaper.Intro.second_section const { first, second, third, fourth, youtubeLink } = content const SecondSection = () => ( <section 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/WhitePaper/Intro/ThirdSection/index.js
imports/client/ui/pages/WhitePaper/Intro/ThirdSection/index.js
import React from 'react' import { Container, Row, Col, Button } from 'reactstrap' import i18n from '/imports/both/i18n/en/' import './style.scss' const { title, content } = i18n.Whitepaper.Intro.third_section const { first, second, third, fourth, youtubeLink, cta } = content const ThirdSection = () => ( ...
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/WhitePaper/Intro/FirstSection/index.js
imports/client/ui/pages/WhitePaper/Intro/FirstSection/index.js
import React from 'react' import { Container, Row, Col } from 'reactstrap' import i18n from '/imports/both/i18n/en/' import './style.scss' const { title, content } = i18n.Whitepaper.Intro.first_section const { first, second, third, youtubeLink } = content const FirstSection = () => ( <section className='fir...
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/WhitePaper/Why/Content.js
imports/client/ui/pages/WhitePaper/Why/Content.js
// External Libraries import React from 'react' import { Container, Col } from 'reactstrap' // Internal Imports import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import i18n from '/imports/both/i18n/en/' const Content = (props) => { return ( <React.Fragment> <Container className="mt-5 m...
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/WhitePaper/Why/index.js
imports/client/ui/pages/WhitePaper/Why/index.js
// Imports import React, { Fragment } from 'react' import Content from './Content' import NavMenu from '../NavMenu' import './styles.scss' const Index = (props) => ( <Fragment> <NavMenu /> <Content dcsTags={props.dcsTags}/> </Fragment> ) export default Index
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/Map/index.js
imports/client/ui/pages/Map/index.js
// External Libraries import { Meteor } from 'meteor/meteor' import React, { Component, Fragment } from 'react' import { DirectionsRenderer, GoogleMap, Marker, withGoogleMap, withScriptjs } from 'react-google-maps' import { MarkerClusterer } from 'react-google-maps/lib/components/addons/MarkerClusterer' import { Standa...
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/Map/mapStyles.js
imports/client/ui/pages/Map/mapStyles.js
const mapStyles = [ { 'featureType': 'all', 'elementType': 'all', 'stylers': [ { 'saturation': '100' }, { 'gamma': '0.50' }, { 'weight': '1.00' } ] }, { 'featureType': 'all', 'elementType': 'labels.icon', 'stylers': [ { ...
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/Map/mapOptions.js
imports/client/ui/pages/Map/mapOptions.js
/* Define options for the map component */ import mapStyles from './mapStyles' export default function options () { return { styles: mapStyles, zoomControlOptions: { position: window.google.maps.ControlPosition.RIGHT_BOTTOM }, streetViewControlOptions: { position: google.maps.ControlPosit...
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/Map/EventsList/index.js
imports/client/ui/pages/Map/EventsList/index.js
import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import { ListGroup } from 'reactstrap' import EventsListItem from './EventsListItem' import MinimizeButton from './MinimizeButton' import EventInfo from './EventInfo' import { inIFrame } from 'dcs-client' import * as Gravatar 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/Map/EventsList/EventsListItem/index.js
imports/client/ui/pages/Map/EventsList/EventsListItem/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { ListGroupItem } from 'reactstrap' import { formatMilesFromLocation, formatCategories } from '/imports/client/utils/format' import './styles.scss' class ListItem extends Component { render () { const { item, userLoca...
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/Map/EventsList/EventInfo/index.js
imports/client/ui/pages/Map/EventsList/EventInfo/index.js
import React, { Component } from 'react' import { Meteor } from 'meteor/meteor' import { withTracker } from 'meteor/react-meteor-data' import PropTypes from 'prop-types' import { Button } from 'reactstrap' import Linkify from 'linkifyjs/react' // import i18n_ from '/imports/both/i18n/en/map.json' import HoursFormatted ...
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/Map/EventsList/MinimizeButton/index.js
imports/client/ui/pages/Map/EventsList/MinimizeButton/index.js
import React from 'react' import { Button } from 'reactstrap' import './styles.scss' export default class MinimizeButton extends React.Component { constructor () { super() this.state = { minimized: false } } componentDidMount () { // Comment this out for test failing(MinimizeButton.test)....
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/Map/SearchButtons/index.js
imports/client/ui/pages/Map/SearchButtons/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Button } from 'reactstrap' import './styles.scss' class SearchButtons extends Component { render () { return ( <div className='buttons'> <Button onClick={this.props.toggleFilters}> <i className='fa fa-fil...
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/Map/MarkerWrapper/index.js
imports/client/ui/pages/Map/MarkerWrapper/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Marker } from 'react-google-maps' import { icon } from '../mapOptions' class MarkerWrapper extends Component { state = { hovered: false } render () { const { hovered } = this.state const { event, ...
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/Map/utils/ensureUniquePosition.js
imports/client/ui/pages/Map/utils/ensureUniquePosition.js
/* This algorithm ensures that no same location markers are hiding each other. We cache everything to avoid unnecessary calculations for over re-renders. Go through the code slowly, it should be fairly self-explantory. */ import haversineOffset from 'haversine-offset' export default function ensureUniquePositio...
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/Map/utils/index.js
imports/client/ui/pages/Map/utils/index.js
import ensureUniquePosition from './ensureUniquePosition' export { ensureUniquePosition }
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/Map/__tests__/EventsList.test.js
imports/client/ui/pages/Map/__tests__/EventsList.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import EventsList, { Loading, NoResults } from '../EventsList' import EventsListItem from '../EventsList/EventsListItem' import EventInfo from '../EventsList/EventInfo' import MinimizeButton from '../EventsList/MinimizeButton' import H...
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/Map/__tests__/MinimizeButton.test.js
imports/client/ui/pages/Map/__tests__/MinimizeButton.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import MinimizeButton from '../EventsList/MinimizeButton' import { Button } from 'reactstrap' describe('<MinimizeButton />', () => { const shallowRender = (props) => { return shallow( <MinimizeButton {...props} ...
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/Map/__tests__/Map.test.js
imports/client/ui/pages/Map/__tests__/Map.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import { GoogleMap } from 'react-google-maps' import { MarkerClusterer } from 'react-google-maps/lib/components/addons/MarkerClusterer' import * as DOMInteractions from '/imports/client/utils/DOMInteractions' import MarkerWrapper 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/Map/__tests__/EventsFilter.test.js
imports/client/ui/pages/Map/__tests__/EventsFilter.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import EventsFilter from '../EventsFilter' import { ListGroup, ListGroupItem, CustomInput } from 'reactstrap' import categories from '/imports/both/i18n/en/categories.json' import i18n from '/imports/both/i18n/en' describe('<EventsFil...
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/Map/__tests__/SearchButtons.test.js
imports/client/ui/pages/Map/__tests__/SearchButtons.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import SearchButtons from '../SearchButtons' import { Button } from 'reactstrap' describe('<SearchButtons />', () => { const shallowRender = (props) => { return shallow( <SearchButtons {...props} /> ) }...
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/Map/EventsFilter/index.js
imports/client/ui/pages/Map/EventsFilter/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { ListGroup, ListGroupItem, Input, Label } from 'reactstrap' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // import categoryTree from '/imports/both/i18n/en/categories.json' import './styles.scss' import i18n 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/components/Toggle/index.js
imports/client/ui/components/Toggle/index.js
import React, { Component } from 'react' class Toggle extends Component { constructor (props) { super(props) this.state = { isShow: false } } componentDidUpdate (prevProps) { if (prevProps.isShow !== this.props.isShow) { this.setState({ isShow: this.props.isShow }) } } toggl...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/SharePanel/index.js
imports/client/ui/components/SharePanel/index.js
import { FacebookShareButton, GooglePlusShareButton, LinkedinShareButton, TwitterShareButton, TelegramShareButton, WhatsappShareButton, PinterestShareButton, VKShareButton, OKShareButton, RedditShareButton, TumblrShareButton, LivejournalShareButton, MailruShareButton, ViberShareButton, Wor...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/ScrollToTop/index.js
imports/client/ui/components/ScrollToTop/index.js
import React, { Component } from 'react' import { withRouter } from 'react-router-dom' class ScrollToTop extends Component { componentDidUpdate (prevProps) { // Compare only path names, as we don't want to scroll to top when only // query params have changed. ALso, don't scroll when there's a Docuss // 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/components/PlacesSearchBox/index.js
imports/client/ui/components/PlacesSearchBox/index.js
import React from 'react' import PropTypes from 'prop-types' import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-autocomplete' import { ListGroup, ListGroupItem, Input } from 'reactstrap' class SearchBox extends React.Component { state = { address: '' } componentDidMount () { 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/components/DCSLink/index.js
imports/client/ui/components/DCSLink/index.js
import React, { Component, Fragment } from 'react' import { withDcs } from 'dcs-react-router-sync' import { withRouter } from 'react-router-dom' import PropTypes from 'prop-types' import './style.scss' // ------------------------------------------------------------------------------ let g_init = false function init...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/SlideBanner/index.js
imports/client/ui/components/SlideBanner/index.js
import React, { useEffect, useState } from 'react'; import { Button } from 'reactstrap'; import './styles.scss'; // Ensure you have corresponding styles import i18n from '/imports/both/i18n/en'; const SlideshowBanner = ({ autoScrollInterval = 3000 }) => { const SlideBannerI18N = i18n.Home.slide_banner_section; 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/components/__tests__/HoursFormatted.test.js
imports/client/ui/components/__tests__/HoursFormatted.test.js
import React from 'react' import { shallow } from 'enzyme' import HoursFormatted from '../HoursFormatted' import { formatDateWithWords } from '/imports/client/utils/format' describe.only('<HoursFormatted />', () => { const constantDate = new Date('2018-01-01T12:00:00') beforeAll(() => { global.Date = class ex...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/HoursFormatted/index.js
imports/client/ui/components/HoursFormatted/index.js
import React from 'react' import { formatDateWithWords, formatDate } from '/imports/client/utils/format' import { findNextEvent, calibrateEndWeekday } from '/imports/client/utils/findNextEvent' import './styles.scss' const HoursFormatted = ({ data }) => { const { startingDate, endingDate, startingTime, ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/FloatingSlider/index.js
imports/client/ui/components/FloatingSlider/index.js
import React, { useEffect, useState } from "react"; import "./styles.scss"; const FloatingSlider = () => { const [randomImages, setRandomImages] = useState([]); // List of image paths const imagePaths = [ '/images/focallocal-bgOG.jpg', '/images/cover_climate_hack.png', '/images/PHM-logo-banner-text-...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/VideoPlayer/Subscribe.js
imports/client/ui/components/VideoPlayer/Subscribe.js
import React, { Component } from 'react' import PropTypes from 'prop-types' /** * @author Arty S * Youtube Subscribe Button Component: allows user to subscribe to focallocal channel on click. * works by calling the Google API to render a YT subscribe button * note: requires a link to google's API script to be incl...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/VideoPlayer/index.js
imports/client/ui/components/VideoPlayer/index.js
import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import ReactPlayer from 'react-player' import Subscribe from '/imports/client/ui/components/VideoPlayer/Subscribe' import './styles.scss' import i18n from '/imports/both/i18n/en' let allPlaylists = i18n.Video let categoryTree = i18...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/components/PageLoader/index.js
imports/client/ui/components/PageLoader/index.js
import React, { Component } from 'react' import ReactDOM from 'react-dom' import './styles.scss' class Loader extends Component { render () { const className = this.props.className return ( <div className={'va-center loader ' + className || ''}> <div className='ball-beat'> <div /><di...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/index.js
imports/client/ui/includes/MainMenu/index.js
import React, { Component, Fragment } from 'react' import { Navbar, Nav, NavItem, Button } from 'reactstrap' import { NavLink as RouterNavLink } from 'react-router-dom' import { Meteor } from 'meteor/meteor' import { withTracker } from 'meteor/react-meteor-data' import Sidebar from './Sidebar' import DropDownItem 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/includes/MainMenu/DropDownItem/index.js
imports/client/ui/includes/MainMenu/DropDownItem/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { NavItem, Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap' import { NavLink } from 'react-router-dom' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' class DropDownItem extends Component { st...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/LinkItem/index.js
imports/client/ui/includes/MainMenu/LinkItem/index.js
import React from 'react' import PropTypes from 'prop-types' import { NavItem, NavLink } from 'reactstrap' import { NavLink as RouterNavLink } from 'react-router-dom' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' const LinkItem = ({ item, onClick }) => { // Distingiush between link and route-link ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/__tests__/MainMenu.test.js
imports/client/ui/includes/MainMenu/__tests__/MainMenu.test.js
import React from 'react' import { shallow } from 'enzyme' import { NavLink as RouterNavLink } from 'react-router-dom' import { Button } from 'reactstrap' import MainMenu from '../index' import Sidebar from '../Sidebar' import Logo from '../Logo' import i18n from '/imports/both/i18n/en' describe('<MainMenu />', () => ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/__tests__/Sidebar.test.js
imports/client/ui/includes/MainMenu/__tests__/Sidebar.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import { Nav } from 'reactstrap' import Sidebar from '../Sidebar' import LinkItem from '../LinkItem' import Logo from '../Logo' import i18n from '/imports/both/i18n/en' describe('<Sidebar />', () => { const shallowRenderer = props =...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/__tests__/Logo.test.js
imports/client/ui/includes/MainMenu/__tests__/Logo.test.js
import React from 'react' import { shallow } from 'enzyme' import { NavLink } from 'react-router-dom' import Logo from '../Logo' describe('<Logo />', () => { it('should render our logo with a NavLink to home page', () => { const wrapper = shallow(<Logo />) expect(wrapper.props().id).toEqual('brand-logo') ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/__tests__/Category.test.js
imports/client/ui/includes/MainMenu/__tests__/Category.test.js
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import { Nav } from 'reactstrap' import Category from '../Sidebar/Category' import LinkItem from '../LinkItem' describe('<Category />', () => { const shallowRenderer = props => shallow( <Category item={{ title: 'te...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/__tests__/DropDownItem.test.js
imports/client/ui/includes/MainMenu/__tests__/DropDownItem.test.js
import React from 'react' import { shallow, mount } from 'enzyme' import { Router, MemoryRouter } from 'react-router-dom' import { DropdownMenu, DropdownItem } from 'reactstrap' import DropDownItem from '../DropDownItem' describe('<DropDownItem />', () => { const item = { title: 'Test Item', content: [ ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/__tests__/LinkItem.test.js
imports/client/ui/includes/MainMenu/__tests__/LinkItem.test.js
import React from 'react' import { shallow, mount } from 'enzyme' import { NavLink as RouterNavLink } from 'react-router-dom' import { NavLink } from 'reactstrap' import LinkItem from '../LinkItem' describe('<LinkItem />', () => { let item = { title: 'Test Item', route: '/' } it('should render only a ro...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/Logo/index.js
imports/client/ui/includes/MainMenu/Logo/index.js
import React from 'react' import PropTypes from 'prop-types' import { NavLink } from 'react-router-dom' import { NavbarBrand } from 'reactstrap' import './styles.scss' const Logo = ({ sidebar, onClick }) => { let imgUrl let menuLogo if (window.__mapType !== 'gatherings') { imgUrl = sidebar ? 'btm_logo_inver...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/Sidebar/index.js
imports/client/ui/includes/MainMenu/Sidebar/index.js
import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import { Nav } from 'reactstrap' import Swipeable from 'react-swipeable' import Category from './Category' import LinkItem from '../LinkItem' import Logo from '../Logo' import './styles.scss' import { FontAwesomeIcon } from '@fortawes...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/Sidebar/Category/index.js
imports/client/ui/includes/MainMenu/Sidebar/Category/index.js
import React from 'react' import { Nav } from 'reactstrap' import LinkItem from '../../LinkItem' import './styles.scss' const Category = ({ item, onClick }) => { const { title, content } = item return ( <li className='category'> <div className='divider' /> <Nav vertical> <div cla...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/client/ui/includes/MainMenu/UserItem/index.js
imports/client/ui/includes/MainMenu/UserItem/index.js
import React from 'react' import DropDownItem from '../DropDownItem' import i18n from '/imports/both/i18n/en' import { Roles } from 'meteor/alanning:roles' import { permissions } from './../../../pages/Admin/RolesPermissions/index' const UserItem = ({ user }) => { let userStatus let isShowAdminLink = false if (us...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/index.js
imports/both/index.js
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/index.js
imports/both/i18n/en/index.js
import BrighterTomorrowContent from './btm' import PublicHappinessMovementContent from './phm' import { Meteor } from 'meteor/meteor' const { mapType } = Meteor.settings.public console.log(mapType) let content if (mapType === 'gatherings') content = PublicHappinessMovementContent else if (mapType === 'btm') content =...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/About-OldContent.js
imports/both/i18n/en/About-OldContent.js
export default { "second_section": { "title": "What are we doing?", "content": { "items": [ { "text": "Building projects to make your daily life as fun as a festival", "link": "https://news.publichappinessmovement.com/" }, { "text": "Creating simple ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/phm/index.js
imports/both/i18n/en/phm/index.js
import About from './about.json' import CongratsModal from './congrats-modal.json' import Home from './home.json' import MainMenu from './menu.json' import Map from './map.json' import NewEventModal from './new-event-modal.json' import Team from './team.json' import Partners from './partners.json' import Faq from './fa...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/phm/About-OldContent.js
imports/both/i18n/en/phm/About-OldContent.js
export default { "second_section": { "title": "What are we doing?", "content": { "items": [ { "text": "Building projects to make your daily life as fun as a festival", "link": "https://news.publichappinessmovement.com/" }, { "text": "Creating simple ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/phm/whitepaper/forword.js
imports/both/i18n/en/phm/whitepaper/forword.js
export const Forword = ` This whitepaper is open to everyone’s ideas. Please contribute to its evolution by clicking on the balloons and adding your thoughts and experience on how each section of our plan can better transform human society into one focused on improving well-being for people, societies and our planet. ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/phm/whitepaper/index.js
imports/both/i18n/en/phm/whitepaper/index.js
import Faqs from './faqs.json' import Intro from './intro.json' import Why from './why.json' import { FullText } from './fullText' import { Forword } from './forword' export default { Intro, Why, Faqs, FullText, Forword }
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/phm/whitepaper/fullText.js
imports/both/i18n/en/phm/whitepaper/fullText.js
export const FullText = [ { title: "Abstract", code: "Abstra", fullText: ` `, chapterHeading: true }, { title: "Movement Background", code: "MovBac", fullText: ` ## 1.1. **Movement Background** Founder Andy worked for the past 7 years building and running a non-profit volunteer commu...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
true
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/btm/index.js
imports/both/i18n/en/btm/index.js
import About from './about.json' import CongratsModal from './congrats-modal.json' import Home from './home.json' import MainMenu from './menu.json' import Map from './map.json' import NewEventModal from './new-event-modal.json' import Team from './team.json' import Partners from './partners.json' import Faq from './fa...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/i18n/en/btm/whitepaper/index.js
imports/both/i18n/en/btm/whitepaper/index.js
import Faqs from './faqs.json' import Intro from './intro.json' import Why from './why.json' export default { Intro, Why, Faqs }
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/utils/discourse.js
imports/both/utils/discourse.js
import { Meteor } from 'meteor/meteor' const DEFAULT_DISCOURSE_ORIGIN = 'https://publichappinessmovement.com' function resolveSettingOrigin () { const publicSettings = Meteor?.settings?.public || {} return ( publicSettings.discourseOrigin || publicSettings.discourse_url || publicSettings.discourseUrl ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/collections/__tests__/events-helpers.test.js
imports/both/collections/__tests__/events-helpers.test.js
import * as helpers from '../events/helpers' import possibleEventHours from '../events/helpers/possibleEventHours' describe('Events collection helpers', () => { // test('determinePosition function', () => { const f = helpers.determinePosition expect(f(1)).toEqual('1st') expect(f(7)).toEqual('1st') ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/collections/__tests__/events.test.js
imports/both/collections/__tests__/events.test.js
import { EventsSchema } from '../events' import possibleCategories from '/imports/both/i18n/en/categories.json' import { determinePosition } from '../events/helpers' describe('Events', () => { // Always remember to update those tests if changing something in the schema. const validateTheWhenObject = obj => { ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/collections/events/index.js
imports/both/collections/events/index.js
import { Meteor } from 'meteor/meteor' import { Mongo } from 'meteor/mongo' import SimpleSchema from 'simpl-schema' import { startingTime, endingTime, startingDate, endingDate, getHour, weekDays, getDate, videoHosts } from './helpers' // import categoryTree from '/imports/both/i18n/en/categories.json' // import labels ...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/collections/events/DaysSchema.js
imports/both/collections/events/DaysSchema.js
import SimpleSchema from 'simpl-schema' import * as helpers from './helpers' SimpleSchema.extendOptions(['uniforms']) const DaysSchema = new SimpleSchema({ 'day': { type: String, optional: true, allowedValues: helpers.weekDays, autoValue: function () { const startingTime = this.siblingField('s...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/collections/events/helpers/index.js
imports/both/collections/events/helpers/index.js
import possibleEventHours from './possibleEventHours' export const startingTime = { type: String, regEx: /^([01]\d|2[0-3]):([0-5]\d)$/, uniforms: { customType: 'text', label: 'Start Time' } } export const endingTime = { type: String, regEx: /^([01]\d|2[0-3]):([0-5]\d)$/, uniforms: { customTy...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
focallocal/fl-maps
https://github.com/focallocal/fl-maps/blob/4b43a50cb113f5dab03073cbba79aa00f3e317c9/imports/both/collections/events/helpers/possibleEventHours.js
imports/both/collections/events/helpers/possibleEventHours.js
export default [ '0:00', '0:30', '1:00', '1:30', '2:00', '2:30', '3:00', '3:30', '4:00', '4:30', '5:00', '5:30', '6:00', '6:30', '7:00', '7:30', '8:00', '8:30', '9:00', '9:30', '10:00', '10:30', '11:00', '11:30', '12:00', '12:30', '13:00', '13:30', '14:00', '1...
javascript
MIT
4b43a50cb113f5dab03073cbba79aa00f3e317c9
2026-01-05T03:39:41.226936Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/main.js
main.js
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/tailwind.config.js
tailwind.config.js
/** @type {import('tailwindcss').Config} */ module.exports = { content: ['./src/**/*.{js,jsx,ts,tsx}'], theme: { extend: { keyframes: { overlayShow: { from: { opacity: '0' }, to: { opacity: '1' }, }, contentShow: { from: { opacity: '0', transform: 'tra...
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/playwright.config.js
playwright.config.js
import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './e2e/tests', fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: 'html', use: { baseURL: 'http://localhost:3001', t...
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/postcss.config.js
postcss.config.js
export default { plugins: { 'postcss-custom-media': {}, tailwindcss: {}, autoprefixer: {}, }, };
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/vite.config.js
vite.config.js
import { defineConfig } from 'vite'; import preact from '@preact/preset-vite'; import legacy from '@vitejs/plugin-legacy'; import { execSync } from 'child_process'; function getCommitHash() { try { return execSync('git rev-parse --short HEAD', { encoding: 'utf8' }).trim(); } catch (error) { return 'unknown...
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/scripts/filestore/get_filestore.js
scripts/filestore/get_filestore.js
const Firestore = require('@google-cloud/firestore'); //How to set up key file: https://firebase.google.com/docs/admin/setup#initialize_the_sdk_in_non-google_environments const db = new Firestore({ projectId: 'web-sequence-local', //project name: zenuml-app-prod keyFilename: process.env.GOOGLE_APPLICATION_CREDENTI...
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false
ZenUml/web-sequence
https://github.com/ZenUml/web-sequence/blob/6886ee5373bacbcfc3a0709dbc2bea4f40ab663f/static/lib/screenlog.js
static/lib/screenlog.js
var mainWindow = window.parent.onMessageFromConsole ? window.parent : window.parent.opener; (function() { var logEl, isInitialized = false, _console = {}; // backup console obj to contain references of overridden fns. _options = { bgColor: 'black', logColor: 'lightgreen', infoColor: 'blue', warnColor: '...
javascript
MIT
6886ee5373bacbcfc3a0709dbc2bea4f40ab663f
2026-01-05T03:44:57.156719Z
false