@devtron-labs/devtron-fe-common-lib 0.0.10-beta-21 → 0.0.10-beta-22
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/dist/Common/Common.service.d.ts +10 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/ImageTags.d.ts +4 -0
- package/dist/Common/Types.d.ts +70 -25
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +562 -111
- package/package.json +1 -1
- package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +5 -0
- package/src/Assets/Icon/ic-enter.svg +3 -0
- package/src/Assets/Icon/ic-error-exclamation.svg +6 -0
- package/src/Assets/Icon/ic-minus.svg +3 -0
- package/src/Assets/Icon/ic-pencil.svg +3 -0
- package/src/Common/Common.service.ts +18 -3
- package/src/Common/Constants.ts +2 -0
- package/src/Common/ImageTags.tsx +594 -0
- package/src/Common/RadioGroup.tsx +2 -2
- package/src/Common/Types.ts +80 -27
- package/src/Common/index.ts +1 -0
|
@@ -9,12 +9,12 @@ export class RadioGroupItem extends Component<RadioGroupItemProps> {
|
|
|
9
9
|
{(context) => {
|
|
10
10
|
return (
|
|
11
11
|
<>
|
|
12
|
-
<label className={
|
|
12
|
+
<label className={context.disabled ? 'form__radio-item disabled' : 'form__radio-item'}>
|
|
13
13
|
<input
|
|
14
14
|
type="radio"
|
|
15
15
|
className="form__checkbox"
|
|
16
16
|
name={context.name}
|
|
17
|
-
disabled={context.disabled
|
|
17
|
+
disabled={context.disabled}
|
|
18
18
|
onChange={context.onChange}
|
|
19
19
|
value={this.props.value}
|
|
20
20
|
checked={context.value === this.props.value}
|
package/src/Common/Types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react'
|
|
1
|
+
import React, { ReactNode, CSSProperties } from 'react'
|
|
2
2
|
import { Placement } from 'tippy.js'
|
|
3
3
|
export interface ResponseType {
|
|
4
4
|
code: number
|
|
@@ -119,7 +119,6 @@ export interface ReloadType {
|
|
|
119
119
|
export interface RadioGroupItemProps {
|
|
120
120
|
value: string
|
|
121
121
|
dataTestId?: string
|
|
122
|
-
disabled?: boolean
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
export interface RadioGroupProps {
|
|
@@ -212,6 +211,34 @@ export interface UserApprovalMetadataType {
|
|
|
212
211
|
requestedUserData: ApprovalUserDataType
|
|
213
212
|
}
|
|
214
213
|
|
|
214
|
+
|
|
215
|
+
export interface CDMaterialType {
|
|
216
|
+
index: number
|
|
217
|
+
id: string
|
|
218
|
+
materialInfo: MaterialInfo[]
|
|
219
|
+
tab: CDModalTabType
|
|
220
|
+
scanEnabled: boolean
|
|
221
|
+
scanned: boolean
|
|
222
|
+
vulnerabilitiesLoading: boolean
|
|
223
|
+
lastExecution: string //timestamp
|
|
224
|
+
vulnerabilities: VulnerabilityType[]
|
|
225
|
+
vulnerable: boolean
|
|
226
|
+
deployedTime: string
|
|
227
|
+
deployedBy?: string
|
|
228
|
+
wfrId?: number
|
|
229
|
+
buildTime: string
|
|
230
|
+
image: string
|
|
231
|
+
isSelected: boolean
|
|
232
|
+
showSourceInfo: boolean
|
|
233
|
+
latest: boolean
|
|
234
|
+
runningOnParentCd?: boolean
|
|
235
|
+
userApprovalMetadata?: UserApprovalMetadataType
|
|
236
|
+
triggeredBy?: number
|
|
237
|
+
imageComment?: ImageComment
|
|
238
|
+
imageReleaseTags?: ReleaseTag[]
|
|
239
|
+
artifactStatus?: string
|
|
240
|
+
}
|
|
241
|
+
|
|
215
242
|
export interface CommonNodeAttr {
|
|
216
243
|
connectingCiPipelineId?: number
|
|
217
244
|
parents: string | number[] | string[]
|
|
@@ -268,6 +295,8 @@ export interface CommonNodeAttr {
|
|
|
268
295
|
action: any,
|
|
269
296
|
metadataField: string
|
|
270
297
|
}
|
|
298
|
+
appReleaseTagNames?: string[]
|
|
299
|
+
tagsEditable?: boolean
|
|
271
300
|
}
|
|
272
301
|
|
|
273
302
|
export interface VulnerabilityType {
|
|
@@ -297,33 +326,57 @@ export interface MaterialInfo {
|
|
|
297
326
|
type?: string
|
|
298
327
|
}
|
|
299
328
|
|
|
300
|
-
export interface CDMaterialType {
|
|
301
|
-
index: number
|
|
302
|
-
id: string
|
|
303
|
-
materialInfo: MaterialInfo[]
|
|
304
|
-
tab: CDModalTabType
|
|
305
|
-
scanEnabled: boolean
|
|
306
|
-
scanned: boolean
|
|
307
|
-
vulnerabilitiesLoading: boolean
|
|
308
|
-
lastExecution: string //timestamp
|
|
309
|
-
vulnerabilities: VulnerabilityType[]
|
|
310
|
-
vulnerable: boolean
|
|
311
|
-
deployedTime: string
|
|
312
|
-
deployedBy?: string
|
|
313
|
-
wfrId?: number
|
|
314
|
-
buildTime: string
|
|
315
|
-
image: string
|
|
316
|
-
isSelected: boolean
|
|
317
|
-
showSourceInfo: boolean
|
|
318
|
-
latest: boolean
|
|
319
|
-
runningOnParentCd?: boolean
|
|
320
|
-
userApprovalMetadata?: UserApprovalMetadataType
|
|
321
|
-
triggeredBy?: number
|
|
322
|
-
}
|
|
323
|
-
|
|
324
329
|
export interface CDMaterialResponseType {
|
|
325
330
|
approvalUsers: string[]
|
|
326
331
|
materials: any[]
|
|
327
332
|
userApprovalConfig: UserApprovalConfigType
|
|
328
333
|
requestedUserId: number
|
|
329
|
-
|
|
334
|
+
tagsEditable: boolean
|
|
335
|
+
appReleaseTagNames: string[]
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export interface ReleaseTag {
|
|
339
|
+
id: number
|
|
340
|
+
tagName: string
|
|
341
|
+
appId: number
|
|
342
|
+
deleted: boolean
|
|
343
|
+
artifactId: number
|
|
344
|
+
duplicateTag: boolean
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface ImageComment {
|
|
348
|
+
id: number
|
|
349
|
+
comment: string
|
|
350
|
+
artifactId: number
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
export interface ImageTaggingContainerType {
|
|
355
|
+
ciPipelineId?: number
|
|
356
|
+
artifactId?: number
|
|
357
|
+
imageComment?: ImageComment
|
|
358
|
+
imageReleaseTags?: ReleaseTag[]
|
|
359
|
+
updateCurrentAppMaterial? : (matId:number, releaseTags?:ReleaseTag[], imageComment?:ImageComment) => void
|
|
360
|
+
appReleaseTagNames?: string[]
|
|
361
|
+
tagsEditable?: boolean
|
|
362
|
+
forceReInit?: boolean
|
|
363
|
+
setAppReleaseTagNames?: (appReleaseTags: string[]) => void
|
|
364
|
+
setTagsEditable?: (tagsEditable: boolean) => void
|
|
365
|
+
toggleCardMode?: (id: number) => void
|
|
366
|
+
hideHardDelete?: boolean
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface ImageButtonType {
|
|
370
|
+
text: string
|
|
371
|
+
isSoftDeleted: boolean
|
|
372
|
+
isEditing: boolean
|
|
373
|
+
onSoftDeleteClick?: any
|
|
374
|
+
onHardDeleteClick?: any
|
|
375
|
+
tagId: number
|
|
376
|
+
softDeleteTags: any
|
|
377
|
+
isSuperAdmin: any
|
|
378
|
+
duplicateTag?: boolean
|
|
379
|
+
hideHardDelete?: boolean
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
package/src/Common/index.ts
CHANGED