1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-03 19:13:00 +02:00

Compare commits

...

66 commits

Author SHA1 Message Date
aclist
c414eba41c
Merge 0562d8230d into 540d0ad7e4 2025-01-24 07:40:10 +00:00
aclist
0562d8230d
Merge pull request #195 from aclist/release/5.6.2
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 10s
chore: prepare release
2025-01-24 16:40:07 +09:00
aclist
759327e932 chore: prepare release 2025-01-23 12:02:27 +09:00
aclist
540d0ad7e4
Update bug_report.yml
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 15s
2025-01-09 23:32:28 +09:00
aclist
47bea45111
Update feature.yml 2025-01-09 23:32:27 +09:00
aclist
d03346b56a
Update trouble.yml 2025-01-09 23:32:26 +09:00
aclist
54e0762882
Update feature.yml 2025-01-09 23:31:21 +09:00
aclist
0834a86d33
Update trouble.yml 2025-01-09 23:30:54 +09:00
aclist
c6a8841614
Update trouble.yml 2025-01-09 23:30:37 +09:00
aclist
df92acb7dc
Update bug_report.yml 2025-01-09 23:30:24 +09:00
aclist
a333571f94
Update bug_report.yml 2025-01-09 23:28:46 +09:00
aclist
05f88b6019
Update trouble.yml 2025-01-09 23:27:08 +09:00
aclist
1f31c43fe4
Update trouble.yml 2025-01-09 20:39:35 +09:00
aclist
0763416903
Update feature.yml 2025-01-09 20:39:25 +09:00
aclist
3b384c5a4d
Update bug_report.yml 2025-01-09 20:39:17 +09:00
aclist
afffc90abc
Update trouble.yml
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 23s
2025-01-07 19:55:31 +09:00
aclist
70db7b45b3
Update trouble.yml 2025-01-07 19:54:19 +09:00
aclist
aac8558079
Update trouble.yml 2025-01-07 19:53:15 +09:00
aclist
ac8ff2febf
Update trouble.yml 2025-01-07 19:52:29 +09:00
aclist
6369d895fd
Update feature.yml 2025-01-07 19:51:58 +09:00
aclist
7413f7c029
Update bug_report.yml 2025-01-07 19:51:46 +09:00
aclist
2c5da88e06
Update bug_report.yml
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 25s
2025-01-06 20:28:34 +09:00
aclist
3cb6175436
Update feature.yml 2025-01-06 20:28:23 +09:00
aclist
3739f19ab2
Update trouble.yml 2025-01-06 20:28:12 +09:00
aclist
2da4d001d6
Update trouble.yml 2025-01-06 20:27:30 +09:00
aclist
5d61a1f513
Update trouble.yml 2025-01-06 20:26:29 +09:00
aclist
56c80d187b
Update trouble.yml 2025-01-06 20:26:20 +09:00
aclist
e08f66cdcb
Update trouble.yml 2025-01-06 20:25:22 +09:00
aclist
48fee301bb
Update trouble.yml 2025-01-06 20:24:47 +09:00
aclist
20511f5661
Update trouble.yml 2025-01-06 20:24:14 +09:00
aclist
d2e8333ba9
Update trouble.yml 2025-01-06 20:21:10 +09:00
aclist
5d37039064
Update trouble.yml 2025-01-06 20:20:57 +09:00
aclist
ce44cdbc54
Update trouble.yml 2025-01-06 20:20:36 +09:00
aclist
5b2738420e
Create trouble.yml 2025-01-06 20:19:41 +09:00
aclist
1e29288e2a
Update feature.yml 2025-01-06 20:10:08 +09:00
aclist
745cc06091
Update feature.yml 2025-01-06 20:09:08 +09:00
aclist
0311cc8a95
Create feature.yml 2025-01-06 20:08:29 +09:00
aclist
7c3521cf97
Delete .github/ISSUE_TEMPLATE/feature.md 2025-01-06 20:08:16 +09:00
aclist
bb0eefadd2
Delete .github/ISSUE_TEMPLATE/test.yml 2025-01-06 20:03:41 +09:00
aclist
7eb5a4fac5
Update bug_report.yml 2025-01-06 20:02:52 +09:00
aclist
ebce329c3d
Delete .github/ISSUE_TEMPLATE/bug_report.md 2025-01-06 20:02:38 +09:00
aclist
23464d3b51
Update bug_report.yml 2025-01-06 20:01:30 +09:00
aclist
602a7b8edc
Update bug_report.yml 2025-01-06 19:59:20 +09:00
aclist
59c58a1df5
Update bug_report.yml 2025-01-06 19:57:56 +09:00
aclist
830318d98e
Update bug_report.yml 2025-01-06 19:57:00 +09:00
aclist
271c3e6197
Update bug_report.yml 2025-01-06 19:56:39 +09:00
aclist
1ab9634069
Update bug_report.yml 2025-01-06 19:54:29 +09:00
aclist
8666b0055a
Update bug_report.yml 2025-01-06 19:53:52 +09:00
aclist
406554e011
Create bug_report.yml 2025-01-06 19:50:39 +09:00
aclist
5334d07f7f
Create test.yml 2025-01-06 19:41:34 +09:00
aclist
6cab96d1f8
Create config.yml 2025-01-06 19:39:18 +09:00
aclist
bc94d989d4
Delete .github/feature.md 2025-01-06 19:37:57 +09:00
aclist
e4fff5f242
Create feature.md 2025-01-06 19:37:38 +09:00
aclist
53f2fe922a
Create feature.md 2025-01-06 19:37:00 +09:00
aclist
800f68a1b7
Update bug_report.md 2025-01-06 19:32:55 +09:00
aclist
c6c377e8b9
Update bug_report.md 2025-01-06 19:30:16 +09:00
aclist
7a68d7e097
Update issue templates 2025-01-06 19:27:44 +09:00
aclist
a8f51280e8
Update mirror.yml
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 26s
2024-12-25 14:19:04 +09:00
aclist
c19346529b
Update mirror.yml 2024-12-25 14:12:08 +09:00
aclist
85451f765b
Update mirror.yml 2024-12-25 14:09:54 +09:00
aclist
5a144f7815
Merge pull request #179 from jiriks74/add_mirror_action
feat(ci): Add workflow for pushing to Codeberg
2024-12-25 12:42:58 +09:00
2370e81403
feat(ci): Add workflow for pushing to Codeberg 2024-12-17 17:24:32 +01:00
aclist
bae6a57e1e
Merge pull request #164 from aclist/dzgui
5.5.0 backports
2024-11-11 09:35:17 +09:00
aclist
c2c7b37b90
Merge pull request #151 from aclist/release/5.3.0-backports
Release/5.3.0 backports
2024-09-09 17:16:31 +09:00
aclist
8e6cf7e792
Merge pull request #126 from aclist/dzgui
backports
2024-06-23 12:51:24 +09:00
aclist
98868073a5
Merge pull request #124 from aclist/dzgui
backports
2024-06-23 12:00:35 +09:00
8 changed files with 196 additions and 3 deletions

53
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View file

@ -0,0 +1,53 @@
name: Bug report
description: Submit bugs that affect functionality here
title: "[BUG] Your title here"
labels: ["bug"]
assignees:
- aclist
body:
- type: checkboxes
id: kb
attributes:
label: Did you check if this issue already exists?
options:
- label: I have checked the [Knowledge Base](https://aclist.github.io/dzgui/kb.html) and searched through [past issues](https://github.com/aclist/dztui/issues?q=is%3Aissue+is%3Aclosed) and did not find my issue there.
required: true
- type: dropdown
id: device
attributes:
label: Device type
options:
- Desktop PC
- Steam Deck
default: 0
validations:
required: true
- type: input
id: version
attributes:
label: DZGUI version
validations:
required: true
placeholder: "5.6.0"
- type: input
id: distro
attributes:
label: Linux distribution
validations:
required: true
placeholder: "Arch Linux"
- type: textarea
id: what-happened
attributes:
label: Describe the bug
description: What did you expect to happen?
placeholder: "E.g., When doing X, Y occurred. Include as much detail as possible."
validations:
required: true
- type: textarea
id: logs
attributes:
label: Additional log output
description: Attach the file `$HOME/.local/state/dzgui/DZGUI_DEBUG.log` by clicking this area to highlight it and then dragging the file in.
validations:
required: false

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1 @@
blank_issues_enabled: false

47
.github/ISSUE_TEMPLATE/feature.yml vendored Normal file
View file

@ -0,0 +1,47 @@
name: Feature suggestion
description: Submit requests for new features here
title: "[FEAT] Your title here"
labels: ["enhancement"]
assignees:
- aclist
body:
- type: dropdown
id: device
attributes:
label: Device type
options:
- Desktop PC
- Steam Deck
default: 0
validations:
required: true
- type: input
id: version
attributes:
label: DZGUI version
validations:
required: true
placeholder: "5.6.0"
- type: input
id: distro
attributes:
label: Linux distribution
validations:
required: true
placeholder: "Arch Linux"
- type: textarea
id: what-happened
attributes:
label: Describe the feature
description: A clear and detailed description
placeholder: "E.g., Add a dialog to the Options menu that automatically lets the user do Y"
validations:
required: true
- type: textarea
id: why
attributes:
label: Describe the benefit
description: How will this feature benefit large numbers of users?
placeholder: "E.g., Currently, users have to manually do X to achieve Y. Implementing this feature would achieve A, B, and C."
validations:
required: true

46
.github/ISSUE_TEMPLATE/trouble.yml vendored Normal file
View file

@ -0,0 +1,46 @@
name: Troubleshooting
description: Submit user error/troubleshooting questions here
title: "[HELP] Your title here"
labels: ["troubleshooting"]
assignees:
- aclist
body:
- type: dropdown
id: device
attributes:
label: Device type
options:
- Desktop PC
- Steam Deck
default: 0
validations:
required: true
- type: input
id: version
attributes:
label: DZGUI version
validations:
required: true
placeholder: "5.6.0"
- type: input
id: distro
attributes:
label: Linux distribution
validations:
required: true
placeholder: "Arch Linux"
- type: textarea
id: what-happened
attributes:
label: Describe the issue
description: A detailed description. What did you expect to happen?
placeholder: "Include as much detail as possible and state the steps leading up to the problem. E.g., First I do this, then I do this, then this happens."
validations:
required: true
- type: textarea
id: logs
attributes:
label: Additional log output
description: Attach the file `$HOME/.local/state/dzgui/DZGUI_DEBUG.log` by clicking this area to highlight it and then dragging the file in.
validations:
required: false

View file

@ -1,5 +1,13 @@
# Changelog
## [5.6.2] 2024-01-22
### Fixed
- Resolve regression introduced with IP resolution feature in 5.6.0 (restores functionality of right-click action: Add to My Servers)
## [5.6.1] 2024-01-10
### Fixed
- Add fallback support for jq 1.6
## [5.6.0] 2024-01-06
### Added
- Application header bar and controls

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o pipefail
version=5.6.1
version=5.6.2
#CONSTANTS
aid=221100
@ -587,10 +587,10 @@ fetch_helpers_by_sum(){
[[ -f "$config_file" ]] && source "$config_file"
declare -A sums
sums=(
["ui.py"]="d3ad9153d8599bea0eede9fd3121ee8e"
["ui.py"]="5a876efacf208d12b5fe761996425412"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="6a1c7ce585d9b76e2e75dba9d4295f8d"
["funcs"]="417bd5eaffbefc905a843985c691dc64"
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
)
local author="aclist"

View file

@ -130,6 +130,7 @@ declare -A funcs=(
["Remove from my servers"]="update_favs_from_table"
["Remove from history"]="remove_from_history"
["Force update local mods"]="force_update"
["Resolve IP"]="resolve_ip"
["Handshake"]="final_handshake"
["get_player_count"]="get_player_count"
["lan_scan"]="lan_scan"
@ -161,6 +162,33 @@ find_stale_mods(){
printf ""
return 99
}
resolve_ip(){
shift
local res
local record="$1"
local ip=$(<<< "$record" awk -F: '{print $1}')
local qport=$(<<< "$record" awk -F: '{print $3}')
res=$(a2s $ip $qport info)
if [[ ! $? -eq 0 ]]; then
printf "Server timed out \n"
return 1
fi
local gport=$(<<< "$res" jq -r '.[].gameport')
if [[ -z $gport ]]; then
printf "Failed to resolve server metadata\n"
return 1
fi
# incoming input can only be 'remove' or 'add'
# record is in favs => implies deletion
# record not in favs => implies addition
resolved_record="$ip:$gport:$qport"
if [[ ${ip_list[*]} =~ $resolved_record ]]; then
remove_from_favs "$resolved_record"
else
add_to_favs "$resolved_record"
fi
}
get_player_count(){
shift
local res

View file

@ -1814,10 +1814,16 @@ class TreeView(Gtk.TreeView):
def format_metadata(row_sel):
# this function is recycled for the add by ip/id methods +
# the right-click context menu (add/remove servers)
# in the latter case, there is no metadata to update
# see grid.update_statusbar(), so the returned row is None
row = None
for i in RowType:
if i.dict["label"] == row_sel:
row = i
prefix = i.dict["tooltip"]
break
vals = {
"branch": config_vals[0],
"debug": config_vals[1],
@ -1827,6 +1833,8 @@ def format_metadata(row_sel):
"preferred_client": config_vals[5],
"fullscreen": config_vals[6]
}
if row is None:
return None
try:
alt = row.dict["alt"]
default = row.dict["default"]
@ -2396,6 +2404,8 @@ class Grid(Gtk.Grid):
return True
def update_statusbar(self, string):
if string is None:
return
meta = self.bar.get_context_id("Statusbar")
self.bar.push(meta, string)