qpp-style 9.34.2-beta.0 → 9.34.2
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/components/Header/HeaderContainer.jsx +1 -4
- package/components/Header/HeaderLogo.jsx +3 -15
- package/components/Header/HeaderUI.jsx +0 -1
- package/components/SideNav/UI/SideNavUI.jsx +2 -32
- package/coverage/clover.xml +540 -594
- package/coverage/coverage-final.json +69 -69
- package/coverage/lcov-report/components/Accordion/index.html +20 -20
- package/coverage/lcov-report/components/Accordion/index.jsx.html +121 -109
- package/coverage/lcov-report/components/Button/index.html +116 -0
- package/coverage/lcov-report/components/Button/index.js.html +355 -0
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +98 -98
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +33 -33
- package/coverage/lcov-report/components/Error/index.html +23 -23
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +395 -557
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +70 -70
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +44 -44
- package/coverage/lcov-report/components/Footer/index.html +33 -48
- package/coverage/lcov-report/components/{SideNav/UI → GovBanner}/index.html +30 -45
- package/coverage/lcov-report/components/GovBanner/index.js.html +436 -0
- package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +367 -0
- package/coverage/lcov-report/components/{SideNav/Details/IndividualDetails.jsx.html → Header/HeaderCancel.jsx.html} +35 -41
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +307 -0
- package/coverage/lcov-report/components/Header/HeaderLogo.jsx.html +211 -0
- package/coverage/lcov-report/components/Header/HeaderMenuButton.js.html +235 -0
- package/coverage/lcov-report/components/Header/HeaderMenuItem.jsx.html +802 -0
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +253 -0
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +271 -0
- package/coverage/lcov-report/components/Header/HeaderMobileButton.js.html +196 -0
- package/coverage/lcov-report/components/Header/HeaderUI.jsx.html +586 -0
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +181 -0
- package/coverage/lcov-report/components/Header/ImpersonatorBanner.jsx.html +328 -0
- package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +166 -0
- package/coverage/lcov-report/components/Header/hooks.js.html +283 -0
- package/coverage/lcov-report/components/Header/index.html +326 -0
- package/coverage/lcov-report/components/Header/utag-helpers.js.html +112 -0
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +96 -108
- package/coverage/lcov-report/components/Infotip/InfotipContent.jsx.html +223 -0
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +49 -49
- package/coverage/lcov-report/components/Infotip/index.html +32 -32
- package/coverage/lcov-report/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +116 -116
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +252 -252
- package/coverage/lcov-report/components/Modal/index.html +38 -38
- package/coverage/lcov-report/components/Modal/index.jsx.html +31 -31
- package/coverage/lcov-report/components/NotificationBanner/CollapsedView.js.html +202 -0
- package/coverage/lcov-report/components/NotificationBanner/ExpandedView.js.html +220 -0
- package/coverage/lcov-report/components/{SideNav/Content → NotificationBanner}/index.html +49 -49
- package/coverage/lcov-report/components/NotificationBanner/index.js.html +748 -0
- package/coverage/lcov-report/components/SanitizedContent/index.html +19 -19
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +287 -218
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +440 -440
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +7 -7
- package/coverage/lcov-report/components/SideNav/Chart/index.html +1 -16
- package/coverage/lcov-report/components/SideNav/{AnimationGroup → Content/SelectRole}/index.html +29 -29
- package/coverage/lcov-report/components/SideNav/Content/SelectRole/utils.js.html +532 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +1125 -54
- package/coverage/lcov-report/components/SideNav/index.html +19 -19
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +9 -9
- package/coverage/lcov-report/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/components/hooks/index.html +21 -21
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +131 -128
- package/coverage/lcov-report/components/index.html +21 -21
- package/coverage/lcov-report/index.html +113 -143
- package/coverage/lcov-report/lib/Chevron.jsx.html +36 -36
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +1471 -973
- package/coverage/lcov-report/lib/index.html +21 -36
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +2 -2
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +16 -16
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +2 -2
- package/coverage/lcov-report/react/components/Header/hooks.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +1 -1
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +30 -30
- package/coverage/lcov-report/react/components/Infotip/InfotipContent.jsx.html +8 -8
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Infotip/index.html +23 -38
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +40 -40
- package/coverage/lcov-report/react/components/Modal/index.html +32 -32
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +19 -19
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +3 -3
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +4 -4
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +20 -20
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +52 -16
- package/coverage/lcov-report/{components/SideNav/Links/NavLinkInline.jsx.html → react/components/Session/Session.jsx.html} +126 -150
- package/coverage/lcov-report/{components/SideNav/Links/index.js.html → react/components/Session/SessionDialogWrapped.jsx.html} +20 -23
- package/coverage/lcov-report/{components/SideNav/Details → react/components/Session}/index.html +29 -29
- package/coverage/lcov-report/{components/SideNav/UI/index.js.html → react/components/Session/index.jsx.html} +5 -5
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +2 -2
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +30 -90
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +13 -13
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +53 -26
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +25 -7
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +13 -13
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +103 -46
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +17 -17
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +213 -69
- package/coverage/lcov-report/react/components/SideNav/UI/default-markup.js.html +97 -0
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +34 -19
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +86 -71
- package/coverage/lcov-report/react/components/SideNav/index.html +25 -25
- package/coverage/lcov-report/react/components/SideNav/index.js.html +14 -80
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- package/coverage/lcov-report/react/components/index.html +21 -21
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +3 -3
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +71 -71
- package/coverage/lcov-report/react/lib/index.html +15 -15
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- package/coverage/lcov-report/react/session/index.html +58 -43
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/isAuthV2.js.html +151 -0
- package/coverage/lcov-report/react/session/logout.js.html +43 -43
- package/coverage/lcov-report/react/session/refresh.js.html +69 -60
- package/coverage/lcov-report/react/session/ttl.js.html +44 -80
- package/coverage/lcov-report/session/index.html +53 -53
- package/coverage/lcov-report/session/index.js.html +13 -13
- package/coverage/lcov-report/session/logout.js.html +145 -127
- package/coverage/lcov-report/session/refresh.js.html +90 -90
- package/coverage/lcov-report/session/ttl.js.html +77 -77
- package/coverage/lcov.info +888 -1011
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/qppds/components/sidebar/_sidebar-animation.scss +6 -41
- package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +0 -667
- package/coverage/lcov-report/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +0 -166
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +0 -94
- package/coverage/lcov-report/components/SideNav/Content/LevelOneContent.jsx.html +0 -709
- package/coverage/lcov-report/components/SideNav/Content/LevelTwoContent.jsx.html +0 -733
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Details/PracticeDetails.jsx.html +0 -220
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Links/CmsSwitchLink.jsx.html +0 -208
- package/coverage/lcov-report/components/SideNav/Links/NavItemInline.jsx.html +0 -247
- package/coverage/lcov-report/components/SideNav/Links/NavLinkContainer.jsx.html +0 -199
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +0 -832
- package/coverage/lcov-report/components/SideNav/Links/NavLinkToggle.jsx.html +0 -187
- package/coverage/lcov-report/components/SideNav/Links/index.html +0 -206
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +0 -1084
- package/coverage/lcov-report/lib/svg-definitions.svg.html +0 -460
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">9.45% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>7/74</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/29</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/13</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">9.45% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>7/74</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
65
|
<div class="pad1">
|
|
66
66
|
<table class="coverage-summary">
|
|
67
67
|
<thead>
|
|
@@ -94,48 +94,63 @@
|
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
97
|
-
<td class="file
|
|
98
|
-
<td data-value="
|
|
99
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
97
|
+
<td class="file low" data-value="isAuthV2.js"><a href="isAuthV2.js.html">isAuthV2.js</a></td>
|
|
98
|
+
<td data-value="7.14" class="pic low">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 7%"></div><div class="cover-empty" style="width: 93%"></div></div>
|
|
100
100
|
</td>
|
|
101
|
-
<td data-value="
|
|
102
|
-
<td data-value="
|
|
103
|
-
<td data-value="
|
|
104
|
-
<td data-value="
|
|
105
|
-
<td data-value="
|
|
106
|
-
<td data-value="
|
|
107
|
-
<td data-value="
|
|
108
|
-
<td data-value="
|
|
101
|
+
<td data-value="7.14" class="pct low">7.14%</td>
|
|
102
|
+
<td data-value="14" class="abs low">1/14</td>
|
|
103
|
+
<td data-value="0" class="pct low">0%</td>
|
|
104
|
+
<td data-value="4" class="abs low">0/4</td>
|
|
105
|
+
<td data-value="0" class="pct low">0%</td>
|
|
106
|
+
<td data-value="2" class="abs low">0/2</td>
|
|
107
|
+
<td data-value="7.14" class="pct low">7.14%</td>
|
|
108
|
+
<td data-value="14" class="abs low">1/14</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
|
-
<td class="file
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
112
|
+
<td class="file low" data-value="logout.js"><a href="logout.js.html">logout.js</a></td>
|
|
113
|
+
<td data-value="14.81" class="pic low">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 14%"></div><div class="cover-empty" style="width: 86%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
118
|
-
<td data-value="
|
|
119
|
-
<td data-value="
|
|
120
|
-
<td data-value="
|
|
121
|
-
<td data-value="
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="
|
|
116
|
+
<td data-value="14.81" class="pct low">14.81%</td>
|
|
117
|
+
<td data-value="27" class="abs low">4/27</td>
|
|
118
|
+
<td data-value="0" class="pct low">0%</td>
|
|
119
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
120
|
+
<td data-value="0" class="pct low">0%</td>
|
|
121
|
+
<td data-value="7" class="abs low">0/7</td>
|
|
122
|
+
<td data-value="14.81" class="pct low">14.81%</td>
|
|
123
|
+
<td data-value="27" class="abs low">4/27</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
127
|
-
<td class="file
|
|
128
|
-
<td data-value="
|
|
129
|
-
<div class="chart"><div class="cover-fill
|
|
127
|
+
<td class="file low" data-value="refresh.js"><a href="refresh.js.html">refresh.js</a></td>
|
|
128
|
+
<td data-value="5" class="pic low">
|
|
129
|
+
<div class="chart"><div class="cover-fill" style="width: 5%"></div><div class="cover-empty" style="width: 95%"></div></div>
|
|
130
130
|
</td>
|
|
131
|
-
<td data-value="
|
|
132
|
-
<td data-value="
|
|
133
|
-
<td data-value="
|
|
134
|
-
<td data-value="
|
|
135
|
-
<td data-value="
|
|
136
|
-
<td data-value="3" class="abs
|
|
137
|
-
<td data-value="
|
|
138
|
-
<td data-value="
|
|
131
|
+
<td data-value="5" class="pct low">5%</td>
|
|
132
|
+
<td data-value="20" class="abs low">1/20</td>
|
|
133
|
+
<td data-value="0" class="pct low">0%</td>
|
|
134
|
+
<td data-value="9" class="abs low">0/9</td>
|
|
135
|
+
<td data-value="0" class="pct low">0%</td>
|
|
136
|
+
<td data-value="3" class="abs low">0/3</td>
|
|
137
|
+
<td data-value="5" class="pct low">5%</td>
|
|
138
|
+
<td data-value="20" class="abs low">1/20</td>
|
|
139
|
+
</tr>
|
|
140
|
+
|
|
141
|
+
<tr>
|
|
142
|
+
<td class="file low" data-value="ttl.js"><a href="ttl.js.html">ttl.js</a></td>
|
|
143
|
+
<td data-value="7.69" class="pic low">
|
|
144
|
+
<div class="chart"><div class="cover-fill" style="width: 7%"></div><div class="cover-empty" style="width: 93%"></div></div>
|
|
145
|
+
</td>
|
|
146
|
+
<td data-value="7.69" class="pct low">7.69%</td>
|
|
147
|
+
<td data-value="13" class="abs low">1/13</td>
|
|
148
|
+
<td data-value="0" class="pct low">0%</td>
|
|
149
|
+
<td data-value="4" class="abs low">0/4</td>
|
|
150
|
+
<td data-value="0" class="pct low">0%</td>
|
|
151
|
+
<td data-value="1" class="abs low">0/1</td>
|
|
152
|
+
<td data-value="7.69" class="pct low">7.69%</td>
|
|
153
|
+
<td data-value="13" class="abs low">1/13</td>
|
|
139
154
|
</tr>
|
|
140
155
|
|
|
141
156
|
</tbody>
|
|
@@ -146,7 +161,7 @@
|
|
|
146
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
162
|
Code coverage generated by
|
|
148
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at 2023-
|
|
164
|
+
at 2023-09-08T00:45:02.387Z
|
|
150
165
|
</div>
|
|
151
166
|
<script src="../../prettify.js"></script>
|
|
152
167
|
<script>
|
|
@@ -85,7 +85,7 @@ export { fetchTtl, LogoutSession, RefreshSession };
|
|
|
85
85
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
86
86
|
Code coverage generated by
|
|
87
87
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
88
|
-
at 2023-
|
|
88
|
+
at 2023-09-08T00:45:02.387Z
|
|
89
89
|
</div>
|
|
90
90
|
<script src="../../prettify.js"></script>
|
|
91
91
|
<script>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for react/session/isAuthV2.js</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">react/session</a> isAuthV2.js</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">7.14% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>1/14</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/4</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/2</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">7.14% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>1/14</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
89
|
+
<span class="cline-any cline-neutral"> </span>
|
|
90
|
+
<span class="cline-any cline-neutral"> </span>
|
|
91
|
+
<span class="cline-any cline-no"> </span>
|
|
92
|
+
<span class="cline-any cline-no"> </span>
|
|
93
|
+
<span class="cline-any cline-no"> </span>
|
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
|
95
|
+
<span class="cline-any cline-no"> </span>
|
|
96
|
+
<span class="cline-any cline-no"> </span>
|
|
97
|
+
<span class="cline-any cline-no"> </span>
|
|
98
|
+
<span class="cline-any cline-no"> </span>
|
|
99
|
+
<span class="cline-any cline-no"> </span>
|
|
100
|
+
<span class="cline-any cline-no"> </span>
|
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
|
102
|
+
<span class="cline-any cline-no"> </span>
|
|
103
|
+
<span class="cline-any cline-no"> </span>
|
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
|
105
|
+
<span class="cline-any cline-no"> </span>
|
|
106
|
+
<span class="cline-any cline-neutral"> </span>
|
|
107
|
+
<span class="cline-any cline-no"> </span>
|
|
108
|
+
<span class="cline-any cline-neutral"> </span>
|
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
|
110
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">let isAuthV2 = null;
|
|
111
|
+
|
|
112
|
+
export async function <span class="fstat-no" title="function not covered" >shouldUseAuthV2(</span>) {
|
|
113
|
+
const url = <span class="cstat-no" title="statement not covered" >'/meta/environment';</span>
|
|
114
|
+
<span class="cstat-no" title="statement not covered" > if (isAuthV2 !== null) {</span>
|
|
115
|
+
<span class="cstat-no" title="statement not covered" > return isAuthV2;</span>
|
|
116
|
+
}
|
|
117
|
+
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
118
|
+
const response = <span class="cstat-no" title="statement not covered" >await fetch(url);</span>
|
|
119
|
+
<span class="cstat-no" title="statement not covered" > if (response.ok) {</span>
|
|
120
|
+
const json = <span class="cstat-no" title="statement not covered" >await response.json();</span>
|
|
121
|
+
const value = <span class="cstat-no" title="statement not covered" >json.data.find(</span>
|
|
122
|
+
<span class="fstat-no" title="function not covered" > (f</span>lag) => <span class="cstat-no" title="statement not covered" >flag.environmentVariableName === 'FEATURE_AUTH_V2',</span>
|
|
123
|
+
).evaluatedValue;
|
|
124
|
+
<span class="cstat-no" title="statement not covered" > isAuthV2 = value;</span>
|
|
125
|
+
<span class="cstat-no" title="statement not covered" > return value;</span>
|
|
126
|
+
}
|
|
127
|
+
<span class="cstat-no" title="statement not covered" > throw new Error('unable to access /meta/environment');</span>
|
|
128
|
+
} catch (error) {
|
|
129
|
+
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</pre></td></tr></table></pre>
|
|
133
|
+
|
|
134
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
135
|
+
</div><!-- /wrapper -->
|
|
136
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
|
+
Code coverage generated by
|
|
138
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
+
at 2023-09-08T00:45:02.387Z
|
|
140
|
+
</div>
|
|
141
|
+
<script src="../../prettify.js"></script>
|
|
142
|
+
<script>
|
|
143
|
+
window.onload = function () {
|
|
144
|
+
prettyPrint();
|
|
145
|
+
};
|
|
146
|
+
</script>
|
|
147
|
+
<script src="../../sorter.js"></script>
|
|
148
|
+
<script src="../../block-navigation.js"></script>
|
|
149
|
+
</body>
|
|
150
|
+
</html>
|
|
151
|
+
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">14.81% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>4/27</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/12</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/7</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">14.81% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>4/27</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -143,19 +143,19 @@
|
|
|
143
143
|
<a name='L78'></a><a href='#L78'>78</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
144
144
|
<span class="cline-any cline-neutral"> </span>
|
|
145
145
|
<span class="cline-any cline-neutral"> </span>
|
|
146
|
-
<span class="cline-any cline-yes">
|
|
147
|
-
<span class="cline-any cline-
|
|
146
|
+
<span class="cline-any cline-yes">2x</span>
|
|
147
|
+
<span class="cline-any cline-no"> </span>
|
|
148
148
|
<span class="cline-any cline-no"> </span>
|
|
149
149
|
<span class="cline-any cline-neutral"> </span>
|
|
150
150
|
<span class="cline-any cline-neutral"> </span>
|
|
151
151
|
<span class="cline-any cline-neutral"> </span>
|
|
152
|
-
<span class="cline-any cline-
|
|
152
|
+
<span class="cline-any cline-no"> </span>
|
|
153
153
|
<span class="cline-any cline-no"> </span>
|
|
154
154
|
<span class="cline-any cline-neutral"> </span>
|
|
155
155
|
<span class="cline-any cline-neutral"> </span>
|
|
156
156
|
<span class="cline-any cline-neutral"> </span>
|
|
157
157
|
<span class="cline-any cline-neutral"> </span>
|
|
158
|
-
<span class="cline-any cline-yes">
|
|
158
|
+
<span class="cline-any cline-yes">2x</span>
|
|
159
159
|
<span class="cline-any cline-no"> </span>
|
|
160
160
|
<span class="cline-any cline-neutral"> </span>
|
|
161
161
|
<span class="cline-any cline-no"> </span>
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
<span class="cline-any cline-neutral"> </span>
|
|
164
164
|
<span class="cline-any cline-neutral"> </span>
|
|
165
165
|
<span class="cline-any cline-neutral"> </span>
|
|
166
|
-
<span class="cline-any cline-yes">
|
|
166
|
+
<span class="cline-any cline-yes">2x</span>
|
|
167
167
|
<span class="cline-any cline-no"> </span>
|
|
168
168
|
<span class="cline-any cline-neutral"> </span>
|
|
169
169
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -179,27 +179,27 @@
|
|
|
179
179
|
<span class="cline-any cline-neutral"> </span>
|
|
180
180
|
<span class="cline-any cline-neutral"> </span>
|
|
181
181
|
<span class="cline-any cline-neutral"> </span>
|
|
182
|
-
<span class="cline-any cline-yes">
|
|
182
|
+
<span class="cline-any cline-yes">2x</span>
|
|
183
183
|
<span class="cline-any cline-neutral"> </span>
|
|
184
|
-
<span class="cline-any cline-
|
|
184
|
+
<span class="cline-any cline-no"> </span>
|
|
185
185
|
<span class="cline-any cline-neutral"> </span>
|
|
186
|
-
<span class="cline-any cline-
|
|
187
|
-
<span class="cline-any cline-
|
|
186
|
+
<span class="cline-any cline-no"> </span>
|
|
187
|
+
<span class="cline-any cline-no"> </span>
|
|
188
188
|
<span class="cline-any cline-neutral"> </span>
|
|
189
|
-
<span class="cline-any cline-
|
|
190
|
-
<span class="cline-any cline-
|
|
189
|
+
<span class="cline-any cline-no"> </span>
|
|
190
|
+
<span class="cline-any cline-no"> </span>
|
|
191
191
|
<span class="cline-any cline-neutral"> </span>
|
|
192
|
-
<span class="cline-any cline-
|
|
193
|
-
<span class="cline-any cline-
|
|
192
|
+
<span class="cline-any cline-no"> </span>
|
|
193
|
+
<span class="cline-any cline-no"> </span>
|
|
194
194
|
<span class="cline-any cline-neutral"> </span>
|
|
195
195
|
<span class="cline-any cline-neutral"> </span>
|
|
196
|
-
<span class="cline-any cline-
|
|
196
|
+
<span class="cline-any cline-no"> </span>
|
|
197
197
|
<span class="cline-any cline-neutral"> </span>
|
|
198
|
-
<span class="cline-any cline-
|
|
199
|
-
<span class="cline-any cline-
|
|
198
|
+
<span class="cline-any cline-no"> </span>
|
|
199
|
+
<span class="cline-any cline-no"> </span>
|
|
200
200
|
<span class="cline-any cline-neutral"> </span>
|
|
201
201
|
<span class="cline-any cline-neutral"> </span>
|
|
202
|
-
<span class="cline-any cline-
|
|
202
|
+
<span class="cline-any cline-no"> </span>
|
|
203
203
|
<span class="cline-any cline-neutral"> </span>
|
|
204
204
|
<span class="cline-any cline-neutral"> </span>
|
|
205
205
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -220,13 +220,13 @@
|
|
|
220
220
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import cookie from 'cookie';
|
|
221
221
|
import axios from 'axios';
|
|
222
222
|
|
|
223
|
-
export const deleteImpersonatedUser = (
|
|
224
|
-
|
|
223
|
+
export const deleteImpersonatedUser = <span class="fstat-no" title="function not covered" >(c</span>ookies) => {
|
|
224
|
+
<span class="cstat-no" title="statement not covered" > if (cookies.hasOwnProperty('qpp_impersonated_user')) {</span>
|
|
225
225
|
<span class="cstat-no" title="statement not covered" > document.cookie =</span>
|
|
226
226
|
'qpp_impersonated_user=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
<span class="cstat-no" title="statement not covered" > if (cookies.hasOwnProperty('qpp_impersonated_type')) {</span>
|
|
230
230
|
<span class="cstat-no" title="statement not covered" > document.cookie =</span>
|
|
231
231
|
'qpp_impersonated_type=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
232
232
|
}
|
|
@@ -256,27 +256,27 @@ export const revertQppHasAuthsCookie = <span class="fstat-no" title="function no
|
|
|
256
256
|
* @param {Object} [_window] The DOM Window
|
|
257
257
|
* @return {Function} Returns a promise
|
|
258
258
|
*/
|
|
259
|
-
const LogoutSession = (
|
|
259
|
+
const LogoutSession = <span class="fstat-no" title="function not covered" >(_</span>window) => {
|
|
260
260
|
// Remove the Side Nav expanded state from localStorage
|
|
261
|
-
localStorage.removeItem('qpp_side_nav_expanded')
|
|
261
|
+
<span class="cstat-no" title="statement not covered" > localStorage.removeItem('qpp_side_nav_expanded')</span>
|
|
262
262
|
|
|
263
|
-
let cookies = cookie.parse(_window.document.cookie)
|
|
264
|
-
let logoutDestination = '/logout-confirmation'
|
|
263
|
+
let cookies = <span class="cstat-no" title="statement not covered" >cookie.parse(_window.document.cookie);</span>
|
|
264
|
+
let logoutDestination = <span class="cstat-no" title="statement not covered" >'/logout-confirmation';</span>
|
|
265
265
|
|
|
266
|
-
if (cookies.hasOwnProperty('qpp_auth_token')) {
|
|
267
|
-
let onSuccess = () => {
|
|
266
|
+
<span class="cstat-no" title="statement not covered" > if (cookies.hasOwnProperty('qpp_auth_token')) {</span>
|
|
267
|
+
let onSuccess = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
268
268
|
// redirect to login/logged out screen
|
|
269
|
-
deleteImpersonatedUser(cookies)
|
|
270
|
-
_window.location.pathname = logoutDestination
|
|
269
|
+
<span class="cstat-no" title="statement not covered" > deleteImpersonatedUser(cookies);</span>
|
|
270
|
+
<span class="cstat-no" title="statement not covered" > _window.location.pathname = logoutDestination;</span>
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
let onError = () => {
|
|
273
|
+
let onError = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
274
274
|
// delete cookie and redirect login/logged out screen
|
|
275
|
-
deleteImpersonatedUser(cookies)
|
|
276
|
-
_window.location.pathname = logoutDestination
|
|
275
|
+
<span class="cstat-no" title="statement not covered" > deleteImpersonatedUser(cookies);</span>
|
|
276
|
+
<span class="cstat-no" title="statement not covered" > _window.location.pathname = logoutDestination;</span>
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
return axios({
|
|
279
|
+
<span class="cstat-no" title="statement not covered" > return axios({</span>
|
|
280
280
|
method: 'POST',
|
|
281
281
|
url: '/user/session-logout',
|
|
282
282
|
headers: {
|
|
@@ -288,7 +288,7 @@ const LogoutSession = (_window) => {
|
|
|
288
288
|
.catch(<span class="fstat-no" title="function not covered" >fu</span>nction (err) {
|
|
289
289
|
<span class="cstat-no" title="statement not covered" > console.log(err);</span>
|
|
290
290
|
});
|
|
291
|
-
} else
|
|
291
|
+
} else {
|
|
292
292
|
<span class="cstat-no" title="statement not covered" > _window.location.pathname = logoutDestination;</span>
|
|
293
293
|
}
|
|
294
294
|
};
|
|
@@ -301,7 +301,7 @@ export default LogoutSession;
|
|
|
301
301
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
302
302
|
Code coverage generated by
|
|
303
303
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
304
|
-
at 2023-
|
|
304
|
+
at 2023-09-08T00:45:02.387Z
|
|
305
305
|
</div>
|
|
306
306
|
<script src="../../prettify.js"></script>
|
|
307
307
|
<script>
|