Initial commit: Gitpub Desktop scaffold

Add complete project scaffold for Gitpub Desktop (Tauri + Rust backend and vanilla HTML/CSS/JS frontend). Includes frontend entry (index.html), styles (base/components CSS), app logic and modules (app.js, gitea-api.js, tauri-api.js, state.js, storage.js), static assets and component READMEs, README.md, VSCode recommendations, and project config (package.json, package-lock.json). Also adds src-tauri skeleton (Cargo.toml, main.rs, lib.rs, build.rs, tauri.conf.json), application icons, and .gitignore files. Provides MVP plumbing for server setup and management, repository dashboard, local repo opening, and Git operations via Tauri invoke (clone/pull/push/status/branch).
This commit is contained in:
2026-05-07 14:41:15 +12:00
commit 6b245c628c
44 changed files with 7105 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
const invoke = window.__TAURI__?.core?.invoke;
function ensureInvoke() {
if (!invoke) {
throw new Error("Tauri invoke API is not available.");
}
}
export async function runGitClone(repoUrl, destinationPath, gitPath) {
ensureInvoke();
return invoke("git_clone", {
repoUrl,
destinationPath,
gitPath: gitPath || null,
});
}
export async function runGitPull(repoPath, gitPath) {
ensureInvoke();
return invoke("git_pull", { repoPath, gitPath: gitPath || null });
}
export async function runGitPush(repoPath, gitPath) {
ensureInvoke();
return invoke("git_push", { repoPath, gitPath: gitPath || null });
}
export async function runGitStatus(repoPath, gitPath) {
ensureInvoke();
return invoke("git_status", { repoPath, gitPath: gitPath || null });
}
export async function runGitBranch(repoPath, gitPath) {
ensureInvoke();
return invoke("git_branch", { repoPath, gitPath: gitPath || null });
}
export async function testGiteaConnection(payload) {
ensureInvoke();
return invoke("test_gitea_connection", payload);
}