Files
Git-Manager-Gui/renderer/index.html
2025-12-28 18:06:53 +01:00

89 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Git Manager Explorer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app">
<div id="toolbar">
<button id="btnSettings">Settings</button>
<button id="btnSelectFolder">Select Folder</button>
<button id="btnPush">Push / Update</button>
<select id="platform"><option value="github">GitHub</option><option value="gitea">Gitea</option></select>
<span id="status" class="status"></span>
</div>
<div id="main">
<aside id="explorerPanel" class="card">
<h3>Project Files</h3>
<div id="fileTree" class="file-tree"></div>
</aside>
<section id="detailsPanel">
<div id="repoDetails" class="card">
<div><label>Branch:</label><select id="branchSelect"></select></div>
<div><label>Repository Name:</label><input id="repoName" type="text" placeholder="repo-name"></div>
<!-- NEU: License Auswahl -->
<div style="margin-bottom: 5px;">
<label for="licenseSelect">License:</label>
<select id="licenseSelect">
<option value="">No License</option>
<option value="MIT">MIT License</option>
<option value="Apache-2.0">Apache License 2.0</option>
<option value="GPL-3.0">GNU General Public License v3.0</option>
<option value="BSD-3-Clause">BSD 3-Clause "New" or "Revised" License</option>
<option value="BSD-2-Clause">BSD 2-Clause "Simplified" License</option>
<option value="LGPL-3.0">GNU Lesser General Public License v3.0</option>
<option value="MPL-2.0">Mozilla Public License 2.0</option>
<option value="Unlicense">The Unlicense</option>
</select>
</div>
<!-- NEU: README Checkbox -->
<div style="margin-bottom: 10px;">
<label>
<input type="checkbox" id="createReadme" checked>
Initialize Repository with a README
</label>
</div>
<div><button id="btnCreateRepo">Create Repo</button></div>
<div style="margin-top:10px;"><button id="btnLoadGiteaRepos">Load My Gitea Repos</button>
<div id="giteaRepoContainer"></div>
</div>
</div>
<div id="previewArea" class="card">
<h3 id="previewTitle">Preview</h3>
<pre id="previewContent" class="preview-content">Select a file to preview</pre>
</div>
<div id="commitLogs" class="card">
<h3>Commit Logs</h3>
<div id="logs">No commits yet.</div>
</div>
</section>
</div>
<!-- Settings Modal -->
<div id="settingsModal" class="modal hidden">
<div class="modalContent card">
<h2>Settings</h2>
<label>GitHub Token</label><input id="githubToken" type="password">
<label>Gitea Token</label><input id="giteaToken" type="password">
<label>Gitea URL</label><input id="giteaURL" type="text" placeholder="https://gitea.example.com">
<div style="margin-top:10px;">
<button id="btnSaveSettings">Save</button>
<button id="btnCloseSettings">Close</button>
</div>
</div>
</div>
</div>
<script src="./renderer.js"></script>
</body>
</html>