-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #908 from ZeusLN/master
[Releases] v0.6.1-beta1
- Loading branch information
Showing
65 changed files
with
2,801 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature request | ||
about: Have a feature you want to see in Zeus? | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the feature** | ||
A clear and concise description of what the feature is and why it would be beneficial for Zeus to implement it. | ||
|
||
**Designs / mockups** | ||
If applicable, supply any designs or mockups of how you would see this feature functioning in Zeus. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,9 +61,9 @@ You must provide Zeus with your node's hostname, port number, and the macaroon y | |
|
||
### Tor Connection Guides | ||
|
||
On Android Zeus has support for connecting to you node entirely over the Tor network. You can refer to these guides to set up a Tor hidden service on your lnd node. The instructions are generally interchangable and typically only require you to change your Tor path. | ||
Zeus has support for connecting to you node entirely over the Tor network. You can refer to these guides to set up a Tor hidden service on your lnd node. The instructions are generally interchangable and typically only require you to change your Tor path. | ||
|
||
* [Zeus over Tor guide for RaspiBolt](https://stadicus.github.io/RaspiBolt/raspibolt_72_zeus-over-tor.html) | ||
* [Zeus over Tor guide for RaspiBolt](https://raspibolt.org/mobile-app.html) | ||
* [Zeus over Tor guide for FreeNAS by Seth586](https://github.com/seth586/guides/blob/master/FreeNAS/wallets/zeusln.md) | ||
* [Zeus over Tor guide for RaspiBlitz by openoms](https://github.com/openoms/bitcoin-tutorials/blob/master/Zeus_to_RaspiBlitz_through_Tor.md) | ||
* [Tor-Only Bitcoin & Lightning Guide by Lopp](https://blog.lopp.net/tor-only-bitcoin-lightning-guide/) | ||
|
@@ -126,7 +126,8 @@ All releases and all maintainer commits as of October 20, 2021 are signed by key | |
|
||
## Donations | ||
|
||
If you'd like to help us with the cost of running Zeus project (iOS developer account, Google Play developer account, hosting) you can send a payment to us via our [BTCPayServer portal](https://pay.zeusln.app/apps/4JiSAsU4SsHyoM9z5FjqAoA2eRZb/pos), via Lightning Address ([email protected]), or via PayNym ([+holymorning7d1](http://my.paynym.is/+holymorning7d1)). | ||
If you'd like to help us with the cost of running Zeus project (iOS developer account, Google Play developer account, hosting) you can send a payment to us via our [BTCPayServer portal](https://pay.zeusln.app/), via Lightning Address ([email protected]), or via PayNym ([+holymorning7d1](http://my.paynym.is/+holymorning7d1)). You can also become an [Olympian-level community sponsor](https://zeusln.app/about#communitySponsors) and have your Twitter avatar displayed on our website and in-app. | ||
|
||
Thank you. | ||
|
||
## License | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import { View } from 'react-native'; | ||
import PinPad from './PinPad'; | ||
import PinCircles from './PinCircles'; | ||
|
||
interface PinProps { | ||
onSubmit: (value: string, pinConfirm?: boolean) => void; | ||
onPinChange?: () => void; | ||
hidePinLength: boolean; | ||
pinLength?: number; | ||
pinConfirm?: boolean; | ||
} | ||
|
||
export default function Pin({ | ||
onSubmit, | ||
onPinChange = () => void 0, | ||
hidePinLength, | ||
pinLength = 4, | ||
pinConfirm = false | ||
}: PinProps) { | ||
const [pinValue, setPinValue] = useState(''); | ||
const maxLength = 8; | ||
const minLength = 4; | ||
|
||
const appendValue = (newValue: string) => { | ||
if (pinValue.length + 1 <= maxLength) { | ||
setPinValue(`${pinValue}${newValue}`); | ||
} | ||
}; | ||
|
||
const clearValue = () => { | ||
setPinValue(''); | ||
}; | ||
|
||
const deleteValue = () => { | ||
if (pinValue.length <= 1) { | ||
clearValue(); | ||
} else { | ||
setPinValue(`${pinValue.slice(0, pinValue.length - 1)}`); | ||
} | ||
}; | ||
|
||
const submitValue = () => { | ||
onSubmit(pinValue, pinConfirm); | ||
setPinValue(''); | ||
}; | ||
|
||
useEffect(() => { | ||
if (!hidePinLength && pinValue.length === pinLength) { | ||
onSubmit(pinValue, pinConfirm); | ||
setPinValue(''); | ||
} else if (pinValue !== '') { | ||
onPinChange(); | ||
} | ||
}, [pinValue]); | ||
|
||
return ( | ||
<View | ||
style={{ | ||
flex: 1, | ||
justifyContent: 'flex-end' | ||
}} | ||
> | ||
<View | ||
style={{ | ||
flex: 1, | ||
justifyContent: 'flex-start' | ||
}} | ||
> | ||
<PinCircles | ||
pinLength={pinLength} | ||
numFilled={pinValue.length} | ||
hidePinLength={hidePinLength} | ||
/> | ||
</View> | ||
<View | ||
style={{ | ||
flex: 1, | ||
justifyContent: 'flex-end' | ||
}} | ||
> | ||
<PinPad | ||
appendValue={appendValue} | ||
clearValue={clearValue} | ||
deleteValue={deleteValue} | ||
submitValue={submitValue} | ||
shuffle={true} | ||
hidePinLength={hidePinLength} | ||
minLength={minLength} | ||
maxLength={maxLength} | ||
/> | ||
</View> | ||
</View> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import * as React from 'react'; | ||
import { StyleSheet, View } from 'react-native'; | ||
import { Row } from './layout/Row'; | ||
import Filled from './../assets/images/SVG/PinFilled.svg'; | ||
import Hollow from './../assets/images/SVG/PinHollow.svg'; | ||
|
||
interface PinCirclesProps { | ||
pinLength: number; | ||
numFilled: number; | ||
hidePinLength: boolean; | ||
} | ||
|
||
export default function PinCircles({ | ||
pinLength, | ||
numFilled, | ||
hidePinLength | ||
}: PinCirclesProps) { | ||
const styles = StyleSheet.create({ | ||
pinCirclesRow: { | ||
justifyContent: 'center' | ||
}, | ||
circles: { | ||
margin: 10 | ||
} | ||
}); | ||
|
||
const filled = []; | ||
for (let i = 0; i < numFilled; i++) { | ||
filled.push(<Filled key={`filled-${i}`} style={styles.circles} />); | ||
} | ||
|
||
const hollow = []; | ||
if (!hidePinLength) { | ||
for (let i = 0; i < pinLength - numFilled; i++) { | ||
hollow.push(<Hollow key={`hollow-${i}`} style={styles.circles} />); | ||
} | ||
} | ||
|
||
return ( | ||
<View> | ||
<Row style={styles.pinCirclesRow}> | ||
{filled} | ||
{hollow} | ||
</Row> | ||
</View> | ||
); | ||
} |
Oops, something went wrong.