display all repos as flat list if on homepage

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ committed 2026-04-02 20:46:52 -04:00
1 parent eeba95f6e0
commit bd731f0ad6
1 file changed
+6 -2
+6 -2
View File
@@ -394,7 +394,7 @@ export default defineComponent({
return; return;
} }
if (searchedURL.startsWith(this.searchURL)) { if (searchedURL.startsWith(searchedURL)) {
this.repos = json.data.repos.map((webSearchRepo: any) => { this.repos = json.data.repos.map((webSearchRepo: any) => {
return { return {
...webSearchRepo.repository, ...webSearchRepo.repository,
@@ -403,8 +403,12 @@ export default defineComponent({
locale_latest_commit_status_state: webSearchRepo.locale_latest_commit_status, locale_latest_commit_status_state: webSearchRepo.locale_latest_commit_status,
}; };
}); });
let realRepos: any[] = this.repos;
if(window.location.pathname !== "/") {
realRepos = this.repos.filter((a: any) => !a.group_id)
}
this.groups.set(0, { this.groups.set(0, {
repos: this.repos.filter((a: any) => !a.group_id), repos: realRepos,
subgroups: json.data.subgroups.map((g: any) => { subgroups: json.data.subgroups.map((g: any) => {
return g.group.id; return g.group.id;
}), }),