From d4b95103269bfd203a51773450703a65fd1ff769 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 3 Oct 2023 11:42:10 -0400 Subject: [PATCH 1/6] rename all files to use .bs file extension --- ...ttonGroupHoriz.brs => ButtonGroupHoriz.bs} | 0 .../Buttons/{JFButtons.brs => JFButtons.bs} | 0 .../{TextSizeTask.brs => TextSizeTask.bs} | 0 ...tEpisodeTask.brs => GetNextEpisodeTask.bs} | 0 ...ackInfoTask.brs => GetPlaybackInfoTask.bs} | 0 ...odesTask.brs => GetShuffleEpisodesTask.bs} | 0 components/{IconButton.brs => IconButton.bs} | 0 components/ItemGrid/{Alpha.brs => Alpha.bs} | 0 ...riteItemsTask.brs => FavoriteItemsTask.bs} | 0 .../ItemGrid/{GridItem.brs => GridItem.bs} | 0 .../{GridItemSmall.brs => GridItemSmall.bs} | 0 .../ItemGrid/{ItemGrid.brs => ItemGrid.bs} | 0 ...ItemGridOptions.brs => ItemGridOptions.bs} | 0 .../{LoadItemsTask2.brs => LoadItemsTask2.bs} | 0 ...ontentTask.brs => LoadVideoContentTask.bs} | 0 ...vieLibraryView.brs => MovieLibraryView.bs} | 0 ...istGridItem.brs => MusicArtistGridItem.bs} | 0 ...sicLibraryView.brs => MusicLibraryView.bs} | 0 components/{JFButton.brs => JFButton.bs} | 0 components/{JFGroup.brs => JFGroup.bs} | 0 ...JFMessageDialog.brs => JFMessageDialog.bs} | 0 components/{JFOverhang.brs => JFOverhang.bs} | 0 components/{JFScene.brs => JFScene.bs} | 0 components/{JFScreen.brs => JFScreen.bs} | 0 components/{JFVideo.brs => JFVideo.bs} | 24 +- components/{ListPoster.brs => ListPoster.bs} | 0 .../{PersonDetails.brs => PersonDetails.bs} | 0 .../{PlaybackDialog.brs => PlaybackDialog.bs} | 0 ...PlayedCheckmark.brs => PlayedCheckmark.bs} | 0 .../{PlaystateTask.brs => PlaystateTask.bs} | 108 +-- .../{RadioDialog.brs => RadioDialog.bs} | 0 components/{SearchBox.brs => SearchBox.bs} | 0 components/{Spinner.brs => Spinner.bs} | 0 .../{StandardDialog.brs => StandardDialog.bs} | 0 .../{WhatsNewDialog.brs => WhatsNewDialog.bs} | 0 .../{captionTask.brs => captionTask.bs} | 0 .../config/{ConfigData.brs => ConfigData.bs} | 0 .../config/{ConfigItem.brs => ConfigItem.bs} | 0 .../config/{ConfigList.brs => ConfigList.bs} | 0 .../config/{JFServer.brs => JFServer.bs} | 0 .../config/{LoginScene.brs => LoginScene.bs} | 0 ...scoveryTask.brs => ServerDiscoveryTask.bs} | 0 ...SetServerScreen.brs => SetServerScreen.bs} | 0 .../data/{AlbumData.brs => AlbumData.bs} | 0 .../data/{ChannelData.brs => ChannelData.bs} | 0 .../{CollectionData.brs => CollectionData.bs} | 0 .../data/{FolderData.brs => FolderData.bs} | 0 .../{GetFiltersTask.brs => GetFiltersTask.bs} | 0 components/data/{HomeData.brs => HomeData.bs} | 0 .../data/{ImageData.brs => ImageData.bs} | 0 .../data/{MovieData.brs => MovieData.bs} | 0 .../{MusicAlbumData.brs => MusicAlbumData.bs} | 0 ...ListData.brs => MusicAlbumSongListData.bs} | 0 ...MusicArtistData.brs => MusicArtistData.bs} | 0 .../{MusicSongData.brs => MusicSongData.bs} | 0 .../{OptionsButton.brs => OptionsButton.bs} | 0 .../data/{OptionsData.brs => OptionsData.bs} | 0 .../data/{PersonData.brs => PersonData.bs} | 0 .../data/{PhotoData.brs => PhotoData.bs} | 0 .../{PlaylistData.brs => PlaylistData.bs} | 0 .../{PublicUserData.brs => PublicUserData.bs} | 0 .../{SceneManager.brs => SceneManager.bs} | 716 +++++++++--------- ...ProgramData.brs => ScheduleProgramData.bs} | 0 .../data/{SearchData.brs => SearchData.bs} | 0 .../data/{SeriesData.brs => SeriesData.bs} | 0 .../data/{TVEpisode.brs => TVEpisode.bs} | 0 .../{TVEpisodeData.brs => TVEpisodeData.bs} | 0 .../{TVSeasonData.brs => TVSeasonData.bs} | 0 components/data/{UserData.brs => UserData.bs} | 0 .../data/{VideoData.brs => VideoData.bs} | 0 .../extras/{ExtrasItem.brs => ExtrasItem.bs} | 0 .../{ExtrasRowList.brs => ExtrasRowList.bs} | 0 components/home/{Home.brs => Home.bs} | 0 components/home/{HomeItem.brs => HomeItem.bs} | 0 components/home/{HomeRows.brs => HomeRows.bs} | 0 .../{LoadItemsTask.brs => LoadItemsTask.bs} | 0 ...adChannelsTask.brs => LoadChannelsTask.bs} | 0 ...ailsTask.brs => LoadProgramDetailsTask.bs} | 0 ...LoadSheduleTask.brs => LoadSheduleTask.bs} | 0 .../{ProgramDetails.brs => ProgramDetails.bs} | 0 ...rdProgramTask.brs => RecordProgramTask.bs} | 0 .../liveTv/{schedule.brs => schedule.bs} | 0 .../login/{UserItem.brs => UserItem.bs} | 0 components/login/{UserRow.brs => UserRow.bs} | 0 .../login/{UserSelect.brs => UserSelect.bs} | 0 .../{QueueManager.brs => QueueManager.bs} | 0 .../{ViewCreator.brs => ViewCreator.bs} | 0 .../{AudioPlayer.brs => AudioPlayer.bs} | 0 ...rackListItem.brs => AudioTrackListItem.bs} | 0 .../{MovieDetails.brs => MovieDetails.bs} | 0 .../{MovieOptions.brs => MovieOptions.bs} | 0 ...rackListItem.brs => VideoTrackListItem.bs} | 0 .../music/{AlbumGrid.brs => AlbumGrid.bs} | 0 .../{AlbumTrackList.brs => AlbumTrackList.bs} | 0 .../music/{AlbumView.brs => AlbumView.bs} | 0 .../music/{ArtistView.brs => ArtistView.bs} | 0 ...AudioPlayerView.brs => AudioPlayerView.bs} | 0 ...Task.brs => LoadScreenSaverTimeoutTask.bs} | 0 .../{PlaylistView.brs => PlaylistView.bs} | 0 .../music/{SongItem.brs => SongItem.bs} | 0 .../options/{OptionNode.brs => OptionNode.bs} | 0 .../{OptionsSlider.brs => OptionsSlider.bs} | 0 .../{LoadPhotoTask.brs => LoadPhotoTask.bs} | 0 .../{PhotoDetails.brs => PhotoDetails.bs} | 0 .../{QuickConnect.brs => QuickConnect.bs} | 0 ...onnectDialog.brs => QuickConnectDialog.bs} | 0 .../{SearchResults.brs => SearchResults.bs} | 0 .../search/{SearchRow.brs => SearchRow.bs} | 0 .../search/{SearchTask.brs => SearchTask.bs} | 0 .../section/{section.brs => section.bs} | 0 ...sectionScroller.brs => sectionScroller.bs} | 0 .../settings/{settings.brs => settings.bs} | 0 .../{TVEpisodeRow.brs => TVEpisodeRow.bs} | 0 ...Options.brs => TVEpisodeRowWithOptions.bs} | 0 .../tvshows/{TVEpisodes.brs => TVEpisodes.bs} | 0 .../{TVListDetails.brs => TVListDetails.bs} | 0 .../{TVListOptions.brs => TVListOptions.bs} | 0 .../{TVSeasonRow.brs => TVSeasonRow.bs} | 0 ...owDescription.brs => TVShowDescription.bs} | 0 .../{TVShowDetails.brs => TVShowDetails.bs} | 0 ...VideoPlayerView.brs => VideoPlayerView.bs} | 0 source/{ShowScenes.brs => ShowScenes.bs} | 0 source/{VideoPlayer.brs => VideoPlayer.bs} | 0 source/api/{Image.brs => Image.bs} | 0 source/api/{Items.brs => Items.bs} | 0 .../api/{UserLibrary.brs => UserLibrary.bs} | 0 .../api/{baserequest.brs => baserequest.bs} | 0 source/api/{userauth.brs => userauth.bs} | 0 source/utils/{Subtitles.brs => Subtitles.bs} | 0 source/utils/{config.brs => config.bs} | 0 ...Capabilities.brs => deviceCapabilities.bs} | 0 source/utils/{globals.brs => globals.bs} | 0 source/utils/{misc.brs => misc.bs} | 0 133 files changed, 419 insertions(+), 429 deletions(-) rename components/{ButtonGroupHoriz.brs => ButtonGroupHoriz.bs} (100%) rename components/Buttons/{JFButtons.brs => JFButtons.bs} (100%) rename components/Buttons/{TextSizeTask.brs => TextSizeTask.bs} (100%) rename components/{GetNextEpisodeTask.brs => GetNextEpisodeTask.bs} (100%) rename components/{GetPlaybackInfoTask.brs => GetPlaybackInfoTask.bs} (100%) rename components/{GetShuffleEpisodesTask.brs => GetShuffleEpisodesTask.bs} (100%) rename components/{IconButton.brs => IconButton.bs} (100%) rename components/ItemGrid/{Alpha.brs => Alpha.bs} (100%) rename components/ItemGrid/{FavoriteItemsTask.brs => FavoriteItemsTask.bs} (100%) rename components/ItemGrid/{GridItem.brs => GridItem.bs} (100%) rename components/ItemGrid/{GridItemSmall.brs => GridItemSmall.bs} (100%) rename components/ItemGrid/{ItemGrid.brs => ItemGrid.bs} (100%) rename components/ItemGrid/{ItemGridOptions.brs => ItemGridOptions.bs} (100%) rename components/ItemGrid/{LoadItemsTask2.brs => LoadItemsTask2.bs} (100%) rename components/ItemGrid/{LoadVideoContentTask.brs => LoadVideoContentTask.bs} (100%) rename components/ItemGrid/{MovieLibraryView.brs => MovieLibraryView.bs} (100%) rename components/ItemGrid/{MusicArtistGridItem.brs => MusicArtistGridItem.bs} (100%) rename components/ItemGrid/{MusicLibraryView.brs => MusicLibraryView.bs} (100%) rename components/{JFButton.brs => JFButton.bs} (100%) rename components/{JFGroup.brs => JFGroup.bs} (100%) rename components/{JFMessageDialog.brs => JFMessageDialog.bs} (100%) rename components/{JFOverhang.brs => JFOverhang.bs} (100%) rename components/{JFScene.brs => JFScene.bs} (100%) rename components/{JFScreen.brs => JFScreen.bs} (100%) rename components/{JFVideo.brs => JFVideo.bs} (93%) rename components/{ListPoster.brs => ListPoster.bs} (100%) rename components/{PersonDetails.brs => PersonDetails.bs} (100%) rename components/{PlaybackDialog.brs => PlaybackDialog.bs} (100%) rename components/{PlayedCheckmark.brs => PlayedCheckmark.bs} (100%) rename components/{PlaystateTask.brs => PlaystateTask.bs} (96%) mode change 100755 => 100644 rename components/{RadioDialog.brs => RadioDialog.bs} (100%) rename components/{SearchBox.brs => SearchBox.bs} (100%) rename components/{Spinner.brs => Spinner.bs} (100%) rename components/{StandardDialog.brs => StandardDialog.bs} (100%) rename components/{WhatsNewDialog.brs => WhatsNewDialog.bs} (100%) rename components/{captionTask.brs => captionTask.bs} (100%) rename components/config/{ConfigData.brs => ConfigData.bs} (100%) rename components/config/{ConfigItem.brs => ConfigItem.bs} (100%) rename components/config/{ConfigList.brs => ConfigList.bs} (100%) rename components/config/{JFServer.brs => JFServer.bs} (100%) rename components/config/{LoginScene.brs => LoginScene.bs} (100%) rename components/config/{ServerDiscoveryTask.brs => ServerDiscoveryTask.bs} (100%) rename components/config/{SetServerScreen.brs => SetServerScreen.bs} (100%) rename components/data/{AlbumData.brs => AlbumData.bs} (100%) rename components/data/{ChannelData.brs => ChannelData.bs} (100%) rename components/data/{CollectionData.brs => CollectionData.bs} (100%) rename components/data/{FolderData.brs => FolderData.bs} (100%) rename components/data/{GetFiltersTask.brs => GetFiltersTask.bs} (100%) rename components/data/{HomeData.brs => HomeData.bs} (100%) rename components/data/{ImageData.brs => ImageData.bs} (100%) rename components/data/{MovieData.brs => MovieData.bs} (100%) rename components/data/{MusicAlbumData.brs => MusicAlbumData.bs} (100%) rename components/data/{MusicAlbumSongListData.brs => MusicAlbumSongListData.bs} (100%) rename components/data/{MusicArtistData.brs => MusicArtistData.bs} (100%) rename components/data/{MusicSongData.brs => MusicSongData.bs} (100%) rename components/data/{OptionsButton.brs => OptionsButton.bs} (100%) rename components/data/{OptionsData.brs => OptionsData.bs} (100%) rename components/data/{PersonData.brs => PersonData.bs} (100%) rename components/data/{PhotoData.brs => PhotoData.bs} (100%) rename components/data/{PlaylistData.brs => PlaylistData.bs} (100%) rename components/data/{PublicUserData.brs => PublicUserData.bs} (100%) rename components/data/{SceneManager.brs => SceneManager.bs} (96%) mode change 100755 => 100644 rename components/data/{ScheduleProgramData.brs => ScheduleProgramData.bs} (100%) rename components/data/{SearchData.brs => SearchData.bs} (100%) rename components/data/{SeriesData.brs => SeriesData.bs} (100%) rename components/data/{TVEpisode.brs => TVEpisode.bs} (100%) rename components/data/{TVEpisodeData.brs => TVEpisodeData.bs} (100%) rename components/data/{TVSeasonData.brs => TVSeasonData.bs} (100%) rename components/data/{UserData.brs => UserData.bs} (100%) rename components/data/{VideoData.brs => VideoData.bs} (100%) rename components/extras/{ExtrasItem.brs => ExtrasItem.bs} (100%) rename components/extras/{ExtrasRowList.brs => ExtrasRowList.bs} (100%) rename components/home/{Home.brs => Home.bs} (100%) rename components/home/{HomeItem.brs => HomeItem.bs} (100%) rename components/home/{HomeRows.brs => HomeRows.bs} (100%) rename components/home/{LoadItemsTask.brs => LoadItemsTask.bs} (100%) rename components/liveTv/{LoadChannelsTask.brs => LoadChannelsTask.bs} (100%) rename components/liveTv/{LoadProgramDetailsTask.brs => LoadProgramDetailsTask.bs} (100%) rename components/liveTv/{LoadSheduleTask.brs => LoadSheduleTask.bs} (100%) rename components/liveTv/{ProgramDetails.brs => ProgramDetails.bs} (100%) rename components/liveTv/{RecordProgramTask.brs => RecordProgramTask.bs} (100%) rename components/liveTv/{schedule.brs => schedule.bs} (100%) rename components/login/{UserItem.brs => UserItem.bs} (100%) rename components/login/{UserRow.brs => UserRow.bs} (100%) rename components/login/{UserSelect.brs => UserSelect.bs} (100%) rename components/manager/{QueueManager.brs => QueueManager.bs} (100%) rename components/manager/{ViewCreator.brs => ViewCreator.bs} (100%) rename components/mediaPlayers/{AudioPlayer.brs => AudioPlayer.bs} (100%) rename components/movies/{AudioTrackListItem.brs => AudioTrackListItem.bs} (100%) rename components/movies/{MovieDetails.brs => MovieDetails.bs} (100%) rename components/movies/{MovieOptions.brs => MovieOptions.bs} (100%) rename components/movies/{VideoTrackListItem.brs => VideoTrackListItem.bs} (100%) rename components/music/{AlbumGrid.brs => AlbumGrid.bs} (100%) rename components/music/{AlbumTrackList.brs => AlbumTrackList.bs} (100%) rename components/music/{AlbumView.brs => AlbumView.bs} (100%) rename components/music/{ArtistView.brs => ArtistView.bs} (100%) rename components/music/{AudioPlayerView.brs => AudioPlayerView.bs} (100%) rename components/music/{LoadScreenSaverTimeoutTask.brs => LoadScreenSaverTimeoutTask.bs} (100%) rename components/music/{PlaylistView.brs => PlaylistView.bs} (100%) rename components/music/{SongItem.brs => SongItem.bs} (100%) rename components/options/{OptionNode.brs => OptionNode.bs} (100%) rename components/options/{OptionsSlider.brs => OptionsSlider.bs} (100%) rename components/photos/{LoadPhotoTask.brs => LoadPhotoTask.bs} (100%) rename components/photos/{PhotoDetails.brs => PhotoDetails.bs} (100%) rename components/quickConnect/{QuickConnect.brs => QuickConnect.bs} (100%) rename components/quickConnect/{QuickConnectDialog.brs => QuickConnectDialog.bs} (100%) rename components/search/{SearchResults.brs => SearchResults.bs} (100%) rename components/search/{SearchRow.brs => SearchRow.bs} (100%) rename components/search/{SearchTask.brs => SearchTask.bs} (100%) rename components/section/{section.brs => section.bs} (100%) rename components/section/{sectionScroller.brs => sectionScroller.bs} (100%) rename components/settings/{settings.brs => settings.bs} (100%) rename components/tvshows/{TVEpisodeRow.brs => TVEpisodeRow.bs} (100%) rename components/tvshows/{TVEpisodeRowWithOptions.brs => TVEpisodeRowWithOptions.bs} (100%) rename components/tvshows/{TVEpisodes.brs => TVEpisodes.bs} (100%) rename components/tvshows/{TVListDetails.brs => TVListDetails.bs} (100%) rename components/tvshows/{TVListOptions.brs => TVListOptions.bs} (100%) rename components/tvshows/{TVSeasonRow.brs => TVSeasonRow.bs} (100%) rename components/tvshows/{TVShowDescription.brs => TVShowDescription.bs} (100%) rename components/tvshows/{TVShowDetails.brs => TVShowDetails.bs} (100%) rename components/video/{VideoPlayerView.brs => VideoPlayerView.bs} (100%) rename source/{ShowScenes.brs => ShowScenes.bs} (100%) rename source/{VideoPlayer.brs => VideoPlayer.bs} (100%) rename source/api/{Image.brs => Image.bs} (100%) rename source/api/{Items.brs => Items.bs} (100%) rename source/api/{UserLibrary.brs => UserLibrary.bs} (100%) rename source/api/{baserequest.brs => baserequest.bs} (100%) rename source/api/{userauth.brs => userauth.bs} (100%) rename source/utils/{Subtitles.brs => Subtitles.bs} (100%) rename source/utils/{config.brs => config.bs} (100%) rename source/utils/{deviceCapabilities.brs => deviceCapabilities.bs} (100%) rename source/utils/{globals.brs => globals.bs} (100%) rename source/utils/{misc.brs => misc.bs} (100%) diff --git a/components/ButtonGroupHoriz.brs b/components/ButtonGroupHoriz.bs similarity index 100% rename from components/ButtonGroupHoriz.brs rename to components/ButtonGroupHoriz.bs diff --git a/components/Buttons/JFButtons.brs b/components/Buttons/JFButtons.bs similarity index 100% rename from components/Buttons/JFButtons.brs rename to components/Buttons/JFButtons.bs diff --git a/components/Buttons/TextSizeTask.brs b/components/Buttons/TextSizeTask.bs similarity index 100% rename from components/Buttons/TextSizeTask.brs rename to components/Buttons/TextSizeTask.bs diff --git a/components/GetNextEpisodeTask.brs b/components/GetNextEpisodeTask.bs similarity index 100% rename from components/GetNextEpisodeTask.brs rename to components/GetNextEpisodeTask.bs diff --git a/components/GetPlaybackInfoTask.brs b/components/GetPlaybackInfoTask.bs similarity index 100% rename from components/GetPlaybackInfoTask.brs rename to components/GetPlaybackInfoTask.bs diff --git a/components/GetShuffleEpisodesTask.brs b/components/GetShuffleEpisodesTask.bs similarity index 100% rename from components/GetShuffleEpisodesTask.brs rename to components/GetShuffleEpisodesTask.bs diff --git a/components/IconButton.brs b/components/IconButton.bs similarity index 100% rename from components/IconButton.brs rename to components/IconButton.bs diff --git a/components/ItemGrid/Alpha.brs b/components/ItemGrid/Alpha.bs similarity index 100% rename from components/ItemGrid/Alpha.brs rename to components/ItemGrid/Alpha.bs diff --git a/components/ItemGrid/FavoriteItemsTask.brs b/components/ItemGrid/FavoriteItemsTask.bs similarity index 100% rename from components/ItemGrid/FavoriteItemsTask.brs rename to components/ItemGrid/FavoriteItemsTask.bs diff --git a/components/ItemGrid/GridItem.brs b/components/ItemGrid/GridItem.bs similarity index 100% rename from components/ItemGrid/GridItem.brs rename to components/ItemGrid/GridItem.bs diff --git a/components/ItemGrid/GridItemSmall.brs b/components/ItemGrid/GridItemSmall.bs similarity index 100% rename from components/ItemGrid/GridItemSmall.brs rename to components/ItemGrid/GridItemSmall.bs diff --git a/components/ItemGrid/ItemGrid.brs b/components/ItemGrid/ItemGrid.bs similarity index 100% rename from components/ItemGrid/ItemGrid.brs rename to components/ItemGrid/ItemGrid.bs diff --git a/components/ItemGrid/ItemGridOptions.brs b/components/ItemGrid/ItemGridOptions.bs similarity index 100% rename from components/ItemGrid/ItemGridOptions.brs rename to components/ItemGrid/ItemGridOptions.bs diff --git a/components/ItemGrid/LoadItemsTask2.brs b/components/ItemGrid/LoadItemsTask2.bs similarity index 100% rename from components/ItemGrid/LoadItemsTask2.brs rename to components/ItemGrid/LoadItemsTask2.bs diff --git a/components/ItemGrid/LoadVideoContentTask.brs b/components/ItemGrid/LoadVideoContentTask.bs similarity index 100% rename from components/ItemGrid/LoadVideoContentTask.brs rename to components/ItemGrid/LoadVideoContentTask.bs diff --git a/components/ItemGrid/MovieLibraryView.brs b/components/ItemGrid/MovieLibraryView.bs similarity index 100% rename from components/ItemGrid/MovieLibraryView.brs rename to components/ItemGrid/MovieLibraryView.bs diff --git a/components/ItemGrid/MusicArtistGridItem.brs b/components/ItemGrid/MusicArtistGridItem.bs similarity index 100% rename from components/ItemGrid/MusicArtistGridItem.brs rename to components/ItemGrid/MusicArtistGridItem.bs diff --git a/components/ItemGrid/MusicLibraryView.brs b/components/ItemGrid/MusicLibraryView.bs similarity index 100% rename from components/ItemGrid/MusicLibraryView.brs rename to components/ItemGrid/MusicLibraryView.bs diff --git a/components/JFButton.brs b/components/JFButton.bs similarity index 100% rename from components/JFButton.brs rename to components/JFButton.bs diff --git a/components/JFGroup.brs b/components/JFGroup.bs similarity index 100% rename from components/JFGroup.brs rename to components/JFGroup.bs diff --git a/components/JFMessageDialog.brs b/components/JFMessageDialog.bs similarity index 100% rename from components/JFMessageDialog.brs rename to components/JFMessageDialog.bs diff --git a/components/JFOverhang.brs b/components/JFOverhang.bs similarity index 100% rename from components/JFOverhang.brs rename to components/JFOverhang.bs diff --git a/components/JFScene.brs b/components/JFScene.bs similarity index 100% rename from components/JFScene.brs rename to components/JFScene.bs diff --git a/components/JFScreen.brs b/components/JFScreen.bs similarity index 100% rename from components/JFScreen.brs rename to components/JFScreen.bs diff --git a/components/JFVideo.brs b/components/JFVideo.bs similarity index 93% rename from components/JFVideo.brs rename to components/JFVideo.bs index cebacb033..8910d4a64 100644 --- a/components/JFVideo.brs +++ b/components/JFVideo.bs @@ -259,20 +259,6 @@ sub bufferCheck(msg) end sub function onKeyEvent(key as string, press as boolean) as boolean - - if key = "OK" and m.nextEpisodeButton.hasfocus() and not m.top.trickPlayBar.visible - m.top.state = "finished" - hideNextEpisodeButton() - return true - else - 'Hide Next Episode Button - if m.nextEpisodeButton.visible or m.nextEpisodeButton.hasFocus() - m.nextEpisodeButton.visible = false - m.nextEpisodeButton.setFocus(false) - m.top.setFocus(true) - end if - end if - if not press then return false if key = "down" @@ -282,9 +268,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" diff --git a/components/ListPoster.brs b/components/ListPoster.bs similarity index 100% rename from components/ListPoster.brs rename to components/ListPoster.bs diff --git a/components/PersonDetails.brs b/components/PersonDetails.bs similarity index 100% rename from components/PersonDetails.brs rename to components/PersonDetails.bs diff --git a/components/PlaybackDialog.brs b/components/PlaybackDialog.bs similarity index 100% rename from components/PlaybackDialog.brs rename to components/PlaybackDialog.bs diff --git a/components/PlayedCheckmark.brs b/components/PlayedCheckmark.bs similarity index 100% rename from components/PlayedCheckmark.brs rename to components/PlayedCheckmark.bs diff --git a/components/PlaystateTask.brs b/components/PlaystateTask.bs old mode 100755 new mode 100644 similarity index 96% rename from components/PlaystateTask.brs rename to components/PlaystateTask.bs index b9b4e8ffa..ceac6086f --- a/components/PlaystateTask.brs +++ b/components/PlaystateTask.bs @@ -1,54 +1,54 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" - -sub init() - m.top.functionName = "PlaystateUpdate" -end sub - -sub PlaystateUpdate() - if m.top.status = "start" - url = "Sessions/Playing" - else if m.top.status = "stop" - url = "Sessions/Playing/Stopped" - else if m.top.status = "update" - url = "Sessions/Playing/Progress" - else - ' Unknown State - return - end if - params = PlaystateDefaults(m.top.params) - resp = APIRequest(url) - postJson(resp, params) -end sub - -function PlaystateDefaults(params = {} as object) - new_params = { - '"CanSeek": false - '"Item": "{}", ' TODO! - '"NowPlayingQueue": "[]", ' TODO! - '"PlaylistItemId": "", - '"ItemId": id, - '"SessionId": "", ' TODO! - '"MediaSourceId": id, - '"AudioStreamIndex": 1, - '"SubtitleStreamIndex": 0, - "IsPaused": false, - '"IsMuted": false, - "PositionTicks": 0 - '"PlaybackStartTimeTicks": 0, - '"VolumeLevel": 100, - '"Brightness": 100, - '"AspectRatio": "16x9", - '"PlayMethod": "DirectStream" - '"LiveStreamId": "", - '"PlaySessionId": "", - '"RepeatMode": "RepeatNone" - } - - paramsArray = params.items() - for i = 0 to paramsArray.count() - 1 - item = paramsArray[i] - new_params[item.key] = item.value - end for - return FormatJson(new_params) -end function +import "pkg:/source/api/baserequest.brs" +import "pkg:/source/utils/config.brs" + +sub init() + m.top.functionName = "PlaystateUpdate" +end sub + +sub PlaystateUpdate() + if m.top.status = "start" + url = "Sessions/Playing" + else if m.top.status = "stop" + url = "Sessions/Playing/Stopped" + else if m.top.status = "update" + url = "Sessions/Playing/Progress" + else + ' Unknown State + return + end if + params = PlaystateDefaults(m.top.params) + resp = APIRequest(url) + postJson(resp, params) +end sub + +function PlaystateDefaults(params = {} as object) + new_params = { + '"CanSeek": false + '"Item": "{}", ' TODO! + '"NowPlayingQueue": "[]", ' TODO! + '"PlaylistItemId": "", + '"ItemId": id, + '"SessionId": "", ' TODO! + '"MediaSourceId": id, + '"AudioStreamIndex": 1, + '"SubtitleStreamIndex": 0, + "IsPaused": false, + '"IsMuted": false, + "PositionTicks": 0 + '"PlaybackStartTimeTicks": 0, + '"VolumeLevel": 100, + '"Brightness": 100, + '"AspectRatio": "16x9", + '"PlayMethod": "DirectStream" + '"LiveStreamId": "", + '"PlaySessionId": "", + '"RepeatMode": "RepeatNone" + } + + paramsArray = params.items() + for i = 0 to paramsArray.count() - 1 + item = paramsArray[i] + new_params[item.key] = item.value + end for + return FormatJson(new_params) +end function diff --git a/components/RadioDialog.brs b/components/RadioDialog.bs similarity index 100% rename from components/RadioDialog.brs rename to components/RadioDialog.bs diff --git a/components/SearchBox.brs b/components/SearchBox.bs similarity index 100% rename from components/SearchBox.brs rename to components/SearchBox.bs diff --git a/components/Spinner.brs b/components/Spinner.bs similarity index 100% rename from components/Spinner.brs rename to components/Spinner.bs diff --git a/components/StandardDialog.brs b/components/StandardDialog.bs similarity index 100% rename from components/StandardDialog.brs rename to components/StandardDialog.bs diff --git a/components/WhatsNewDialog.brs b/components/WhatsNewDialog.bs similarity index 100% rename from components/WhatsNewDialog.brs rename to components/WhatsNewDialog.bs diff --git a/components/captionTask.brs b/components/captionTask.bs similarity index 100% rename from components/captionTask.brs rename to components/captionTask.bs diff --git a/components/config/ConfigData.brs b/components/config/ConfigData.bs similarity index 100% rename from components/config/ConfigData.brs rename to components/config/ConfigData.bs diff --git a/components/config/ConfigItem.brs b/components/config/ConfigItem.bs similarity index 100% rename from components/config/ConfigItem.brs rename to components/config/ConfigItem.bs diff --git a/components/config/ConfigList.brs b/components/config/ConfigList.bs similarity index 100% rename from components/config/ConfigList.brs rename to components/config/ConfigList.bs diff --git a/components/config/JFServer.brs b/components/config/JFServer.bs similarity index 100% rename from components/config/JFServer.brs rename to components/config/JFServer.bs diff --git a/components/config/LoginScene.brs b/components/config/LoginScene.bs similarity index 100% rename from components/config/LoginScene.brs rename to components/config/LoginScene.bs diff --git a/components/config/ServerDiscoveryTask.brs b/components/config/ServerDiscoveryTask.bs similarity index 100% rename from components/config/ServerDiscoveryTask.brs rename to components/config/ServerDiscoveryTask.bs diff --git a/components/config/SetServerScreen.brs b/components/config/SetServerScreen.bs similarity index 100% rename from components/config/SetServerScreen.brs rename to components/config/SetServerScreen.bs diff --git a/components/data/AlbumData.brs b/components/data/AlbumData.bs similarity index 100% rename from components/data/AlbumData.brs rename to components/data/AlbumData.bs diff --git a/components/data/ChannelData.brs b/components/data/ChannelData.bs similarity index 100% rename from components/data/ChannelData.brs rename to components/data/ChannelData.bs diff --git a/components/data/CollectionData.brs b/components/data/CollectionData.bs similarity index 100% rename from components/data/CollectionData.brs rename to components/data/CollectionData.bs diff --git a/components/data/FolderData.brs b/components/data/FolderData.bs similarity index 100% rename from components/data/FolderData.brs rename to components/data/FolderData.bs diff --git a/components/data/GetFiltersTask.brs b/components/data/GetFiltersTask.bs similarity index 100% rename from components/data/GetFiltersTask.brs rename to components/data/GetFiltersTask.bs diff --git a/components/data/HomeData.brs b/components/data/HomeData.bs similarity index 100% rename from components/data/HomeData.brs rename to components/data/HomeData.bs diff --git a/components/data/ImageData.brs b/components/data/ImageData.bs similarity index 100% rename from components/data/ImageData.brs rename to components/data/ImageData.bs diff --git a/components/data/MovieData.brs b/components/data/MovieData.bs similarity index 100% rename from components/data/MovieData.brs rename to components/data/MovieData.bs diff --git a/components/data/MusicAlbumData.brs b/components/data/MusicAlbumData.bs similarity index 100% rename from components/data/MusicAlbumData.brs rename to components/data/MusicAlbumData.bs diff --git a/components/data/MusicAlbumSongListData.brs b/components/data/MusicAlbumSongListData.bs similarity index 100% rename from components/data/MusicAlbumSongListData.brs rename to components/data/MusicAlbumSongListData.bs diff --git a/components/data/MusicArtistData.brs b/components/data/MusicArtistData.bs similarity index 100% rename from components/data/MusicArtistData.brs rename to components/data/MusicArtistData.bs diff --git a/components/data/MusicSongData.brs b/components/data/MusicSongData.bs similarity index 100% rename from components/data/MusicSongData.brs rename to components/data/MusicSongData.bs diff --git a/components/data/OptionsButton.brs b/components/data/OptionsButton.bs similarity index 100% rename from components/data/OptionsButton.brs rename to components/data/OptionsButton.bs diff --git a/components/data/OptionsData.brs b/components/data/OptionsData.bs similarity index 100% rename from components/data/OptionsData.brs rename to components/data/OptionsData.bs diff --git a/components/data/PersonData.brs b/components/data/PersonData.bs similarity index 100% rename from components/data/PersonData.brs rename to components/data/PersonData.bs diff --git a/components/data/PhotoData.brs b/components/data/PhotoData.bs similarity index 100% rename from components/data/PhotoData.brs rename to components/data/PhotoData.bs diff --git a/components/data/PlaylistData.brs b/components/data/PlaylistData.bs similarity index 100% rename from components/data/PlaylistData.brs rename to components/data/PlaylistData.bs diff --git a/components/data/PublicUserData.brs b/components/data/PublicUserData.bs similarity index 100% rename from components/data/PublicUserData.brs rename to components/data/PublicUserData.bs diff --git a/components/data/SceneManager.brs b/components/data/SceneManager.bs old mode 100755 new mode 100644 similarity index 96% rename from components/data/SceneManager.brs rename to components/data/SceneManager.bs index 51191bb8d..51aaaf9de --- a/components/data/SceneManager.brs +++ b/components/data/SceneManager.bs @@ -1,358 +1,358 @@ -import "pkg:/source/roku_modules/log/LogMixin.brs" - -sub init() - m.log = log.Logger("SceneManager") - m.groups = [] - m.scene = m.top.getScene() - m.content = m.scene.findNode("content") - m.overhang = m.scene.findNode("overhang") -end sub - -' -' Push a new group onto the stack, replacing the existing group on the screen -sub pushScene(newGroup) - - currentGroup = m.groups.peek() - if newGroup <> invalid - if currentGroup <> invalid - 'Search through group and store off last focused item - if currentGroup.focusedChild <> invalid - focused = currentGroup.focusedChild - while focused.hasFocus() = false - focused = focused.focusedChild - end while - - currentGroup.lastFocus = focused - currentGroup.setFocus(false) - else - currentGroup.setFocus(false) - end if - - if currentGroup.isSubType("JFGroup") - unregisterOverhangData(currentGroup) - end if - - currentGroup.visible = false - - if currentGroup.isSubType("JFScreen") - currentGroup.callFunc("OnScreenHidden") - end if - - end if - - m.groups.push(newGroup) - - if currentGroup <> invalid - m.content.replaceChild(newGroup, 0) - else - m.content.appendChild(newGroup) - end if - - if newGroup.isSubType("JFScreen") - newGroup.callFunc("OnScreenShown") - end if - - 'observe info about new group, set overhang title, etc. - if newGroup.isSubType("JFGroup") - registerOverhangData(newGroup) - - ' Some groups set focus to a specific component within init(), so we don't want to - ' change if that is the case. - if newGroup.isInFocusChain() = false - newGroup.setFocus(true) - end if - else if newGroup.isSubType("JFVideo") - newGroup.setFocus(true) - newGroup.control = "play" - m.overhang.visible = false - end if - else - currentGroup.focusedChild.setFocus(true) - end if - -end sub - -' -' Remove the current group and load the last group from the stack -sub popScene() - group = m.groups.pop() - if group <> invalid - groupType = group.subtype() - if groupType = "JFGroup" - unregisterOverhangData(group) - else if groupType = "JFVideo" - ' Stop video to make sure app communicates stop playstate to server - group.control = "stop" - end if - - group.visible = false - - if groupType = "JFScreen" - group.callFunc("OnScreenHidden") - end if - else - ' Exit app if for some reason we don't have anything on the stack - m.scene.exit = true - end if - - group = m.groups.peek() - if group <> invalid - registerOverhangData(group) - - if group.subtype() = "Home" - currentTime = CreateObject("roDateTime").AsSeconds() - if group.timeLastRefresh = invalid or (currentTime - group.timeLastRefresh) > 20 - group.timeLastRefresh = currentTime - group.callFunc("refresh") - end if - end if - - group.visible = true - - m.content.replaceChild(group, 0) - - if group.isSubType("JFScreen") - group.callFunc("OnScreenShown") - else - ' Restore focus - if group.lastFocus <> invalid - group.lastFocus.setFocus(true) - else - if group.focusedChild <> invalid - group.focusedChild.setFocus(true) - else - group.setFocus(true) - end if - end if - end if - else - ' Exit app if the stack is empty after removing group - m.scene.exit = true - end if - -end sub - - -' -' Return group at top of stack without removing -function getActiveScene() as object - return m.groups.peek() -end function - - -' -' Clear all content from group stack -sub clearScenes() - if m.content <> invalid then m.content.removeChildrenIndex(m.content.getChildCount(), 0) - m.groups = [] -end sub - -' -' Clear previous scene from group stack -sub clearPreviousScene() - m.groups.pop() -end sub - -' -' Delete scene from group stack at passed index -sub deleteSceneAtIndex(index = 1) - m.groups.Delete(index) -end sub - -' -' Display user/device settings screen -sub settings() - settingsScreen = createObject("roSGNode", "Settings") - pushScene(settingsScreen) -end sub - -' -' Register observers for overhang data -sub registerOverhangData(group) - if group.isSubType("JFGroup") - if group.overhangTitle <> invalid then m.overhang.title = group.overhangTitle - - if group.optionsAvailable - m.overhang.showOptions = true - else - m.overhang.showOptions = false - end if - group.observeField("optionsAvailable", "updateOptions") - - group.observeField("overhangTitle", "updateOverhangTitle") - - if group.overhangVisible - m.overhang.visible = true - else - m.overhang.visible = false - end if - group.observeField("overhangVisible", "updateOverhangVisible") - else if group.isSubType("JFVideo") - m.overhang.visible = false - else - m.log.error("registerOverhangData(): Unexpected group type.", group, group.subtype()) - end if -end sub - - -' -' Remove observers for overhang data -sub unregisterOverhangData(group) - group.unobserveField("overhangTitle") -end sub - - -' -' Update overhang title -sub updateOverhangTitle(msg) - m.overhang.title = msg.getData() -end sub - - -' -' Update options availability -sub updateOptions(msg) - m.overhang.showOptions = msg.getData() -end sub - - -' -' Update whether the overhang is visible or not -sub updateOverhangVisible(msg) - m.overhang.visible = msg.getData() -end sub - - -' -' Update username in overhang -sub updateUser() - ' Passthrough to overhang - if m.overhang <> invalid then m.overhang.currentUser = m.top.currentUser -end sub - - -' -' Reset time -sub resetTime() - ' Passthrough to overhang - m.overhang.callFunc("resetTime") -end sub - -' -' Display dialog to user with an OK button -sub userMessage(title as string, message as string) - dialog = createObject("roSGNode", "StandardMessageDialog") - dialog.title = title - dialog.message = message - dialog.buttons = [tr("OK")] - dialog.observeField("buttonSelected", "dismissDialog") - m.scene.dialog = dialog -end sub - -' -' Display dialog to user with an OK button -sub standardDialog(title, message) - dialog = createObject("roSGNode", "StandardDialog") - dlgPalette = createObject("roSGNode", "RSGPalette") - dlgPalette.colors = { - DialogBackgroundColor: "0x262828FF", - DialogFocusColor: "0xcececeFF", - DialogFocusItemColor: "0x202020FF", - DialogSecondaryTextColor: "0xf8f8f8ff", - DialogSecondaryItemColor: "#00a4dcFF", - DialogTextColor: "0xeeeeeeFF" - } - dialog.palette = dlgPalette - dialog.observeField("buttonSelected", "dismissDialog") - dialog.title = title - dialog.contentData = message - dialog.buttons = [tr("OK")] - - m.scene.dialog = dialog -end sub - -' -' Display dialog to user with an OK button -sub radioDialog(title, message) - dialog = createObject("roSGNode", "RadioDialog") - dlgPalette = createObject("roSGNode", "RSGPalette") - dlgPalette.colors = { - DialogBackgroundColor: "0x262828FF", - DialogFocusColor: "0xcececeFF", - DialogFocusItemColor: "0x202020FF", - DialogSecondaryTextColor: "0xf8f8f8ff", - DialogSecondaryItemColor: "#00a4dcFF", - DialogTextColor: "0xeeeeeeFF" - } - dialog.palette = dlgPalette - dialog.observeField("buttonSelected", "dismissDialog") - dialog.title = title - dialog.contentData = message - dialog.buttons = [tr("OK")] - - m.scene.dialog = dialog -end sub - -' -' Display dialog to user with an OK button -sub optionDialog(title, message, buttons) - m.top.dataReturned = false - m.top.returnData = invalid - m.userselection = false - - dialog = createObject("roSGNode", "StandardMessageDialog") - dlgPalette = createObject("roSGNode", "RSGPalette") - dlgPalette.colors = { - DialogBackgroundColor: "0x262828FF", - DialogFocusColor: "0xcececeFF", - DialogFocusItemColor: "0x202020FF", - DialogSecondaryTextColor: "0xf8f8f8ff", - DialogSecondaryItemColor: "#00a4dcFF", - DialogTextColor: "0xeeeeeeFF" - } - dialog.palette = dlgPalette - dialog.observeField("buttonSelected", "optionSelected") - dialog.observeField("wasClosed", "optionClosed") - dialog.title = title - dialog.message = message - dialog.buttons = buttons - - m.scene.dialog = dialog -end sub - -' -' Return button the user selected -sub optionClosed() - if m.userselection then return - - m.top.returnData = { - indexSelected: -1, - buttonSelected: "" - } - m.top.dataReturned = true -end sub - -' -' Return button the user selected -sub optionSelected() - m.userselection = true - m.top.returnData = { - indexSelected: m.scene.dialog.buttonSelected, - buttonSelected: m.scene.dialog.buttons[m.scene.dialog.buttonSelected] - } - m.top.dataReturned = true - - dismissDialog() -end sub - -' -' Close currently displayed dialog -sub dismissDialog() - m.scene.dialog.close = true -end sub - -' -' Returns bool indicating if dialog is currently displayed -function isDialogOpen() as boolean - return m.scene.dialog <> invalid -end function +import "pkg:/source/roku_modules/log/LogMixin.brs" + +sub init() + m.log = log.Logger("SceneManager") + m.groups = [] + m.scene = m.top.getScene() + m.content = m.scene.findNode("content") + m.overhang = m.scene.findNode("overhang") +end sub + +' +' Push a new group onto the stack, replacing the existing group on the screen +sub pushScene(newGroup) + + currentGroup = m.groups.peek() + if newGroup <> invalid + if currentGroup <> invalid + 'Search through group and store off last focused item + if currentGroup.focusedChild <> invalid + focused = currentGroup.focusedChild + while focused.hasFocus() = false + focused = focused.focusedChild + end while + + currentGroup.lastFocus = focused + currentGroup.setFocus(false) + else + currentGroup.setFocus(false) + end if + + if currentGroup.isSubType("JFGroup") + unregisterOverhangData(currentGroup) + end if + + currentGroup.visible = false + + if currentGroup.isSubType("JFScreen") + currentGroup.callFunc("OnScreenHidden") + end if + + end if + + m.groups.push(newGroup) + + if currentGroup <> invalid + m.content.replaceChild(newGroup, 0) + else + m.content.appendChild(newGroup) + end if + + if newGroup.isSubType("JFScreen") + newGroup.callFunc("OnScreenShown") + end if + + 'observe info about new group, set overhang title, etc. + if newGroup.isSubType("JFGroup") + registerOverhangData(newGroup) + + ' Some groups set focus to a specific component within init(), so we don't want to + ' change if that is the case. + if newGroup.isInFocusChain() = false + newGroup.setFocus(true) + end if + else if newGroup.isSubType("JFVideo") + newGroup.setFocus(true) + newGroup.control = "play" + m.overhang.visible = false + end if + else + currentGroup.focusedChild.setFocus(true) + end if + +end sub + +' +' Remove the current group and load the last group from the stack +sub popScene() + group = m.groups.pop() + if group <> invalid + groupType = group.subtype() + if groupType = "JFGroup" + unregisterOverhangData(group) + else if groupType = "JFVideo" + ' Stop video to make sure app communicates stop playstate to server + group.control = "stop" + end if + + group.visible = false + + if groupType = "JFScreen" + group.callFunc("OnScreenHidden") + end if + else + ' Exit app if for some reason we don't have anything on the stack + m.scene.exit = true + end if + + group = m.groups.peek() + if group <> invalid + registerOverhangData(group) + + if group.subtype() = "Home" + currentTime = CreateObject("roDateTime").AsSeconds() + if group.timeLastRefresh = invalid or (currentTime - group.timeLastRefresh) > 20 + group.timeLastRefresh = currentTime + group.callFunc("refresh") + end if + end if + + group.visible = true + + m.content.replaceChild(group, 0) + + if group.isSubType("JFScreen") + group.callFunc("OnScreenShown") + else + ' Restore focus + if group.lastFocus <> invalid + group.lastFocus.setFocus(true) + else + if group.focusedChild <> invalid + group.focusedChild.setFocus(true) + else + group.setFocus(true) + end if + end if + end if + else + ' Exit app if the stack is empty after removing group + m.scene.exit = true + end if + +end sub + + +' +' Return group at top of stack without removing +function getActiveScene() as object + return m.groups.peek() +end function + + +' +' Clear all content from group stack +sub clearScenes() + if m.content <> invalid then m.content.removeChildrenIndex(m.content.getChildCount(), 0) + m.groups = [] +end sub + +' +' Clear previous scene from group stack +sub clearPreviousScene() + m.groups.pop() +end sub + +' +' Delete scene from group stack at passed index +sub deleteSceneAtIndex(index = 1) + m.groups.Delete(index) +end sub + +' +' Display user/device settings screen +sub settings() + settingsScreen = createObject("roSGNode", "Settings") + pushScene(settingsScreen) +end sub + +' +' Register observers for overhang data +sub registerOverhangData(group) + if group.isSubType("JFGroup") + if group.overhangTitle <> invalid then m.overhang.title = group.overhangTitle + + if group.optionsAvailable + m.overhang.showOptions = true + else + m.overhang.showOptions = false + end if + group.observeField("optionsAvailable", "updateOptions") + + group.observeField("overhangTitle", "updateOverhangTitle") + + if group.overhangVisible + m.overhang.visible = true + else + m.overhang.visible = false + end if + group.observeField("overhangVisible", "updateOverhangVisible") + else if group.isSubType("JFVideo") + m.overhang.visible = false + else + m.log.error("registerOverhangData(): Unexpected group type.", group, group.subtype()) + end if +end sub + + +' +' Remove observers for overhang data +sub unregisterOverhangData(group) + group.unobserveField("overhangTitle") +end sub + + +' +' Update overhang title +sub updateOverhangTitle(msg) + m.overhang.title = msg.getData() +end sub + + +' +' Update options availability +sub updateOptions(msg) + m.overhang.showOptions = msg.getData() +end sub + + +' +' Update whether the overhang is visible or not +sub updateOverhangVisible(msg) + m.overhang.visible = msg.getData() +end sub + + +' +' Update username in overhang +sub updateUser() + ' Passthrough to overhang + if m.overhang <> invalid then m.overhang.currentUser = m.top.currentUser +end sub + + +' +' Reset time +sub resetTime() + ' Passthrough to overhang + m.overhang.callFunc("resetTime") +end sub + +' +' Display dialog to user with an OK button +sub userMessage(title as string, message as string) + dialog = createObject("roSGNode", "StandardMessageDialog") + dialog.title = title + dialog.message = message + dialog.buttons = [tr("OK")] + dialog.observeField("buttonSelected", "dismissDialog") + m.scene.dialog = dialog +end sub + +' +' Display dialog to user with an OK button +sub standardDialog(title, message) + dialog = createObject("roSGNode", "StandardDialog") + dlgPalette = createObject("roSGNode", "RSGPalette") + dlgPalette.colors = { + DialogBackgroundColor: "0x262828FF", + DialogFocusColor: "0xcececeFF", + DialogFocusItemColor: "0x202020FF", + DialogSecondaryTextColor: "0xf8f8f8ff", + DialogSecondaryItemColor: "#00a4dcFF", + DialogTextColor: "0xeeeeeeFF" + } + dialog.palette = dlgPalette + dialog.observeField("buttonSelected", "dismissDialog") + dialog.title = title + dialog.contentData = message + dialog.buttons = [tr("OK")] + + m.scene.dialog = dialog +end sub + +' +' Display dialog to user with an OK button +sub radioDialog(title, message) + dialog = createObject("roSGNode", "RadioDialog") + dlgPalette = createObject("roSGNode", "RSGPalette") + dlgPalette.colors = { + DialogBackgroundColor: "0x262828FF", + DialogFocusColor: "0xcececeFF", + DialogFocusItemColor: "0x202020FF", + DialogSecondaryTextColor: "0xf8f8f8ff", + DialogSecondaryItemColor: "#00a4dcFF", + DialogTextColor: "0xeeeeeeFF" + } + dialog.palette = dlgPalette + dialog.observeField("buttonSelected", "dismissDialog") + dialog.title = title + dialog.contentData = message + dialog.buttons = [tr("OK")] + + m.scene.dialog = dialog +end sub + +' +' Display dialog to user with an OK button +sub optionDialog(title, message, buttons) + m.top.dataReturned = false + m.top.returnData = invalid + m.userselection = false + + dialog = createObject("roSGNode", "StandardMessageDialog") + dlgPalette = createObject("roSGNode", "RSGPalette") + dlgPalette.colors = { + DialogBackgroundColor: "0x262828FF", + DialogFocusColor: "0xcececeFF", + DialogFocusItemColor: "0x202020FF", + DialogSecondaryTextColor: "0xf8f8f8ff", + DialogSecondaryItemColor: "#00a4dcFF", + DialogTextColor: "0xeeeeeeFF" + } + dialog.palette = dlgPalette + dialog.observeField("buttonSelected", "optionSelected") + dialog.observeField("wasClosed", "optionClosed") + dialog.title = title + dialog.message = message + dialog.buttons = buttons + + m.scene.dialog = dialog +end sub + +' +' Return button the user selected +sub optionClosed() + if m.userselection then return + + m.top.returnData = { + indexSelected: -1, + buttonSelected: "" + } + m.top.dataReturned = true +end sub + +' +' Return button the user selected +sub optionSelected() + m.userselection = true + m.top.returnData = { + indexSelected: m.scene.dialog.buttonSelected, + buttonSelected: m.scene.dialog.buttons[m.scene.dialog.buttonSelected] + } + m.top.dataReturned = true + + dismissDialog() +end sub + +' +' Close currently displayed dialog +sub dismissDialog() + m.scene.dialog.close = true +end sub + +' +' Returns bool indicating if dialog is currently displayed +function isDialogOpen() as boolean + return m.scene.dialog <> invalid +end function diff --git a/components/data/ScheduleProgramData.brs b/components/data/ScheduleProgramData.bs similarity index 100% rename from components/data/ScheduleProgramData.brs rename to components/data/ScheduleProgramData.bs diff --git a/components/data/SearchData.brs b/components/data/SearchData.bs similarity index 100% rename from components/data/SearchData.brs rename to components/data/SearchData.bs diff --git a/components/data/SeriesData.brs b/components/data/SeriesData.bs similarity index 100% rename from components/data/SeriesData.brs rename to components/data/SeriesData.bs diff --git a/components/data/TVEpisode.brs b/components/data/TVEpisode.bs similarity index 100% rename from components/data/TVEpisode.brs rename to components/data/TVEpisode.bs diff --git a/components/data/TVEpisodeData.brs b/components/data/TVEpisodeData.bs similarity index 100% rename from components/data/TVEpisodeData.brs rename to components/data/TVEpisodeData.bs diff --git a/components/data/TVSeasonData.brs b/components/data/TVSeasonData.bs similarity index 100% rename from components/data/TVSeasonData.brs rename to components/data/TVSeasonData.bs diff --git a/components/data/UserData.brs b/components/data/UserData.bs similarity index 100% rename from components/data/UserData.brs rename to components/data/UserData.bs diff --git a/components/data/VideoData.brs b/components/data/VideoData.bs similarity index 100% rename from components/data/VideoData.brs rename to components/data/VideoData.bs diff --git a/components/extras/ExtrasItem.brs b/components/extras/ExtrasItem.bs similarity index 100% rename from components/extras/ExtrasItem.brs rename to components/extras/ExtrasItem.bs diff --git a/components/extras/ExtrasRowList.brs b/components/extras/ExtrasRowList.bs similarity index 100% rename from components/extras/ExtrasRowList.brs rename to components/extras/ExtrasRowList.bs diff --git a/components/home/Home.brs b/components/home/Home.bs similarity index 100% rename from components/home/Home.brs rename to components/home/Home.bs diff --git a/components/home/HomeItem.brs b/components/home/HomeItem.bs similarity index 100% rename from components/home/HomeItem.brs rename to components/home/HomeItem.bs diff --git a/components/home/HomeRows.brs b/components/home/HomeRows.bs similarity index 100% rename from components/home/HomeRows.brs rename to components/home/HomeRows.bs diff --git a/components/home/LoadItemsTask.brs b/components/home/LoadItemsTask.bs similarity index 100% rename from components/home/LoadItemsTask.brs rename to components/home/LoadItemsTask.bs diff --git a/components/liveTv/LoadChannelsTask.brs b/components/liveTv/LoadChannelsTask.bs similarity index 100% rename from components/liveTv/LoadChannelsTask.brs rename to components/liveTv/LoadChannelsTask.bs diff --git a/components/liveTv/LoadProgramDetailsTask.brs b/components/liveTv/LoadProgramDetailsTask.bs similarity index 100% rename from components/liveTv/LoadProgramDetailsTask.brs rename to components/liveTv/LoadProgramDetailsTask.bs diff --git a/components/liveTv/LoadSheduleTask.brs b/components/liveTv/LoadSheduleTask.bs similarity index 100% rename from components/liveTv/LoadSheduleTask.brs rename to components/liveTv/LoadSheduleTask.bs diff --git a/components/liveTv/ProgramDetails.brs b/components/liveTv/ProgramDetails.bs similarity index 100% rename from components/liveTv/ProgramDetails.brs rename to components/liveTv/ProgramDetails.bs diff --git a/components/liveTv/RecordProgramTask.brs b/components/liveTv/RecordProgramTask.bs similarity index 100% rename from components/liveTv/RecordProgramTask.brs rename to components/liveTv/RecordProgramTask.bs diff --git a/components/liveTv/schedule.brs b/components/liveTv/schedule.bs similarity index 100% rename from components/liveTv/schedule.brs rename to components/liveTv/schedule.bs diff --git a/components/login/UserItem.brs b/components/login/UserItem.bs similarity index 100% rename from components/login/UserItem.brs rename to components/login/UserItem.bs diff --git a/components/login/UserRow.brs b/components/login/UserRow.bs similarity index 100% rename from components/login/UserRow.brs rename to components/login/UserRow.bs diff --git a/components/login/UserSelect.brs b/components/login/UserSelect.bs similarity index 100% rename from components/login/UserSelect.brs rename to components/login/UserSelect.bs diff --git a/components/manager/QueueManager.brs b/components/manager/QueueManager.bs similarity index 100% rename from components/manager/QueueManager.brs rename to components/manager/QueueManager.bs diff --git a/components/manager/ViewCreator.brs b/components/manager/ViewCreator.bs similarity index 100% rename from components/manager/ViewCreator.brs rename to components/manager/ViewCreator.bs diff --git a/components/mediaPlayers/AudioPlayer.brs b/components/mediaPlayers/AudioPlayer.bs similarity index 100% rename from components/mediaPlayers/AudioPlayer.brs rename to components/mediaPlayers/AudioPlayer.bs diff --git a/components/movies/AudioTrackListItem.brs b/components/movies/AudioTrackListItem.bs similarity index 100% rename from components/movies/AudioTrackListItem.brs rename to components/movies/AudioTrackListItem.bs diff --git a/components/movies/MovieDetails.brs b/components/movies/MovieDetails.bs similarity index 100% rename from components/movies/MovieDetails.brs rename to components/movies/MovieDetails.bs diff --git a/components/movies/MovieOptions.brs b/components/movies/MovieOptions.bs similarity index 100% rename from components/movies/MovieOptions.brs rename to components/movies/MovieOptions.bs diff --git a/components/movies/VideoTrackListItem.brs b/components/movies/VideoTrackListItem.bs similarity index 100% rename from components/movies/VideoTrackListItem.brs rename to components/movies/VideoTrackListItem.bs diff --git a/components/music/AlbumGrid.brs b/components/music/AlbumGrid.bs similarity index 100% rename from components/music/AlbumGrid.brs rename to components/music/AlbumGrid.bs diff --git a/components/music/AlbumTrackList.brs b/components/music/AlbumTrackList.bs similarity index 100% rename from components/music/AlbumTrackList.brs rename to components/music/AlbumTrackList.bs diff --git a/components/music/AlbumView.brs b/components/music/AlbumView.bs similarity index 100% rename from components/music/AlbumView.brs rename to components/music/AlbumView.bs diff --git a/components/music/ArtistView.brs b/components/music/ArtistView.bs similarity index 100% rename from components/music/ArtistView.brs rename to components/music/ArtistView.bs diff --git a/components/music/AudioPlayerView.brs b/components/music/AudioPlayerView.bs similarity index 100% rename from components/music/AudioPlayerView.brs rename to components/music/AudioPlayerView.bs diff --git a/components/music/LoadScreenSaverTimeoutTask.brs b/components/music/LoadScreenSaverTimeoutTask.bs similarity index 100% rename from components/music/LoadScreenSaverTimeoutTask.brs rename to components/music/LoadScreenSaverTimeoutTask.bs diff --git a/components/music/PlaylistView.brs b/components/music/PlaylistView.bs similarity index 100% rename from components/music/PlaylistView.brs rename to components/music/PlaylistView.bs diff --git a/components/music/SongItem.brs b/components/music/SongItem.bs similarity index 100% rename from components/music/SongItem.brs rename to components/music/SongItem.bs diff --git a/components/options/OptionNode.brs b/components/options/OptionNode.bs similarity index 100% rename from components/options/OptionNode.brs rename to components/options/OptionNode.bs diff --git a/components/options/OptionsSlider.brs b/components/options/OptionsSlider.bs similarity index 100% rename from components/options/OptionsSlider.brs rename to components/options/OptionsSlider.bs diff --git a/components/photos/LoadPhotoTask.brs b/components/photos/LoadPhotoTask.bs similarity index 100% rename from components/photos/LoadPhotoTask.brs rename to components/photos/LoadPhotoTask.bs diff --git a/components/photos/PhotoDetails.brs b/components/photos/PhotoDetails.bs similarity index 100% rename from components/photos/PhotoDetails.brs rename to components/photos/PhotoDetails.bs diff --git a/components/quickConnect/QuickConnect.brs b/components/quickConnect/QuickConnect.bs similarity index 100% rename from components/quickConnect/QuickConnect.brs rename to components/quickConnect/QuickConnect.bs diff --git a/components/quickConnect/QuickConnectDialog.brs b/components/quickConnect/QuickConnectDialog.bs similarity index 100% rename from components/quickConnect/QuickConnectDialog.brs rename to components/quickConnect/QuickConnectDialog.bs diff --git a/components/search/SearchResults.brs b/components/search/SearchResults.bs similarity index 100% rename from components/search/SearchResults.brs rename to components/search/SearchResults.bs diff --git a/components/search/SearchRow.brs b/components/search/SearchRow.bs similarity index 100% rename from components/search/SearchRow.brs rename to components/search/SearchRow.bs diff --git a/components/search/SearchTask.brs b/components/search/SearchTask.bs similarity index 100% rename from components/search/SearchTask.brs rename to components/search/SearchTask.bs diff --git a/components/section/section.brs b/components/section/section.bs similarity index 100% rename from components/section/section.brs rename to components/section/section.bs diff --git a/components/section/sectionScroller.brs b/components/section/sectionScroller.bs similarity index 100% rename from components/section/sectionScroller.brs rename to components/section/sectionScroller.bs diff --git a/components/settings/settings.brs b/components/settings/settings.bs similarity index 100% rename from components/settings/settings.brs rename to components/settings/settings.bs diff --git a/components/tvshows/TVEpisodeRow.brs b/components/tvshows/TVEpisodeRow.bs similarity index 100% rename from components/tvshows/TVEpisodeRow.brs rename to components/tvshows/TVEpisodeRow.bs diff --git a/components/tvshows/TVEpisodeRowWithOptions.brs b/components/tvshows/TVEpisodeRowWithOptions.bs similarity index 100% rename from components/tvshows/TVEpisodeRowWithOptions.brs rename to components/tvshows/TVEpisodeRowWithOptions.bs diff --git a/components/tvshows/TVEpisodes.brs b/components/tvshows/TVEpisodes.bs similarity index 100% rename from components/tvshows/TVEpisodes.brs rename to components/tvshows/TVEpisodes.bs diff --git a/components/tvshows/TVListDetails.brs b/components/tvshows/TVListDetails.bs similarity index 100% rename from components/tvshows/TVListDetails.brs rename to components/tvshows/TVListDetails.bs diff --git a/components/tvshows/TVListOptions.brs b/components/tvshows/TVListOptions.bs similarity index 100% rename from components/tvshows/TVListOptions.brs rename to components/tvshows/TVListOptions.bs diff --git a/components/tvshows/TVSeasonRow.brs b/components/tvshows/TVSeasonRow.bs similarity index 100% rename from components/tvshows/TVSeasonRow.brs rename to components/tvshows/TVSeasonRow.bs diff --git a/components/tvshows/TVShowDescription.brs b/components/tvshows/TVShowDescription.bs similarity index 100% rename from components/tvshows/TVShowDescription.brs rename to components/tvshows/TVShowDescription.bs diff --git a/components/tvshows/TVShowDetails.brs b/components/tvshows/TVShowDetails.bs similarity index 100% rename from components/tvshows/TVShowDetails.brs rename to components/tvshows/TVShowDetails.bs diff --git a/components/video/VideoPlayerView.brs b/components/video/VideoPlayerView.bs similarity index 100% rename from components/video/VideoPlayerView.brs rename to components/video/VideoPlayerView.bs diff --git a/source/ShowScenes.brs b/source/ShowScenes.bs similarity index 100% rename from source/ShowScenes.brs rename to source/ShowScenes.bs diff --git a/source/VideoPlayer.brs b/source/VideoPlayer.bs similarity index 100% rename from source/VideoPlayer.brs rename to source/VideoPlayer.bs diff --git a/source/api/Image.brs b/source/api/Image.bs similarity index 100% rename from source/api/Image.brs rename to source/api/Image.bs diff --git a/source/api/Items.brs b/source/api/Items.bs similarity index 100% rename from source/api/Items.brs rename to source/api/Items.bs diff --git a/source/api/UserLibrary.brs b/source/api/UserLibrary.bs similarity index 100% rename from source/api/UserLibrary.brs rename to source/api/UserLibrary.bs diff --git a/source/api/baserequest.brs b/source/api/baserequest.bs similarity index 100% rename from source/api/baserequest.brs rename to source/api/baserequest.bs diff --git a/source/api/userauth.brs b/source/api/userauth.bs similarity index 100% rename from source/api/userauth.brs rename to source/api/userauth.bs diff --git a/source/utils/Subtitles.brs b/source/utils/Subtitles.bs similarity index 100% rename from source/utils/Subtitles.brs rename to source/utils/Subtitles.bs diff --git a/source/utils/config.brs b/source/utils/config.bs similarity index 100% rename from source/utils/config.brs rename to source/utils/config.bs diff --git a/source/utils/deviceCapabilities.brs b/source/utils/deviceCapabilities.bs similarity index 100% rename from source/utils/deviceCapabilities.brs rename to source/utils/deviceCapabilities.bs diff --git a/source/utils/globals.brs b/source/utils/globals.bs similarity index 100% rename from source/utils/globals.brs rename to source/utils/globals.bs diff --git a/source/utils/misc.brs b/source/utils/misc.bs similarity index 100% rename from source/utils/misc.brs rename to source/utils/misc.bs From a6a242e661313fa8d3b84200c7bc926ebf513233 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 3 Oct 2023 12:11:25 -0400 Subject: [PATCH 2/6] rename all brs files to bs and update import calls --- components/GetNextEpisodeTask.bs | 2 +- components/GetPlaybackInfoTask.bs | 8 ++++---- components/GetShuffleEpisodesTask.bs | 2 +- components/ItemGrid/FavoriteItemsTask.bs | 6 +++--- components/ItemGrid/GridItem.bs | 6 +++--- components/ItemGrid/GridItemSmall.bs | 4 ++-- components/ItemGrid/ItemGrid.bs | 10 +++++----- components/ItemGrid/ItemGridOptions.bs | 4 ++-- components/ItemGrid/LoadItemsTask2.bs | 14 +++++++------- components/ItemGrid/LoadVideoContentTask.bs | 16 ++++++++-------- components/ItemGrid/MovieLibraryView.bs | 10 +++++----- components/ItemGrid/MusicArtistGridItem.bs | 4 ++-- components/ItemGrid/MusicLibraryView.bs | 10 +++++----- components/JFOverhang.bs | 2 +- components/JFScene.bs | 2 +- components/JFScreen.bs | 2 +- components/JFVideo.bs | 4 ++-- components/ListPoster.bs | 4 ++-- components/PersonDetails.bs | 6 +++--- components/PlaystateTask.bs | 4 ++-- components/RadioDialog.bs | 2 +- components/SearchBox.bs | 10 +++++----- components/captionTask.bs | 4 ++-- components/config/ConfigList.bs | 2 +- components/config/ServerDiscoveryTask.bs | 2 +- components/config/SetServerScreen.bs | 4 ++-- components/data/ChannelData.bs | 6 +++--- components/data/CollectionData.bs | 6 +++--- components/data/FolderData.bs | 6 +++--- components/data/GetFiltersTask.bs | 2 +- components/data/HomeData.bs | 6 +++--- components/data/MovieData.bs | 8 ++++---- components/data/MusicAlbumSongListData.bs | 6 +++--- components/data/MusicArtistData.bs | 6 +++--- components/data/OptionsButton.bs | 2 +- components/data/OptionsData.bs | 2 +- components/data/PersonData.bs | 6 +++--- components/data/PhotoData.bs | 6 +++--- components/data/SceneManager.bs | 2 +- components/data/ScheduleProgramData.bs | 6 +++--- components/data/SeriesData.bs | 6 +++--- components/data/TVEpisode.bs | 6 +++--- components/data/UserData.bs | 2 +- components/data/VideoData.bs | 6 +++--- components/home/Home.bs | 6 +++--- components/home/HomeItem.bs | 10 +++++----- components/home/HomeRows.bs | 2 +- components/home/LoadItemsTask.bs | 12 ++++++------ components/liveTv/LoadChannelsTask.bs | 4 ++-- components/liveTv/LoadProgramDetailsTask.bs | 4 ++-- components/liveTv/LoadSheduleTask.bs | 4 ++-- components/liveTv/ProgramDetails.bs | 4 ++-- components/liveTv/RecordProgramTask.bs | 6 +++--- components/manager/QueueManager.bs | 14 +++++++------- components/mediaPlayers/AudioPlayer.bs | 2 +- components/movies/MovieDetails.bs | 4 ++-- components/music/AlbumGrid.bs | 2 +- components/music/AlbumView.bs | 2 +- components/music/ArtistView.bs | 2 +- components/music/AudioPlayerView.bs | 8 ++++---- components/music/PlaylistView.bs | 2 +- components/music/SongItem.bs | 2 +- components/photos/LoadPhotoTask.bs | 6 +++--- components/photos/PhotoDetails.bs | 4 ++-- components/quickConnect/QuickConnect.bs | 6 +++--- components/quickConnect/QuickConnectDialog.bs | 6 +++--- components/search/SearchResults.bs | 10 +++++----- components/search/SearchRow.bs | 10 +++++----- components/search/SearchTask.bs | 10 +++++----- components/section/section.bs | 2 +- components/section/sectionScroller.bs | 2 +- components/settings/settings.bs | 6 +++--- components/tvshows/TVEpisodeRowWithOptions.bs | 2 +- components/tvshows/TVEpisodes.bs | 8 ++++---- components/tvshows/TVListDetails.bs | 4 ++-- components/tvshows/TVListOptions.bs | 2 +- components/tvshows/TVShowDescription.bs | 2 +- components/tvshows/TVShowDetails.bs | 4 ++-- components/video/VideoPlayerView.bs | 4 ++-- source/api/sdk.bs | 2 +- source/utils/deviceCapabilities.bs | 4 ++-- source/utils/session.bs | 4 ++-- 82 files changed, 211 insertions(+), 211 deletions(-) diff --git a/components/GetNextEpisodeTask.bs b/components/GetNextEpisodeTask.bs index 84dc400c4..f1f98af79 100644 --- a/components/GetNextEpisodeTask.bs +++ b/components/GetNextEpisodeTask.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/GetPlaybackInfoTask.bs b/components/GetPlaybackInfoTask.bs index 0cd6374dd..02483931e 100644 --- a/components/GetPlaybackInfoTask.bs +++ b/components/GetPlaybackInfoTask.bs @@ -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() diff --git a/components/GetShuffleEpisodesTask.bs b/components/GetShuffleEpisodesTask.bs index b82484cd9..b4474ad1b 100644 --- a/components/GetShuffleEpisodesTask.bs +++ b/components/GetShuffleEpisodesTask.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/ItemGrid/FavoriteItemsTask.bs b/components/ItemGrid/FavoriteItemsTask.bs index cd3a0bbc7..03e5012b1 100644 --- a/components/ItemGrid/FavoriteItemsTask.bs +++ b/components/ItemGrid/FavoriteItemsTask.bs @@ -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" diff --git a/components/ItemGrid/GridItem.bs b/components/ItemGrid/GridItem.bs index ff624e7d5..3e95e67b8 100644 --- a/components/ItemGrid/GridItem.bs +++ b/components/ItemGrid/GridItem.bs @@ -1,6 +1,6 @@ -import "pkg:/source/utils/config.brs" -import "pkg:/source/utils/misc.brs" -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/utils/misc.bs" +import "pkg:/source/roku_modules/log/LogMixin.bs" sub init() m.log = log.Logger("GridItem") diff --git a/components/ItemGrid/GridItemSmall.bs b/components/ItemGrid/GridItemSmall.bs index abee74237..606f04462 100644 --- a/components/ItemGrid/GridItemSmall.bs +++ b/components/ItemGrid/GridItemSmall.bs @@ -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") diff --git a/components/ItemGrid/ItemGrid.bs b/components/ItemGrid/ItemGrid.bs index 0cd567b54..1fddf253f 100644 --- a/components/ItemGrid/ItemGrid.bs +++ b/components/ItemGrid/ItemGrid.bs @@ -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/utils/deviceCapabilities.brs" -import "pkg:/source/roku_modules/log/LogMixin.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.bs" sub init() m.log = log.Logger("ItemGrid") diff --git a/components/ItemGrid/ItemGridOptions.bs b/components/ItemGrid/ItemGridOptions.bs index 3fef8cae2..df24e4a77 100644 --- a/components/ItemGrid/ItemGridOptions.bs +++ b/components/ItemGrid/ItemGridOptions.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/misc.brs" -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/utils/misc.bs" +import "pkg:/source/roku_modules/log/LogMixin.bs" sub init() m.log = log.Logger("ItemGridOptions") diff --git a/components/ItemGrid/LoadItemsTask2.bs b/components/ItemGrid/LoadItemsTask2.bs index 22d1ffd19..6c51ef631 100644 --- a/components/ItemGrid/LoadItemsTask2.bs +++ b/components/ItemGrid/LoadItemsTask2.bs @@ -1,10 +1,10 @@ -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/roku_modules/log/LogMixin.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.bs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/ItemGrid/LoadVideoContentTask.bs b/components/ItemGrid/LoadVideoContentTask.bs index 50a978557..7375b3524 100644 --- a/components/ItemGrid/LoadVideoContentTask.bs +++ b/components/ItemGrid/LoadVideoContentTask.bs @@ -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() diff --git a/components/ItemGrid/MovieLibraryView.bs b/components/ItemGrid/MovieLibraryView.bs index 97c17439c..1eb56c95e 100644 --- a/components/ItemGrid/MovieLibraryView.bs +++ b/components/ItemGrid/MovieLibraryView.bs @@ -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") diff --git a/components/ItemGrid/MusicArtistGridItem.bs b/components/ItemGrid/MusicArtistGridItem.bs index c639d919b..96af114dc 100644 --- a/components/ItemGrid/MusicArtistGridItem.bs +++ b/components/ItemGrid/MusicArtistGridItem.bs @@ -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") diff --git a/components/ItemGrid/MusicLibraryView.bs b/components/ItemGrid/MusicLibraryView.bs index 6b06fb233..5d0648747 100644 --- a/components/ItemGrid/MusicLibraryView.bs +++ b/components/ItemGrid/MusicLibraryView.bs @@ -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") diff --git a/components/JFOverhang.bs b/components/JFOverhang.bs index d118b22c1..360773e16 100644 --- a/components/JFOverhang.bs +++ b/components/JFOverhang.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" sub init() m.top.id = "overhang" diff --git a/components/JFScene.bs b/components/JFScene.bs index a0de10169..beee34b79 100644 --- a/components/JFScene.bs +++ b/components/JFScene.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.top.backgroundColor = "#262626" '"#101010" diff --git a/components/JFScreen.bs b/components/JFScreen.bs index 449824bad..e493e07b3 100644 --- a/components/JFScreen.bs +++ b/components/JFScreen.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/roku_modules/log/LogMixin.bs" sub init() ' initialize the log manager. second param sets log output: diff --git a/components/JFVideo.bs b/components/JFVideo.bs index 8910d4a64..bcf8a4a51 100644 --- a/components/JFVideo.bs +++ b/components/JFVideo.bs @@ -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") diff --git a/components/ListPoster.bs b/components/ListPoster.bs index 6ad15ab34..2c9337a80 100644 --- a/components/ListPoster.bs +++ b/components/ListPoster.bs @@ -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") diff --git a/components/PersonDetails.bs b/components/PersonDetails.bs index 8104c7bfd..e0680bdb4 100644 --- a/components/PersonDetails.bs +++ b/components/PersonDetails.bs @@ -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") diff --git a/components/PlaystateTask.bs b/components/PlaystateTask.bs index ceac6086f..fc06ae3e1 100644 --- a/components/PlaystateTask.bs +++ b/components/PlaystateTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" sub init() m.top.functionName = "PlaystateUpdate" diff --git a/components/RadioDialog.bs b/components/RadioDialog.bs index a3250a5e9..9d79a0ee8 100644 --- a/components/RadioDialog.bs +++ b/components/RadioDialog.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.contentArea = m.top.findNode("contentArea") diff --git a/components/SearchBox.bs b/components/SearchBox.bs index c9c14ebc7..e745a269d 100644 --- a/components/SearchBox.bs +++ b/components/SearchBox.bs @@ -1,8 +1,8 @@ -import "pkg:/source/api/Items.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.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/api/Image.bs" +import "pkg:/source/utils/deviceCapabilities.bs" sub init() m.top.layoutDirection = "vert" diff --git a/components/captionTask.bs b/components/captionTask.bs index 37841134a..8ea8e9b4f 100644 --- a/components/captionTask.bs +++ b/components/captionTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/config.brs" -import "pkg:/source/api/baserequest.brs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/api/baserequest.bs" sub init() m.top.observeField("url", "fetchCaption") diff --git a/components/config/ConfigList.bs b/components/config/ConfigList.bs index f2c4f49ce..5c3bd003a 100644 --- a/components/config/ConfigList.bs +++ b/components/config/ConfigList.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" sub init() m.top.itemComponentName = "ConfigItem" diff --git a/components/config/ServerDiscoveryTask.bs b/components/config/ServerDiscoveryTask.bs index f993f3edb..f9dbbaaae 100644 --- a/components/config/ServerDiscoveryTask.bs +++ b/components/config/ServerDiscoveryTask.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/roku_modules/log/LogMixin.bs" ' ' Task used to discover jellyfin servers on the local network diff --git a/components/config/SetServerScreen.bs b/components/config/SetServerScreen.bs index 34c4250a4..4393a17db 100644 --- a/components/config/SetServerScreen.bs +++ b/components/config/SetServerScreen.bs @@ -1,5 +1,5 @@ -import "pkg:/source/roku_modules/log/LogMixin.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/utils/config.bs" sub init() m.log = log.Logger("SetServerScreen") diff --git a/components/data/ChannelData.bs b/components/data/ChannelData.bs index 5151efa93..ff4ec8189 100644 --- a/components/data/ChannelData.bs +++ b/components/data/ChannelData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/CollectionData.bs b/components/data/CollectionData.bs index 6d0c79428..4cce7d183 100644 --- a/components/data/CollectionData.bs +++ b/components/data/CollectionData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/FolderData.bs b/components/data/FolderData.bs index 89eacbf7e..7e6da642e 100644 --- a/components/data/FolderData.bs +++ b/components/data/FolderData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/GetFiltersTask.bs b/components/data/GetFiltersTask.bs index 5159a6da3..05e55b50a 100644 --- a/components/data/GetFiltersTask.bs +++ b/components/data/GetFiltersTask.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/data/HomeData.bs b/components/data/HomeData.bs index 4266cc709..1ae39b880 100644 --- a/components/data/HomeData.bs +++ b/components/data/HomeData.bs @@ -1,6 +1,6 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/api/Image.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/api/Image.bs" sub setData() ' We keep json around just as a reference, diff --git a/components/data/MovieData.bs b/components/data/MovieData.bs index 65b5681ec..cba66f815 100644 --- a/components/data/MovieData.bs +++ b/components/data/MovieData.bs @@ -1,7 +1,7 @@ -import "pkg:/source/api/Image.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/utils/misc.brs" +import "pkg:/source/api/Image.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/utils/misc.bs" sub setFields() json = m.top.json diff --git a/components/data/MusicAlbumSongListData.bs b/components/data/MusicAlbumSongListData.bs index 3578441c8..9583cdb4f 100644 --- a/components/data/MusicAlbumSongListData.bs +++ b/components/data/MusicAlbumSongListData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/MusicArtistData.bs b/components/data/MusicArtistData.bs index 94b09c296..6f36dc9b5 100644 --- a/components/data/MusicArtistData.bs +++ b/components/data/MusicArtistData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/OptionsButton.bs b/components/data/OptionsButton.bs index 1f8366a4d..e103abdf3 100644 --- a/components/data/OptionsButton.bs +++ b/components/data/OptionsButton.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" sub init() end sub diff --git a/components/data/OptionsData.bs b/components/data/OptionsData.bs index a7c65852c..980d34f00 100644 --- a/components/data/OptionsData.bs +++ b/components/data/OptionsData.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" sub init() m.top.value_index = 0 diff --git a/components/data/PersonData.bs b/components/data/PersonData.bs index c4e25fe52..71745b06f 100644 --- a/components/data/PersonData.bs +++ b/components/data/PersonData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/PhotoData.bs b/components/data/PhotoData.bs index 16971e84d..30443f3df 100644 --- a/components/data/PhotoData.bs +++ b/components/data/PhotoData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/SceneManager.bs b/components/data/SceneManager.bs index 51aaaf9de..65b28d29f 100644 --- a/components/data/SceneManager.bs +++ b/components/data/SceneManager.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/roku_modules/log/LogMixin.bs" sub init() m.log = log.Logger("SceneManager") diff --git a/components/data/ScheduleProgramData.bs b/components/data/ScheduleProgramData.bs index 5da1c3932..c27126208 100644 --- a/components/data/ScheduleProgramData.bs +++ b/components/data/ScheduleProgramData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/SeriesData.bs b/components/data/SeriesData.bs index ce660845b..f3671f381 100644 --- a/components/data/SeriesData.bs +++ b/components/data/SeriesData.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/TVEpisode.bs b/components/data/TVEpisode.bs index a296d86ec..6c0542c0c 100644 --- a/components/data/TVEpisode.bs +++ b/components/data/TVEpisode.bs @@ -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 setFields() json = m.top.json diff --git a/components/data/UserData.bs b/components/data/UserData.bs index 446abbf38..e20262e0b 100644 --- a/components/data/UserData.bs +++ b/components/data/UserData.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/config.bs" sub setDataFromJSON() json = m.top.json diff --git a/components/data/VideoData.bs b/components/data/VideoData.bs index 49c6d7526..1a7654035 100644 --- a/components/data/VideoData.bs +++ b/components/data/VideoData.bs @@ -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 setFields() json = m.top.json diff --git a/components/home/Home.bs b/components/home/Home.bs index 00e056f66..934754990 100644 --- a/components/home/Home.bs +++ b/components/home/Home.bs @@ -1,6 +1,6 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/utils/misc.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/utils/misc.bs" sub init() m.top.overhangTitle = "Home" diff --git a/components/home/HomeItem.bs b/components/home/HomeItem.bs index 8fb835290..d6cb01670 100644 --- a/components/home/HomeItem.bs +++ b/components/home/HomeItem.bs @@ -1,8 +1,8 @@ -import "pkg:/source/api/Image.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/utils/misc.brs" -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/api/Image.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/utils/misc.bs" +import "pkg:/source/roku_modules/log/LogMixin.bs" sub init() m.log = log.Logger("HomeItem") diff --git a/components/home/HomeRows.bs b/components/home/HomeRows.bs index 4fce8fff5..987ba8f3d 100644 --- a/components/home/HomeRows.bs +++ b/components/home/HomeRows.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.top.itemComponentName = "HomeItem" diff --git a/components/home/LoadItemsTask.bs b/components/home/LoadItemsTask.bs index 79bb2d387..59902b9af 100644 --- a/components/home/LoadItemsTask.bs +++ b/components/home/LoadItemsTask.bs @@ -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/utils/deviceCapabilities.brs" -import "pkg:/source/api/Image.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/utils/deviceCapabilities.bs" +import "pkg:/source/api/Image.bs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/liveTv/LoadChannelsTask.bs b/components/liveTv/LoadChannelsTask.bs index 482188bdf..7d00651d6 100644 --- a/components/liveTv/LoadChannelsTask.bs +++ b/components/liveTv/LoadChannelsTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" sub init() m.top.functionName = "loadChannels" diff --git a/components/liveTv/LoadProgramDetailsTask.bs b/components/liveTv/LoadProgramDetailsTask.bs index 686dba863..3d7ec56ed 100644 --- a/components/liveTv/LoadProgramDetailsTask.bs +++ b/components/liveTv/LoadProgramDetailsTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" sub init() m.top.functionName = "loadProgramDetails" diff --git a/components/liveTv/LoadSheduleTask.bs b/components/liveTv/LoadSheduleTask.bs index d898f50a7..7c614d951 100644 --- a/components/liveTv/LoadSheduleTask.bs +++ b/components/liveTv/LoadSheduleTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" sub init() m.top.functionName = "loadSchedule" diff --git a/components/liveTv/ProgramDetails.bs b/components/liveTv/ProgramDetails.bs index 3afe92ae3..617959f18 100644 --- a/components/liveTv/ProgramDetails.bs +++ b/components/liveTv/ProgramDetails.bs @@ -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() diff --git a/components/liveTv/RecordProgramTask.bs b/components/liveTv/RecordProgramTask.bs index 81243a5e4..b432bc05b 100644 --- a/components/liveTv/RecordProgramTask.bs +++ b/components/liveTv/RecordProgramTask.bs @@ -1,6 +1,6 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/roku_modules/log/LogMixin.bs" sub init() m.log = log.Logger("RecordProgramTask") diff --git a/components/manager/QueueManager.bs b/components/manager/QueueManager.bs index ca9f30fa2..6e000fe28 100644 --- a/components/manager/QueueManager.bs +++ b/components/manager/QueueManager.bs @@ -1,10 +1,10 @@ -import "pkg:/source/utils/misc.brs" -import "ViewCreator.brs" -import "pkg:/source/api/Items.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/api/Image.brs" -import "pkg:/source/utils/deviceCapabilities.brs" +import "pkg:/source/utils/misc.bs" +import "ViewCreator.bs" +import "pkg:/source/api/Items.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/api/Image.bs" +import "pkg:/source/utils/deviceCapabilities.bs" sub init() m.hold = [] diff --git a/components/mediaPlayers/AudioPlayer.bs b/components/mediaPlayers/AudioPlayer.bs index 4d6fc3d22..db3750082 100644 --- a/components/mediaPlayers/AudioPlayer.bs +++ b/components/mediaPlayers/AudioPlayer.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.playReported = false diff --git a/components/movies/MovieDetails.bs b/components/movies/MovieDetails.bs index 913ccd796..aa47cdb9a 100644 --- a/components/movies/MovieDetails.bs +++ b/components/movies/MovieDetails.bs @@ -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.extrasGrp = m.top.findnode("extrasGrp") diff --git a/components/music/AlbumGrid.bs b/components/music/AlbumGrid.bs index b167c5887..a7d1ef9a6 100644 --- a/components/music/AlbumGrid.bs +++ b/components/music/AlbumGrid.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() getData() diff --git a/components/music/AlbumView.bs b/components/music/AlbumView.bs index e5a0e2ee1..ae648a583 100644 --- a/components/music/AlbumView.bs +++ b/components/music/AlbumView.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.top.optionsAvailable = false diff --git a/components/music/ArtistView.bs b/components/music/ArtistView.bs index 38336ecf2..f3d61e3df 100644 --- a/components/music/ArtistView.bs +++ b/components/music/ArtistView.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.top.optionsAvailable = false diff --git a/components/music/AudioPlayerView.bs b/components/music/AudioPlayerView.bs index 3047c3315..73caa78bb 100644 --- a/components/music/AudioPlayerView.bs +++ b/components/music/AudioPlayerView.bs @@ -1,7 +1,7 @@ -import "pkg:/source/utils/misc.brs" -import "pkg:/source/api/Image.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/utils/misc.bs" +import "pkg:/source/api/Image.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" sub init() m.top.optionsAvailable = false diff --git a/components/music/PlaylistView.bs b/components/music/PlaylistView.bs index a912dcfb9..cc404adf3 100644 --- a/components/music/PlaylistView.bs +++ b/components/music/PlaylistView.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.top.optionsAvailable = false diff --git a/components/music/SongItem.bs b/components/music/SongItem.bs index c9db0bfe0..fef324171 100644 --- a/components/music/SongItem.bs +++ b/components/music/SongItem.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.itemText = m.top.findNode("itemText") diff --git a/components/photos/LoadPhotoTask.bs b/components/photos/LoadPhotoTask.bs index 78302fece..5f45c5481 100644 --- a/components/photos/LoadPhotoTask.bs +++ b/components/photos/LoadPhotoTask.bs @@ -1,6 +1,6 @@ -import "pkg:/source/api/Image.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/api/baserequest.brs" +import "pkg:/source/api/Image.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/api/baserequest.bs" sub init() m.top.functionName = "loadItems" diff --git a/components/photos/PhotoDetails.bs b/components/photos/PhotoDetails.bs index 93f37f44d..d2dbdf321 100644 --- a/components/photos/PhotoDetails.bs +++ b/components/photos/PhotoDetails.bs @@ -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.top.optionsAvailable = true diff --git a/components/quickConnect/QuickConnect.bs b/components/quickConnect/QuickConnect.bs index 36fbdfb24..5c0edefea 100644 --- a/components/quickConnect/QuickConnect.bs +++ b/components/quickConnect/QuickConnect.bs @@ -1,6 +1,6 @@ -import "pkg:/source/api/userauth.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/api/userauth.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" sub init() m.top.functionName = "monitorQuickConnect" diff --git a/components/quickConnect/QuickConnectDialog.bs b/components/quickConnect/QuickConnectDialog.bs index c646b1463..62e657c5e 100644 --- a/components/quickConnect/QuickConnectDialog.bs +++ b/components/quickConnect/QuickConnectDialog.bs @@ -1,6 +1,6 @@ -import "pkg:/source/api/userauth.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" +import "pkg:/source/api/userauth.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" import "pkg:/source/utils/session.bs" sub init() diff --git a/components/search/SearchResults.bs b/components/search/SearchResults.bs index 8427232d0..551dfa517 100644 --- a/components/search/SearchResults.bs +++ b/components/search/SearchResults.bs @@ -1,8 +1,8 @@ -import "pkg:/source/api/Items.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.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/api/Image.bs" +import "pkg:/source/utils/deviceCapabilities.bs" sub init() m.top.optionsAvailable = false diff --git a/components/search/SearchRow.bs b/components/search/SearchRow.bs index ffbe0920d..7be4b494d 100644 --- a/components/search/SearchRow.bs +++ b/components/search/SearchRow.bs @@ -1,8 +1,8 @@ -import "pkg:/source/api/Items.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.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/api/Image.bs" +import "pkg:/source/utils/deviceCapabilities.bs" sub init() m.top.itemComponentName = "ListPoster" diff --git a/components/search/SearchTask.bs b/components/search/SearchTask.bs index 2591b7d4d..935fd43e0 100644 --- a/components/search/SearchTask.bs +++ b/components/search/SearchTask.bs @@ -1,8 +1,8 @@ -import "pkg:/source/api/Items.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.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/api/Image.bs" +import "pkg:/source/utils/deviceCapabilities.bs" sub init() m.top.functionName = "search" diff --git a/components/section/section.bs b/components/section/section.bs index 336ceb649..3a14c4e0e 100644 --- a/components/section/section.bs +++ b/components/section/section.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.showFromBottomAnimation = m.top.findNode("showFromBottomAnimation") diff --git a/components/section/sectionScroller.bs b/components/section/sectionScroller.bs index c8bd1103f..7644049f2 100644 --- a/components/section/sectionScroller.bs +++ b/components/section/sectionScroller.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.previouslyDisplayedSection = 0 diff --git a/components/settings/settings.bs b/components/settings/settings.bs index d4354e065..32213f456 100644 --- a/components/settings/settings.bs +++ b/components/settings/settings.bs @@ -1,6 +1,6 @@ -import "pkg:/source/utils/config.brs" -import "pkg:/source/utils/misc.brs" -import "pkg:/source/roku_modules/log/LogMixin.brs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/utils/misc.bs" +import "pkg:/source/roku_modules/log/LogMixin.bs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/tvshows/TVEpisodeRowWithOptions.bs b/components/tvshows/TVEpisodeRowWithOptions.bs index e580c11ae..d982d82c7 100644 --- a/components/tvshows/TVEpisodeRowWithOptions.bs +++ b/components/tvshows/TVEpisodeRowWithOptions.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.rows = m.top.findNode("tvEpisodeRow") diff --git a/components/tvshows/TVEpisodes.bs b/components/tvshows/TVEpisodes.bs index 8872ffc37..bf92ffe37 100644 --- a/components/tvshows/TVEpisodes.bs +++ b/components/tvshows/TVEpisodes.bs @@ -1,7 +1,7 @@ -import "pkg:/source/api/Image.brs" -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/config.brs" -import "pkg:/source/utils/misc.brs" +import "pkg:/source/api/Image.bs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/config.bs" +import "pkg:/source/utils/misc.bs" sub init() m.top.optionsAvailable = false diff --git a/components/tvshows/TVListDetails.bs b/components/tvshows/TVListDetails.bs index 3b29b3bfd..55eadf366 100644 --- a/components/tvshows/TVListDetails.bs +++ b/components/tvshows/TVListDetails.bs @@ -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.title = m.top.findNode("title") diff --git a/components/tvshows/TVListOptions.bs b/components/tvshows/TVListOptions.bs index 7b146d8e9..5cf169db6 100644 --- a/components/tvshows/TVListOptions.bs +++ b/components/tvshows/TVListOptions.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() diff --git a/components/tvshows/TVShowDescription.bs b/components/tvshows/TVShowDescription.bs index 9e0b61647..7c7b49e3c 100644 --- a/components/tvshows/TVShowDescription.bs +++ b/components/tvshows/TVShowDescription.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() buttons = m.top.findNode("buttons") diff --git a/components/tvshows/TVShowDetails.bs b/components/tvshows/TVShowDetails.bs index e5e1ead44..22ad6725c 100644 --- a/components/tvshows/TVShowDetails.bs +++ b/components/tvshows/TVShowDetails.bs @@ -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.top.optionsAvailable = false diff --git a/components/video/VideoPlayerView.bs b/components/video/VideoPlayerView.bs index b4f479484..1e95c4bf6 100644 --- a/components/video/VideoPlayerView.bs +++ b/components/video/VideoPlayerView.bs @@ -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() ' Hide the overhang on init to prevent showing 2 clocks diff --git a/source/api/sdk.bs b/source/api/sdk.bs index 51bca7834..0d174c37e 100644 --- a/source/api/sdk.bs +++ b/source/api/sdk.bs @@ -1,4 +1,4 @@ -import "pkg:/source/api/baserequest.brs" +import "pkg:/source/api/baserequest.bs" namespace api namespace albums diff --git a/source/utils/deviceCapabilities.bs b/source/utils/deviceCapabilities.bs index c8f59ce4a..c68eb52fe 100644 --- a/source/utils/deviceCapabilities.bs +++ b/source/utils/deviceCapabilities.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/misc.brs" -import "pkg:/source/api/baserequest.brs" +import "pkg:/source/utils/misc.bs" +import "pkg:/source/api/baserequest.bs" 'Device Capabilities for Roku. 'This will likely need further tweaking diff --git a/source/utils/session.bs b/source/utils/session.bs index 01c5712da..d54899c0e 100644 --- a/source/utils/session.bs +++ b/source/utils/session.bs @@ -1,6 +1,6 @@ ' these are needed for ServerInfo() inside session.server.Populate() -import "pkg:/source/api/userauth.brs" -import "pkg:/source/api/baserequest.brs" +import "pkg:/source/api/userauth.bs" +import "pkg:/source/api/baserequest.bs" namespace session ' Initialize the global session array From 787e7a6fee0f710f6b372eafe8fa684bef31ae2b Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 3 Oct 2023 12:15:11 -0400 Subject: [PATCH 3/6] stop using allowBrighterScriptInBrightScript brighterscript option --- bsconfig-prod.json | 65 ++++++++++++++++------------------- bsconfig-tests.json | 84 ++++++++++++++++++++------------------------- bsconfig.json | 45 ++++++++++-------------- 3 files changed, 85 insertions(+), 109 deletions(-) diff --git a/bsconfig-prod.json b/bsconfig-prod.json index 60beb9339..7720b6167 100644 --- a/bsconfig-prod.json +++ b/bsconfig-prod.json @@ -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 -} \ No newline at end of file + "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 +} diff --git a/bsconfig-tests.json b/bsconfig-tests.json index 21247d4a7..c621c68a7 100644 --- a/bsconfig-tests.json +++ b/bsconfig-tests.json @@ -1,49 +1,39 @@ { - "files": [ - { - "src": "test-app/**/*" - }, - { - "src": "source/**/!(Main.brs)", - "dest": "source" - }, - { - "src": "components/**/*", - "dest": "components" - }, - { - "src": "locale/**/*", - "dest": "locale" - }, - { - "src": "settings/**/*", - "dest": "settings" - } - ], - "diagnosticFilters": [ - "node_modules/**/*", - "**/roku_modules/**/*" - ], - "autoImportComponentScript": true, - "allowBrighterScriptInBrightScript": true, - "createPackage": false, - "stagingFolderPath": "build", - "plugins": [ - "rooibos-roku" - ], - "rooibos": { - "isRecordingCodeCoverage": false, - "testsFilePattern": null, - "tags": [ - "!integration", - "!deprecated", - "!fixme" - ], - "showOnlyFailures": true, - "catchCrashes": true, - "lineWidth": 70, - "failFast": false, - "sendHomeOnFinish": false + "files": [ + { + "src": "test-app/**/*" }, - "sourceMap": true -} \ No newline at end of file + { + "src": "source/**/!(Main.brs)", + "dest": "source" + }, + { + "src": "components/**/*", + "dest": "components" + }, + { + "src": "locale/**/*", + "dest": "locale" + }, + { + "src": "settings/**/*", + "dest": "settings" + } + ], + "diagnosticFilters": ["node_modules/**/*", "**/roku_modules/**/*"], + "autoImportComponentScript": true, + "createPackage": false, + "stagingFolderPath": "build", + "plugins": ["rooibos-roku"], + "rooibos": { + "isRecordingCodeCoverage": false, + "testsFilePattern": null, + "tags": ["!integration", "!deprecated", "!fixme"], + "showOnlyFailures": true, + "catchCrashes": true, + "lineWidth": 70, + "failFast": false, + "sendHomeOnFinish": false + }, + "sourceMap": true +} diff --git a/bsconfig.json b/bsconfig.json index 907df1a79..c92bda3ae 100644 --- a/bsconfig.json +++ b/bsconfig.json @@ -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 -} \ No newline at end of file + "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 +} From 05ad3b6bedaa04d3af9f00d2adc8f3bc4526489a Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 3 Oct 2023 12:27:07 -0400 Subject: [PATCH 4/6] use .brs when importing roku-log --- components/ItemGrid/GridItem.bs | 2 +- components/ItemGrid/ItemGrid.bs | 2 +- components/ItemGrid/ItemGridOptions.bs | 2 +- components/ItemGrid/LoadItemsTask2.bs | 2 +- components/JFScreen.bs | 2 +- components/config/ServerDiscoveryTask.bs | 2 +- components/config/SetServerScreen.bs | 2 +- components/data/SceneManager.bs | 2 +- components/home/HomeItem.bs | 2 +- components/liveTv/RecordProgramTask.bs | 2 +- components/settings/settings.bs | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/ItemGrid/GridItem.bs b/components/ItemGrid/GridItem.bs index 3e95e67b8..0015a8ea5 100644 --- a/components/ItemGrid/GridItem.bs +++ b/components/ItemGrid/GridItem.bs @@ -1,6 +1,6 @@ import "pkg:/source/utils/config.bs" import "pkg:/source/utils/misc.bs" -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() m.log = log.Logger("GridItem") diff --git a/components/ItemGrid/ItemGrid.bs b/components/ItemGrid/ItemGrid.bs index 1fddf253f..f363037c5 100644 --- a/components/ItemGrid/ItemGrid.bs +++ b/components/ItemGrid/ItemGrid.bs @@ -2,7 +2,7 @@ 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.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() m.log = log.Logger("ItemGrid") diff --git a/components/ItemGrid/ItemGridOptions.bs b/components/ItemGrid/ItemGridOptions.bs index df24e4a77..7d43137da 100644 --- a/components/ItemGrid/ItemGridOptions.bs +++ b/components/ItemGrid/ItemGridOptions.bs @@ -1,5 +1,5 @@ import "pkg:/source/utils/misc.bs" -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() m.log = log.Logger("ItemGridOptions") diff --git a/components/ItemGrid/LoadItemsTask2.bs b/components/ItemGrid/LoadItemsTask2.bs index 6c51ef631..f4688ff10 100644 --- a/components/ItemGrid/LoadItemsTask2.bs +++ b/components/ItemGrid/LoadItemsTask2.bs @@ -4,7 +4,7 @@ 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.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" import "pkg:/source/api/sdk.bs" sub init() diff --git a/components/JFScreen.bs b/components/JFScreen.bs index e493e07b3..449824bad 100644 --- a/components/JFScreen.bs +++ b/components/JFScreen.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() ' initialize the log manager. second param sets log output: diff --git a/components/config/ServerDiscoveryTask.bs b/components/config/ServerDiscoveryTask.bs index f9dbbaaae..f993f3edb 100644 --- a/components/config/ServerDiscoveryTask.bs +++ b/components/config/ServerDiscoveryTask.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" ' ' Task used to discover jellyfin servers on the local network diff --git a/components/config/SetServerScreen.bs b/components/config/SetServerScreen.bs index 4393a17db..c58507252 100644 --- a/components/config/SetServerScreen.bs +++ b/components/config/SetServerScreen.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" import "pkg:/source/utils/config.bs" sub init() diff --git a/components/data/SceneManager.bs b/components/data/SceneManager.bs index 65b28d29f..51aaaf9de 100644 --- a/components/data/SceneManager.bs +++ b/components/data/SceneManager.bs @@ -1,4 +1,4 @@ -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() m.log = log.Logger("SceneManager") diff --git a/components/home/HomeItem.bs b/components/home/HomeItem.bs index d6cb01670..89bd94af9 100644 --- a/components/home/HomeItem.bs +++ b/components/home/HomeItem.bs @@ -2,7 +2,7 @@ import "pkg:/source/api/Image.bs" import "pkg:/source/api/baserequest.bs" import "pkg:/source/utils/config.bs" import "pkg:/source/utils/misc.bs" -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() m.log = log.Logger("HomeItem") diff --git a/components/liveTv/RecordProgramTask.bs b/components/liveTv/RecordProgramTask.bs index b432bc05b..58ebaabc5 100644 --- a/components/liveTv/RecordProgramTask.bs +++ b/components/liveTv/RecordProgramTask.bs @@ -1,6 +1,6 @@ import "pkg:/source/api/baserequest.bs" import "pkg:/source/utils/config.bs" -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" sub init() m.log = log.Logger("RecordProgramTask") diff --git a/components/settings/settings.bs b/components/settings/settings.bs index 32213f456..d10ca16a8 100644 --- a/components/settings/settings.bs +++ b/components/settings/settings.bs @@ -1,6 +1,6 @@ import "pkg:/source/utils/config.bs" import "pkg:/source/utils/misc.bs" -import "pkg:/source/roku_modules/log/LogMixin.bs" +import "pkg:/source/roku_modules/log/LogMixin.brs" import "pkg:/source/api/sdk.bs" sub init() From 08f95db9e6a3f2475a22b439b46d893d545b69d5 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 3 Oct 2023 12:36:06 -0400 Subject: [PATCH 5/6] use .bs for main --- source/{Main.brs => Main.bs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename source/{Main.brs => Main.bs} (100%) diff --git a/source/Main.brs b/source/Main.bs similarity index 100% rename from source/Main.brs rename to source/Main.bs From 92101d85799087ce1aaaf8871411a0ef44df73ff Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Fri, 10 Nov 2023 19:42:33 -0500 Subject: [PATCH 6/6] update recently merged code to use .bs --- components/Clock.bs | 2 +- components/settings/settings.bs | 2 +- components/tasks/PostTask.bs | 4 ++-- components/video/PauseMenu.bs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/Clock.bs b/components/Clock.bs index 1d7c1a823..2137a11cb 100644 --- a/components/Clock.bs +++ b/components/Clock.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() diff --git a/components/settings/settings.bs b/components/settings/settings.bs index 9432abde6..dec4b043c 100644 --- a/components/settings/settings.bs +++ b/components/settings/settings.bs @@ -2,7 +2,7 @@ import "pkg:/source/utils/config.bs" import "pkg:/source/utils/misc.bs" import "pkg:/source/roku_modules/log/LogMixin.brs" ' post device profile -import "pkg:/source/utils/deviceCapabilities.brs" +import "pkg:/source/utils/deviceCapabilities.bs" sub init() m.log = log.Logger("Settings") diff --git a/components/tasks/PostTask.bs b/components/tasks/PostTask.bs index d09679666..ecceb83a0 100644 --- a/components/tasks/PostTask.bs +++ b/components/tasks/PostTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/api/baserequest.brs" -import "pkg:/source/utils/misc.brs" +import "pkg:/source/api/baserequest.bs" +import "pkg:/source/utils/misc.bs" sub init() m.top.functionName = "postItems" diff --git a/components/video/PauseMenu.bs b/components/video/PauseMenu.bs index 40418ec4f..e7b88ecbf 100644 --- a/components/video/PauseMenu.bs +++ b/components/video/PauseMenu.bs @@ -1,4 +1,4 @@ -import "pkg:/source/utils/misc.brs" +import "pkg:/source/utils/misc.bs" sub init() m.videoControls = m.top.findNode("videoControls")