Pinned 2026 toolchains (Go 1.26, Rust 1.98/edition 2024, Python 3.14 + uv, Node 24, Zig 0.16, NixOS 26.05), postgres 18 / mongo 8, lockfiles built from, non-root runtimes, .dockerignore, per-project LICENSE, READMEs with the git.devai.io clone line, checkout@v7 CI. Security fixes in the legacy Rust APIs (any-password login, self-assigned admin, hard-coded JWT secret), JWT alg/exp/sub enforcement across the blog series, safe markdown links in the frontends, and many smaller bugs — every project was built, run and exercised end to end. Adds scripts/publish.sh + a CI publish job that splits every folder into its own repo at git.devai.io/templates/<folder>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01128fhuZbgivaSJvtMf4s1G
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Country Explorer</title>
|
|
<link rel="stylesheet" href="styles.css" />
|
|
</head>
|
|
<body>
|
|
<main class="card">
|
|
<h1>Country Explorer</h1>
|
|
<p class="sub">Search a country and see its flag and key facts.</p>
|
|
|
|
<form id="form" class="search">
|
|
<input
|
|
id="query"
|
|
class="input"
|
|
type="text"
|
|
aria-label="Country name"
|
|
placeholder="e.g. Japan"
|
|
autocomplete="off"
|
|
spellcheck="false"
|
|
/>
|
|
<button class="btn" type="submit">Search</button>
|
|
</form>
|
|
|
|
<p id="status" class="status" role="status"></p>
|
|
|
|
<article id="country" class="country" hidden>
|
|
<img id="flag" class="flag" alt="" />
|
|
<h2 id="name" class="name"></h2>
|
|
<p id="region" class="region"></p>
|
|
<div class="facts">
|
|
<div class="row"><span>Capital</span><strong id="capital"></strong></div>
|
|
<div class="row"><span>Population</span><strong id="population"></strong></div>
|
|
<div class="row"><span>Languages</span><strong id="languages"></strong></div>
|
|
<div class="row"><span>Currencies</span><strong id="currencies"></strong></div>
|
|
</div>
|
|
<a id="map" class="btn ghost" target="_blank" rel="noreferrer">View on the map</a>
|
|
</article>
|
|
</main>
|
|
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|