d3d7df46f2
Adds a subtle 'View PicPeak on GitHub' link in the admin sidebar footer (next to the version/storage widgets), so admins can reach the repo — star it, browse source, report an issue — from anywhere in the dashboard, not just the setup screen. - Centralizes the repo URL as `repoUrl` in utils/githubReleaseUrl.ts (githubReleaseUrl now derives from it) so the org URL lives in one place. - target=_blank + rel=noopener noreferrer; EN + DE i18n (`admin.viewOnGithub`); dark-mode aware, matches the muted footer style.
20 lines
856 B
TypeScript
20 lines
856 B
TypeScript
/**
|
|
* Build the GitHub release page URL for a given version string.
|
|
*
|
|
* Version strings already carry their channel suffix (e.g. `3.55.0`
|
|
* for stable, `3.55.0-beta.0` for beta). release-please tags every
|
|
* release as `vX.Y.Z[-beta.N]`, so a pure string template covers
|
|
* both channels without branching on the suffix.
|
|
*
|
|
* Used by the admin sidebar version display to deep-link to release
|
|
* notes for the running version (#566) and by the update-available
|
|
* indicator to link to the upgrade target's notes.
|
|
*/
|
|
/** Repository home on GitHub. Single source of truth for the org URL so
|
|
* links (release notes, the admin "view on GitHub" button, #778) don't
|
|
* each hardcode it. */
|
|
export const repoUrl = 'https://github.com/PicPeak/picpeak';
|
|
|
|
export const githubReleaseUrl = (version: string): string =>
|
|
`${repoUrl}/releases/tag/v${version}`;
|