Skip to content

Commit 2b1aa7a

Browse files
UserProjectRolesTable pagination and search (#9)
* fix(auth and roles): update deleteRole method to use correct endpoint and emit delete event Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * fix(gitlab integration): simplify button markup in card footer Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * feat(auth and roles): enhance table with pagination and inline search features Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: cleanup Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * fix: correct typo in Polish translation for trust boundary Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: refactor inline search and pagination for user project roles table Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: comment and unnecessary logic cleanup Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: update table options for pagination and inline search functionality Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: gitlab integration reorganization Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: cleanup css styles and remove unused i18n Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * Update src/views/components/UserProjectRolesTable.vue Co-authored-by: Allen Shearin <allen.p.shearin@gmail.com> Signed-off-by: emeremikwu-lm <emmanuel.meremikwu@lmco.com> * refactor: update labels in GitLab integration and enhance CopyField styling Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * refactor: reorganize LDAP, Managed, and OIDC user management views - Reverted LDAP, Managed, and OIDC vue components back to single file components. - Created a new UserDetails.vue component to handle user details for LDAP, Managed, and OIDC users. - Removed userManagementMixin. - Unified user detail logic and UI, using a userType prop to handle differences between user types. - Updated API endpoint handling and conditional rendering for managed-user-specific fields. - Improved maintainability by consolidating similar logic and removing duplication. Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> * Update UserDetails.vue Removed unused function loadUserManagementData Signed-off-by: emeremikwu-lm <emmanuel.meremikwu@lmco.com> --------- Signed-off-by: Emmanuel Meremikwu <emmanuel.meremikwu@lmco.com> Signed-off-by: emeremikwu-lm <emmanuel.meremikwu@lmco.com> Co-authored-by: Allen Shearin <allen.p.shearin@gmail.com>
1 parent 16ff882 commit 2b1aa7a

36 files changed

+1460
-2274
lines changed

src/i18n/locales/de.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"api_keys": "API-Schlüssel",
4343
"api_token": "API-Token",
4444
"api_token_header": "Header des API-Tokens",
45+
"app_id": "App ID",
4546
"base_url": "Basis-URL",
4647
"bearer_token_auth_enable": "Authentifizieren mit einem persönlichen Zugriffstoken",
4748
"bom_formats": "BOM-Formate",
@@ -68,7 +69,6 @@
6869
"create_role": "Rolle erstellen",
6970
"create_team": "Team erstellen",
7071
"create_template": "Vorlage erstellen",
71-
"create_topic": "Thema erstellen",
7272
"create_user": "Benutzer erstellen",
7373
"days": "Tage",
7474
"days_of_metrics": "Tage der Metriken",
@@ -120,10 +120,8 @@
120120
"github": "GitHub",
121121
"github_advisories": "GitHub Advisories",
122122
"gitlab": "GitLab",
123-
"gitlab_application_id": "GitLab-Anwendungs-ID",
124123
"gitlab_audience": "Publikum",
125124
"gitlab_jwks_path": "GitLab JWKS-Pfad",
126-
"gitlab_url": "GitLab-Basis-URL",
127125
"go_modules": "Go Module",
128126
"group": "Gruppe",
129127
"hackage": "Hackage",
@@ -190,7 +188,6 @@
190188
"new_api_key": "Dies ist der neu erzeugte API -Schlüssel. \nBitte beachten Sie, dass es nur einmal angezeigt wird und später nicht abgerufen werden kann.",
191189
"new_api_key_title": "Neuer API -Schlüssel",
192190
"nixpkgs": "Nixpkgs",
193-
"no_unassigned_projects": "Keine nicht zugewiesenen Projekte",
194191
"notification_level": "Level",
195192
"notifications": "Benachrichtigungen",
196193
"npm": "NPM",
@@ -205,6 +202,9 @@
205202
"old_key_format": "Dieser API -Schlüssel ist veraltet und sollte bald für fortgesetzte Funktionen aktualisiert werden!",
206203
"oss_index": "Sonatype OSS-Index",
207204
"osv_advisories": "Google OSV Advisories (Beta)",
205+
"pagination_all": "Alle",
206+
"pagination_current": "{start} bis {end} von {total}",
207+
"pagination_per_page": "Pro Seite: {count}",
208208
"password": "Passwort (oder Zugriffstoken)",
209209
"password_confirm": "Bestätige das Passwort",
210210
"password_never_expires": "Passwort verfällt niemals",
@@ -313,7 +313,7 @@
313313
"templates": "Vorlagen",
314314
"test_notification_queued": "Eine Testbenachrichtigung wurde in die Warteschlange gestellt",
315315
"token": "Token",
316-
"topic_name": "Themenname",
316+
"topics": "Themen",
317317
"trivy": "Trivy",
318318
"url": "URL",
319319
"user_created": "Benutzer erstellt",
@@ -470,6 +470,9 @@
470470
"contacts": "Kontakte",
471471
"coordinates": "Koordinaten",
472472
"coordinates_version_tooltip": "Mit den Vergleichsoperatoren >, <, >=, <=, == und != können Sie bestimmte Versionen oder Versionsbereiche vergleichen.",
473+
"copy_failed": "Versäumt, in die Zwischenablage zu kopieren",
474+
"copy_success": "In die Zwischenablage kopiert",
475+
"copy_to_clipboard": "Kopieren Sie in die Zwischenablage",
473476
"copyright": "Urheberrechte ©",
474477
"cpe": "CPE",
475478
"cpe_full": "Gemeinsame Plattformaufzählung (CPE)",
@@ -620,11 +623,11 @@
620623
"license_text": "Lizenztext",
621624
"license_url": "Lizenz-URL",
622625
"licenses": "Lizenzen",
626+
"loading": "Laden",
623627
"login": "Anmeldung",
624628
"login_desc": "Melden Sie sich bei Ihrem Konto an",
625629
"login_forbidden": "Dieses Konto ist inaktiv oder wurde gesperrt",
626630
"login_more_options": "Mehr Optionen",
627-
"login_permission_required": "Die Anmeldung war erfolgreich, aber Sie verfügen anscheinend noch nicht über die erforderlichen Berechtigungen. Bitte wenden Sie sich an Ihren Administrator.",
628631
"login_unauthorized": "ungültiger Benutzername oder Passwort",
629632
"logout": "Ausloggen",
630633
"manufacturer": "Hersteller",

src/i18n/locales/en.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"api_keys": "API Keys",
4343
"api_token": "API token",
4444
"api_token_header": "API token header",
45+
"app_id": "App ID",
4546
"base_url": "Base URL",
4647
"bearer_token_auth_enable": "Authenticate with a personal access token",
4748
"bom_formats": "BOM Formats",
@@ -68,7 +69,6 @@
6869
"create_role": "Create Role",
6970
"create_team": "Create Team",
7071
"create_template": "Create Template",
71-
"create_topic": "Create Topic",
7272
"create_user": "Create User",
7373
"days": "Days",
7474
"days_of_metrics": "Days of metrics",
@@ -120,10 +120,8 @@
120120
"github": "GitHub",
121121
"github_advisories": "GitHub Advisories",
122122
"gitlab": "GitLab",
123-
"gitlab_application_id": "GitLab Application ID",
124123
"gitlab_audience": "Audience",
125124
"gitlab_jwks_path": "GitLab JWKS Path",
126-
"gitlab_url": "GitLab URL",
127125
"go_modules": "Go Modules",
128126
"group": "Group",
129127
"hackage": "Hackage",
@@ -204,6 +202,9 @@
204202
"old_key_format": "This API key is outdated and should be updated soon for continued functionality!",
205203
"oss_index": "Sonatype OSS Index",
206204
"osv_advisories": "Google OSV Advisories (Beta)",
205+
"pagination_all": "All",
206+
"pagination_current": "{start} to {end} of {total}",
207+
"pagination_per_page": "Per Page: {count}",
207208
"password": "Password (or access token)",
208209
"password_confirm": "Confirm password",
209210
"password_never_expires": "Password never expires",
@@ -312,7 +313,6 @@
312313
"templates": "Templates",
313314
"test_notification_queued": "A test notification has been queued",
314315
"token": "Token",
315-
"topic_name": "Topic Name",
316316
"topics": "Topics",
317317
"trivy": "Trivy",
318318
"url": "URL",
@@ -470,6 +470,9 @@
470470
"contacts": "Contacts",
471471
"coordinates": "Coordinates",
472472
"coordinates_version_tooltip": "You can use the comparison operators >, <, >=, <=, == and != to match specific versions or version ranges",
473+
"copy_failed": "Failed to copy to clipboard",
474+
"copy_success": "Copied to clipboard",
475+
"copy_to_clipboard": "Copy to clipboard",
473476
"copyright": "Copyright",
474477
"cpe": "CPE",
475478
"cpe_full": "Common Platform Enumeration (CPE)",
@@ -620,11 +623,11 @@
620623
"license_text": "License Text",
621624
"license_url": "License URL",
622625
"licenses": "Licenses",
626+
"loading": "Loading",
623627
"login": "Login",
624628
"login_desc": "Sign In to your account",
625629
"login_forbidden": "This account is inactive or has been suspended",
626630
"login_more_options": "More options",
627-
"login_permission_required": "Login succeeded, but you don’t seem to have any permissions yet. Please contact your administrators for help.",
628631
"login_unauthorized": "Invalid username or password",
629632
"logout": "Logout",
630633
"manufacturer": "Manufacturer",

src/i18n/locales/es.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"api_keys": "Claves API",
4343
"api_token": "token API",
4444
"api_token_header": "api_token_header",
45+
"app_id": "ID de aplicación",
4546
"base_url": "URL base",
4647
"bearer_token_auth_enable": "Autenticarse con un token de acceso personal",
4748
"bom_formats": "Formatos de lista de materiales",
@@ -68,7 +69,6 @@
6869
"create_role": "Crear rol",
6970
"create_team": "Crear equipo",
7071
"create_template": "Crear plantilla",
71-
"create_topic": "Crear tema",
7272
"create_user": "Crear usuario",
7373
"days": "Días",
7474
"days_of_metrics": "Días de métricas",
@@ -120,10 +120,8 @@
120120
"github": "GitHub",
121121
"github_advisories": "Avisos de GitHub",
122122
"gitlab": "GitLab",
123-
"gitlab_application_id": "ID de aplicación de GitLab",
124123
"gitlab_audience": "Audiencia",
125124
"gitlab_jwks_path": "Ruta JWKS de GitLab",
126-
"gitlab_url": "URL de GitLab",
127125
"go_modules": "Ir a módulos",
128126
"group": "Grupo",
129127
"hackage": "Hackage",
@@ -190,7 +188,6 @@
190188
"new_api_key": "Esta es la clave API recientemente generada. \nTenga en cuenta que solo se mostrará una vez y no se puede recuperar más tarde.",
191189
"new_api_key_title": "Nueva clave API",
192190
"nixpkgs": "Nixpkgs",
193-
"no_unassigned_projects": "No hay proyectos no asignados",
194191
"notification_level": "Nivel de notificación",
195192
"notifications": "Notificaciones",
196193
"npm": "MNP",
@@ -205,6 +202,9 @@
205202
"old_key_format": "¡Esta clave API está desactualizada y debe actualizarse pronto para una funcionalidad continua!",
206203
"oss_index": "Índice Sonatype OSS",
207204
"osv_advisories": "Avisos de OSV de Google (Beta)",
205+
"pagination_all": "Todo",
206+
"pagination_current": "{start} a {end} de {total}",
207+
"pagination_per_page": "Por página: {Count}",
208208
"password": "Contraseña (o token de acceso)",
209209
"password_confirm": "Confirmar Contraseña",
210210
"password_never_expires": "La contraseña nunca expira",
@@ -313,7 +313,7 @@
313313
"templates": "Plantillas",
314314
"test_notification_queued": "Se ha puesto en cola una notificación de prueba",
315315
"token": "Simbólico",
316-
"topic_name": "Nombre del tema",
316+
"topics": "Temas",
317317
"trivy": "trivia",
318318
"url": "URL",
319319
"user_created": "Usuario creado",
@@ -470,6 +470,9 @@
470470
"contacts": "Contactos",
471471
"coordinates": "Coordenadas",
472472
"coordinates_version_tooltip": "Puede utilizar los operadores de comparación >, <, >=, <=, == y != para hacer coincidir versiones específicas o rangos de versiones.",
473+
"copy_failed": "No se pudo copiar al portapapeles",
474+
"copy_success": "Copiado al portapapeles",
475+
"copy_to_clipboard": "Copiar al portapapeles",
473476
"copyright": "Derechos de autor",
474477
"cpe": "CPE",
475478
"cpe_full": "Enumeración de plataforma común (CPE)",
@@ -620,11 +623,11 @@
620623
"license_text": "Texto de licencia",
621624
"license_url": "URL de licencia",
622625
"licenses": "Licencias",
626+
"loading": "Cargando",
623627
"login": "Acceso",
624628
"login_desc": "Iniciar sesión en su cuenta",
625629
"login_forbidden": "Esta cuenta está inactiva o ha sido suspendida",
626630
"login_more_options": "Mas opciones",
627-
"login_permission_required": "El inicio de sesión se realizó correctamente, pero parece que aún no tienes permisos. Contacta con tus administradores para obtener ayuda.",
628631
"login_unauthorized": "usuario o contraseña invalido",
629632
"logout": "Cerrar sesión",
630633
"manufacturer": "Fabricante",

src/i18n/locales/fr.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"api_keys": "Clés d'API",
4343
"api_token": "Jeton d'API",
4444
"api_token_header": "Entête du jeton d'API",
45+
"app_id": "Identifiant d'application",
4546
"base_url": "URL de base",
4647
"bearer_token_auth_enable": "S'authentifier avec un jeton d'accès personnel",
4748
"bom_formats": "Formats de nomenclature (BOM)",
@@ -68,7 +69,6 @@
6869
"create_role": "Créer un rôle",
6970
"create_team": "Créer une équipe",
7071
"create_template": "Créer un modèle",
71-
"create_topic": "Créer un sujet",
7272
"create_user": "Créer un utilisateur",
7373
"days": "Jours",
7474
"days_of_metrics": "Les jours des métriques",
@@ -120,10 +120,8 @@
120120
"github": "GitHub",
121121
"github_advisories": "GitHub Advisories",
122122
"gitlab": "GitLab",
123-
"gitlab_application_id": "ID de l'application GitLab",
124123
"gitlab_audience": "Public",
125124
"gitlab_jwks_path": "Chemin JWKS de GitLab",
126-
"gitlab_url": "URL Gitlab",
127125
"go_modules": "Modules Go",
128126
"group": "Groupe",
129127
"hackage": "Hackage",
@@ -190,7 +188,6 @@
190188
"new_api_key": "Il s'agit de la clé API nouvellement générée. \nVeuillez noter qu'il ne sera affiché qu'une seule fois et ne peut pas être récupéré plus tard.",
191189
"new_api_key_title": "Nouvelle clé API",
192190
"nixpkgs": "Nixpkgs",
193-
"no_unassigned_projects": "Pas de projets non attribués",
194191
"notification_level": "Niveau d'alerte",
195192
"notifications": "Notifications",
196193
"npm": "NPM",
@@ -205,6 +202,9 @@
205202
"old_key_format": "Cette clé API est obsolète et devrait être mise à jour bientôt pour les fonctionnalités continues!",
206203
"oss_index": "Index Sonatype OSS",
207204
"osv_advisories": "Google OSV Advisories (bêta)",
205+
"pagination_all": "Tous",
206+
"pagination_current": "{start} à {end} de {total}",
207+
"pagination_per_page": "Par page: {count}",
208208
"password": "Mot de passe (ou jeton d'accès)",
209209
"password_confirm": "Confirmer le mot de passe",
210210
"password_never_expires": "Le mot de passe n'expire jamais",
@@ -313,7 +313,7 @@
313313
"templates": "Modèles",
314314
"test_notification_queued": "Une notification de test a été mise en file d'attente",
315315
"token": "Jeton",
316-
"topic_name": "Nom du sujet",
316+
"topics": "Sujets",
317317
"trivy": "Trivy",
318318
"url": "URL",
319319
"user_created": "Utilisateur créé",
@@ -470,6 +470,9 @@
470470
"contacts": "Contacts",
471471
"coordinates": "Coordonnées",
472472
"coordinates_version_tooltip": "Vous pouvez utiliser les opérateurs de comparaison >, <, >=, <=, == et != pour faire correspondre des versions ou des plages de versions spécifiques.",
473+
"copy_failed": "Échec de la copie dans le presse-papiers",
474+
"copy_success": "Copié dans le presse-papiers",
475+
"copy_to_clipboard": "Copier dans le presse-papiers",
473476
"copyright": "Droits d'auteur",
474477
"cpe": "CPE",
475478
"cpe_full": "Common Platform Enumeration (CPE)",
@@ -620,11 +623,11 @@
620623
"license_text": "Texte de licence",
621624
"license_url": "URL de la licence",
622625
"licenses": "Licences",
626+
"loading": "Chargement",
623627
"login": "Se connecter",
624628
"login_desc": "Connectez-vous à votre compte",
625629
"login_forbidden": "Ce compte est inactif ou a été suspendu",
626630
"login_more_options": "Plus d'options",
627-
"login_permission_required": "Connexion réussie, mais vous ne semblez pas encore disposer des autorisations nécessaires. Veuillez contacter vos administrateurs pour obtenir de l'aide.",
628631
"login_unauthorized": "Nom d'utilisateur ou mot de passe invalide",
629632
"logout": "Se déconnecter",
630633
"manufacturer": "Fabricant",

src/i18n/locales/hi.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"api_keys": "एपीआई कुंजियाँ",
4343
"api_token": "एपीआई टोकन",
4444
"api_token_header": "api_token_header",
45+
"app_id": "ऐप आईडी",
4546
"base_url": "आधार यूआरएल",
4647
"bearer_token_auth_enable": "व्यक्तिगत एक्सेस टोकन से प्रमाणीकरण करें",
4748
"bom_formats": "बीओएम प्रारूप",
@@ -68,7 +69,6 @@
6869
"create_role": "भूमिका बनाएँ",
6970
"create_team": "टीम बनाएं",
7071
"create_template": "टेम्पलेट बनाएं",
71-
"create_topic": "विषय बनाएं",
7272
"create_user": "उपयोगकर्ता बनाइये",
7373
"days": "दिन",
7474
"days_of_metrics": "मेट्रिक्स के दिन",
@@ -120,10 +120,8 @@
120120
"github": "GitHub",
121121
"github_advisories": "GitHub सलाह",
122122
"gitlab": "GitLab",
123-
"gitlab_application_id": "GitLab एप्लिकेशन आईडी",
124123
"gitlab_audience": "श्रोता",
125124
"gitlab_jwks_path": "GitLab JWKS पथ",
126-
"gitlab_url": "GitLab यूआरएल",
127125
"go_modules": "जाओ मॉड्यूल",
128126
"group": "समूह",
129127
"hackage": "Hackage",
@@ -190,7 +188,6 @@
190188
"new_api_key": "यह नई उत्पन्न एपीआई कुंजी है। \nकृपया ध्यान दें कि यह केवल एक बार प्रदर्शित किया जाएगा और बाद में पुनर्प्राप्त नहीं किया जा सकता है।",
191189
"new_api_key_title": "नई एपीआई कुंजी",
192190
"nixpkgs": "Nixpkgs",
193-
"no_unassigned_projects": "कोई अनसुना परियोजना नहीं",
194191
"notification_level": "अधिसूचना स्तर",
195192
"notifications": "सूचनाएं",
196193
"npm": "NPM",
@@ -205,6 +202,9 @@
205202
"old_key_format": "यह एपीआई कुंजी पुरानी है और इसे निरंतर कार्यक्षमता के लिए जल्द ही अपडेट किया जाना चाहिए!",
206203
"oss_index": "सोनाटाइप ओएसएस सूचकांक",
207204
"osv_advisories": "Google OSV सलाह (बीटा)",
205+
"pagination_all": "सभी",
206+
"pagination_current": "{start} से {end} के {total}",
207+
"pagination_per_page": "प्रति पृष्ठ: {गिनती}",
208208
"password": "पासवर्ड (या एक्सेस टोकन)",
209209
"password_confirm": "पासवर्ड की पुष्टि कीजिये",
210210
"password_never_expires": "पासवर्ड की समय सीमा कभी समाप्त नहीं होती है",
@@ -313,7 +313,7 @@
313313
"templates": "टेम्पलेट्स",
314314
"test_notification_queued": "एक परीक्षण अधिसूचना कतारबद्ध कर दी गई है",
315315
"token": "टोकन",
316-
"topic_name": "Vिषय का नाम",
316+
"topics": "विषय",
317317
"trivy": "ट्रिवी",
318318
"url": "यूआरएल",
319319
"user_created": "उपयोगकर्ता द्वारा बनाया गया",
@@ -470,6 +470,9 @@
470470
"contacts": "संपर्क",
471471
"coordinates": "COORDINATES",
472472
"coordinates_version_tooltip": "आप विशिष्ट संस्करणों या संस्करण श्रेणियों का मिलान करने के लिए तुलना ऑपरेटर >, <, >=, <=, == और != का उपयोग कर सकते हैं",
473+
"copy_failed": "क्लिपबोर्ड पर कॉपी करने में विफल",
474+
"copy_success": "क्लिपबोर्ड के लिए कॉपी किया गया",
475+
"copy_to_clipboard": "क्लिपबोर्ड पर कॉपी करें",
473476
"copyright": "कॉपीराइट",
474477
"cpe": "सीपीई",
475478
"cpe_full": "कॉमन प्लेटफ़ॉर्म एन्यूमरेशन (सीपीई)",
@@ -620,11 +623,11 @@
620623
"license_text": "लाइसेंस पाठ",
621624
"license_url": "लाइसेंस यूआरएल",
622625
"licenses": "लाइसेंस",
626+
"loading": "लोड करना",
623627
"login": "लॉग इन करें",
624628
"login_desc": "अपने अकाउंट में साइन इन करें",
625629
"login_forbidden": "यह खाता निष्क्रिय है या निलंबित कर दिया गया है",
626630
"login_more_options": "अधिक विकल्प",
627-
"login_permission_required": "लॉगिन सफल रहा, लेकिन ऐसा लगता है कि आपके पास अभी तक कोई अनुमति नहीं है। कृपया सहायता के लिए अपने व्यवस्थापकों से संपर्क करें।",
628631
"login_unauthorized": "अमान्य उपयोगकर्ता नाम या पासवर्ड",
629632
"logout": "लॉग आउट",
630633
"manufacturer": "उत्पादक",

0 commit comments

Comments
 (0)