This commit is contained in:
Pascal Engélibert 2026-07-27 21:35:40 +02:00
commit fbf3d7640a
8 changed files with 110 additions and 38 deletions

View file

@ -8,12 +8,18 @@
<p>Import any repository from any Forgejo instance using its main URL. The full commit hash is also needed, so the right version is fetched.</p>
<p>Token is optional. It is needed if the repository is private. In that case, create an API token with read access to the repository. It is revocable at any moment and only grants the selected permissions.</p>
<form action="fetch" method="post">
<label for="f-title">Repo title:</label>
<input type="text" id="f-title" name="title" aria-describedby="f-title-help"/>
<span id="f-title-help">Title that will be displayed for this anonymous repository (can be modified later).</span><br/>
<label for="f-repo-url">Repo URL:</label>
<input type="text" id="f-repo-url" name="repo-url" required/><br/>
<input type="text" id="f-repo-url" name="repo-url" aria-describedby="f-repo-title-help" required/>
<span id="f-repo-title-help">URL of the original repository.</span><br/><br/>
<label for="f-commit">Commit hash:</label>
<input type="text" id="f-commit" name="commit" required/><br/>
<input type="text" id="f-commit" name="commit" aria-describedby="f-repo-title-help" required/>
<span id="f-repo-title-help">Full commit hash at which the repository is fetched.</span><br/><br/>
<label for="f-token">Token:</label>
<input type="text" id="f-token" name="token"/><br/>
<input type="text" id="f-token" name="token" aria-describedby="f-repo-title-help"/>
<span id="f-repo-title-help">Access token, in case the repository is private.</span><br/><br/>
<input type="submit" value="Fetch"/>
</form>
</body>

View file

@ -25,7 +25,7 @@ html, body {
</head>
<body>
<header>
<h1>Titre</h1>
<h1>Blindforge</h1>
</header>
<div id="tree">
<ul class="tree">
@ -35,8 +35,10 @@ html, body {
</ul>
</div>
<div id="page">
<h2>Fichier</h2>
<span><a>Root</a> / <a>Dossier</a> / Fichier</span>
<h2>{{ title }}</h2>
<span>
{% for element in path %}/{{ element }}{% endfor %}
</span>
<div id="content">
{{ content|safe }}
</div>