feat(git): Teilen von Git-Brews über Server-Snapshot (#9) (#25)
CI / App (npm ci + Build, ESLint, Stylelint, Jest) (push) Successful in 2m12s
CI / Storage (mongo) (push) Successful in 1m41s
CI / Storage (postgres) (push) Successful in 1m13s
Image / Image bauen und pushen (push) Successful in 5m18s

Co-authored-by: Dev (Paperclip) <dev-bot@noreply.git.morlana.online>
This commit was merged in pull request #25.
This commit is contained in:
dev-bot Bot authored and Gitea committed 2026-11-26 01:01:31 +00:00
1 parent adaa10a4dc
commit 3a77763641
8 files changed
+94 -4

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
import './git.less';
import React, { useEffect, useState } from 'react';
import Moment from 'moment';
import Nav from '@navbar/nav.jsx';
import { gitApi } from './gitApi.js';
@@ -43,6 +44,7 @@ const GitNavItem = ({ brew, lastSavedTime, onLinkedChange })=>{
<div className='gitDropdown'>
<div className='meta'>{status.connectionLabel}: {status.repoUrl}</div>
<div className='meta'>{status.branch} · {status.path}{status.lastCommitSha ? ` · ${short(status.lastCommitSha)}` : ''}</div>
{status.snapshotAt && <div className='meta' title='Stand, den Teilen-Links ausliefern'>Teilen-Stand: {Moment(status.snapshotAt).format('LLL')}</div>}
{status.lastError === 'G04' && <div className='error'>Git nicht erreichbar, angezeigt wird der zuletzt gespeicherte Stand.</div>}
{status.lastError && status.lastError !== 'G04' && <div className='error'>Letzter Fehler: {status.lastError}</div>}
{error && <div className='error'>{error}</div>}