-
-
Notifications
You must be signed in to change notification settings - Fork 137
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 #828 from neilsb/1.6-Release (Unstable -> Master)
- Loading branch information
Showing
115 changed files
with
12,388 additions
and
1,391 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,20 @@ | ||
name: "Close stale Pull Requests" | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@3de2653986ebd134983c79fe2be5d45cc3d9f4e1 # tag=v6 | ||
with: | ||
days-before-issue-stale: -1 | ||
days-before-issue-close: -1 | ||
stale-pr-message: "This pull request has been inactive for 21 days and will be automatically closed in 7 days if there is no further activity." | ||
close-pr-message: "This pull request has been closed because it has been inactive for 28 days. You may submit a new pull request if desired." | ||
days-before-pr-stale: 21 | ||
days-before-pr-close: 7 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,22 @@ | ||
name: build | ||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- 'locale/**' | ||
jobs: | ||
run: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3 | ||
with: | ||
node-version: "14.12.0" | ||
- run: npm ci | ||
- run: npx ropm install | ||
- run: make dev | ||
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: Jellyfin-Roku-dev-${{ github.sha }} | ||
path: ${{ github.workspace }}/out/staging | ||
if-no-files-found: error |
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 |
---|---|---|
|
@@ -7,6 +7,8 @@ source/globals.brs | |
dist/apps | ||
out/ | ||
|
||
roku_modules | ||
|
||
#NPM modules | ||
node_modules/ | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"files.associations": { | ||
"*.ts": "xml" | ||
} | ||
}, | ||
"editor.formatOnSave": true | ||
} |
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,81 @@ | ||
sub init() | ||
m.buttonBackground = m.top.findNode("buttonBackground") | ||
m.buttonIcon = m.top.findNode("buttonIcon") | ||
m.buttonText = m.top.findNode("buttonText") | ||
|
||
m.top.observeField("background", "onBackgroundChanged") | ||
m.top.observeField("icon", "onIconChanged") | ||
m.top.observeField("text", "onTextChanged") | ||
m.top.observeField("height", "onHeightChanged") | ||
m.top.observeField("width", "onWidthChanged") | ||
m.top.observeField("padding", "onPaddingChanged") | ||
m.top.observeField("focus", "onFocusChanged") | ||
end sub | ||
|
||
sub onFocusChanged() | ||
if m.top.focus | ||
m.buttonBackground.blendColor = m.top.focusBackground | ||
else | ||
m.buttonBackground.blendColor = m.top.background | ||
end if | ||
end sub | ||
|
||
sub onBackgroundChanged() | ||
m.buttonBackground.blendColor = m.top.background | ||
m.top.unobserveField("background") | ||
end sub | ||
|
||
sub onIconChanged() | ||
m.buttonIcon.uri = m.top.icon | ||
end sub | ||
|
||
sub onTextChanged() | ||
m.buttonText.text = m.top.text | ||
end sub | ||
|
||
sub setIconSize() | ||
height = m.buttonBackground.height | ||
width = m.buttonBackground.width | ||
if height > 0 and width > 0 | ||
' TODO: Use smallest number between them | ||
m.buttonIcon.height = m.top.height | ||
|
||
if m.top.padding > 0 | ||
m.buttonIcon.height = m.buttonIcon.height - m.top.padding | ||
end if | ||
|
||
m.buttonIcon.width = m.buttonIcon.height | ||
|
||
m.buttonIcon.translation = [((width - m.buttonIcon.width) / 2), ((height - m.buttonIcon.height) / 2)] | ||
m.buttonText.translation = [0, height + 10] | ||
m.buttonText.width = width | ||
end if | ||
end sub | ||
|
||
sub onHeightChanged() | ||
m.buttonBackground.height = m.top.height | ||
setIconSize() | ||
end sub | ||
|
||
sub onWidthChanged() | ||
m.buttonBackground.width = m.top.width | ||
setIconSize() | ||
end sub | ||
|
||
sub onPaddingChanged() | ||
setIconSize() | ||
end sub | ||
|
||
function onKeyEvent(key as string, press as boolean) as boolean | ||
if not press then return false | ||
|
||
if key = "right" and m.top.focus | ||
m.top.escape = "right" | ||
end if | ||
|
||
if key = "left" and m.top.focus | ||
m.top.escape = "left" | ||
end if | ||
|
||
return false | ||
end function |
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<component name="IconButton" extends="Group"> | ||
<children> | ||
<Poster id="buttonBackground" uri="pkg:/images/white.9.png" /> | ||
<Poster id="buttonIcon" /> | ||
<Label id="buttonText" color="#aaaaaa" font="font:SmallestSystemFont" horizAlign="center" /> | ||
</children> | ||
<interface> | ||
<field id="background" type="color" value="" /> | ||
<field id="focusBackground" type="color" value="" /> | ||
<field id="text" type="string" value="" /> | ||
<field id="padding" type="integer" value="-1" /> | ||
<field id="height" type="integer" value="" /> | ||
<field id="width" type="integer" value="" /> | ||
<field id="icon" type="string" value="" /> | ||
<field id="selected" type="boolean" value="false" /> | ||
<field id="focus" type="boolean" /> | ||
<field id="escape" type="string" value="" /> | ||
</interface> | ||
<script type="text/brightscript" uri="IconButton.brs" /> | ||
</component> |
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
Oops, something went wrong.