@rh-support/troubleshoot 0.2.41 → 0.2.45
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/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +3 -2
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts +1 -0
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +7 -5
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts +1 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +3 -3
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +6 -2
- package/lib/esm/reducers/RecommendationsReducer.d.ts +1 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +3 -2
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAS,mBAAmB,EAAiD,MAAM,kBAAkB,CAAC;AAmB7G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAS,mBAAmB,EAAiD,MAAM,kBAAkB,CAAC;AAmB7G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,eAkLzC"}
|
|
@@ -109,7 +109,7 @@ export default function Case(props) {
|
|
|
109
109
|
React.createElement("div", { className: "support-grid support-case" }, isFetchingCaseDetails && !isFetchingCaseDetailsError && isEmpty(product) ? (React.createElement(OverviewContentLoader, null)) : (React.createElement(React.Fragment, null,
|
|
110
110
|
React.createElement("article", { className: "grid-main" },
|
|
111
111
|
React.createElement("section", { className: "grid-main-section" },
|
|
112
|
-
(isFetchingCaseDetailsError || !canReadCase) && (React.createElement(CaseDetailsErrorMessage, { isError: isFetchingCaseDetailsError, errorDetails: caseDetailsError, canReadCase: canReadCase, caseNumber: caseNumber })),
|
|
112
|
+
(isFetchingCaseDetailsError || !canReadCase) && (React.createElement(CaseDetailsErrorMessage, { isError: isFetchingCaseDetailsError, errorDetails: caseDetailsError, canReadCase: canReadCase, caseNumber: caseNumber, isInlineError: true })),
|
|
113
113
|
React.createElement(CaseDetailsWarningMessage, { caseNumber: caseNumber, selectedAccountDetails: selectedAccountDetails.data || {} }),
|
|
114
114
|
canReadCase &&
|
|
115
115
|
(!isFetchingCaseDetails || !isEmpty(product)) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAwBA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAwBA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAsL7C"}
|
|
@@ -43,7 +43,8 @@ export function CaseDetailsAside(props) {
|
|
|
43
43
|
const isXLScreen = breakPoint.xl;
|
|
44
44
|
const toggleCustomerViewRef = useRef(null);
|
|
45
45
|
const isFirstMountRef = useRef(true);
|
|
46
|
-
const { globalMetadataState: { navBarRef, viewAsCustomer }, } = useGlobalStateContext();
|
|
46
|
+
const { globalMetadataState: { navBarRef, viewAsCustomer, loggedInUsersAccount }, } = useGlobalStateContext();
|
|
47
|
+
const isSecureSupportAccount = loggedInUsersAccount.data.secureSupport;
|
|
47
48
|
const onToggleAside = (ev) => {
|
|
48
49
|
var _a;
|
|
49
50
|
toggleAside(!((_a = caseDetailsAsidePanelRef.current) === null || _a === void 0 ? void 0 : _a.expanded));
|
|
@@ -99,7 +100,7 @@ export function CaseDetailsAside(props) {
|
|
|
99
100
|
React.createElement("span", { className: "customer-view-switch-label" }, viewAsCustomer ? t('Customer view') : t('Internal view')),
|
|
100
101
|
React.createElement(Switch, { title: viewAsCustomer ? t('Customer view') : t('Internal view'), "data-tracking-id": viewAsCustomer ? 'disable-view-as-customer' : 'enable-view-as-customer', "aria-label": viewAsCustomer ? 'disable view as customer' : 'enable view as customer', id: "customer-view-switch", className: "pf-u-ml-auto", isChecked: viewAsCustomer, onChange: () => toggleViewAsCustomerFlag(globalMetadataDispatchContext) }))),
|
|
101
102
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading top solutions') } },
|
|
102
|
-
React.createElement(CaseSolutions, { caseNumber: caseNumber, ref: topSolutionsRef })),
|
|
103
|
+
React.createElement(CaseSolutions, { caseNumber: caseNumber, ref: topSolutionsRef, isSecureSupportAccount: isSecureSupportAccount })),
|
|
103
104
|
!caseEscalations.isFetching && canViewACESection && (React.createElement(ErrorBoundary, null,
|
|
104
105
|
React.createElement(ActiveCustomerEscalation, { caseNumber: caseNumber, caseSeverity: severity, caseStatus: status, ref: createEscalationRef })))))));
|
|
105
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsErrorMessage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAKrD,UAAU,MAAM;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,SAAS,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseDetailsErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsErrorMessage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAKrD,UAAU,MAAM;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,SAAS,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,eAsDpD"}
|
|
@@ -6,19 +6,21 @@ import { Trans, useTranslation } from 'react-i18next';
|
|
|
6
6
|
export function CaseDetailsErrorMessage(props) {
|
|
7
7
|
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
8
8
|
const { t } = useTranslation();
|
|
9
|
+
// Initialize Default Props Below
|
|
10
|
+
const { isInlineError = false, canReadCase, caseNumber, errorDetails } = props;
|
|
9
11
|
const getErrorMessage = () => {
|
|
10
|
-
const { status, message = '' } =
|
|
12
|
+
const { status, message = '' } = errorDetails || {};
|
|
11
13
|
const customDefaultErrorMessage403 = t('You are not authorized to see this case.');
|
|
12
14
|
const errorMessage404 = t("Case number doesn't exist");
|
|
13
15
|
let errorMessage403;
|
|
14
|
-
if (!
|
|
16
|
+
if (!canReadCase) {
|
|
15
17
|
errorMessage403 = customDefaultErrorMessage403;
|
|
16
18
|
}
|
|
17
19
|
else if (loggedInUserRights.data.isInternal() &&
|
|
18
20
|
loggedInUserRights.data.isSecureSupportTech() &&
|
|
19
21
|
status === 403 &&
|
|
20
22
|
message.includes('Account cannot be accessed via this endpoint')) {
|
|
21
|
-
const shCaseLink = getSFDCSecureSupportCaseLink(
|
|
23
|
+
const shCaseLink = getSFDCSecureSupportCaseLink(caseNumber);
|
|
22
24
|
errorMessage403 = (React.createElement(React.Fragment, null,
|
|
23
25
|
"Secured Support Technicians should use",
|
|
24
26
|
' ',
|
|
@@ -29,11 +31,11 @@ export function CaseDetailsErrorMessage(props) {
|
|
|
29
31
|
else {
|
|
30
32
|
errorMessage403 = customDefaultErrorMessage403;
|
|
31
33
|
}
|
|
32
|
-
return formattedApiErrorMessage(
|
|
34
|
+
return formattedApiErrorMessage(errorDetails, {
|
|
33
35
|
'403': { message: errorMessage403 },
|
|
34
36
|
'404': { message: errorMessage404 },
|
|
35
37
|
});
|
|
36
38
|
};
|
|
37
|
-
return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "
|
|
39
|
+
return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-u-mb-lg", show: true, title: errorMessageTitle(errorDetails), isInline: isInlineError },
|
|
38
40
|
React.createElement(Trans, null, getErrorMessage())));
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAsD,MAAM,OAAO,CAAC;AA8D3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAsD,MAAM,OAAO,CAAC;AA8D3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EAmYxB,CAAC"}
|
|
@@ -90,7 +90,7 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
90
90
|
const caseDispatch = useCaseDispatch();
|
|
91
91
|
const { recommendationState: { isLoadingRecommendations, allDocs }, } = useRecommendationStateContext();
|
|
92
92
|
const recommendationsDispatch = useRecommendationDispatchContext();
|
|
93
|
-
const { caseNumber } = props;
|
|
93
|
+
const { caseNumber, isSecureSupportAccount } = props;
|
|
94
94
|
const [isPinLoading, setIsPinLoading] = useState({});
|
|
95
95
|
const [expanded, setExpanded] = useState('sol-handpicked');
|
|
96
96
|
const [recommendations, setRecommendations] = useState([]);
|
|
@@ -169,11 +169,11 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
169
169
|
function fetchRecs() {
|
|
170
170
|
if (product && version && summary && description) {
|
|
171
171
|
const payload = { product, version, summary, description };
|
|
172
|
-
fetchRecommendations(recommendationsDispatch, payload, 50, 5, 300);
|
|
172
|
+
fetchRecommendations(recommendationsDispatch, payload, 50, 5, 300, false, caseNumber, isSecureSupportAccount);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
fetchRecs();
|
|
176
|
-
}, [product, version, summary, description, recommendationsDispatch]);
|
|
176
|
+
}, [product, version, summary, description, recommendationsDispatch, caseNumber, isSecureSupportAccount]);
|
|
177
177
|
// populate solutions when result is ready
|
|
178
178
|
useEffect(() => {
|
|
179
179
|
const mapRecommendation = (doc) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"AA0CA,MAAM,CAAC,OAAO,UAAU,eAAe,gBAyNtC"}
|
|
@@ -9,6 +9,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
9
9
|
import map from 'lodash/map';
|
|
10
10
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
11
11
|
import { Trans } from 'react-i18next';
|
|
12
|
+
import { useParams } from 'react-router-dom';
|
|
12
13
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
13
14
|
import { RecommendationDispatchContext, RecommendationStateContext } from '../../context/RecommendationContext';
|
|
14
15
|
import { RouteContext } from '../../context/RouteContext';
|
|
@@ -32,7 +33,10 @@ export default function Recommendations() {
|
|
|
32
33
|
caseResourceLinks: state.caseDetails.caseResourceLinks,
|
|
33
34
|
}), isEqual);
|
|
34
35
|
const caseDispatch = useCaseDispatch();
|
|
35
|
-
|
|
36
|
+
// Use Case Number
|
|
37
|
+
const { caseNumber } = useParams();
|
|
38
|
+
const { globalMetadataState: { navBarRef, loggedInUsersAccount }, } = useGlobalStateContext();
|
|
39
|
+
const isSecureSupportAccount = loggedInUsersAccount.data.secureSupport;
|
|
36
40
|
const { routeState: { activeSection }, } = useContext(RouteContext);
|
|
37
41
|
const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
|
|
38
42
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
@@ -77,7 +81,7 @@ export default function Recommendations() {
|
|
|
77
81
|
// recreate a new AbortController for each call
|
|
78
82
|
let controller = new AbortController();
|
|
79
83
|
abortControllerRef.current = controller;
|
|
80
|
-
fetchRecommendations(recommendationDispatch, payload, MAXROW, recPageSize, 0, true, queryFilters, controller.signal);
|
|
84
|
+
fetchRecommendations(recommendationDispatch, payload, MAXROW, recPageSize, 0, true, caseNumber, isSecureSupportAccount, queryFilters, controller.signal);
|
|
81
85
|
}, [
|
|
82
86
|
activeSection,
|
|
83
87
|
environment,
|
|
@@ -31,7 +31,7 @@ export declare enum RecommendationsConstants {
|
|
|
31
31
|
resetRecommendations = "resetRecommendations"
|
|
32
32
|
}
|
|
33
33
|
export declare const recommandationsReducer: (state: IRecommendationsState, action: IActionType) => IRecommendationsState;
|
|
34
|
-
export declare const fetchRecommendations: (dispatch: RecommendationsReducerDispatchType, body: IRecommendationsPayload, max_rows: number, page_size: number, highlighted_fragment_size: number, seQueryFields
|
|
34
|
+
export declare const fetchRecommendations: (dispatch: RecommendationsReducerDispatchType, body: IRecommendationsPayload, max_rows: number, page_size: number, highlighted_fragment_size: number, seQueryFields: boolean, caseNumber: string, isSecureSupportAccount: boolean, additionalFilters?: IRecommendationAdditionalFilters, abortSignal?: AbortSignal) => Promise<void>;
|
|
35
35
|
export declare const setVisibleDocs: (dispatch: RecommendationsReducerDispatchType, visDocs: ISolrRecommendation[]) => void;
|
|
36
36
|
export declare const setCurrentPage: (dispatch: RecommendationsReducerDispatchType, pageNum: number) => void;
|
|
37
37
|
export declare const setInsighResultsKcsIds: (dispatch: RecommendationsReducerDispatchType, insightsKcsIds: string[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationsReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/RecommendationsReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAoB,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAiB,MAAM,0CAA0C,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAiB,gCAAgC,EAA2B,MAAM,mBAAmB,CAAC;AAE7G,aAAK,WAAW,GAAG,OAAO,CAAC,wBAAwB,EAAE,qBAAqB,CAAC,CAAC;AAC5E,oBAAY,kCAAkC,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE9E,MAAM,WAAW,qBAAqB;IAClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,6BAA6B,EAAE,OAAO,CAAC;IACvC,YAAY,EAAE,YAAY,CAAC;IAC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AAkC,SAEhF,CAAC"}
|
|
@@ -74,7 +74,7 @@ export const recommandationsReducer = (state, action) => {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
// Actions
|
|
77
|
-
export const fetchRecommendations = (dispatch, body, max_rows, page_size, highlighted_fragment_size, seQueryFields = false, additionalFilters, abortSignal) => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
+
export const fetchRecommendations = (dispatch, body, max_rows, page_size, highlighted_fragment_size, seQueryFields = false, caseNumber, isSecureSupportAccount, additionalFilters, abortSignal) => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
78
|
dispatch({
|
|
79
79
|
type: RecommendationsConstants.requestRecommendations,
|
|
80
80
|
payload: { prevRecommendationsBody: Object.assign({}, body) },
|
|
@@ -85,7 +85,8 @@ export const fetchRecommendations = (dispatch, body, max_rows, page_size, highli
|
|
|
85
85
|
body.description = body.description && body.description.replace(/\?\?/g, '');
|
|
86
86
|
}
|
|
87
87
|
const searchParams = getSolrParams(max_rows, highlighted_fragment_size, additionalFilters, seQueryFields);
|
|
88
|
-
const response = yield search.getRecommendationsForCase(body, searchParams,
|
|
88
|
+
const response = yield search.getRecommendationsForCase(body, Object.assign(Object.assign({}, searchParams), { caseNumber, isSecureSupportAccount }), // Need to pass caseNumber and isSecureSupportAccount flag with SOLR parameter which will be used in service worker strategy.
|
|
89
|
+
abortSignal);
|
|
89
90
|
const docs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
90
91
|
dispatch({
|
|
91
92
|
type: RecommendationsConstants.receivedRecommendations,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.45",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@cee-eng/hydrajs": "4.7.3",
|
|
30
|
-
"@cee-eng/ui-toolkit": "1.1.
|
|
30
|
+
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
31
|
"@patternfly/patternfly": "4.102.2",
|
|
32
32
|
"@patternfly/pfe-accordion": "1.1.0",
|
|
33
33
|
"@patternfly/pfe-collapse": "1.1.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@cee-eng/hydrajs": "4.7.3",
|
|
67
|
-
"@cee-eng/ui-toolkit": "1.1.
|
|
67
|
+
"@cee-eng/ui-toolkit": "1.1.6",
|
|
68
68
|
"@patternfly/patternfly": "4.102.2",
|
|
69
69
|
"@patternfly/pfe-accordion": "1.1.0",
|
|
70
70
|
"@patternfly/pfe-collapse": "1.1.0",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"@progress/kendo-drawing": "^1.6.0",
|
|
74
74
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
75
75
|
"@rh-support/api": "0.3.9",
|
|
76
|
-
"@rh-support/components": "1.1.
|
|
77
|
-
"@rh-support/react-context": "0.2.
|
|
76
|
+
"@rh-support/components": "1.1.23",
|
|
77
|
+
"@rh-support/react-context": "0.2.25",
|
|
78
78
|
"@rh-support/types": "0.2.0",
|
|
79
|
-
"@rh-support/user-permissions": "0.2.
|
|
80
|
-
"@rh-support/utils": "0.2.
|
|
79
|
+
"@rh-support/user-permissions": "0.2.17",
|
|
80
|
+
"@rh-support/utils": "0.2.15",
|
|
81
81
|
"@types/react-redux": "^7.1.12",
|
|
82
82
|
"@types/redux": "^3.6.0",
|
|
83
83
|
"@webcomponents/webcomponentsjs": "^2.2.10",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"not ie <= 11",
|
|
143
143
|
"not op_mini all"
|
|
144
144
|
],
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "1fba07cc7a41e8388393d62c86e3c12df383f428"
|
|
146
146
|
}
|