blob: f4e8fb464e042490646e9cf21410fbdaab725909 (
plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`components/integrations/InstalledOAuthApp should filter out OAuthApp 1`] = `null`;
exports[`components/integrations/InstalledOAuthApp should match snapshot 1`] = `
<div
className="backstage-list__item"
>
<div
className="integration__icon integration-list__icon"
>
<img
src="https://test.com/icon"
/>
</div>
<div
className="item-details"
>
<div
className="item-details__row"
>
<span
className="item-details__name"
>
testApp
</span>
</div>
<div
className="item-details__row"
>
<span
className="item-details__description"
>
testing
</span>
</div>
<div
className="item-details__row"
>
<span
className="item-details__url"
>
<FormattedHTMLMessage
defaultMessage="Is Trusted: <strong>{isTrusted}</strong>"
id="installed_oauth_apps.is_trusted"
values={
Object {
"isTrusted": "Yes",
}
}
/>
</span>
</div>
<div
className="item-details__row"
>
<span
className="item-details__token"
>
<FormattedHTMLMessage
defaultMessage="Client ID: <strong>{clientId}</strong>"
id="installed_integrations.client_id"
values={
Object {
"clientId": "facxd9wpzpbpfp8pad78xj75pr",
}
}
/>
</span>
</div>
<div
className="item-details__row"
>
<span
className="item-details__token"
>
<FormattedHTMLMessage
defaultMessage="Client Secret: <strong>{clientSecret}</strong>"
id="installed_integrations.client_secret"
values={
Object {
"clientSecret": "***************",
}
}
/>
</span>
</div>
<div
className="item-details__row"
>
<span
className="item-details__url"
>
<FormattedMessage
defaultMessage="Callback URLs: {urls}"
id="installed_integrations.callback_urls"
values={
Object {
"urls": "https://test.com/callback, https://test.com/callback2",
}
}
/>
</span>
</div>
<div
className="item-details__row"
>
<span
className="item-details__creation"
>
<FormattedMessage
defaultMessage="Created by {creator} on {createAt, date, full}"
id="installed_integrations.creation"
values={
Object {
"createAt": 1501365458934,
"creator": "",
}
}
/>
</span>
</div>
</div>
<div
className="item-actions"
>
<a
href="#"
onClick={[Function]}
>
<FormattedMessage
defaultMessage="Show Secret"
id="installed_integrations.showSecret"
values={Object {}}
/>
</a>
-
<a
href="#"
onClick={[Function]}
>
<FormattedMessage
defaultMessage="Regenerate Secret"
id="installed_integrations.regenSecret"
values={Object {}}
/>
</a>
-
<DeleteIntegration
messageId="installed_oauth_apps.delete.confirm"
onDelete={[Function]}
/>
</div>
</div>
`;
|