Bug/a few fixes (#158)
* Change default instance * Fix cropped buttons * Lint fix * changelog --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
cb877f9415
commit
256fc22bd9
7 files changed
+11
-8
No files matched your search
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Another bug where the app crashes if an error happens loading channel info
|
- Another bug where the app crashes if an error happens loading channel info
|
||||||
|
- Issue with default instance (by changing default instance)
|
||||||
|
- Cropped text in a couple of buttons
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<Button
|
<Button
|
||||||
id="filtersButton"
|
id="filtersButton"
|
||||||
translation="[160,40]"
|
translation="[160,40]"
|
||||||
minWidth="0"
|
minWidth="180"
|
||||||
height="48"
|
height="48"
|
||||||
showFocusFootprint="true"
|
showFocusFootprint="true"
|
||||||
iconUri="pkg:/images/icons/filters-white.png"
|
iconUri="pkg:/images/icons/filters-white.png"
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,5 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
|
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
@@ -29,6 +30,7 @@ function Init()
|
|||||||
SetNavigation(m.testButton, "right", m.saveButton)
|
SetNavigation(m.testButton, "right", m.saveButton)
|
||||||
|
|
||||||
m.currentNavigtionNode = m.editButton
|
m.currentNavigtionNode = m.editButton
|
||||||
|
m.textEditBox.hintText = `e.g. ${Invidious.DEFAULT_INSTANCE}`
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnFocusChange() as void
|
function OnFocusChange() as void
|
||||||
@@ -76,7 +78,7 @@ end function
|
|||||||
function OnEditButtonSelected()
|
function OnEditButtonSelected()
|
||||||
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
|
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
|
||||||
keyboardDialog.title = "Edit Instance"
|
keyboardDialog.title = "Edit Instance"
|
||||||
keyboardDialog.message = ["Enter the instance url (e.g. https://vid.puffyan.us)"]
|
keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`]
|
||||||
keyboardDialog.text = m.top.text
|
keyboardDialog.text = m.top.text
|
||||||
keyboardDialog.buttons = ["OK", "Cancel"]
|
keyboardDialog.buttons = ["OK", "Cancel"]
|
||||||
keyboardDialog.observeField("buttonSelected", FuncName(OnKeyboardButton))
|
keyboardDialog.observeField("buttonSelected", FuncName(OnKeyboardButton))
|
||||||
|
|||||||
-1
@@ -21,7 +21,6 @@
|
|||||||
translation="[326,13]" />
|
translation="[326,13]" />
|
||||||
<TextEditBox
|
<TextEditBox
|
||||||
id="textEditBox"
|
id="textEditBox"
|
||||||
hintText="e.g. https://https://vid.puffyan.us"
|
|
||||||
width="480"
|
width="480"
|
||||||
height="50"
|
height="50"
|
||||||
translation="[200,50]" />
|
translation="[200,50]" />
|
||||||
|
|||||||
+2
-2
@@ -35,9 +35,9 @@
|
|||||||
<Button
|
<Button
|
||||||
id="closeButton"
|
id="closeButton"
|
||||||
text="Close"
|
text="Close"
|
||||||
minWidth="0"
|
minWidth="160"
|
||||||
showFocusFootprint="true"
|
showFocusFootprint="true"
|
||||||
translation="[404,506]" />
|
translation="[400,506]" />
|
||||||
</Rectangle>
|
</Rectangle>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
@@ -9,7 +9,7 @@ import "pkg:/source/utils/TimeUtils.bs"
|
|||||||
namespace Invidious
|
namespace Invidious
|
||||||
const INSTANCES_API = "https://api.invidious.io/instances.json?sort_by=type,users"
|
const INSTANCES_API = "https://api.invidious.io/instances.json?sort_by=type,users"
|
||||||
|
|
||||||
const DEFAULT_INSTANCE = "https://vid.puffyan.us"
|
const DEFAULT_INSTANCE = "https://invidious.fdn.fr"
|
||||||
|
|
||||||
const TOKEN_CALLBACK = "/invidious/token_callback"
|
const TOKEN_CALLBACK = "/invidious/token_callback"
|
||||||
|
|
||||||
|
|||||||
@@ -38,14 +38,14 @@
|
|||||||
{
|
{
|
||||||
displayText: "Instance",
|
displayText: "Instance",
|
||||||
key: "invidious.instance",
|
key: "invidious.instance",
|
||||||
description: 'Invidious instance to use. Example: https://vid.puffyan.us. Find more instances at <a class="link" href="https://api.invidious.io" target="_blank" rel="noopener noreferrer">https://api.invidious.io</a>',
|
description: 'Invidious instance to use. Example: https://example.com. Find more instances at <a class="link" href="https://api.invidious.io" target="_blank" rel="noopener noreferrer">https://api.invidious.io</a>',
|
||||||
type: "string",
|
type: "string",
|
||||||
visibility: "web",
|
visibility: "web",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayText: "Instance",
|
displayText: "Instance",
|
||||||
key: "invidious.instance",
|
key: "invidious.instance",
|
||||||
description: "Invidious instance to use. Example: https://vid.puffyan.us",
|
description: "Invidious instance to use. Example: https://example.com",
|
||||||
visibility: "tv",
|
visibility: "tv",
|
||||||
rokuComponent: "InvidiousInstanceControl",
|
rokuComponent: "InvidiousInstanceControl",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user