feat: Remove old demo scripts
This commit is contained in:
Binary file not shown.
@@ -176,11 +176,6 @@ def tools():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
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)
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
@@ -175,4 +168,4 @@
|
|||||||
"url": "https://github.com/dani-garcia/vaultwarden",
|
"url": "https://github.com/dani-garcia/vaultwarden",
|
||||||
"description": "Password manager server implementation compatible with Bitwarden clients"
|
"description": "Password manager server implementation compatible with Bitwarden clients"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user