One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
declare module 'lucide-react' { | |
export * from 'lucide-react/dist/lucide-react.suffixed' | |
} |
import { | |
add, | |
eachMonthOfInterval, | |
endOfYear, | |
format, | |
isEqual, | |
isFuture, | |
parse, | |
startOfMonth, | |
startOfToday, |
import { useState, useEffect, useCallback } from 'react'; | |
const initializeFb = () => | |
// eslint-disable-next-line no-unused-vars | |
new Promise((resolve, _reject) => { | |
if (typeof FB !== 'undefined') { | |
resolve(); | |
} else { | |
// eslint-disable-next-line func-names | |
window.fbAsyncInit = function() { |
import React, { Component } from 'react' | |
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom' | |
import OverviewPage from './page/OverviewPage' | |
import AccountPage from './page/AccountPage' | |
/* | |
Layouts, inline define here for demo purpose | |
you may want to define in another file instead | |
*/ |
// BrowserRouter is the router implementation for HTML5 browsers (vs Native). | |
// Link is your replacement for anchor tags. | |
// Route is the conditionally shown component based on matching a path to a URL. | |
// Switch returns only the first matching route rather than all matching routes. | |
import { | |
BrowserRouter as Router, | |
Link, | |
Route, | |
Switch, | |
} from 'react-router-dom'; |
.PHONY: run | |
# certs and output | |
OUTPUT_FILE=apkname.apk | |
ALIAS=youralias | |
KEYPASS=yourkeypass | |
KEYSTORE=certs/yourcert.keystore | |
UNSIGNED=platforms/android/build/outputs/apk/android-release-unsigned.apk | |
# or, if you're using Crosswalk: |
[ | |
{ | |
"busId": "1", | |
"routeId": "", | |
"name": "Princess Alice Terminal to Speightstown Terminal", | |
"num": "1", | |
"stops": [] | |
}, | |
{ | |
"busId": "2", |
// This is a dead-simple script that simply logs the usernames of the people who have updated a post, ordered by when they voted | |
var access_token = "YOUR_TOKEN"; | |
var post_id = "POST_ID"; | |
var theUrl = "https://api.producthunt.com/v1/posts/"+post_id+"/votes?access_token=" + access_token | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", theUrl, false ); | |
xmlHttp.send( null ); | |
votes = JSON.parse(xmlHttp.responseText).votes; |