-
Notifications
You must be signed in to change notification settings - Fork 349
Web view improvements (update interval, settings) #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
bcb3be2
Increase page update interval
ckcollab de08e92
show yearly earnings as well
ckcollab 1a58be0
Display USD with 2 decimal places
ckcollab 45bc439
display total holdings
ckcollab d2aaf68
fix grabbing totals when totalCoins not defined
ckcollab 94b5f42
use max coins not total coins for total holdings
ckcollab 30cd953
adds toastr and settings for interval + stats
ckcollab 1b026fa
remove cruft
ckcollab 654c6ab
change "init" to "update" as it is ran multiple times
ckcollab b5567c5
missed an init->update refactor
ckcollab d1b4516
add EUR to nice currency printing
ckcollab 4e087cb
verify refresh rate value
ckcollab 61081dd
new html header with collapsing menu
24da4cd
restore default refreshrate to 30 seconds
ded06c3
added a version parameter to the javascript to force reload
2e6cac4
added missing scheme in toastr urls
b97ab45
rename loadSave to loadSettings
5234536
Added Bitcoin Display Unit to Settings.
a644a86
Added OutputCurrencyDisplayMode to Settings.
65fadef
Added Effective Rate Calculation to Settings.
851c30e
Fix indentation issues
rnevet d18500e
refactor validating... will still behave weirdly if somehow manages t…
ckcollab 42294a3
Fixed indent issue
rnevet f98a4ab
Restored btcDisplayUnitsModes saving method
rnevet d8fb51e
Merge pull request #1 from Mikadily/web_setting
ckcollab 52b6830
Close menu when settings is pressed.
rnevet b930c92
use icon192
rnevet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we just use prettyFloat(earnings,2) instead of trying to guess which currency is a Fiat one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. I use EUR. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would change behavior for quite a few coins, I think we want to see Satoshi level resolution most of the times?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What other currencies should we add here? Some currencies may need special printing, in this case for USD it makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the other currencies in this function use
printFloat, you want to go in and change these to the style you prefer?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ckcollab "EUR" for example and actually any currency supported by https://blockchain.info/api/exchange_rates_api
I'm thinking about using the prettyFloat as it will provide an accuracy of 2 decimals for any coin and I think that should be good enough, no? or should we make the accuracy configurable?
I'm open for suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: I also add EUR, but maintain consistency with the surrounding code. Then in a separate PR we decide how to handle this particular problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed.