From 900881e649379f0d4504b9b0dfc59b2d20eaa7e9 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 31 Mar 2024 21:40:03 -0400 Subject: [PATCH] remove annoucement - bug is fixed --- CHANGELOG.md | 6 ++++ playlet-lib/src/components/MainScene.bs | 36 ------------------- .../src/components/MainScene.transpiled.brs | 32 ----------------- 3 files changed, 6 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40591d5f..053129c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Removed announcement + ## [0.22.2] - 2024-03-31 ### Changed diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index 9c9ceef0..c49731db 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -2,7 +2,6 @@ import "pkg:/components/EcpArgs.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs" import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/source/utils/LoadingScreen.bs" -import "pkg:/source/utils/Locale.bs" function Init() m.scene = m.top.getScene() @@ -19,7 +18,6 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() - ShowAnnouncement() end function function StartWebServer() @@ -32,37 +30,3 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer@.StartServer() end function - -function ShowAnnouncement() - title = "Announcement" - - message = [ - "Invidious was experiencing an outage, and a fix has been deployed.", - "If you are experiencing issues playing videos:", - ] - - bulletText = [ - "For custom Invidious instances, please update to the latest version.", - "For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.03.31 or newer." - ] - - bottomMessage = [ - "If you don't know what instance you're using, follow the instructions from step 2." - "We apologize for the inconvenience." - ] - - buttons = [Tr(Locale.Buttons.OK)] - - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.bulletText = bulletText - dialog.bulletType = "numbered" - dialog.bottomMessage = bottomMessage - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - - m.top.getScene().dialog = dialog -end function diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs index 734955a5..3cf9c0f9 100644 --- a/playlet-lib/src/components/MainScene.transpiled.brs +++ b/playlet-lib/src/components/MainScene.transpiled.brs @@ -2,7 +2,6 @@ 'import "pkg:/components/parts/AutoBind/AutoBind.part.bs" 'import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" 'import "pkg:/source/utils/LoadingScreen.bs" -'import "pkg:/source/utils/Locale.bs" function Init() InitializeBindings() ' auto-generated! @@ -20,7 +19,6 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() - ShowAnnouncement() end function function StartWebServer() @@ -31,34 +29,4 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer.callfunc("StartServer", invalid) end function - -function ShowAnnouncement() - title = "Announcement" - message = [ - "Invidious was experiencing an outage, and a fix has been deployed." - "If you are experiencing issues playing videos:" - ] - bulletText = [ - "For custom Invidious instances, please update to the latest version." - "For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.03.31 or newer." - ] - bottomMessage = [ - "If you don't know what instance you're using, follow the instructions from step 2." - "We apologize for the inconvenience." - ] - buttons = [ - Tr("OK") - ] - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.bulletText = bulletText - dialog.bulletType = "numbered" - dialog.bottomMessage = bottomMessage - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - m.top.getScene().dialog = dialog -end function '//# sourceMappingURL=./MainScene.brs.map \ No newline at end of file