6 Commits
2.0.7 ... 2.0.8

5 changed files with 74 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "git-manager-gui",
"version": "2.0.6",
"version": "2.0.7",
"description": "Git Manager GUI - Verwaltung von Git Repositories",
"author": "M_Viper",
"main": "main.js",

View File

@@ -39,6 +39,7 @@
<span class="toolbar-kicker">Workspace Control</span>
<strong>Git Manager Explorer Pro</strong>
</div>
<span id="project-toolbar-title" class="toolbar-project-title"></span>
</div>
<div class="toolbar-top-actions">
@@ -84,6 +85,8 @@
</div>
</div>
<div id="project-gravur-bar"><span id="project-gravur-title" class="project-gravur-title"></span></div>
<div class="project-gravur-separator"></div>
<div id="contentArea" class="content-area">
<aside id="favHistorySidebar" class="fav-history-sidebar" aria-label="Favoriten und Verlauf"></aside>
<main id="main">

View File

@@ -3362,6 +3362,11 @@ async function loadGiteaRepos(preloadedData = null, requestId = null) {
}
async function loadRepoContents(owner, repo, path) {
// Projekttitel als Gravur unterhalb der Toolbar setzen (nur Repo-Name)
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) {
gravurTitle.textContent = repo;
}
currentState.view = 'gitea-repo';
currentState.owner = owner;
currentState.repo = repo;
@@ -3403,9 +3408,26 @@ async function loadRepoContents(owner, repo, path) {
});
if (!res.ok) {
// Bei Fehler Gravur zurücksetzen
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) {
gravurTitle.textContent = '';
}
showError('Error: ' + (res.error || 'Unknown error'));
return;
}
// Wenn zur Übersicht gewechselt wird, Gravur zurücksetzen
function resetProjectGravurTitle() {
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) gravurTitle.textContent = '';
}
// Nach dem Laden der Repo-Liste oder beim Klick auf "Zurück" rufe resetProjectGravurTitle() auf
const origLoadRepos = loadRepos;
loadRepos = function(...args) {
resetProjectGravurTitle();
return origLoadRepos.apply(this, args);
};
const grid = $('explorerGrid');
if (!grid) return;

View File

@@ -1,3 +1,44 @@
.project-gravur-bar {
width: 100%;
min-height: 28px;
display: flex;
align-items: flex-end;
justify-content: center;
background: none;
margin-bottom: 0;
pointer-events: none;
position: relative;
z-index: 10;
}
.project-gravur-title {
font-size: 17px;
font-weight: 500;
color: rgba(174, 189, 216, 0.18);
letter-spacing: 0.04em;
font-style: italic;
user-select: none;
text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13);
transition: color 0.2s;
margin-bottom: 2px;
}
.project-gravur-separator {
width: 100%;
height: 2px;
background: linear-gradient(90deg, rgba(88,213,255,0.10) 0%, rgba(92,135,255,0.10) 100%);
margin-bottom: 0px;
}
.toolbar-project-title {
font-size: 13px;
font-weight: 500;
color: rgba(174, 189, 216, 0.22);
letter-spacing: 0.04em;
margin-left: 32px;
font-style: italic;
pointer-events: none;
user-select: none;
text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13);
transition: color 0.2s;
}
:root {
/* Moderne Farbpalette */
--bg-primary: #07111f;
@@ -96,12 +137,15 @@
.titlebar-strip-title {
font-size: 11px;
font-weight: 700;
color: rgba(174, 189, 216, 0.68);
font-weight: 600;
color: rgba(174, 189, 216, 0.32); /* viel dezenter */
letter-spacing: 0.045em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13);
font-style: italic;
font-family: inherit;
}
#titlebar-strip .win-controls {

View File

@@ -94,7 +94,8 @@ class Updater {
const ext = process.platform === 'win32' ? '.exe' : '.AppImage';
return assets.find(a => {
const name = String(a?.name || '').toLowerCase();
const validName = /^[a-z0-9._-]+$/.test(name);
// Leerzeichen im Namen erlauben!
const validName = /^[a-z0-9._\- ]+$/i.test(name);
return validName && name.endsWith(ext);
});
}