Umzug nach GitLab: CI/CD fuer Tests, Images, APK, Pages und Releases
gitea.com hat keinen Actions-Runner, also gab es dort seit dem Umzug weder Container-Images noch einen gebauten APK noch gruene Tests auf Merge Requests. GitLab kann alles vier, also zieht das Projekt dorthin um. .gitlab-ci.yml deckt die komplette Kette ab: - test: Frontend-Suite (346 Tests), Locale-Checks, Fatigue-Probe, MCP-Suite - build: api- und web-Image nach registry.gitlab.com/duartesantos8/opengym/*, auf v*-Tags amd64+arm64 mit latest/X.Y/X.Y.Z, sonst amd64 als edge - package: signierter APK (zipalign + apksigner) plus Upload in die Generic Package Registry; der Key liegt in geschuetzten CI-Variablen und existiert damit nur auf main und v*-Tags - deploy: der Browser-Demo-Build auf GitLab Pages - release: GitLab-Release mit dem passenden CHANGELOG-Abschnitt und Links auf APK und Images GitHub konnte "Tag gepusht" von "Release veroeffentlicht" unterscheiden und hat Images nur aus letzterem gebaut (Issue #87). GitLab kann das nicht - dort ist die Tag-Pipeline das, was das Release anlegt. Die Regel steht deshalb als Kommentar im CI-File, und v*-Tags sind geschuetzt. Ausserdem: Issue-/MR-Vorlagen unter .gitlab/, und saemtliche Repo-Links in README, Docs, App, Dockerfile-Labels, docker-compose und Website zeigen auf GitLab. site.js liest Sterne und Releases jetzt aus der GitLab-API (andere Feldnamen, deshalb neue sessionStorage-Keys). SECURITY.md hat wieder einen privaten Meldeweg: ein vertrauliches Issue. .github/ und .gitea/ bleiben liegen - Spiegel bzw. fuer den Tag, an dem das GitHub-Konto zurueckkommt.
This commit is contained in:
1 parent
8b99a644ed
commit
925190109f
22 files changed
+562
-98
No files matched your search
+2
-2
@@ -11,11 +11,11 @@ Not in this folder (added at deploy time):
|
||||
- `openGym.apk` — the signed release build (see `../docs/MOBILE.md`)
|
||||
- `demo/` — the browser-only demo build of the app, embedded in the `#demo` section and
|
||||
reachable on its own at `/demo/`. Built from `../frontend` with `VITE_DEMO=1` and the
|
||||
jsDelivr media bases (see the recipe in `../.github/workflows/pages.yml`), so the ~140 MB
|
||||
jsDelivr media bases (see the `pages` job in `../.gitlab-ci.yml`), so the ~140 MB
|
||||
of exercise media stays out of it. It has to live on this host: the site frames it, and
|
||||
`X-Frame-Options: SAMEORIGIN` would block it from anywhere else.
|
||||
|
||||
`site.js` fetches the star/issue counts and the release timeline from the public
|
||||
gitea.com API at view time. It pointed at api.github.com until that account was
|
||||
gitlab.com API at view time. It pointed at api.github.com until that account was
|
||||
suspended; the two URLs go back once it is restored, together with the notice
|
||||
block at the top of `index.html` and the demo iframe.
|
||||
+10
-10
@@ -26,13 +26,13 @@
|
||||
<a href="/#demo" class="hide-s">Demo</a>
|
||||
<a href="docs.html">Docs</a>
|
||||
<a href="about.html" class="hide-s">About</a>
|
||||
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener"><span data-gh="stars">GitLab</span></a>
|
||||
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a class="cta" href="/#download">Download</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
|
||||
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and
|
||||
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitlab.com. Remove this block and
|
||||
revert the links (+ site.js) to github.com once the account is restored. -->
|
||||
<div class="alert" role="alert"><div class="wrap">
|
||||
<div class="alert-tag">⚠️ Important notice</div>
|
||||
@@ -40,14 +40,14 @@
|
||||
<p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository and the releases are
|
||||
unreachable — not by choice. openGym itself is unaffected: the app, the APK on this page,
|
||||
the demo (now hosted here) and every self-hosted install keep working exactly as before.</p>
|
||||
<p>Until I get the account back, the code lives here — and the Discord is where I will announce
|
||||
the moment it is resolved:</p>
|
||||
<p>Until I get the account back, the code lives on GitLab — and the Discord is where I will
|
||||
announce the moment it is resolved:</p>
|
||||
<div class="alert-actions">
|
||||
<a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>
|
||||
<a class="btn alert-btn" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">gitlab.com/DuarteSantos8/opengym</a>
|
||||
<a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>
|
||||
</div>
|
||||
<p class="alert-note">Every repository link on this site now points at that mirror — same code,
|
||||
same AGPL-3.0 license, same history.</p>
|
||||
<p class="alert-note">Every repository link on this site now points at GitLab — same code, same
|
||||
AGPL-3.0 license, same history, and the releases, container images and APK builds are back.</p>
|
||||
</div></div>
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<p>Docker-Compose self-hosting, passkey profiles, guided workouts, 1,324-exercise
|
||||
library. AGPL from day one.</p></li>
|
||||
<li data-fallback><b>Every release since</b><span class="when">ongoing</span>
|
||||
<p>See the full list on <a href="https://gitea.com/DuarteSantos/openGym/releases" rel="noopener">Gitea → Releases</a>.</p></li>
|
||||
<p>See the full list on <a href="https://gitlab.com/DuarteSantos8/opengym/-/releases" rel="noopener">GitLab → Releases</a>.</p></li>
|
||||
</ul>
|
||||
|
||||
<h2>Principles</h2>
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
<div class="hero-btns" style="justify-content:flex-start;margin:30px 0 10px">
|
||||
<a class="btn" href="/#download">Get openGym</a>
|
||||
<a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Star it on Gitea</a>
|
||||
<a class="btn ghost" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">Star it on GitLab</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<div class="links">
|
||||
<a href="docs.html">Docs</a>
|
||||
<a href="about.html" class="hide-s">About</a>
|
||||
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab</a>
|
||||
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a href="/#download">Download</a>
|
||||
</div>
|
||||
|
||||
+14
-14
@@ -26,13 +26,13 @@
|
||||
<a href="/#demo" class="hide-s">Demo</a>
|
||||
<a href="docs.html">Docs</a>
|
||||
<a href="about.html" class="hide-s">About</a>
|
||||
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener"><span data-gh="stars">GitLab</span></a>
|
||||
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a class="cta" href="/#download">Download</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
|
||||
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and
|
||||
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitlab.com. Remove this block and
|
||||
revert the links (+ site.js) to github.com once the account is restored. -->
|
||||
<div class="alert" role="alert"><div class="wrap">
|
||||
<div class="alert-tag">⚠️ Important notice</div>
|
||||
@@ -40,14 +40,14 @@
|
||||
<p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository and the releases are
|
||||
unreachable — not by choice. openGym itself is unaffected: the app, the APK on this page,
|
||||
the demo (now hosted here) and every self-hosted install keep working exactly as before.</p>
|
||||
<p>Until I get the account back, the code lives here — and the Discord is where I will announce
|
||||
the moment it is resolved:</p>
|
||||
<p>Until I get the account back, the code lives on GitLab — and the Discord is where I will
|
||||
announce the moment it is resolved:</p>
|
||||
<div class="alert-actions">
|
||||
<a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>
|
||||
<a class="btn alert-btn" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">gitlab.com/DuarteSantos8/opengym</a>
|
||||
<a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>
|
||||
</div>
|
||||
<p class="alert-note">Every repository link on this site now points at that mirror — same code,
|
||||
same AGPL-3.0 license, same history.</p>
|
||||
<p class="alert-note">Every repository link on this site now points at GitLab — same code, same
|
||||
AGPL-3.0 license, same history, and the releases, container images and APK builds are back.</p>
|
||||
</div></div>
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<h1>Docs</h1>
|
||||
<p class="lead">Everything you need to get openGym running — on a phone, or on your own
|
||||
server. The deeper, maintainer-level docs live
|
||||
<a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs" rel="noopener">in the repository</a>.</p>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/docs" rel="noopener">in the repository</a>.</p>
|
||||
|
||||
<div class="toc">
|
||||
<a href="#android">Android</a>
|
||||
@@ -92,7 +92,7 @@
|
||||
<li><b>Build it onto your own iPhone:</b> with a Mac and Xcode, the native app runs on
|
||||
your device with a free Apple ID (Apple expires the signature after 7 days; re-run
|
||||
from Xcode to renew). See
|
||||
<a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
|
||||
<li><b>Just looking?</b> Try the <a href="/demo/">in-browser demo</a> — the real app with
|
||||
example data, no account and nothing to install. The Android app above needs no account either.</li>
|
||||
</ul>
|
||||
@@ -101,7 +101,7 @@
|
||||
<p>The self-hosted flavor adds passkey profiles, sync across devices, and (optionally) an
|
||||
admin dashboard. You need <a href="https://docs.docker.com/get-docker/" rel="noopener">Docker</a>
|
||||
with Compose:</p>
|
||||
<pre><code>git clone https://gitea.com/DuarteSantos/openGym
|
||||
<pre><code>git clone https://gitlab.com/DuarteSantos8/opengym
|
||||
cd openGym
|
||||
cp .env.example .env
|
||||
docker compose pull # prebuilt images (amd64 + arm64) — skip to build from source
|
||||
@@ -111,7 +111,7 @@ docker compose up -d</code></pre>
|
||||
<div class="note">Want it reachable from your phone with passkeys? You'll need an HTTPS
|
||||
domain — a two-line change in <code>.env</code>. The full guide, including reverse-proxy
|
||||
examples and the invite-only/admin options, is in
|
||||
<a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/SELF_HOSTING.md" rel="noopener">docs/SELF_HOSTING.md</a>.</div>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/docs/SELF_HOSTING.md" rel="noopener">docs/SELF_HOSTING.md</a>.</div>
|
||||
|
||||
<h3>Settings worth knowing about</h3>
|
||||
<p>All of these live in <code>.env</code>; the defaults are what you get if you touch nothing.</p>
|
||||
@@ -133,7 +133,7 @@ docker compose up -d</code></pre>
|
||||
<p>It runs on your machine, is spawned by the client, and reads your exported data directly.
|
||||
Nothing is sent anywhere, and it is <b>not part of the Docker build</b> — if you don't use
|
||||
an AI assistant, it simply isn't there. Setup is a few lines of client config:
|
||||
<a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/mcp/README.md" rel="noopener">mcp/README.md</a>.</p>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/mcp/README.md" rel="noopener">mcp/README.md</a>.</p>
|
||||
|
||||
<h2 id="import">Import your training history</h2>
|
||||
<p>Coming from another tracker? <b>Settings → Data → Import from another app</b> reads:</p>
|
||||
@@ -163,7 +163,7 @@ docker compose up -d</code></pre>
|
||||
inside the container — no local Node needed.</li>
|
||||
<li><b>Android APK / iOS app:</b> the Capacitor projects live in <code>frontend/android</code>
|
||||
and <code>frontend/ios</code> — build, signing and distribution notes are in
|
||||
<a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="faq">FAQ</h2>
|
||||
@@ -199,7 +199,7 @@ docker compose up -d</code></pre>
|
||||
<div class="links">
|
||||
<a href="docs.html">Docs</a>
|
||||
<a href="about.html" class="hide-s">About</a>
|
||||
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab</a>
|
||||
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a href="/#download">Download</a>
|
||||
</div>
|
||||
|
||||
+14
-14
@@ -40,13 +40,13 @@
|
||||
<a href="#demo" class="hide-s">Demo</a>
|
||||
<a href="docs.html">Docs</a>
|
||||
<a href="about.html" class="hide-s">About</a>
|
||||
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener"><span data-gh="stars">GitLab</span></a>
|
||||
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a class="cta" href="#download">Download</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
|
||||
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and
|
||||
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitlab.com. Remove this block and
|
||||
revert the links (+ site.js) to github.com once the account is restored. -->
|
||||
<div class="alert" role="alert"><div class="wrap">
|
||||
<div class="alert-tag">⚠️ Important notice</div>
|
||||
@@ -54,14 +54,14 @@
|
||||
<p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository and the releases are
|
||||
unreachable — not by choice. openGym itself is unaffected: the app, the APK on this page,
|
||||
the demo (now hosted here) and every self-hosted install keep working exactly as before.</p>
|
||||
<p>Until I get the account back, the code lives here — and the Discord is where I will announce
|
||||
the moment it is resolved:</p>
|
||||
<p>Until I get the account back, the code lives on GitLab — and the Discord is where I will
|
||||
announce the moment it is resolved:</p>
|
||||
<div class="alert-actions">
|
||||
<a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>
|
||||
<a class="btn alert-btn" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">gitlab.com/DuarteSantos8/opengym</a>
|
||||
<a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>
|
||||
</div>
|
||||
<p class="alert-note">Every repository link on this site now points at that mirror — same code,
|
||||
same AGPL-3.0 license, same history.</p>
|
||||
<p class="alert-note">Every repository link on this site now points at GitLab — same code, same
|
||||
AGPL-3.0 license, same history, and the releases, container images and APK builds are back.</p>
|
||||
</div></div>
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<div class="hero-btns">
|
||||
<a class="btn" href="#download">Get openGym</a>
|
||||
<a class="btn ghost" href="#demo">Try the live demo</a>
|
||||
<a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea <span class="ct" data-gh="stars">★</span></a>
|
||||
<a class="btn ghost" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span class="ct" data-gh="stars">★</span></a>
|
||||
</div>
|
||||
</div></header>
|
||||
|
||||
@@ -197,21 +197,21 @@
|
||||
<h2>AGPL-licensed, forever</h2>
|
||||
<p class="lead">The code is public, the license keeps every fork open, and there is no
|
||||
commercial version waiting behind a curtain. If openGym is useful to you,
|
||||
a ⭐ on Gitea helps more people find it.</p>
|
||||
a ⭐ on GitLab helps more people find it.</p>
|
||||
<p class="lead">There is a Discord for release announcements, self-hosting help and bug
|
||||
reports. It is the fastest way to hear about a new version — and the fastest way
|
||||
to get unstuck if a reverse proxy or a passkey is fighting you.</p>
|
||||
<div class="os">
|
||||
<div class="stat"><b data-gh="stars-n">–</b><span>Gitea stars</span></div>
|
||||
<div class="stat"><b data-gh="stars-n">–</b><span>GitLab stars</span></div>
|
||||
<div class="stat"><b data-gh="forks-n">–</b><span>forks</span></div>
|
||||
<div class="stat"><b data-gh="issues-n">–</b><span>open issues</span></div>
|
||||
<div class="stat"><b>1,324</b><span>exercises</span></div>
|
||||
<div class="stat"><b>12</b><span>languages</span></div>
|
||||
</div>
|
||||
<div class="hero-btns" style="justify-content:flex-start;margin-top:24px">
|
||||
<a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">openGym on Gitea</a>
|
||||
<a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym/src/branch/main/CONTRIBUTING.md" rel="noopener">Contributing</a>
|
||||
<a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym/src/branch/main/CHANGELOG.md" rel="noopener">Changelog</a>
|
||||
<a class="btn ghost" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">openGym on GitLab</a>
|
||||
<a class="btn ghost" href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/CONTRIBUTING.md" rel="noopener">Contributing</a>
|
||||
<a class="btn ghost" href="https://gitlab.com/DuarteSantos8/opengym/-/blob/main/CHANGELOG.md" rel="noopener">Changelog</a>
|
||||
<a class="btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>
|
||||
</div>
|
||||
</div></section>
|
||||
@@ -221,7 +221,7 @@
|
||||
<div class="links">
|
||||
<a href="docs.html">Docs</a>
|
||||
<a href="about.html" class="hide-s">About</a>
|
||||
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab</a>
|
||||
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a href="/#download">Download</a>
|
||||
</div>
|
||||
|
||||
+23
-13
@@ -1,17 +1,23 @@
|
||||
// Live repo numbers in the nav + open-source strip. Fails silently — the site works
|
||||
// fine without them. Points at the gitea.com mirror while the GitHub account is
|
||||
// suspended; switch the two API URLs back to api.github.com once it is restored.
|
||||
(async () => {
|
||||
// fine without them. Points at gitlab.com while the GitHub account is suspended;
|
||||
// switch the two API URLs back to api.github.com once it is restored.
|
||||
//
|
||||
// The cache keys carry a _gl suffix: a visitor with a still-warm sessionStorage entry
|
||||
// from the gitea era would otherwise be read with the old field names and show NaN.
|
||||
const GL_PROJECT = 'https://gitlab.com/api/v4/projects/DuarteSantos8%2Fopengym'
|
||||
|
||||
;(async () => {
|
||||
const set = (id, v) => document.querySelectorAll('[data-gh="' + id + '"]').forEach(el => { el.textContent = v })
|
||||
try {
|
||||
let d = null
|
||||
const cached = sessionStorage.getItem('repo_meta')
|
||||
const cached = sessionStorage.getItem('repo_meta_gl')
|
||||
if (cached) d = JSON.parse(cached)
|
||||
else {
|
||||
const r = await fetch('https://gitea.com/api/v1/repos/DuarteSantos/openGym')
|
||||
const r = await fetch(GL_PROJECT)
|
||||
if (!r.ok) return
|
||||
d = await r.json()
|
||||
sessionStorage.setItem('repo_meta', JSON.stringify({ stars_count: d.stars_count, forks_count: d.forks_count, open_issues_count: d.open_issues_count }))
|
||||
const j = await r.json()
|
||||
d = { stars_count: j.star_count, forks_count: j.forks_count, open_issues_count: j.open_issues_count }
|
||||
sessionStorage.setItem('repo_meta_gl', JSON.stringify(d))
|
||||
}
|
||||
set('stars', '★ ' + d.stars_count)
|
||||
set('stars-n', d.stars_count)
|
||||
@@ -20,22 +26,26 @@
|
||||
} catch (e) { /* offline / rate-limited — leave placeholders */ }
|
||||
})()
|
||||
|
||||
// About page: build the milestones timeline from the published Gitea releases, so the
|
||||
// About page: build the milestones timeline from the published GitLab releases, so the
|
||||
// page updates itself with every release. The static entries marked data-fallback stay
|
||||
// in place when the API is unreachable; the hand-written first entry is always kept.
|
||||
//
|
||||
// GitLab's release objects differ from Gitea's: the notes are `description` (not `body`),
|
||||
// the date is `released_at` (not `published_at`), the web link sits in `_links.self`, and
|
||||
// there is no draft/prerelease pair — a not-yet-released one is `upcoming_release`.
|
||||
;(async () => {
|
||||
const tl = document.getElementById('milestones')
|
||||
if (!tl) return
|
||||
try {
|
||||
let rel = null
|
||||
const cached = sessionStorage.getItem('repo_releases')
|
||||
const cached = sessionStorage.getItem('repo_releases_gl')
|
||||
if (cached) rel = JSON.parse(cached)
|
||||
else {
|
||||
const r = await fetch('https://gitea.com/api/v1/repos/DuarteSantos/openGym/releases?limit=100')
|
||||
const r = await fetch(GL_PROJECT + '/releases?per_page=100')
|
||||
if (!r.ok) return
|
||||
rel = (await r.json()).filter(x => !x.draft && !x.prerelease)
|
||||
.map(x => ({ tag: x.tag_name, name: x.name, at: x.published_at, body: x.body || '', url: x.html_url }))
|
||||
sessionStorage.setItem('repo_releases', JSON.stringify(rel))
|
||||
rel = (await r.json()).filter(x => !x.upcoming_release)
|
||||
.map(x => ({ tag: x.tag_name, name: x.name, at: x.released_at, body: x.description || '', url: (x._links && x._links.self) || ('https://gitlab.com/DuarteSantos8/opengym/-/releases/' + x.tag_name) }))
|
||||
sessionStorage.setItem('repo_releases_gl', JSON.stringify(rel))
|
||||
}
|
||||
if (!rel.length) return
|
||||
const fmt = d => new Date(d).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric' })
|
||||
|
||||
+1
-1
@@ -179,7 +179,7 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 1.2rem
|
||||
table.cfg tr:first-child td:first-child { border-top: 0; }
|
||||
}
|
||||
|
||||
/* ---------- suspension notice (GitHub account suspended → gitea.com mirror) ----------
|
||||
/* ---------- suspension notice (GitHub account suspended → gitlab.com) ----------
|
||||
Temporary: remove this block together with the .alert markup once the account is back. */
|
||||
.alert {
|
||||
background:
|
||||
|
||||
Reference in new issue
Block a user