Skip to content

Commit

Permalink
migrate to bf-egress.herokuapp.com egress and eslint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
woodybury committed Nov 26, 2024
1 parent 6dc4abc commit 3ca292d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/wmaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OUTPUT_DIR="$(pwd)${BUILD_PATH}/${UNIX_TIME}"
export REACT_APP_GEO_LOOKUP_URL="https://geo.getiantem.org/lookup"
export REACT_APP_DISCOVERY_SRV="https://bf-freddie.herokuapp.com"
export REACT_APP_DISCOVERY_ENDPOINT="/v1/signal"
export REACT_APP_EGRESS_ADDR="wss://bf-egress.herokuapp.com"
export REACT_APP_EGRESS_ADDR="wss://unbounded.iantem.io"
export REACT_APP_EGRESS_ENDPOINT="/ws"
export REACT_APP_NETSTATED_URL="https://netstated-d7bbec1ed55b.herokuapp.com/exec"

Expand Down
4 changes: 2 additions & 2 deletions ui/.env.production.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ REACT_APP_DISCOVERY_ENDPOINT=/v1/signal

# wasm client egress address
# use http://localhost:8000 for local egress
# use wss://bf-egress.herokuapp.com' for production egress
REACT_APP_EGRESS_ADDR=wss://bf-egress.herokuapp.com
# use wss://unbounded.iantem.io' for production egress
REACT_APP_EGRESS_ADDR=wss://unbounded.iantem.io

# wasm client egress endpoint
REACT_APP_EGRESS_ENDPOINT=/ws
Expand Down
2 changes: 1 addition & 1 deletion ui/extension/app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "__MSG_appName__",
"short_name": "__MSG_appShortName__",
"description": "__MSG_appDescription__",
"version": "0.0.0.5",
"version": "0.0.0.6",
"__chrome__manifest_version": 3,
"__firefox__manifest_version": 2,
"__chrome__minimum_chrome_version": "88",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/atoms/row/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface Props {
}

const Row = ({children, borderTop = false, borderBottom = true, backgroundColor = COLORS.transparent}: Props) => {
const {theme, menu, layout} = useContext(AppContext).settings
const {theme, layout} = useContext(AppContext).settings
return (
<Container
borderTop={borderTop}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/molecules/love/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Love = () => {
const components: Record<string, ReactNode> = {
love: <Heart/>,
lantern: (
<a href="https://lantern.io" target="_blank" rel="noopener">
<a href="https://lantern.io" target="_blank" rel="noreferrer">
Lantern
</a>
)
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/molecules/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Modal = ({ onIgnore, isCensored }: {onIgnore: () => void, isCensored: bool
if (!canRenderModal) {
onIgnore();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [canRenderModal, isCensored]);

// Modal content to be rendered
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/molecules/modal/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from 'styled-components'
import {COLORS, Layouts, SHADOWS, Themes} from '../../../constants'
import {COLORS, Layouts, Themes} from '../../../constants'
import {getBorderRadius} from '../../../layout/styles'

const Container = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/molecules/stats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {useEmitterState} from '../../../hooks/useStateEmitter'
import {connectionsEmitter, lifetimeConnectionsEmitter} from '../../../utils/wasmInterface'
import {humanizeCount} from '../../../utils/humanize'
import {LifetimeConnectionsWrapper} from './styles'
import {Layouts} from '../../../constants'
// import {Layouts} from '../../../constants'
import {useTranslation} from 'react-i18next'
// import TwitterLink from '../../atoms/twitterLink'
// import useSample from '../../../hooks/useSample'
Expand All @@ -33,7 +33,7 @@ export const Connections = () => {
const Stats = () => {
const {t} = useTranslation()
const {settings} = useContext(AppContext)
const {menu, layout} = settings
const {menu} = settings
const connections = useEmitterState(connectionsEmitter)
const lifetimeConnections = useEmitterState(lifetimeConnectionsEmitter)
// const sampledThroughput = useSample({emitter: averageThroughputEmitter, ms: 500})
Expand Down
1 change: 1 addition & 0 deletions ui/src/hooks/useGeoFuture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export const useGeo = () => {
text: t('waiting'),
ellipse: true
})
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [sharing, active])

useEffect(() => {
Expand Down

0 comments on commit 3ca292d

Please sign in to comment.