Merge v0.6.0 and v0.6.1 #29
6 changed files with 16 additions and 30 deletions
|
@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||
|
||||
# [0.06] - UNRELEASED
|
||||
### Changed
|
||||
- The subtitle in results and startlists is now the route name instead of the category name
|
||||
|
||||
### Added
|
||||
- Dark mode
|
||||
|
|
|
@ -21,6 +21,8 @@ Item {
|
|||
|
||||
onTextChanged: {
|
||||
_resetScroll()
|
||||
if(control.syncWithLabel)
|
||||
control.syncWithLabel._resetScroll()
|
||||
}
|
||||
|
||||
function startScroll(triggerSyncedLabel=true) {
|
||||
|
|
|
@ -76,15 +76,12 @@ DataListView {
|
|||
//% "(Registration)"
|
||||
var addition = qsTrId("#registrationHeadline")
|
||||
|
||||
if(titleString !== undefined){
|
||||
if(titleString)
|
||||
return addition + " " + titleString
|
||||
}
|
||||
else {
|
||||
else
|
||||
return ""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function getText(athleteData){
|
||||
|
||||
var fedName // federation name
|
||||
|
|
|
@ -124,27 +124,17 @@ DataListView {
|
|||
}
|
||||
|
||||
function getSubtitle() {
|
||||
var titleString
|
||||
var titleString = control.widgetData["route_name"]
|
||||
|
||||
for(var i = 0; i < control.widgetData["categorys"].length; i ++ ){
|
||||
//console.log("checking " + i + ": cat: " + parseInt(control.widgetData["categorys"][i]["GrpId"]) + " searched cat: " + params.cat)
|
||||
if(parseInt(control.widgetData["categorys"][i]["GrpId"]) === parseInt(params.cat)){
|
||||
titleString = control.widgetData["categorys"][i]["name"]
|
||||
}
|
||||
}
|
||||
//% "(Results)"
|
||||
var addition = qsTrId("#resultsHeadline")
|
||||
|
||||
if(titleString !== undefined){
|
||||
if(titleString)
|
||||
return addition + " " + titleString
|
||||
}
|
||||
else {
|
||||
else
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function changeRoute(route) {
|
||||
updateData({route:route}, true)
|
||||
}
|
||||
|
|
|
@ -59,19 +59,15 @@ DataListView {
|
|||
}
|
||||
|
||||
function getSubtitle() {
|
||||
var titleString
|
||||
var titleString = control.widgetData["route_name"]
|
||||
|
||||
for(var i = 0; i < control.widgetData["categorys"].length; i ++ ){
|
||||
//console.log("checking " + i + ": cat: " + parseInt(control.widgetData["categorys"][i]["GrpId"]) + " searched cat: " + params.cat)
|
||||
if(parseInt(control.widgetData["categorys"][i]["GrpId"]) === parseInt(params.cat)){
|
||||
titleString = control.widgetData["categorys"][i]["name"]
|
||||
}
|
||||
}
|
||||
|
||||
//% "(Startlist)"https://l.bluerock.dev/?comp=11601&type=starters
|
||||
//% "(Startlist)"
|
||||
var addition = qsTrId("#startlistHeadline")
|
||||
return addition + " " + titleString
|
||||
|
||||
if(titleString)
|
||||
return addition + " " + titleString
|
||||
else
|
||||
return ""
|
||||
}
|
||||
|
||||
function changeRoute(route) {
|
||||
|
@ -134,7 +130,7 @@ DataListView {
|
|||
property int thisIndex: index
|
||||
property var thisData: widgetData[ "participants" ][index]
|
||||
|
||||
width: parent.width
|
||||
width: control.width
|
||||
height: 50
|
||||
|
||||
opacity: 0
|
||||
|
|
|
@ -198,7 +198,7 @@ Window {
|
|||
//openWidget({comp: 11651, cat: 26})
|
||||
//openWidget({person: 6623})
|
||||
//console.log(JSON.stringify(serverConn.getParamsFromUrl("")))
|
||||
//openWidgetFromUrl("https://l.bluerock.dev/?comp=11601&type=starters")
|
||||
//openWidgetFromUrl("https://l.bluerock.dev/?comp=11501&cat=GER_M")
|
||||
}
|
||||
|
||||
FontLoader {
|
||||
|
|
Loading…
Reference in a new issue