- Introduced a new SettingsManagement view for administrators to manage system settings. - Added routes and components for settings management, including minimum password length and password login options. - Implemented a SettingsService to handle retrieval and updating of settings. - Created a new Setting entity and repository for database interactions. - Added validation for password length using a custom PasswordMinLength validator. - Updated SecurityController to check if password login is allowed. - Enhanced UserManagement view to provide detailed error messages on save and delete operations. - Implemented a DuplicateEmailExceptionListener to handle unique constraint violations for email addresses. - Updated security configuration to include the new LoginFormAuthenticator. - Created API endpoints for fetching and updating settings, secured with ROLE_ADMIN.
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
import { createRouter, createWebHistory } from 'vue-router';
|
|
import Dashboard from './views/Dashboard.vue';
|
|
import ContactList from './views/ContactList.vue';
|
|
import CompanyList from './views/CompanyList.vue';
|
|
import DealList from './views/DealList.vue';
|
|
import UserManagement from './views/UserManagement.vue';
|
|
import RoleManagement from './views/RoleManagement.vue';
|
|
import SettingsManagement from './views/SettingsManagement.vue';
|
|
|
|
const routes = [
|
|
{ path: '/', name: 'dashboard', component: Dashboard },
|
|
{ path: '/contacts', name: 'contacts', component: ContactList },
|
|
{ path: '/companies', name: 'companies', component: CompanyList },
|
|
{ path: '/deals', name: 'deals', component: DealList },
|
|
{ path: '/users', name: 'users', component: UserManagement, meta: { requiresAdmin: true } },
|
|
{ path: '/roles', name: 'roles', component: RoleManagement, meta: { requiresAdmin: true } },
|
|
{ path: '/settings', name: 'settings', component: SettingsManagement, meta: { requiresAdmin: true } },
|
|
];
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router;
|