feat: sidebar Repository identique au Workspace-local, pages forge unifiees, GC miroirs vides
This commit is contained in:
@@ -155,6 +155,16 @@ function workspacesPage() {
|
||||
document.cookie = 'flowdeck_workspace=gitea:' + owner + ':' + repo + ';path=/;SameSite=Lax';
|
||||
window.location = `/gitea-workspace?owner=${encodeURIComponent(owner)}&repo=${encodeURIComponent(repo)}`;
|
||||
}
|
||||
},
|
||||
openGithub(proj) {
|
||||
const full = proj.full_name || '';
|
||||
const parts = full.split('/');
|
||||
const owner = proj.owner?.login || parts[0] || '';
|
||||
const repo = proj.name || parts[1] || '';
|
||||
if (owner && repo) {
|
||||
document.cookie = 'flowdeck_workspace=github:' + owner + ':' + repo + ';path=/;SameSite=Lax';
|
||||
window.location = `/github-workspace?owner=${encodeURIComponent(owner)}&repo=${encodeURIComponent(repo)}`;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user