Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing repo views for Hackage and Nixpkgs #845

Merged
merged 1 commit into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "GitHub Advisories",
"go_modules": "Go Module",
"group": "Gruppe",
"hackage": "Hackage",
"hex": "Hex",
"identifier": "Kennung",
"include_active_children": "Aktive untergeordnete Projekte einschließen",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Regulärer Ausdruck für den Komponenten-Namespace",
"namespace_regex_desc": "Gibt einen regulären Ausdruck an, der interne Komponenten nach Namespace identifiziert. Der Namespace wird in verschiedenen Ökosystemen häufig als „Gruppe“, „Organisation“ oder „Anbieter“ bezeichnet.",
"national_vulnerability_database": "National Vulnerability Database",
"nixpkgs": "Nixpkgs",
"notification_level": "Level",
"notifications": "Benachrichtigungen",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "GitHub Advisories",
"go_modules": "Go Modules",
"group": "Group",
"hackage": "Hackage",
"hex": "Hex",
"identifier": "Identifier",
"include_active_children": "Include active children of projects",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Component namespace regex",
"namespace_regex_desc": "Specifies a regular expression that identifies internal components by namespace. The namespace is often referred to as 'group', 'organization', or 'vendor' in various ecosystems.",
"national_vulnerability_database": "National Vulnerability Database",
"nixpkgs": "Nixpkgs",
"notification_level": "Notification level",
"notifications": "Notifications",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Avisos de GitHub",
"go_modules": "Ir a módulos",
"group": "Grupo",
"hackage": "Hackage",
"hex": "Maleficio",
"identifier": "Identificador",
"include_active_children": "Incluir hijos activos de proyectos.",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Expresión regular del espacio de nombres del componente",
"namespace_regex_desc": "Especifica una expresión regular que identifica los componentes internos por espacio de nombres. El espacio de nombres a menudo se denomina \"grupo\", \"organización\" o \"proveedor\" en varios ecosistemas.",
"national_vulnerability_database": "Base de datos nacional de vulnerabilidad",
"nixpkgs": "Nixpkgs",
"notification_level": "Nivel de notificación",
"notifications": "Notificaciones",
"npm": "MNP",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Avis GitHub",
"go_modules": "Aller aux modules",
"group": "Groupe",
"hackage": "Hackage",
"hex": "Hex",
"identifier": "Identifiant",
"include_active_children": "Inclure les enfants actifs des projets",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Regex d'espace de noms de composant",
"namespace_regex_desc": "Spécifie une expression régulière qui identifie les composants internes par espace de noms. L'espace de noms est souvent appelé « groupe », « organisation » ou « fournisseur » dans divers écosystèmes.",
"national_vulnerability_database": "Base de données nationale sur la vulnérabilité",
"nixpkgs": "Nixpkgs",
"notification_level": "Niveau de notification",
"notifications": "Notifications",
"npm": "MNP",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "GitHub सलाह",
"go_modules": "जाओ मॉड्यूल",
"group": "समूह",
"hackage": "Hackage",
"hex": "हेक्स",
"identifier": "पहचानकर्ता",
"include_active_children": "परियोजनाओं के सक्रिय बच्चों को शामिल करें",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "घटक नामस्थान regex",
"namespace_regex_desc": "एक नियमित अभिव्यक्ति निर्दिष्ट करता है जो नामस्थान द्वारा आंतरिक घटकों की पहचान करता है। नामस्थान को अक्सर विभिन्न पारिस्थितिकी प्रणालियों में 'समूह', 'संगठन' या 'विक्रेता' के रूप में संदर्भित किया जाता है।",
"national_vulnerability_database": "राष्ट्रीय भेद्यता डेटाबेस",
"nixpkgs": "Nixpkgs",
"notification_level": "अधिसूचना स्तर",
"notifications": "सूचनाएं",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Avvisi su GitHub",
"go_modules": "Vai Moduli",
"group": "Gruppo",
"hackage": "Hackage",
"hex": "Esadecimale",
"identifier": "Identificatore",
"include_active_children": "Includere i figli attivi dei progetti",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Regex dello spazio dei nomi del componente",
"namespace_regex_desc": "Specifica un'espressione regolare che identifica i componenti interni in base allo spazio dei nomi. Lo spazio dei nomi viene spesso definito \"gruppo\", \"organizzazione\" o \"fornitore\" in vari ecosistemi.",
"national_vulnerability_database": "Database nazionale delle vulnerabilità",
"nixpkgs": "Nixpkgs",
"notification_level": "Livello di notifica",
"notifications": "Notifiche",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "GitHub アドバイザリ",
"go_modules": "Goモジュール",
"group": "グループ",
"hackage": "Hackage",
"hex": "ヘックス",
"identifier": "識別子",
"include_active_children": "プロジェクトのアクティブな子を含める",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "コンポーネント名前空間正規表現",
"namespace_regex_desc": "名前空間によって内部コンポーネントを識別する正規表現を指定します。名前空間は、さまざまなエコシステムで「グループ」、「組織」、または「ベンダー」と呼ばれることがよくあります。",
"national_vulnerability_database": "国家脆弱性データベース",
"nixpkgs": "Nixpkgs",
"notification_level": "通知レベル",
"notifications": "通知",
"npm": "国立博物館",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Doradztwo GitHuba",
"go_modules": "Przejdź do modułów",
"group": "Grupa",
"hackage": "Hackage",
"hex": "Klątwa",
"identifier": "Identyfikator",
"include_active_children": "Uwzględnij aktywne elementy podrzędne projektów",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Wyrażenie regularne przestrzeni nazw komponentu",
"namespace_regex_desc": "Określa wyrażenie regularne identyfikujące komponenty wewnętrzne według przestrzeni nazw. W różnych ekosystemach przestrzeń nazw jest często określana jako „grupa”, „organizacja” lub „sprzedawca”.",
"national_vulnerability_database": "Krajowa baza danych o podatnościach",
"nixpkgs": "Nixpkgs",
"notification_level": "Poziom powiadomień",
"notifications": "Powiadomienia",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Avisos do GitHub",
"go_modules": "Módulos Go",
"group": "Grupo",
"hackage": "Hackage",
"hex": "Feitiço",
"identifier": "Identificador",
"include_active_children": "Incluir filhos ativos de projetos",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Regex do namespace do componente",
"namespace_regex_desc": "Especifica uma expressão regular que identifica componentes internos por namespace. O namespace é frequentemente referido como 'grupo', 'organização' ou 'fornecedor' em vários ecossistemas.",
"national_vulnerability_database": "Banco de dados nacional de vulnerabilidades",
"nixpkgs": "Nixpkgs",
"notification_level": "Nível de notificação",
"notifications": "Notificações",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Avisos do GitHub",
"go_modules": "Módulos Go",
"group": "Grupo",
"hackage": "Hackage",
"hex": "Feitiço",
"identifier": "Identificador",
"include_active_children": "Incluir filhos ativos de projetos",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Regex do namespace do componente",
"namespace_regex_desc": "Especifica uma expressão regular que identifica componentes internos por namespace. O namespace é frequentemente referido como 'grupo', 'organização' ou 'fornecedor' em vários ecossistemas.",
"national_vulnerability_database": "Banco de dados nacional de vulnerabilidades",
"nixpkgs": "Nixpkgs",
"notification_level": "Nível de notificação",
"notifications": "Notificações",
"npm": "NPM",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Рекомендации GitHub",
"go_modules": "Модули Go",
"group": "Группа",
"hackage": "Hackage",
"hex": "Шестигранник",
"identifier": "Идентификатор",
"include_active_children": "Включайте активных дочерних проектов",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Регулярное выражение пространства имен компонента",
"namespace_regex_desc": "Задает регулярное выражение, которое идентифицирует внутренние компоненты по пространству имен. Пространство имен часто называют «группой», «организацией» или «поставщиком» в различных экосистемах.",
"national_vulnerability_database": "Национальная база данных уязвимостей",
"nixpkgs": "Nixpkgs",
"notification_level": "Уровень уведомления",
"notifications": "Уведомления",
"npm": "НПМ",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "Повідомлення GitHub",
"go_modules": "Go Modules",
"group": "Група",
"hackage": "Hackage",
"hex": "Hex",
"identifier": "Ідентифікатор",
"include_active_children": "Залучайте активних дітей до проектів",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "Регулярний вираз простору імен компонентів",
"namespace_regex_desc": "Визначає регулярний вираз, який визначає внутрішні компоненти за простором імен. \nУ різних екосистемах простір імен часто називають «групою», «організацією» або «постачальником».",
"national_vulnerability_database": "Національна база даних уразливостей",
"nixpkgs": "Nixpkgs",
"notification_level": "Рівень сповіщення",
"notifications": "Сповіщення",
"npm": "НПМ",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"github_advisories": "GitHub 公告",
"go_modules": "Go 模块",
"group": "团体",
"hackage": "Hackage",
"hex": "十六进制",
"identifier": "标识符",
"include_active_children": "包括项目的活跃子项",
Expand Down Expand Up @@ -155,6 +156,7 @@
"namespace_regex": "组件命名空间正则表达式",
"namespace_regex_desc": "指定按命名空间标识内部组件的正则表达式。命名空间在各种生态系统中通常称为“组”、“组织”或“供应商”。",
"national_vulnerability_database": "国家漏洞数据库",
"nixpkgs": "Nixpkgs",
"notification_level": "通知级别",
"notifications": "通知",
"npm": "新平台",
Expand Down
22 changes: 22 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
const Gem = () => import('@/views/administration/repositories/Gem');
const GitHub = () => import('@/views/administration/repositories/GitHub.vue');
const GoModules = () => import('@/views/administration/repositories/GoModules');
const Hackage = () => import('@/views/administration/repositories/Hackage');
const Hex = () => import('@/views/administration/repositories/Hex');
const Maven = () => import('@/views/administration/repositories/Maven');
const Nixpkgs = () => import('@/views/administration/repositories/Nixpkgs');
const Npm = () => import('@/views/administration/repositories/Npm');
const Nuget = () => import('@/views/administration/repositories/Nuget');
const Python = () => import('@/views/administration/repositories/Python');
Expand Down Expand Up @@ -537,6 +539,16 @@
permission: 'SYSTEM_CONFIGURATION',
},
},
{
path: 'repositories/hackage',
component: Hackage,
meta: {
title: i18n.t('message.administration'),
i18n: 'message.administration',
sectionPath: '/admin',
permission: 'SYSTEM_CONFIGURATION',
},
},
{
path: 'repositories/hex',
component: Hex,
Expand All @@ -557,6 +569,16 @@
permission: 'SYSTEM_CONFIGURATION',
},
},
{
path: 'repositories/nixpkgs',
component: Nixpkgs,
meta: {
title: i18n.t('message.administration'),
i18n: 'message.administration',
sectionPath: '/admin',
permission: 'SYSTEM_CONFIGURATION',
},
},
{
path: 'repositories/npm',
component: Npm,
Expand Down Expand Up @@ -734,7 +756,7 @@
path: 'project',
props: (route) => ({ uuid: route.query.uuid }),
redirect: (to) => {
let { hash, params, query } = to;

Check failure on line 759 in src/router/index.js

View workflow job for this annotation

GitHub Actions / lint

'hash' is assigned a value but never used

Check failure on line 759 in src/router/index.js

View workflow job for this annotation

GitHub Actions / lint

'params' is assigned a value but never used
if (query.uuid) {
let uuid = query.uuid;
return { path: '/projects/' + uuid, query: null };
Expand All @@ -747,7 +769,7 @@
path: 'component',
props: (route) => ({ uuid: route.query.uuid }),
redirect: (to) => {
let { hash, params, query } = to;

Check failure on line 772 in src/router/index.js

View workflow job for this annotation

GitHub Actions / lint

'hash' is assigned a value but never used

Check failure on line 772 in src/router/index.js

View workflow job for this annotation

GitHub Actions / lint

'params' is assigned a value but never used
if (query.uuid) {
let uuid = query.uuid;
return { path: '/components/' + uuid, query: null };
Expand Down
10 changes: 10 additions & 0 deletions src/views/administration/AdminMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ export default {
name: this.$t('admin.go_modules'),
route: 'repositories/goModules',
},
{
component: 'Hackage',
name: this.$t('admin.hackage'),
route: 'repositories/hackage',
},
{
component: 'Hex',
name: this.$t('admin.hex'),
Expand All @@ -216,6 +221,11 @@ export default {
name: this.$t('admin.maven'),
route: 'repositories/maven',
},
{
component: 'Nixpkgs',
name: this.$t('admin.nixpkgs'),
route: 'repositories/nixpkgs',
},
{
component: 'Npm',
name: this.$t('admin.npm'),
Expand Down
4 changes: 4 additions & 0 deletions src/views/administration/Administration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ import Cpan from './repositories/Cpan';
import Gem from './repositories/Gem';
import GitHub from './repositories/GitHub.vue';
import GoModules from './repositories/GoModules';
import Hackage from './repositories/Hackage.vue';
import Hex from './repositories/Hex';
import Maven from './repositories/Maven';
import Nixpkgs from './repositories/Nixpkgs.vue';
import Npm from './repositories/Npm';
import Nuget from './repositories/Nuget';
import Python from './repositories/Python';
Expand Down Expand Up @@ -90,8 +92,10 @@ export default {
Gem,
GitHub,
GoModules,
Hackage,
Hex,
Maven,
Nixpkgs,
Npm,
Cpan,
Nuget,
Expand Down
15 changes: 15 additions & 0 deletions src/views/administration/repositories/Hackage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<repositories type="HACKAGE" :header="header" />
</template>

<script>
import Repositories from './Repositories';
export default {
props: {
header: String,
},
components: {
Repositories,
},
};
</script>
15 changes: 15 additions & 0 deletions src/views/administration/repositories/Nixpkgs.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<repositories type="NIXPKGS" :header="header" />
</template>

<script>
import Repositories from './Repositories';
export default {
props: {
header: String,
},
components: {
Repositories,
},
};
</script>
Loading