-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouter.ts
More file actions
76 lines (74 loc) · 1.97 KB
/
router.ts
File metadata and controls
76 lines (74 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { RouteRecordRaw } from 'vue-router';
/**
* Роуты Git расширения
*
* Регистрируются динамически в aiplan-front/src/router/routes.ts
*/
const gitRoutes: RouteRecordRaw[] = [
{
path: '/:workspace/git',
component: () => import('./layouts/GitLayout.vue'),
meta: {
requiresAuth: true,
extension: 'git',
},
children: [
{
path: '',
name: 'git-home',
component: () => import('./pages/GitHomePage.vue'),
meta: {
title: 'Git Repositories',
breadcrumb: 'Git',
},
},
{
path: 'ssh-keys',
name: 'git-ssh-keys',
component: () => import('./pages/GitSshKeysPage.vue'),
meta: {
title: 'SSH Keys',
breadcrumb: 'SSH Keys',
},
},
{
path: ':repoName',
name: 'git-repo',
component: () => import('./pages/GitRepoPage.vue'),
meta: {
title: 'Repository',
breadcrumb: 'Repository',
},
},
{
path: ':repoName/commits',
name: 'git-commits',
component: () => import('./pages/GitCommitsPage.vue'),
meta: {
title: 'Commits History',
breadcrumb: 'Commits',
},
},
{
path: ':repoName/settings',
name: 'git-repo-settings',
component: () => import('./pages/GitRepoSettingsPage.vue'),
meta: {
title: 'Repository Settings',
breadcrumb: 'Settings',
},
},
// NOTE: Роут закомментирован - файлы теперь открываются в dialog внутри GitRepoPage
// {
// path: ':repoName/blob/:ref/:encodedPath',
// name: 'git-file-view',
// component: () => import('./pages/GitFilePage.vue'),
// meta: {
// title: 'View File',
// breadcrumb: 'File',
// },
// },
],
},
];
export default gitRoutes;