Skip to content
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

feat: add node url to api keys & docs #2283

Merged
merged 4 commits into from
Feb 20, 2024
Merged

feat: add node url to api keys & docs #2283

merged 4 commits into from
Feb 20, 2024

Conversation

dni
Copy link
Member

@dni dni commented Feb 19, 2024

closes #2277

@prusnak what would you say would be the easiest way to change that label for all languages. just remove the key for all languages and run your script?

@@ -90,6 +90,7 @@ new Vue({
mixins: [windowMixin],
data: function () {
return {
origin: window.location.origin,
Copy link
Collaborator

@prusnak prusnak Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct - when LNbits is deployed to https://foobar.example/lnbits then window.location.origin returns just https://foobar.example and not https://foobar.example/lnbits - or is this type of deployment unsupported?

However, the only other "correct" option would be to get settings.lnbits_baseurl from python to javascript, but since we do not use this variable in any meaningful way, I guess that using origin makes more sense (until we fix how lnbits_baseurl is used).

So let's do it the proposed way for now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree!

@prusnak
Copy link
Collaborator

prusnak commented Feb 20, 2024

just remove the key for all languages and run your script?

Yes, I just did that in 72572b5 (which also added some other new strings)

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7b55999) 59.28% compared to head (e1fc172) 59.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2283   +/-   ##
=======================================
  Coverage   59.28%   59.28%           
=======================================
  Files          60       60           
  Lines        9026     9026           
=======================================
  Hits         5351     5351           
  Misses       3675     3675           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@motorina0 motorina0 merged commit 14ae6d8 into dev Feb 20, 2024
22 checks passed
@motorina0 motorina0 deleted the fix-2277 branch February 20, 2024 11:32
@motorina0 motorina0 added this to the 0.12.2 milestone Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Add server url to "API keys and API docs" section
3 participants