feat: Remove old demo scripts
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 56s
Build Docker / BuildImage (push) Successful in 1m2s

This commit is contained in:
2025-10-30 21:34:35 +11:00
parent c2803e372a
commit 323ace5775
4 changed files with 9 additions and 21 deletions

Binary file not shown.

View File

@@ -177,11 +177,6 @@ def tools():
print(f"Error getting tools data: {e}") print(f"Error getting tools data: {e}")
return json_response(request, "500 Internal Server Error", HTTP_SERVER_ERROR) return json_response(request, "500 Internal Server Error", HTTP_SERVER_ERROR)
# Remove demo and move demo_url to demo
for tool in tools:
if "demo_url" in tool:
tool["demo"] = tool.pop("demo_url")
return json_response(request, {"tools": tools}, HTTP_OK) return json_response(request, {"tools": tools}, HTTP_OK)
@app.route("/playing") @app.route("/playing")

View File

@@ -34,56 +34,49 @@
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://zellij.dev/", "url": "https://zellij.dev/",
"description": "A terminal workspace and multiplexer", "description": "A terminal workspace and multiplexer",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/10.js\" id=\"asciicast-10\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/10"
"demo_url": "https://asciinema.c.woodburn.au/a/10"
}, },
{ {
"name": "Fx", "name": "Fx",
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://fx.wtf/", "url": "https://fx.wtf/",
"description": "A command-line JSON viewer and processor", "description": "A command-line JSON viewer and processor",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/4.js\" id=\"asciicast-4\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/4"
"demo_url": "https://asciinema.c.woodburn.au/a/4"
}, },
{ {
"name": "Zoxide", "name": "Zoxide",
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://github.com/ajeetdsouza/zoxide", "url": "https://github.com/ajeetdsouza/zoxide",
"description": "cd but with fuzzy matching and other cool features", "description": "cd but with fuzzy matching and other cool features",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/5.js\" id=\"asciicast-5\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/5"
"demo_url": "https://asciinema.c.woodburn.au/a/5"
}, },
{ {
"name": "Atuin", "name": "Atuin",
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://atuin.sh/", "url": "https://atuin.sh/",
"description": "A next-generation shell history manager", "description": "A next-generation shell history manager",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/6.js\" id=\"asciicast-6\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/6"
"demo_url": "https://asciinema.c.woodburn.au/a/6"
}, },
{ {
"name": "Tmate", "name": "Tmate",
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://tmate.io/", "url": "https://tmate.io/",
"description": "Instant terminal sharing", "description": "Instant terminal sharing",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/7.js\" id=\"asciicast-7\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/7"
"demo_url": "https://asciinema.c.woodburn.au/a/7"
}, },
{ {
"name": "Eza", "name": "Eza",
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://eza.rocks/", "url": "https://eza.rocks/",
"description": "A modern replacement for 'ls'", "description": "A modern replacement for 'ls'",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/8.js\" id=\"asciicast-8\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/8"
"demo_url": "https://asciinema.c.woodburn.au/a/8"
}, },
{ {
"name": "Bat", "name": "Bat",
"type": "Terminal Tools", "type": "Terminal Tools",
"url": "https://github.com/sharkdp/bat", "url": "https://github.com/sharkdp/bat",
"description": "A cat clone with syntax highlighting and Git integration", "description": "A cat clone with syntax highlighting and Git integration",
"demo": "<script src=\"https://asciinema.c.woodburn.au/a/9.js\" id=\"asciicast-9\" async=\"true\"></script>", "demo": "https://asciinema.c.woodburn.au/a/9"
"demo_url": "https://asciinema.c.woodburn.au/a/9"
}, },
{ {
"name": "Oh My Zsh", "name": "Oh My Zsh",

View File

@@ -95,7 +95,7 @@
{% for tool in tools_in_type %} {% for tool in tools_in_type %}
{% if tool.demo %} {% if tool.demo %}
<div id="modal-{{tool.name}}" class="modal fade" role="dialog" tabindex="-1" style="z-index: 1055;" <div id="modal-{{tool.name}}" class="modal fade" role="dialog" tabindex="-1" style="z-index: 1055;"
data-demo-url="{{ tool.demo_url | e }}"> data-demo-url="{{ tool.demo | e }}">
<div class="modal-dialog modal-xl" role="document"> <div class="modal-dialog modal-xl" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">