Rename version to app_version

This commit is contained in:
Brahim Hadriche committed 2023-11-19 18:30:29 -05:00
1 parent 94a017a878
commit 61327401b0
5 files changed
+8 -5

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ 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.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.17.0] - 2023-11-17
### Added
@@ -1,10 +1,9 @@
import "pkg:/source/asyncTask/asyncTask.bs"
function Init()
' TODO:P2 rename "Playlet Version" to "Playlet App Version"
' TODO:P2 rename Add tooltip to each field with description of what it means
m.displayNames = {
"version": "Playlet Version",
"app_version": "Playlet App Version",
"lib_version": "Playlet Library Version",
"lib_version_latest": "Playlet Library Latest Version",
"lib_url": "Playlet Library URL",
@@ -13,6 +13,8 @@ import "pkg:/source/utils/Types.bs"
' TODO:P1 add the option to remove a row if it does not have any content
' E.g. NBC News does not return any related chnanels
' The "Continue Watching" feed source might return nothing. In this case,
' it should be removed.
function Init()
m.pendingLoadTasks = {}
end function
@@ -33,7 +33,7 @@ class ApplicationInfo
if m.appInfo = invalid
m.appInfo = {
id: m.roAppInfo.GetID(),
version: m.roAppInfo.GetVersion(),
app_version: m.roAppInfo.GetVersion(),
git_commit_hash: m.roAppInfo.GetValue("git_commit_sha"),
lib_version: m.GetLibVersion(),
lib_git_commit_hash: m.GetLibGitCommitHash()
@@ -4,7 +4,7 @@
export let visibility: boolean;
const displayNames = {
version: "Playlet Version",
app_version: "Playlet App Version",
lib_version: "Playlet Library Version",
lib_version_latest: "Playlet Library Latest Version",
lib_url: "Playlet Library URL",
@@ -16,7 +16,7 @@
function transformValue(key, value) {
switch (key) {
case "version":
case "app_version":
case "lib_version":
case "lib_version_latest":
return `<a class="link" href="https://github.com/iBicha/playlet/releases/tag/v${value}" target="_blank" rel="noopener noreferrer">${value}</a>`;