-
Notifications
You must be signed in to change notification settings - Fork 285
/
config.js
78 lines (77 loc) · 2.99 KB
/
config.js
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
77
78
import { translate as __ } from 'foremanReact/common/I18n';
import Repos from '../../scenes/RedHatRepositories';
import Subscriptions from '../../scenes/Subscriptions';
import UpstreamSubscriptions from '../../scenes/Subscriptions/UpstreamSubscriptions/index';
import SubscriptionDetails from '../../scenes/Subscriptions/Details';
import SetOrganization from '../../components/SelectOrg/SetOrganization';
import WithOrganization from '../../components/WithOrganization/withOrganization';
import ModuleStreams from '../../scenes/ModuleStreams';
import ModuleStreamDetails from '../../scenes/ModuleStreams/Details';
import AnsibleCollections from '../../scenes/AnsibleCollections';
import AnsibleCollectionDetails from '../../scenes/AnsibleCollections/Details';
import ContentViews from '../../scenes/ContentViews';
import ContentViewDetails from '../../scenes/ContentViews/Details';
import Content from '../../scenes/Content';
import ContentDetails from '../../scenes/Content/Details';
import withHeader from './withHeaders';
// eslint-disable-next-line import/prefer-default-export
export const links = [
{
path: 'redhat_repositories',
component: WithOrganization(withHeader(Repos, { title: __('RH Repos') })),
},
{
path: 'subscriptions',
component: WithOrganization(withHeader(Subscriptions, { title: __('Subscriptions') })),
},
{
path: 'subscriptions/add',
component: WithOrganization(withHeader(UpstreamSubscriptions, { title: __('Add Subscriptions') })),
},
{
// eslint-disable-next-line no-useless-escape
path: 'subscriptions/:id([0-9]+)',
component: WithOrganization(withHeader(SubscriptionDetails, { title: __('Subscription Details') })),
},
{
path: 'organization_select',
component: SetOrganization,
},
{
path: 'module_streams',
component: WithOrganization(withHeader(ModuleStreams, { title: __('Module Streams') })),
},
{
path: 'module_streams/:id([0-9]+)',
component: WithOrganization(withHeader(ModuleStreamDetails, { title: __('Module Stream Details') })),
},
{
path: 'legacy_ansible_collections',
component: WithOrganization(withHeader(AnsibleCollections, { title: __('Ansible Collections') })),
},
{
path: 'legacy_ansible_collections/:id([0-9]+)',
component: WithOrganization(withHeader(AnsibleCollectionDetails, { title: __('Ansible Collection Details') })),
},
{
path: 'content_views',
component: withHeader(ContentViews, { title: __('Content Views') }),
},
{
path: 'content_views/:id([0-9]+)',
component: withHeader(ContentViewDetails, { title: __('Content View Details') }),
exact: false,
},
{
path: 'content',
component: WithOrganization(withHeader(Content, { title: __('Content') })),
},
{
path: 'content/:content_type([a-z_]+)',
component: WithOrganization(withHeader(Content, { title: __('Content') })),
},
{
path: 'content/:content_type([a-z_]+)/:id([0-9]+)',
component: WithOrganization(withHeader(ContentDetails, { title: __('Content Details') })),
},
];