Fixing the type handlePremiumChange function to handle the discount to the right type (React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>)
Using the correct type of handlePremiumChange function, then deconstructing the "value" var from the event.target
Using Number(value) in declaration of "newPremium", instead of using multiplication with number and string
To not affect another methods using "premium" var, I used isNaN func to make a check and set the initial value of "premium" var to zero (if is NaN) or newPremium (when valid number is entered)
The fix in the bug is the line "premium: isNaN(newPremium) || value === '' ? '' : premium," in setMaker. That makes the "premium" var to be set to zero when the input is empty or not a number, allowing the user to input the "-" (minus sign) and not entering 0 as before.
Changed handcrafted.py to use a OrderedDict instead of a dict (guarantee the order independant of the python version)
Moved the value of "../../src" to the variable "src_path" to improve readability, and reuse the value again later in code
Changed the "Look for all matching i18n keys" part of code to order the dirs and file in a independant OS way - alphabetical order using the "sort" func of list object
Changed the "Look for all matching i18n keys" part of code to collect all phrases in a OrderedDict (guarantee the order independant of the python version)
Changed the list indexing in filepath var (filepath[10:]) to the use of os.path.relpath(filepath, src_path) func to improve readability
Changed all_phrases to a OrderedDict (guarantee the order independant of the python version) and use update method of OrderedDict to add the files's phrases and handcrafted phrases to the OrderedDict in order
Changed the loop of matches to inside the if statement (if len(matches) > 0) to improve readability - if the "if statement" is false, the loop was never executed
Changed the "Load existing locale dics and replace keys" part of code to use OrderedDict in the new_phrases var to guarantee the order of the keys insert in json.dump in all OS
Changed the "Load existing locale dics and replace keys" part of code to not substitute the keys "#{counter}" to guarantee the order independant of the json file of the translation.
* Use new lnproxy API
- Use POST instead of GET, so create and send a body parameter
- Path is /spec/ instead of /api/, and list of relays from lnproxy will contain /spec already, so path parameter for ApiClient.post() is an empty string
* add lnproxy sync workflow
* Use new lnproxy JSON structure
* Remove virtualenv
doing this so that the “scripts” subfolder in .github/workflows can be added
* Move workflow script to subfolder
* Add translation support
Locale strings not added yet
* Simplify coordinator updates, automatic migrations and collect statics (#583)
* Delete commited proto files
* Run sync workflow weekly instead of hourly
* Tweak display name for relays
* Update sync script to be append-only
* Use new naming convention for relays
* Fix bitcoinNetwork hydration
* PR Feedback
- Change hook deps from settings.network to settings
- routing_msat param updates for lnproxy API
* Actually set host in settings
* Updated parsing of LnProxy response
---------
Co-authored-by: +shyfire131 <shyfire131@shyfire131.net>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>