Skip to content

Commit

Permalink
Merge pull request #1400 from cewert/rename-files
Browse files Browse the repository at this point in the history
Update all files to use .bs file extension
  • Loading branch information
1hitsong authored Nov 11, 2023
2 parents 1e57180 + 92101d8 commit bf059c0
Show file tree
Hide file tree
Showing 143 changed files with 680 additions and 690 deletions.
65 changes: 29 additions & 36 deletions bsconfig-prod.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
{
"files": [
"manifest",
"source/**/*.*",
"components/**/*.*",
"images/**/*.*",
"locale/en_US/translations.ts",
"locale/en_GB/translations.ts",
"locale/fr_CA/translations.ts",
"locale/es_ES/translations.ts",
"locale/de_DE/translations.ts",
"locale/it_IT/translations.ts",
"locale/pt_BR/translations.ts",
"settings/**/*.*",
{
"src": "resources/branding/release/*.*",
"dest": "images"
}
],
"plugins": [
"@rokucommunity/bslint",
"roku-log-bsc-plugin"
],
"rokuLog": {
"strip": true,
"insertPkgPath": false,
"removeComments": true
},
"diagnosticFilters": [
"node_modules/**/*",
"**/roku_modules/**/*"
],
"allowBrighterScriptInBrightScript": true,
"autoImportComponentScript": true,
"stagingDir": "build/staging",
"retainStagingDir": true
}
"files": [
"manifest",
"source/**/*.*",
"components/**/*.*",
"images/**/*.*",
"locale/en_US/translations.ts",
"locale/en_GB/translations.ts",
"locale/fr_CA/translations.ts",
"locale/es_ES/translations.ts",
"locale/de_DE/translations.ts",
"locale/it_IT/translations.ts",
"locale/pt_BR/translations.ts",
"settings/**/*.*",
{
"src": "resources/branding/release/*.*",
"dest": "images"
}
],
"plugins": ["@rokucommunity/bslint", "roku-log-bsc-plugin"],
"rokuLog": {
"strip": true,
"insertPkgPath": false,
"removeComments": true
},
"diagnosticFilters": ["node_modules/**/*", "**/roku_modules/**/*"],
"autoImportComponentScript": true,
"stagingDir": "build/staging",
"retainStagingDir": true
}
45 changes: 19 additions & 26 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
{
"files": [
"manifest",
"source/**/*.*",
"components/**/*.*",
"images/**/*.*",
"resources/**/*.*",
"locale/**/*.*",
"settings/*.*"
],
"plugins": [
"@rokucommunity/bslint",
"roku-log-bsc-plugin"
],
"rokuLog": {
"insertPkgPath": true
},
"diagnosticFilters": [
"node_modules/**/*",
"**/roku_modules/**/*"
],
"sourceMap": true,
"autoImportComponentScript": true,
"allowBrighterScriptInBrightScript": true,
"stagingDir": "build/staging",
"retainStagingDir": true
}
"files": [
"manifest",
"source/**/*.*",
"components/**/*.*",
"images/**/*.*",
"resources/**/*.*",
"locale/**/*.*",
"settings/*.*"
],
"plugins": ["@rokucommunity/bslint", "roku-log-bsc-plugin"],
"rokuLog": {
"insertPkgPath": true
},
"diagnosticFilters": ["node_modules/**/*", "**/roku_modules/**/*"],
"sourceMap": true,
"autoImportComponentScript": true,
"stagingDir": "build/staging",
"retainStagingDir": true
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/Clock.bs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/misc.bs"

sub init()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/sdk.bs"

sub init()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/deviceCapabilities.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/deviceCapabilities.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/api/sdk.bs"

sub init()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/sdk.bs"

sub init()
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "pkg:/source/api/UserLibrary.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/api/UserLibrary.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/utils/config.bs"

sub init()
m.top.functionName = "setFavoriteStatus"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/roku_modules/log/LogMixin.brs"

sub init()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"

sub init()
m.itemPoster = m.top.findNode("itemPoster")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/deviceCapabilities.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/utils/deviceCapabilities.bs"
import "pkg:/source/roku_modules/log/LogMixin.brs"

sub init()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/roku_modules/log/LogMixin.brs"

sub init()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import "pkg:/source/api/Items.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.brs"
import "pkg:/source/api/Image.brs"
import "pkg:/source/utils/deviceCapabilities.brs"
import "pkg:/source/api/Items.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/api/Image.bs"
import "pkg:/source/utils/deviceCapabilities.bs"
import "pkg:/source/roku_modules/log/LogMixin.brs"
import "pkg:/source/api/sdk.bs"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/api/Items.brs"
import "pkg:/source/api/UserLibrary.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/api/Image.brs"
import "pkg:/source/api/userauth.brs"
import "pkg:/source/utils/deviceCapabilities.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/api/Items.bs"
import "pkg:/source/api/UserLibrary.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/Image.bs"
import "pkg:/source/api/userauth.bs"
import "pkg:/source/utils/deviceCapabilities.bs"

sub init()
m.user = AboutMe()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/api/Image.brs"
import "pkg:/source/utils/deviceCapabilities.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/api/Image.bs"
import "pkg:/source/utils/deviceCapabilities.bs"

sub setupNodes()
m.options = m.top.findNode("options")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"

sub init()
m.itemPoster = m.top.findNode("itemPoster")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/api/Image.brs"
import "pkg:/source/utils/deviceCapabilities.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/api/Image.bs"
import "pkg:/source/utils/deviceCapabilities.bs"

sub setupNodes()
m.options = m.top.findNode("options")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/JFOverhang.brs → components/JFOverhang.bs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/config.bs"

sub init()
m.top.id = "overhang"
Expand Down
2 changes: 1 addition & 1 deletion components/JFScene.brs → components/JFScene.bs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/misc.bs"

sub init()
m.top.backgroundColor = "#262626" '"#101010"
Expand Down
File renamed without changes.
14 changes: 9 additions & 5 deletions components/JFVideo.brs → components/JFVideo.bs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"

sub init()
m.playbackTimer = m.top.findNode("playbackTimer")
Expand Down Expand Up @@ -294,9 +294,13 @@ function onKeyEvent(key as string, press as boolean) as boolean
m.top.selectPlaybackInfoPressed = true
return true
else if key = "OK"
' OK will play/pause depending on current state
' return false to allow selection during seeking
if m.top.state = "paused"
if m.nextEpisodeButton.hasfocus() and not m.top.trickPlayBar.visible
m.top.state = "finished"
hideNextEpisodeButton()
return true
else if m.top.state = "paused"
' OK will play/pause depending on current state
' return false to allow selection during seeking
m.top.control = "resume"
return false
else if m.top.state = "playing"
Expand Down
4 changes: 2 additions & 2 deletions components/ListPoster.brs → components/ListPoster.bs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/misc.brs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/utils/misc.bs"

sub init()
m.title = m.top.findNode("title")
Expand Down
6 changes: 3 additions & 3 deletions components/PersonDetails.brs → components/PersonDetails.bs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "pkg:/source/api/Image.brs"
import "pkg:/source/api/baserequest.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/api/Image.bs"
import "pkg:/source/api/baserequest.bs"
import "pkg:/source/utils/config.bs"

sub init()
m.dscr = m.top.findNode("description")
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bf059c0

Please sign in to comment.