70508b6675
Audit A2/A3: RecoveryCodesView (route /recovery) had a TODO no-op continue handler and 8 hardcoded mock codes. Recon found the page is orphaned — nothing in the UI navigates to /recovery. The real 2FA recovery-codes flow lives entirely in Settings -> Безопасность (TwoFactorCard setup wizard + RecoveryCodesCard regeneration), both already wired to the real API. Per user decision (2026-05-15) the orphan is deleted rather than polished. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 lines
1.5 KiB
TypeScript
31 lines
1.5 KiB
TypeScript
import { defineSetupVue3 } from '@histoire/plugin-vue';
|
|
import { createPinia } from 'pinia';
|
|
import { createMemoryHistory, createRouter } from 'vue-router';
|
|
import { vuetify } from './plugins/vuetify';
|
|
|
|
export const setupVue3 = defineSetupVue3(({ app }) => {
|
|
const router = createRouter({
|
|
history: createMemoryHistory(),
|
|
routes: [
|
|
{ path: '/', component: { template: '<div />' } },
|
|
{ path: '/login', component: { template: '<div />' } },
|
|
{ path: '/register', component: { template: '<div />' } },
|
|
{ path: '/forgot', component: { template: '<div />' } },
|
|
{ path: '/2fa', component: { template: '<div />' } },
|
|
{ path: '/recovery-use', component: { template: '<div />' } },
|
|
{ path: '/dashboard', component: { template: '<div />' } },
|
|
{ path: '/deals', component: { template: '<div />' } },
|
|
{ path: '/kanban', component: { template: '<div />' } },
|
|
{ path: '/projects', component: { template: '<div />' } },
|
|
{ path: '/reminders', component: { template: '<div />' } },
|
|
{ path: '/billing', component: { template: '<div />' } },
|
|
{ path: '/reports', component: { template: '<div />' } },
|
|
{ path: '/managers', component: { template: '<div />' } },
|
|
{ path: '/settings', component: { template: '<div />' } },
|
|
],
|
|
});
|
|
app.use(vuetify);
|
|
app.use(router);
|
|
app.use(createPinia());
|
|
});
|