Skip to content

Commit

Permalink
Feat/customizable login page
Browse files Browse the repository at this point in the history
Co-Authored-By: Thomas Schauer-Köckeis <[email protected]>
  • Loading branch information
sahibamittal and Gepardgame committed Sep 18, 2024
1 parent 113697e commit f8b68a1
Show file tree
Hide file tree
Showing 18 changed files with 216 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Berechtigungen",
"personal_access_token": "Persönlicher Zugriffstoken",
"portfolio_access_control": "Portfolio-Zugriffskontrolle",
"preview": "Vorschau",
"project_access": "Projektzugriff",
"publisher": "Publisher",
"publisher_class": "Publisher-Klasse",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Wählen Sie ein Ökosystem aus, um Google OSV Advisory Mirroring zu aktivieren",
"vulnsource_osv_alias_sync_warning": "OSV kann nicht identische Schwachstellen als Aliase melden. Gehen Sie mit Vorsicht vor.",
"vulnsource_osv_base_url": "OSV-Basis-URL",
"welcome_message": "Willkommensnachricht",
"welcome_message_desc": "Passen Sie die Willkommensnachricht an, die auf der Startseite von Dependency-Track angezeigt wird, bevor sich Benutzer anmelden.",
"welcome_message_enable": "Willkommensnachricht aktivieren",
"workflow_step_timeout": "Schritt-Timeout",
"workflows": "Workflows"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Permissions",
"personal_access_token": "Personal Access Token",
"portfolio_access_control": "Portfolio Access Control",
"preview": "Preview",
"project_access": "Project access",
"publisher": "Publisher",
"publisher_class": "Publisher class",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Select ecosystem to enable Google OSV Advisory mirroring",
"vulnsource_osv_alias_sync_warning": "OSV may report non-identical vulnerabilities as aliases. Proceed with caution.",
"vulnsource_osv_base_url": "OSV Base URL",
"welcome_message": "Welcome Message",
"welcome_message_desc": "Customize the welcome message that appears on the start page of Dependency-Track before users sign in.",
"welcome_message_enable": "Enable welcome message",
"workflow_step_timeout": "Step Timeout",
"workflows": "Workflows"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Permisos",
"personal_access_token": "Token de acceso personal",
"portfolio_access_control": "Control de acceso al portafolio",
"preview": "Avance",
"project_access": "Acceso al proyecto",
"publisher": "Editor",
"publisher_class": "Clase de editor",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Seleccione el ecosistema para habilitar la duplicación del aviso OSV de Google",
"vulnsource_osv_alias_sync_warning": "OSV puede informar vulnerabilidades no idénticas como alias. Proceda con precaución.",
"vulnsource_osv_base_url": "URL base de OSV",
"welcome_message": "Mensaje de bienvenida",
"welcome_message_desc": "Personalice el mensaje de bienvenida que aparece en la página de inicio de Dependency-Track antes de que los usuarios inicien sesión.",
"welcome_message_enable": "Habilitar mensaje de bienvenida",
"workflow_step_timeout": "Tiempo de espera del paso",
"workflows": "Flujos de trabajo"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Autorisations",
"personal_access_token": "Jeton d'accès personnel",
"portfolio_access_control": "Contrôle d'accès au portefolio",
"preview": "Aperçu",
"project_access": "Accès au projet",
"publisher": "Éditeur",
"publisher_class": "Classe d'éditeur",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Sélectionnez (au moins) un écosystème pour activer la réplication de Google OSV Advisory",
"vulnsource_osv_alias_sync_warning": "OSV peut signaler des vulnérabilités non identiques sous forme d'alias. Procéder avec prudence.",
"vulnsource_osv_base_url": "URL de base OSV",
"welcome_message": "Message de bienvenue",
"welcome_message_desc": "Personnalisez le message de bienvenue qui apparaît sur la page de démarrage de Dependency-Track avant que les utilisateurs ne se connectent.",
"welcome_message_enable": "Activer le message de bienvenue",
"workflow_step_timeout": "Délai d'expiration de l'étape",
"workflows": "Flux de travail"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "अनुमतियां",
"personal_access_token": "व्यक्तिगत एक्सेस टोकन",
"portfolio_access_control": "पोर्टफोलियो एक्सेस नियंत्रण",
"preview": "पूर्व दर्शन",
"project_access": "परियोजना तक पहुंच",
"publisher": "प्रकाशक",
"publisher_class": "प्रकाशक वर्ग",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Google OSV एडवाइजरी मिररिंग सक्षम करने के लिए पारिस्थितिकी तंत्र का चयन करें",
"vulnsource_osv_alias_sync_warning": "OSV गैर-समान कमज़ोरियों को उपनाम के रूप में रिपोर्ट कर सकता है। सावधानी से आगे बढ़ें।",
"vulnsource_osv_base_url": "OSV बेस यूआरएल",
"welcome_message": "स्वागत संदेश",
"welcome_message_desc": "उपयोगकर्ताओं के साइन इन करने से पहले डिपेंडेंसी-ट्रैक के आरंभ पृष्ठ पर दिखाई देने वाले स्वागत संदेश को अनुकूलित करें।",
"welcome_message_enable": "स्वागत संदेश सक्षम करें",
"workflow_step_timeout": "चरण समयबाह्य",
"workflows": "वर्कफ़्लो"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Autorizzazioni",
"personal_access_token": "Token di accesso personale",
"portfolio_access_control": "Controllo degli accessi al portafoglio",
"preview": "Anteprima",
"project_access": "Accesso al progetto",
"publisher": "Editore",
"publisher_class": "Classe editore",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Seleziona l'ecosistema per abilitare il mirroring dell'advisory OSV di Google",
"vulnsource_osv_alias_sync_warning": "OSV può segnalare vulnerabilità non identiche come alias. Procedi con cautela.",
"vulnsource_osv_base_url": "URL di base OSV",
"welcome_message": "Messaggio di benvenuto",
"welcome_message_desc": "Personalizza il messaggio di benvenuto che appare nella pagina iniziale di Dependency-Track prima che gli utenti accedano.",
"welcome_message_enable": "Abilita il messaggio di benvenuto",
"workflow_step_timeout": "Passaggio Timeout",
"workflows": "Flussi di lavoro"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "権限",
"personal_access_token": "パーソナルアクセストークン",
"portfolio_access_control": "ポートフォリオアクセス制御",
"preview": "プレビュー",
"project_access": "プロジェクトへのアクセス",
"publisher": "パブリッシャー",
"publisher_class": "パブリッシャークラス",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Google OSV アドバイザリ ミラーリングを有効にするエコシステムを選択します",
"vulnsource_osv_alias_sync_warning": "OSV は同一でない脆弱性をエイリアスとして報告する場合があります。ご注意ください。",
"vulnsource_osv_base_url": "OSV ベース URL",
"welcome_message": "ウェルカムメッセージ",
"welcome_message_desc": "ユーザーがサインインする前に、Dependency-Track の開始ページに表示されるウェルカム メッセージをカスタマイズします。",
"welcome_message_enable": "ウェルカムメッセージを有効にする",
"workflow_step_timeout": "ステップタイムアウト",
"workflows": "ワークフロー"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Uprawnienia",
"personal_access_token": "Osobisty token dostępu",
"portfolio_access_control": "Kontrola dostępu do portfela",
"preview": "Zapowiedź",
"project_access": "Dostęp do projektu",
"publisher": "Wydawca",
"publisher_class": "Klasa wydawcy",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Wybierz ekosystem, aby włączyć kopię lustrzaną Doradztwa Google OSV",
"vulnsource_osv_alias_sync_warning": "OSV może zgłaszać nieidentyczne luki w zabezpieczeniach jako aliasy. Postępuj ostrożnie.",
"vulnsource_osv_base_url": "Podstawowy adres URL OSV",
"welcome_message": "Wiadomość powitalna",
"welcome_message_desc": "Dostosuj wiadomość powitalną wyświetlaną na stronie początkowej funkcji Depency-Track przed zalogowaniem się użytkownika.",
"welcome_message_enable": "Włącz wiadomość powitalną",
"workflow_step_timeout": "Limit czasu kroku",
"workflows": "Przepływy pracy"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Permissões",
"personal_access_token": "Token de acesso pessoal",
"portfolio_access_control": "Controle de acesso ao portfólio",
"preview": "Visualização",
"project_access": "Acesso ao projeto",
"publisher": "Editor",
"publisher_class": "Classe de editor",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Selecione o ecossistema para ativar o espelhamento do Google OSV Advisory",
"vulnsource_osv_alias_sync_warning": "OSV pode relatar vulnerabilidades não idênticas como aliases. Prossiga com cuidado.",
"vulnsource_osv_base_url": "URL base do OSV",
"welcome_message": "Mensagem de boas-vindas",
"welcome_message_desc": "Personalize a mensagem de boas-vindas que aparece na página inicial do Dependency-Track antes dos usuários fazerem login.",
"welcome_message_enable": "Ativar mensagem de boas-vindas",
"workflow_step_timeout": "Tempo limite da etapa",
"workflows": "Fluxos de trabalho"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Permissões",
"personal_access_token": "Token de acesso pessoal",
"portfolio_access_control": "Controle de acesso ao portfólio",
"preview": "Visualização",
"project_access": "Acesso ao projeto",
"publisher": "Editor",
"publisher_class": "Classe de editor",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Selecione o ecossistema para ativar o espelhamento do Google OSV Advisory",
"vulnsource_osv_alias_sync_warning": "OSV pode relatar vulnerabilidades não idênticas como aliases. Prossiga com cuidado.",
"vulnsource_osv_base_url": "URL base do OSV",
"welcome_message": "Mensagem de boas-vindas",
"welcome_message_desc": "Personalize a mensagem de boas-vindas que aparece na página inicial do Dependency-Track antes dos usuários fazerem login.",
"welcome_message_enable": "Ativar mensagem de boas-vindas",
"workflow_step_timeout": "Tempo limite da etapa",
"workflows": "Fluxos de trabalho"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Разрешения",
"personal_access_token": "Токен личного доступа",
"portfolio_access_control": "Контроль доступа к портфолио",
"preview": "Предварительный просмотр",
"project_access": "Доступ к проекту",
"publisher": "Издатель",
"publisher_class": "Класс издателя",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Выберите экосистему, чтобы включить зеркалирование рекомендаций Google OSV.",
"vulnsource_osv_alias_sync_warning": "OSV может сообщать о неидентичных уязвимостях как псевдонимах. Действовать с осторожностью.",
"vulnsource_osv_base_url": "Базовый URL-адрес OSV",
"welcome_message": "Приветственное сообщение",
"welcome_message_desc": "Настройте приветственное сообщение, которое появляется на стартовой странице Dependency-Track перед входом пользователей.",
"welcome_message_enable": "Включить приветственное сообщение",
"workflow_step_timeout": "Тайм-аут шага",
"workflows": "Рабочие процессы"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "Дозволи",
"personal_access_token": "Персональний маркер доступу",
"portfolio_access_control": "Контроль доступу до портфоліо",
"preview": "Попередній перегляд",
"project_access": "Доступ до проекту",
"publisher": "Видавець",
"publisher_class": "Клас видавця",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "Виберіть екосистему, щоб увімкнути віддзеркалення Google OSV Advisory",
"vulnsource_osv_alias_sync_warning": "OSV може повідомляти про неідентичні вразливості як псевдоніми. \nДійте обережно.",
"vulnsource_osv_base_url": "Базовий URL OSV",
"welcome_message": "Вітальне повідомлення",
"welcome_message_desc": "Налаштуйте вітальне повідомлення, яке з’являється на початковій сторінці Dependency-Track перед входом користувачів.",
"welcome_message_enable": "Увімкнути вітальне повідомлення",
"workflow_step_timeout": "Час очікування кроку",
"workflows": "Робочі процеси"
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"permissions": "权限",
"personal_access_token": "个人访问令牌",
"portfolio_access_control": "portfolio 访问控制",
"preview": "预览",
"project_access": "项目访问",
"publisher": "发行商",
"publisher_class": "发行商分类",
Expand Down Expand Up @@ -291,6 +292,9 @@
"vulnsource_osv_advisories_enable": "选择生态系统以启用 Google OSV 咨询镜像",
"vulnsource_osv_alias_sync_warning": "OSV 可能会将不相同的漏洞报告为别名。请谨慎操作。",
"vulnsource_osv_base_url": "OSV 基本 URL",
"welcome_message": "欢迎辞",
"welcome_message_desc": "自定义用户登录前 Dependency-Track 起始页上显示的欢迎消息。",
"welcome_message_enable": "启用欢迎消息",
"workflow_step_timeout": "步骤超时",
"workflows": "工作流程"
},
Expand Down
12 changes: 12 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const Administration = () => import('@/views/administration/Administration');
const General = () => import('@/views/administration/configuration/General');
const BomFormats = () =>
import('@/views/administration/configuration/BomFormats');
const WelcomeMessage = () =>
import('@/views/administration/configuration/WelcomeMessage');
const Email = () => import('@/views/administration/configuration/Email');
const Jira = () => import('@/views/administration/configuration/JiraConfig');
const InternalComponents = () =>
Expand Down Expand Up @@ -380,6 +382,16 @@ function configRoutes() {
],
},
},
{
path: 'configuration/welcomeMessage',
component: WelcomeMessage,
meta: {
title: i18n.t('message.administration'),
i18n: 'message.administration',
sectionPath: '/admin',
permission: 'SYSTEM_CONFIGURATION',
},
},
{
path: 'configuration/email',
component: Email,
Expand Down
5 changes: 5 additions & 0 deletions src/views/administration/AdminMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ export default {
name: this.$t('admin.email'),
route: 'configuration/email',
},
{
component: 'WelcomeMessage',
name: this.$t('admin.welcome_message'),
route: 'configuration/welcomeMessage',
},
{
component: 'InternalComponents',
name: this.$t('admin.internal_components'),
Expand Down
2 changes: 2 additions & 0 deletions src/views/administration/Administration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import Search from './configuration/Search.vue';
import TaskScheduler from './configuration/TaskScheduler.vue';
import RiskScore from './configuration/RiskScore.vue';
import Experimental from './configuration/Experimental.vue';
import WelcomeMessage from './configuration/WelcomeMessage.vue';
// Analyzer plugins
import InternalAnalyzer from './analyzers/InternalAnalyzer';
import OssIndexAnalyzer from './analyzers/OssIndexAnalyzer';
Expand Down Expand Up @@ -82,6 +83,7 @@ export default {
EventBus,
AdminMenu,
General,
WelcomeMessage,
BomFormats,
Email,
Jira,
Expand Down
Loading

0 comments on commit f8b68a1

Please sign in to comment.