@scm-manager/ui-components 2.25.1-20211003-143409 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -8
- package/src/Autocomplete.tsx +6 -6
- package/src/BranchSelector.stories.tsx +1 -1
- package/src/Breadcrumb.tsx +4 -1
- package/src/CardColumn.stories.tsx +2 -2
- package/src/CardColumn.tsx +1 -2
- package/src/HelpIcon.tsx +3 -1
- package/src/Icon.stories.tsx +3 -3
- package/src/Notification.stories.tsx +1 -1
- package/src/Paginator.test.tsx +16 -16
- package/src/ProtectedRoute.tsx +3 -3
- package/src/Tag.tsx +1 -1
- package/src/__resources__/Diff.markdown.ts +19 -21
- package/src/__resources__/changesets.tsx +73 -109
- package/src/__resources__/repository.ts +8 -8
- package/src/__snapshots__/storyshots.test.ts.snap +71237 -71286
- package/src/buttons/Button.tsx +63 -74
- package/src/buttons/ButtonAddons.tsx +1 -1
- package/src/buttons/ButtonGroup.tsx +1 -1
- package/src/buttons/SubmitButton.tsx +1 -1
- package/src/buttons/index.stories.tsx +5 -6
- package/src/comparators.test.ts +6 -6
- package/src/comparators.ts +1 -1
- package/src/devBuild.ts +1 -1
- package/src/forms/AddKeyValueEntryToTableField.stories.tsx +1 -1
- package/src/forms/AutocompleteAddEntryToTableField.tsx +1 -1
- package/src/forms/Checkbox.stories.tsx +4 -4
- package/src/forms/DropDown.stories.tsx +4 -4
- package/src/forms/DropDown.tsx +1 -1
- package/src/forms/FileInput.stories.tsx +1 -1
- package/src/forms/FilterInput.tsx +1 -1
- package/src/forms/InputField.stories.tsx +1 -1
- package/src/forms/MemberNameTagGroup.tsx +3 -3
- package/src/forms/PasswordConfirmation.tsx +4 -4
- package/src/forms/Radio.stories.tsx +2 -2
- package/src/forms/Select.stories.tsx +4 -5
- package/src/forms/Textarea.stories.tsx +1 -1
- package/src/languages.ts +1 -1
- package/src/layout/Footer.stories.tsx +3 -3
- package/src/layout/SecondaryNavigationColumn.tsx +1 -1
- package/src/layout/Title.tsx +2 -2
- package/src/markdown/MarkdownCodeRenderer.tsx +1 -1
- package/src/markdown/MarkdownHeadingRenderer.tsx +2 -2
- package/src/markdown/MarkdownLinkRenderer.test.tsx +1 -1
- package/src/markdown/MarkdownLinkRenderer.tsx +1 -1
- package/src/markdown/MarkdownView.stories.tsx +4 -4
- package/src/markdown/MarkdownView.tsx +9 -9
- package/src/markdown/createComponentList.ts +1 -1
- package/src/markdown/createMdastPlugin.ts +1 -1
- package/src/markdown/markdownExtensions.ts +1 -1
- package/src/markdown/remarkChangesetShortLinkParser.ts +7 -7
- package/src/markdown/remarkToRehypeRendererAdapters.ts +10 -9
- package/src/modals/ConfirmAlert.stories.tsx +5 -5
- package/src/modals/ConfirmAlert.tsx +2 -2
- package/src/modals/CreateTagModal.tsx +4 -4
- package/src/modals/Modal.stories.tsx +1 -1
- package/src/navigation/MenuContext.tsx +2 -2
- package/src/navigation/NavAction.tsx +3 -3
- package/src/navigation/SecondaryNavigation.stories.tsx +4 -4
- package/src/navigation/SubNavigation.tsx +2 -2
- package/src/popover/Popover.stories.tsx +37 -35
- package/src/popover/usePopover.ts +10 -10
- package/src/repos/Diff.stories.tsx +1 -1
- package/src/repos/DiffExpander.test.ts +39 -41
- package/src/repos/DiffExpander.ts +10 -10
- package/src/repos/RepositoryEntry.stories.tsx +1 -1
- package/src/repos/RepositoryFlag.tsx +1 -1
- package/src/repos/Tokenize.worker.ts +3 -3
- package/src/repos/TokenizedDiffView.tsx +1 -1
- package/src/repos/annotate/Annotate.stories.tsx +29 -29
- package/src/repos/changesets/ChangesetAuthor.tsx +4 -4
- package/src/repos/changesets/ChangesetDescription.tsx +2 -2
- package/src/repos/changesets/ChangesetDiff.test.ts +18 -18
- package/src/repos/changesets/ChangesetId.tsx +1 -1
- package/src/repos/changesets/ChangesetList.tsx +1 -1
- package/src/repos/changesets/ChangesetTagsCollapsed.tsx +1 -1
- package/src/repos/changesets/Changesets.stories.tsx +185 -142
- package/src/repos/changesets/SignatureIcon.tsx +4 -4
- package/src/repos/changesets/changesets.ts +1 -1
- package/src/repos/diffs.test.ts +3 -3
- package/src/repos/refractorAdapter.ts +3 -3
- package/src/repositories.test.ts +18 -18
- package/src/storyshots.test.ts +3 -3
- package/src/syntax-highlighting.module.css +17 -16
- package/src/syntax-highlighting.ts +59 -54
- package/src/table/Table.stories.tsx +7 -7
- package/src/table/Table.tsx +1 -1
- package/src/table/TextColumn.tsx +1 -1
- package/src/textSplitAndReplace.test.ts +3 -3
- package/src/textSplitAndReplace.ts +2 -2
- package/src/toast/Toast.tsx +2 -2
- package/src/toast/index.stories.tsx +2 -2
- package/src/toast/themes.ts +6 -6
- package/src/useDateFormatter.ts +3 -3
- package/src/validation.test.ts +6 -6
- package/src/validation.ts +1 -4
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import {Changeset, ChangesetCollection, PagedCollection} from "@scm-manager/ui-types";
|
|
25
|
+
import { Changeset, ChangesetCollection, PagedCollection } from "@scm-manager/ui-types";
|
|
26
26
|
|
|
27
27
|
const one: Changeset = {
|
|
28
28
|
id: "a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
@@ -33,31 +33,26 @@ const one: Changeset = {
|
|
|
33
33
|
contributors: [
|
|
34
34
|
{
|
|
35
35
|
type: "Committed-by",
|
|
36
|
-
person: { mail: "zaphod.beeblebrox@hitchhiker.cm", name: "Zaphod Beeblebrox" }
|
|
36
|
+
person: { mail: "zaphod.beeblebrox@hitchhiker.cm", name: "Zaphod Beeblebrox" },
|
|
37
37
|
},
|
|
38
|
-
{ type: "Co-authored-by", person: { mail: "ford.prefect@hitchhiker.com", name: "Ford Prefect" } }
|
|
38
|
+
{ type: "Co-authored-by", person: { mail: "ford.prefect@hitchhiker.com", name: "Ford Prefect" } },
|
|
39
39
|
],
|
|
40
40
|
_links: {
|
|
41
41
|
self: {
|
|
42
|
-
href:
|
|
43
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/a88567ef1e9528a700555cad8c4576b72fc7c6dd"
|
|
42
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
44
43
|
},
|
|
45
44
|
diff: {
|
|
46
|
-
href:
|
|
47
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/a88567ef1e9528a700555cad8c4576b72fc7c6dd"
|
|
45
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
48
46
|
},
|
|
49
47
|
sources: {
|
|
50
|
-
href:
|
|
51
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/a88567ef1e9528a700555cad8c4576b72fc7c6dd"
|
|
48
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
52
49
|
},
|
|
53
50
|
modifications: {
|
|
54
|
-
href:
|
|
55
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/a88567ef1e9528a700555cad8c4576b72fc7c6dd"
|
|
51
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
56
52
|
},
|
|
57
53
|
diffParsed: {
|
|
58
|
-
href:
|
|
59
|
-
|
|
60
|
-
}
|
|
54
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/a88567ef1e9528a700555cad8c4576b72fc7c6dd/parsed",
|
|
55
|
+
},
|
|
61
56
|
},
|
|
62
57
|
_embedded: {
|
|
63
58
|
tags: [],
|
|
@@ -67,17 +62,15 @@ const one: Changeset = {
|
|
|
67
62
|
id: "d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
68
63
|
_links: {
|
|
69
64
|
self: {
|
|
70
|
-
href:
|
|
71
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
65
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
72
66
|
},
|
|
73
67
|
diff: {
|
|
74
|
-
href:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
68
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
81
74
|
};
|
|
82
75
|
|
|
83
76
|
const two: Changeset = {
|
|
@@ -88,30 +81,25 @@ const two: Changeset = {
|
|
|
88
81
|
contributors: [
|
|
89
82
|
{
|
|
90
83
|
type: "Committed-by",
|
|
91
|
-
person: { mail: "zaphod.beeblebrox@hitchhiker.cm", name: "Zaphod Beeblebrox" }
|
|
92
|
-
}
|
|
84
|
+
person: { mail: "zaphod.beeblebrox@hitchhiker.cm", name: "Zaphod Beeblebrox" },
|
|
85
|
+
},
|
|
93
86
|
],
|
|
94
87
|
_links: {
|
|
95
88
|
self: {
|
|
96
|
-
href:
|
|
97
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
89
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
98
90
|
},
|
|
99
91
|
diff: {
|
|
100
|
-
href:
|
|
101
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
92
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
102
93
|
},
|
|
103
94
|
sources: {
|
|
104
|
-
href:
|
|
105
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
95
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
106
96
|
},
|
|
107
97
|
modifications: {
|
|
108
|
-
href:
|
|
109
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
98
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
110
99
|
},
|
|
111
100
|
diffParsed: {
|
|
112
|
-
href:
|
|
113
|
-
|
|
114
|
-
}
|
|
101
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc/parsed",
|
|
102
|
+
},
|
|
115
103
|
},
|
|
116
104
|
_embedded: {
|
|
117
105
|
tags: [],
|
|
@@ -121,17 +109,15 @@ const two: Changeset = {
|
|
|
121
109
|
id: "e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
122
110
|
_links: {
|
|
123
111
|
self: {
|
|
124
|
-
href:
|
|
125
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/e163c8f632db571c9aa51a8eb440e37cf550b825"
|
|
112
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
126
113
|
},
|
|
127
114
|
diff: {
|
|
128
|
-
href:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
115
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
135
121
|
};
|
|
136
122
|
|
|
137
123
|
const three: Changeset = {
|
|
@@ -142,27 +128,22 @@ const three: Changeset = {
|
|
|
142
128
|
contributors: [],
|
|
143
129
|
_links: {
|
|
144
130
|
self: {
|
|
145
|
-
href:
|
|
146
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/e163c8f632db571c9aa51a8eb440e37cf550b825"
|
|
131
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
147
132
|
},
|
|
148
133
|
diff: {
|
|
149
|
-
href:
|
|
150
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/e163c8f632db571c9aa51a8eb440e37cf550b825"
|
|
134
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
151
135
|
},
|
|
152
136
|
sources: {
|
|
153
|
-
href:
|
|
154
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/e163c8f632db571c9aa51a8eb440e37cf550b825"
|
|
137
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
155
138
|
},
|
|
156
139
|
modifications: {
|
|
157
|
-
href:
|
|
158
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/e163c8f632db571c9aa51a8eb440e37cf550b825"
|
|
140
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
159
141
|
},
|
|
160
142
|
diffParsed: {
|
|
161
|
-
href:
|
|
162
|
-
|
|
163
|
-
}
|
|
143
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/e163c8f632db571c9aa51a8eb440e37cf550b825/parsed",
|
|
144
|
+
},
|
|
164
145
|
},
|
|
165
|
-
_embedded: { tags: [], branches: [], parents: [] }
|
|
146
|
+
_embedded: { tags: [], branches: [], parents: [] },
|
|
166
147
|
};
|
|
167
148
|
|
|
168
149
|
const four: Changeset = {
|
|
@@ -173,29 +154,24 @@ const four: Changeset = {
|
|
|
173
154
|
contributors: [
|
|
174
155
|
{ type: "Co-authored-by", person: { mail: "ford.prefect@hitchhiker.com", name: "Ford Prefect" } },
|
|
175
156
|
{ type: "Co-authored-by", person: { mail: "zaphod.beeblebrox@hitchhiker.cm", name: "Zaphod Beeblebrox" } },
|
|
176
|
-
{ type: "Co-authored-by", person: { mail: "trillian@hitchhiker.cm", name: "Tricia Marie McMillan" } }
|
|
157
|
+
{ type: "Co-authored-by", person: { mail: "trillian@hitchhiker.cm", name: "Tricia Marie McMillan" } },
|
|
177
158
|
],
|
|
178
159
|
_links: {
|
|
179
160
|
self: {
|
|
180
|
-
href:
|
|
181
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930"
|
|
161
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930",
|
|
182
162
|
},
|
|
183
163
|
diff: {
|
|
184
|
-
href:
|
|
185
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930"
|
|
164
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930",
|
|
186
165
|
},
|
|
187
166
|
sources: {
|
|
188
|
-
href:
|
|
189
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930"
|
|
167
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930",
|
|
190
168
|
},
|
|
191
169
|
modifications: {
|
|
192
|
-
href:
|
|
193
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930"
|
|
170
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930",
|
|
194
171
|
},
|
|
195
172
|
diffParsed: {
|
|
196
|
-
href:
|
|
197
|
-
|
|
198
|
-
}
|
|
173
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/b6c6f8fbd0d490936fae7d26ffdd4695cc2a0930/parsed",
|
|
174
|
+
},
|
|
199
175
|
},
|
|
200
176
|
_embedded: {
|
|
201
177
|
tags: [],
|
|
@@ -205,17 +181,15 @@ const four: Changeset = {
|
|
|
205
181
|
id: "a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
206
182
|
_links: {
|
|
207
183
|
self: {
|
|
208
|
-
href:
|
|
209
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/a88567ef1e9528a700555cad8c4576b72fc7c6dd"
|
|
184
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
210
185
|
},
|
|
211
186
|
diff: {
|
|
212
|
-
href:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
187
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/a88567ef1e9528a700555cad8c4576b72fc7c6dd",
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
},
|
|
219
193
|
};
|
|
220
194
|
|
|
221
195
|
const five: Changeset = {
|
|
@@ -225,25 +199,20 @@ const five: Changeset = {
|
|
|
225
199
|
description: "HOG-42 Change mail to arthur@guide.galaxy\n\n",
|
|
226
200
|
_links: {
|
|
227
201
|
self: {
|
|
228
|
-
href:
|
|
229
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
202
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
230
203
|
},
|
|
231
204
|
diff: {
|
|
232
|
-
href:
|
|
233
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
205
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
234
206
|
},
|
|
235
207
|
sources: {
|
|
236
|
-
href:
|
|
237
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
208
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/sources/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
238
209
|
},
|
|
239
210
|
modifications: {
|
|
240
|
-
href:
|
|
241
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/d21cc6c359270aef2196796f4d96af65f51866dc"
|
|
211
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/modifications/d21cc6c359270aef2196796f4d96af65f51866dc",
|
|
242
212
|
},
|
|
243
213
|
diffParsed: {
|
|
244
|
-
href:
|
|
245
|
-
|
|
246
|
-
}
|
|
214
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/d21cc6c359270aef2196796f4d96af65f51866dc/parsed",
|
|
215
|
+
},
|
|
247
216
|
},
|
|
248
217
|
_embedded: {
|
|
249
218
|
tags: [],
|
|
@@ -253,17 +222,15 @@ const five: Changeset = {
|
|
|
253
222
|
id: "e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
254
223
|
_links: {
|
|
255
224
|
self: {
|
|
256
|
-
href:
|
|
257
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/e163c8f632db571c9aa51a8eb440e37cf550b825"
|
|
225
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/changesets/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
258
226
|
},
|
|
259
227
|
diff: {
|
|
260
|
-
href:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
228
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/diff/e163c8f632db571c9aa51a8eb440e37cf550b825",
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
267
234
|
};
|
|
268
235
|
|
|
269
236
|
const changesets: ChangesetCollection = {
|
|
@@ -271,27 +238,24 @@ const changesets: ChangesetCollection = {
|
|
|
271
238
|
pageTotal: 1,
|
|
272
239
|
_links: {
|
|
273
240
|
self: {
|
|
274
|
-
href:
|
|
275
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master/changesets/?page=0&pageSize=10"
|
|
241
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master/changesets/?page=0&pageSize=10",
|
|
276
242
|
},
|
|
277
243
|
first: {
|
|
278
|
-
href:
|
|
279
|
-
"http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master/changesets/?page=0&pageSize=10"
|
|
244
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master/changesets/?page=0&pageSize=10",
|
|
280
245
|
},
|
|
281
246
|
last: {
|
|
282
|
-
href:
|
|
283
|
-
|
|
284
|
-
}
|
|
247
|
+
href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master/changesets/?page=0&pageSize=10",
|
|
248
|
+
},
|
|
285
249
|
},
|
|
286
250
|
_embedded: {
|
|
287
251
|
changesets: [one, two, three, four],
|
|
288
252
|
branch: {
|
|
289
253
|
name: "master",
|
|
290
254
|
_links: {
|
|
291
|
-
self: { href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master" }
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
255
|
+
self: { href: "http://localhost:8081/scm/api/v2/repositories/hitchhiker/heart-of-gold/branches/master" },
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
295
259
|
};
|
|
296
260
|
|
|
297
261
|
export { one, two, three, four, five };
|
|
@@ -37,31 +37,31 @@ export default {
|
|
|
37
37
|
permissions: { href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/permissions/" },
|
|
38
38
|
protocol: [
|
|
39
39
|
{ href: "ssh://scmadmin@localhost:4567/repo/scmadmin/Git", name: "ssh" },
|
|
40
|
-
{ href: "http://localhost:8081/scm/repo/scmadmin/Git", name: "http" }
|
|
40
|
+
{ href: "http://localhost:8081/scm/repo/scmadmin/Git", name: "http" },
|
|
41
41
|
],
|
|
42
42
|
tags: { href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/tags/" },
|
|
43
43
|
branches: { href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/branches/" },
|
|
44
44
|
incomingChangesets: {
|
|
45
45
|
href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/incoming/{source}/{target}/changesets",
|
|
46
|
-
templated: true
|
|
46
|
+
templated: true,
|
|
47
47
|
},
|
|
48
48
|
incomingDiff: {
|
|
49
49
|
href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/incoming/{source}/{target}/diff",
|
|
50
|
-
templated: true
|
|
50
|
+
templated: true,
|
|
51
51
|
},
|
|
52
52
|
incomingDiffParsed: {
|
|
53
53
|
href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/incoming/{source}/{target}/diff/parsed",
|
|
54
|
-
templated: true
|
|
54
|
+
templated: true,
|
|
55
55
|
},
|
|
56
56
|
changesets: { href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/changesets/" },
|
|
57
57
|
sources: { href: "http://localhost:8081/scm/api/v2/repositories/scmadmin/Git/sources/" },
|
|
58
58
|
authorMappingConfig: {
|
|
59
|
-
href: "http://localhost:8081/scm/api/v2/authormapping/configuration/scmadmin/Git"
|
|
59
|
+
href: "http://localhost:8081/scm/api/v2/authormapping/configuration/scmadmin/Git",
|
|
60
60
|
},
|
|
61
61
|
unfavorize: { href: "http://localhost:8081/scm/api/v2/unfavorize/scmadmin/Git" },
|
|
62
62
|
favorites: [
|
|
63
63
|
{ href: "http://localhost:8081/scm/api/v2/unfavorize/scmadmin/Git", name: "unfavorize" },
|
|
64
|
-
{ href: "http://localhost:8081/scm/api/v2/favorize/scmadmin/Git", name: "favorize" }
|
|
65
|
-
]
|
|
66
|
-
}
|
|
64
|
+
{ href: "http://localhost:8081/scm/api/v2/favorize/scmadmin/Git", name: "favorize" },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
67
|
};
|