From 133c37bcc7834d2a8ba089cca09ed1e0d3ff263d Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Tue, 20 Jan 2026 10:58:18 -0800 Subject: [PATCH] Feat: Add repository management to right sidebar --- index.html | 98 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 82 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index 062d94e..864b3bf 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,17 @@ @@ -17,7 +28,28 @@ leftSidebar: false, rightSidebar: false, accountModal: false, - githubPat: localStorage.getItem('github_pat') || '' + githubPat: localStorage.getItem('github_pat') || '', + repos: JSON.parse(localStorage.getItem('github_repos') || '[]'), + + addRepo() { + const repo = prompt('Enter repository (owner/repo@branch):', 'multipleof4/GitRight@master'); + if (repo && repo.includes('/')) { + this.repos.push(repo); + this.saveRepos(); + this.$nextTick(() => lucide.createIcons()); + } else if (repo) { + alert('Invalid format, Meowster. Please use owner/repo@branch'); + } + }, + + removeRepo(index) { + this.repos.splice(index, 1); + this.saveRepos(); + }, + + saveRepos() { + localStorage.setItem('github_repos', JSON.stringify(this.repos)); + } }" class="min-h-screen flex flex-col"> @@ -50,7 +82,6 @@
-

Empty State

Ready for your commands, Master.

@@ -71,24 +102,59 @@
-
-

Right Menu

- + + + + + +
+

+ + Repositories +

+ +
+ + + +
-
- - + + +