qpp-style 9.34.3 → 9.34.4
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/coverage/clover.xml +139 -142
- package/coverage/coverage-final.json +13 -12
- package/coverage/lcov-report/Infotip.jsx.html +298 -0
- package/coverage/lcov-report/InfotipContent.jsx.html +223 -0
- package/coverage/lcov-report/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/index.html +51 -51
- package/coverage/lcov-report/index.js.html +94 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +14 -14
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +16 -16
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +10 -10
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +5 -5
- package/coverage/lcov-report/react/components/Error/error.js.html +4 -4
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/footer.js.html +5 -5
- 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 +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +22 -16
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +64 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +8 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +38 -38
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +5 -5
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +17 -14
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +25 -25
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/header.js.html +4 -4
- package/coverage/lcov-report/react/components/Header/hooks.js.html +9 -9
- package/coverage/lcov-report/react/components/Header/index.html +13 -13
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +2 -2
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +41 -41
- package/coverage/lcov-report/react/components/Infotip/InfotipContent.jsx.html +18 -18
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Infotip/index.html +38 -23
- package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +5 -5
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +29 -29
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +178 -178
- package/coverage/lcov-report/react/components/Session/Session.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Session/SessionDialogWrapped.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Session/index.html +1 -1
- package/coverage/lcov-report/react/components/Session/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +11 -11
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +23 -23
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +4 -4
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +5 -5
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +33 -33
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +36 -126
- package/coverage/lcov-report/react/components/SideNav/UI/default-markup.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +96 -84
- package/coverage/lcov-report/react/components/SideNav/index.html +10 -10
- package/coverage/lcov-report/react/components/SideNav/index.js.html +4 -4
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +7 -7
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- package/coverage/lcov-report/react/session/index.html +20 -20
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/isAuthV2.js.html +2 -2
- package/coverage/lcov-report/react/session/logout.js.html +43 -43
- package/coverage/lcov-report/react/session/refresh.js.html +2 -2
- package/coverage/lcov-report/react/session/ttl.js.html +2 -2
- package/coverage/lcov.info +253 -258
- 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 +14 -20
- package/test/components/FooterUI.test.js +18 -19
- package/test/components/Infotip.test.js +29 -31
- package/test/session/session.test.js +64 -65
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">22.22% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2/9</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/4</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">22.22% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2/9</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -105,7 +105,26 @@
|
|
|
105
105
|
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
106
|
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
107
|
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
|
109
128
|
<span class="cline-any cline-neutral"> </span>
|
|
110
129
|
<span class="cline-any cline-neutral"> </span>
|
|
111
130
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -113,6 +132,19 @@
|
|
|
113
132
|
<span class="cline-any cline-no"> </span>
|
|
114
133
|
<span class="cline-any cline-no"> </span>
|
|
115
134
|
<span class="cline-any cline-no"> </span>
|
|
135
|
+
<span class="cline-any cline-no"> </span>
|
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-neutral"> </span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-no"> </span>
|
|
146
|
+
<span class="cline-any cline-no"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
116
148
|
<span class="cline-any cline-neutral"> </span>
|
|
117
149
|
<span class="cline-any cline-neutral"> </span>
|
|
118
150
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -146,13 +178,30 @@
|
|
|
146
178
|
<span class="cline-any cline-neutral"> </span>
|
|
147
179
|
<span class="cline-any cline-neutral"> </span>
|
|
148
180
|
<span class="cline-any cline-neutral"> </span>
|
|
181
|
+
<span class="cline-any cline-yes">2x</span>
|
|
149
182
|
<span class="cline-any cline-neutral"> </span>
|
|
150
|
-
<span class="cline-any cline-neutral"> </span
|
|
183
|
+
<span class="cline-any cline-neutral"> </span>
|
|
184
|
+
<span class="cline-any cline-neutral"> </span>
|
|
185
|
+
<span class="cline-any cline-neutral"> </span>
|
|
186
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
187
|
+
import PropTypes from "prop-types";
|
|
151
188
|
|
|
152
|
-
import { useHeaderState } from
|
|
189
|
+
import { useHeaderState } from "./hooks";
|
|
153
190
|
|
|
154
|
-
const HeaderLogo = <span class="fstat-no" title="function not covered" >(
|
|
191
|
+
const HeaderLogo = <span class="fstat-no" title="function not covered" >(i</span>sDevPre) => {
|
|
155
192
|
const { closeMenus, RouterLink } = <span class="cstat-no" title="statement not covered" >useHeaderState();</span>
|
|
193
|
+
const showDevPre = <span class="cstat-no" title="statement not covered" >isDevPre.isDevPre;</span>
|
|
194
|
+
<span class="cstat-no" title="statement not covered" > if (showDevPre) {</span>
|
|
195
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
196
|
+
<div className="header-logo">
|
|
197
|
+
<img
|
|
198
|
+
className="qpp-logo"
|
|
199
|
+
src="/images/qpp_logo_rgb_color.png"
|
|
200
|
+
alt="QPP logo"
|
|
201
|
+
/>
|
|
202
|
+
</div>
|
|
203
|
+
);
|
|
204
|
+
}
|
|
156
205
|
<span class="cstat-no" title="statement not covered" > if (RouterLink) {</span>
|
|
157
206
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
158
207
|
<RouterLink
|
|
@@ -171,6 +220,7 @@ const HeaderLogo = <span class="fstat-no" title="function not covered" >()</span
|
|
|
171
220
|
</RouterLink>
|
|
172
221
|
);
|
|
173
222
|
}
|
|
223
|
+
|
|
174
224
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
175
225
|
<a
|
|
176
226
|
className="header-logo"
|
|
@@ -188,6 +238,10 @@ const HeaderLogo = <span class="fstat-no" title="function not covered" >()</span
|
|
|
188
238
|
);
|
|
189
239
|
};
|
|
190
240
|
|
|
241
|
+
HeaderLogo.propTypes = {
|
|
242
|
+
isDevPre: PropTypes.object,
|
|
243
|
+
};
|
|
244
|
+
|
|
191
245
|
export default HeaderLogo;
|
|
192
246
|
</pre></td></tr></table></pre>
|
|
193
247
|
|
|
@@ -196,7 +250,7 @@ export default HeaderLogo;
|
|
|
196
250
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
197
251
|
Code coverage generated by
|
|
198
252
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
199
|
-
at 2023-
|
|
253
|
+
at 2023-10-09T20:35:15.116Z
|
|
200
254
|
</div>
|
|
201
255
|
<script src="../../../prettify.js"></script>
|
|
202
256
|
<script>
|
|
@@ -163,12 +163,12 @@
|
|
|
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-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
167
|
-
import PropTypes from
|
|
166
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
167
|
+
import PropTypes from "prop-types";
|
|
168
168
|
|
|
169
|
-
import { useHeaderState } from
|
|
170
|
-
import NavigationButtonIcon from
|
|
171
|
-
import { setUtagLink } from
|
|
169
|
+
import { useHeaderState } from "./hooks";
|
|
170
|
+
import NavigationButtonIcon from "./NavigationButtonIcon";
|
|
171
|
+
import { setUtagLink } from "./utag-helpers";
|
|
172
172
|
|
|
173
173
|
const HeaderMenuButton = <span class="fstat-no" title="function not covered" >({</span> href, name }) => {
|
|
174
174
|
const { RouterLink, closeMenus } = <span class="cstat-no" title="statement not covered" >useHeaderState();</span>
|
|
@@ -179,7 +179,7 @@ const HeaderMenuButton = <span class="fstat-no" title="function not covered" >({
|
|
|
179
179
|
to={href}
|
|
180
180
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
181
181
|
<span class="cstat-no" title="statement not covered" > closeMenus();</span>
|
|
182
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
182
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("main navbar", "click", href);</span>
|
|
183
183
|
}}
|
|
184
184
|
data-track-category="TopNav"
|
|
185
185
|
data-track-action="click"
|
|
@@ -198,7 +198,7 @@ const HeaderMenuButton = <span class="fstat-no" title="function not covered" >({
|
|
|
198
198
|
data-track-action="click"
|
|
199
199
|
data-track-label={name}
|
|
200
200
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
201
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
201
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("main navbar", "click", href);</span>
|
|
202
202
|
}}
|
|
203
203
|
>
|
|
204
204
|
{name}
|
|
@@ -220,7 +220,7 @@ export default HeaderMenuButton;
|
|
|
220
220
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
221
221
|
Code coverage generated by
|
|
222
222
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
223
|
-
at 2023-
|
|
223
|
+
at 2023-10-09T20:35:15.116Z
|
|
224
224
|
</div>
|
|
225
225
|
<script src="../../../prettify.js"></script>
|
|
226
226
|
<script>
|
|
@@ -541,15 +541,15 @@
|
|
|
541
541
|
<span class="cline-any cline-neutral"> </span>
|
|
542
542
|
<span class="cline-any cline-neutral"> </span>
|
|
543
543
|
<span class="cline-any cline-neutral"> </span>
|
|
544
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { Fragment, useRef, useEffect, useState } from
|
|
545
|
-
import PropTypes from
|
|
544
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { Fragment, useRef, useEffect, useState } from "react";
|
|
545
|
+
import PropTypes from "prop-types";
|
|
546
546
|
|
|
547
|
-
import { useWindowWidth, useHeaderState } from
|
|
548
|
-
import HeaderMenuLink from
|
|
549
|
-
import HeaderMenuButton from
|
|
550
|
-
import HeaderMenuSignOutButton from
|
|
551
|
-
import Accordion from
|
|
552
|
-
import { Chevron } from
|
|
547
|
+
import { useWindowWidth, useHeaderState } from "./hooks";
|
|
548
|
+
import HeaderMenuLink from "./HeaderMenuLink";
|
|
549
|
+
import HeaderMenuButton from "./HeaderMenuButton";
|
|
550
|
+
import HeaderMenuSignOutButton from "./HeaderMenuSignOutButton";
|
|
551
|
+
import Accordion from "../Accordion";
|
|
552
|
+
import { Chevron } from "../../lib/Chevron.jsx";
|
|
553
553
|
|
|
554
554
|
const menuSizes = {
|
|
555
555
|
1: 315,
|
|
@@ -559,19 +559,19 @@ const menuSizes = {
|
|
|
559
559
|
};
|
|
560
560
|
|
|
561
561
|
const excludedClickOutClasses = [
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
562
|
+
"menu-dropdown-toggle",
|
|
563
|
+
"nav-link",
|
|
564
|
+
"nav-link-li",
|
|
565
|
+
"dropdown-description",
|
|
566
|
+
"dropdown-title",
|
|
567
|
+
"dropdown-title-chevron-container",
|
|
568
|
+
"signout-button",
|
|
569
|
+
"submenu-section",
|
|
570
|
+
"accordion",
|
|
571
|
+
"accordion-title",
|
|
572
|
+
"accordion-left-title",
|
|
573
|
+
"header-menu-btn",
|
|
574
|
+
"btn-navigation-icon",
|
|
575
575
|
];
|
|
576
576
|
|
|
577
577
|
const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</span>
|
|
@@ -585,7 +585,7 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
585
585
|
className,
|
|
586
586
|
}) => {
|
|
587
587
|
const [isSubMenuFullWidth, setSubMenuFullWidth] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
|
|
588
|
-
const [openMobileSubMenu, setOpenMobileSubMenu] = <span class="cstat-no" title="statement not covered" >useState(
|
|
588
|
+
const [openMobileSubMenu, setOpenMobileSubMenu] = <span class="cstat-no" title="statement not covered" >useState("");</span>
|
|
589
589
|
|
|
590
590
|
const windowWidth = <span class="cstat-no" title="statement not covered" >useWindowWidth();</span>
|
|
591
591
|
const menuButtonRef = <span class="cstat-no" title="statement not covered" >useRef(null);</span>
|
|
@@ -620,16 +620,16 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
620
620
|
) {
|
|
621
621
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
622
622
|
}
|
|
623
|
-
<span class="cstat-no" title="statement not covered" > setOpenMobileSubMenu(
|
|
623
|
+
<span class="cstat-no" title="statement not covered" > setOpenMobileSubMenu("");</span>
|
|
624
624
|
<span class="cstat-no" title="statement not covered" > closeMenus();</span>
|
|
625
625
|
};
|
|
626
|
-
<span class="cstat-no" title="statement not covered" > document.addEventListener(
|
|
627
|
-
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >document.removeEventListener(
|
|
626
|
+
<span class="cstat-no" title="statement not covered" > document.addEventListener("mousedown", listener);</span>
|
|
627
|
+
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >document.removeEventListener("mousedown", listener);</span></span>
|
|
628
628
|
}, [menuRef]);
|
|
629
629
|
|
|
630
630
|
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
631
631
|
<span class="cstat-no" title="statement not covered" > if (!isMobileMenuExpanded || !isOpen) {</span>
|
|
632
|
-
<span class="cstat-no" title="statement not covered" > setOpenMobileSubMenu(
|
|
632
|
+
<span class="cstat-no" title="statement not covered" > setOpenMobileSubMenu("");</span>
|
|
633
633
|
}
|
|
634
634
|
}, [isMobileMenuExpanded, isOpen]);
|
|
635
635
|
|
|
@@ -637,8 +637,8 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
637
637
|
<li
|
|
638
638
|
key={`header-item-${menuIdentifier}`}
|
|
639
639
|
className={`header-item-${menuIdentifier}${
|
|
640
|
-
isSubMenuFullWidth ?
|
|
641
|
-
}${className ? ` ${className}` :
|
|
640
|
+
isSubMenuFullWidth ? " full-width-menu" : ""
|
|
641
|
+
}${className ? ` ${className}` : ""}`}
|
|
642
642
|
ref={menuRef}
|
|
643
643
|
>
|
|
644
644
|
<button
|
|
@@ -657,12 +657,12 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
657
657
|
</div>
|
|
658
658
|
</div>
|
|
659
659
|
|
|
660
|
-
<span className={`dropdown-description ${isOpen ?
|
|
660
|
+
<span className={`dropdown-description ${isOpen ? "active" : ""}`}>
|
|
661
661
|
{subtitle}
|
|
662
662
|
</span>
|
|
663
663
|
</button>
|
|
664
664
|
<div
|
|
665
|
-
className={`nav-section${isOpen ?
|
|
665
|
+
className={`nav-section${isOpen ? " open" : ""}`}
|
|
666
666
|
id={`nav-section-${menuIdentifier}`}
|
|
667
667
|
hidden={!isOpen}
|
|
668
668
|
data-columns={numColumns}
|
|
@@ -679,7 +679,7 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
679
679
|
)}
|
|
680
680
|
<ul>
|
|
681
681
|
{c.items.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {
|
|
682
|
-
const isSubLink = <span class="cstat-no" title="statement not covered" >item.type ===
|
|
682
|
+
const isSubLink = <span class="cstat-no" title="statement not covered" >item.type === "sublink";</span>
|
|
683
683
|
const componentsByType = <span class="cstat-no" title="statement not covered" >{</span>
|
|
684
684
|
button: HeaderMenuButton,
|
|
685
685
|
signout: HeaderMenuSignOutButton,
|
|
@@ -693,8 +693,8 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
693
693
|
key={`item-link-${item.name}`}
|
|
694
694
|
className={
|
|
695
695
|
isSubLink
|
|
696
|
-
?
|
|
697
|
-
:
|
|
696
|
+
? "nav-link-li sublink"
|
|
697
|
+
: "nav-link-li"
|
|
698
698
|
}
|
|
699
699
|
>
|
|
700
700
|
<SubMenuComponent
|
|
@@ -707,7 +707,7 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
707
707
|
})}
|
|
708
708
|
</ul>
|
|
709
709
|
</li>
|
|
710
|
-
{name ===
|
|
710
|
+
{name === "MIPS" && (
|
|
711
711
|
<li
|
|
712
712
|
key={`${menuIdentifier}-mobile-${index}-${cIndex}`}
|
|
713
713
|
className="submenu-section-mips-mobile"
|
|
@@ -724,7 +724,7 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
724
724
|
>
|
|
725
725
|
<ul>
|
|
726
726
|
{c.items.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {
|
|
727
|
-
const isSubLink = <span class="cstat-no" title="statement not covered" >item.type ===
|
|
727
|
+
const isSubLink = <span class="cstat-no" title="statement not covered" >item.type === "sublink";</span>
|
|
728
728
|
const componentsByType = <span class="cstat-no" title="statement not covered" >{</span>
|
|
729
729
|
button: HeaderMenuButton,
|
|
730
730
|
signout: HeaderMenuSignOutButton,
|
|
@@ -737,7 +737,7 @@ const HeaderMenuItem = <span class="fstat-no" title="function not covered" >({</
|
|
|
737
737
|
<li
|
|
738
738
|
onClick={handleClick}
|
|
739
739
|
key={`item-link-${item.name}`}
|
|
740
|
-
className={isSubLink ?
|
|
740
|
+
className={isSubLink ? "sublink" : ""}
|
|
741
741
|
>
|
|
742
742
|
<SubMenuComponent
|
|
743
743
|
href={item.href}
|
|
@@ -773,7 +773,7 @@ HeaderMenuItem.propTypes = {
|
|
|
773
773
|
isMobileMenuExpanded: PropTypes.bool.isRequired,
|
|
774
774
|
};
|
|
775
775
|
HeaderMenuItem.defaultProps = {
|
|
776
|
-
menuName:
|
|
776
|
+
menuName: "",
|
|
777
777
|
columns: [],
|
|
778
778
|
rows: [],
|
|
779
779
|
className: null,
|
|
@@ -787,7 +787,7 @@ export default HeaderMenuItem;
|
|
|
787
787
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
788
788
|
Code coverage generated by
|
|
789
789
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
790
|
-
at 2023-
|
|
790
|
+
at 2023-10-09T20:35:15.116Z
|
|
791
791
|
</div>
|
|
792
792
|
<script src="../../../prettify.js"></script>
|
|
793
793
|
<script>
|
|
@@ -175,11 +175,11 @@
|
|
|
175
175
|
<span class="cline-any cline-neutral"> </span>
|
|
176
176
|
<span class="cline-any cline-neutral"> </span>
|
|
177
177
|
<span class="cline-any cline-neutral"> </span>
|
|
178
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
179
|
-
import PropTypes from
|
|
180
|
-
import { submissionsUrl } from
|
|
181
|
-
import { useHeaderState } from
|
|
182
|
-
import { setUtagLink } from
|
|
178
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
179
|
+
import PropTypes from "prop-types";
|
|
180
|
+
import { submissionsUrl } from "../SideNav/helpers";
|
|
181
|
+
import { useHeaderState } from "./hooks";
|
|
182
|
+
import { setUtagLink } from "./utag-helpers";
|
|
183
183
|
|
|
184
184
|
// exclude submissions urls
|
|
185
185
|
const isNotExcluded = <span class="fstat-no" title="function not covered" >(h</span>ref) => <span class="cstat-no" title="statement not covered" >!href.includes(submissionsUrl);</span>
|
|
@@ -192,7 +192,7 @@ const HeaderMenuLink = <span class="fstat-no" title="function not covered" >({</
|
|
|
192
192
|
to={href}
|
|
193
193
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
194
194
|
<span class="cstat-no" title="statement not covered" > closeMenus();</span>
|
|
195
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
195
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("main navbar", "click", href);</span>
|
|
196
196
|
}}
|
|
197
197
|
data-track-category="TopNav"
|
|
198
198
|
data-track-action="click"
|
|
@@ -211,13 +211,13 @@ const HeaderMenuLink = <span class="fstat-no" title="function not covered" >({</
|
|
|
211
211
|
data-track-action="click"
|
|
212
212
|
data-track-label={name}
|
|
213
213
|
onKeyDown={<span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
214
|
-
<span class="cstat-no" title="statement not covered" > if (e.key ===
|
|
214
|
+
<span class="cstat-no" title="statement not covered" > if (e.key === " " || e.code === "Space") {</span>
|
|
215
215
|
<span class="cstat-no" title="statement not covered" > window.location.href = window.location.origin + href;</span>
|
|
216
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
216
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("main navbar", "keydown", href);</span>
|
|
217
217
|
}
|
|
218
218
|
}}
|
|
219
219
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
220
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
220
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("main navbar", "click", href);</span>
|
|
221
221
|
}}
|
|
222
222
|
>
|
|
223
223
|
{name}
|
|
@@ -238,7 +238,7 @@ export default HeaderMenuLink;
|
|
|
238
238
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
239
239
|
Code coverage generated by
|
|
240
240
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
241
|
-
at 2023-
|
|
241
|
+
at 2023-10-09T20:35:15.116Z
|
|
242
242
|
</div>
|
|
243
243
|
<script src="../../../prettify.js"></script>
|
|
244
244
|
<script>
|
|
@@ -187,12 +187,12 @@
|
|
|
187
187
|
<span class="cline-any cline-neutral"> </span>
|
|
188
188
|
<span class="cline-any cline-neutral"> </span>
|
|
189
189
|
<span class="cline-any cline-neutral"> </span>
|
|
190
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from
|
|
191
|
-
import PropTypes from
|
|
190
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react";
|
|
191
|
+
import PropTypes from "prop-types";
|
|
192
192
|
|
|
193
|
-
import { LogoutSession } from
|
|
194
|
-
import { setUtagLink } from
|
|
195
|
-
import Modal from
|
|
193
|
+
import { LogoutSession } from "../../session";
|
|
194
|
+
import { setUtagLink } from "./utag-helpers";
|
|
195
|
+
import Modal from "../Modal/index";
|
|
196
196
|
|
|
197
197
|
const useModal = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
198
198
|
const [open, setOpen] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
|
|
@@ -224,17 +224,17 @@ const HeaderMenuSignOutButton = <span class="fstat-no" title="function not cover
|
|
|
224
224
|
title="Sign out"
|
|
225
225
|
onRequestClose={closeModal}
|
|
226
226
|
primary={{
|
|
227
|
-
title:
|
|
227
|
+
title: "Sign me out now",
|
|
228
228
|
onClick: <span class="fstat-no" title="function not covered" >()</span> => {
|
|
229
229
|
<span class="cstat-no" title="statement not covered" > showLogoutWarning();</span>
|
|
230
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
230
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("button", "click", "Sign me out now");</span>
|
|
231
231
|
},
|
|
232
232
|
}}
|
|
233
233
|
secondary={{
|
|
234
|
-
title:
|
|
234
|
+
title: "Keep me signed in",
|
|
235
235
|
onClick: <span class="fstat-no" title="function not covered" >()</span> => {
|
|
236
236
|
<span class="cstat-no" title="statement not covered" > closeModal();</span>
|
|
237
|
-
<span class="cstat-no" title="statement not covered" > setUtagLink(
|
|
237
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink("button", "click", "Keep me signed in");</span>
|
|
238
238
|
},
|
|
239
239
|
}}
|
|
240
240
|
>
|
|
@@ -256,7 +256,7 @@ export default HeaderMenuSignOutButton;
|
|
|
256
256
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
257
257
|
Code coverage generated by
|
|
258
258
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
259
|
-
at 2023-
|
|
259
|
+
at 2023-10-09T20:35:15.116Z
|
|
260
260
|
</div>
|
|
261
261
|
<script src="../../../prettify.js"></script>
|
|
262
262
|
<script>
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
<span class="cline-any cline-neutral"> </span>
|
|
138
138
|
<span class="cline-any cline-neutral"> </span>
|
|
139
139
|
<span class="cline-any cline-neutral"> </span>
|
|
140
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
141
|
-
import PropTypes from
|
|
142
|
-
import { CloseXIcon } from
|
|
140
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
141
|
+
import PropTypes from "prop-types";
|
|
142
|
+
import { CloseXIcon } from "../../lib/SvgComponents.jsx";
|
|
143
143
|
|
|
144
144
|
const HeaderMobileButton = <span class="fstat-no" title="function not covered" >({</span> isMobileMenuExpanded, handleClick }) => (
|
|
145
145
|
<span class="cstat-no" title="statement not covered" > <button</span>
|
|
@@ -148,7 +148,7 @@ const HeaderMobileButton = <span class="fstat-no" title="function not covered" >
|
|
|
148
148
|
data-toggle="collapse"
|
|
149
149
|
data-target="#nav-mobile"
|
|
150
150
|
aria-label="Navigation menu"
|
|
151
|
-
aria-expanded={isMobileMenuExpanded ?
|
|
151
|
+
aria-expanded={isMobileMenuExpanded ? "true" : "false"}
|
|
152
152
|
aria-controls="nav-mobile"
|
|
153
153
|
onClick={handleClick}
|
|
154
154
|
>
|
|
@@ -181,7 +181,7 @@ export default HeaderMobileButton;
|
|
|
181
181
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
182
182
|
Code coverage generated by
|
|
183
183
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
184
|
-
at 2023-
|
|
184
|
+
at 2023-10-09T20:35:15.116Z
|
|
185
185
|
</div>
|
|
186
186
|
<script src="../../../prettify.js"></script>
|
|
187
187
|
<script>
|
|
@@ -230,7 +230,8 @@
|
|
|
230
230
|
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
231
|
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
232
|
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
-
<a name='L168'></a><a href='#L168'>168</a
|
|
233
|
+
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
+
<a name='L169'></a><a href='#L169'>169</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
234
235
|
<span class="cline-any cline-neutral"> </span>
|
|
235
236
|
<span class="cline-any cline-neutral"> </span>
|
|
236
237
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -320,6 +321,7 @@
|
|
|
320
321
|
<span class="cline-any cline-neutral"> </span>
|
|
321
322
|
<span class="cline-any cline-neutral"> </span>
|
|
322
323
|
<span class="cline-any cline-neutral"> </span>
|
|
324
|
+
<span class="cline-any cline-neutral"> </span>
|
|
323
325
|
<span class="cline-any cline-no"> </span>
|
|
324
326
|
<span class="cline-any cline-no"> </span>
|
|
325
327
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -397,18 +399,18 @@
|
|
|
397
399
|
<span class="cline-any cline-neutral"> </span>
|
|
398
400
|
<span class="cline-any cline-neutral"> </span>
|
|
399
401
|
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect } from
|
|
401
|
-
import PropTypes from
|
|
402
|
-
import axios from
|
|
403
|
-
import HeaderAccountMenu from
|
|
404
|
-
import HeaderCancel from
|
|
405
|
-
import HeaderContainer from
|
|
406
|
-
import HeaderMenuItem from
|
|
407
|
-
import HeaderMobileButton from
|
|
408
|
-
import ImpersonatorBanner from
|
|
409
|
-
import HelpIcon from
|
|
410
|
-
import { HeaderStateProvider } from
|
|
411
|
-
import defaultContent from
|
|
402
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect } from "react";
|
|
403
|
+
import PropTypes from "prop-types";
|
|
404
|
+
import axios from "axios";
|
|
405
|
+
import HeaderAccountMenu from "./HeaderAccountMenu.jsx";
|
|
406
|
+
import HeaderCancel from "./HeaderCancel.jsx";
|
|
407
|
+
import HeaderContainer from "./HeaderContainer";
|
|
408
|
+
import HeaderMenuItem from "./HeaderMenuItem";
|
|
409
|
+
import HeaderMobileButton from "./HeaderMobileButton";
|
|
410
|
+
import ImpersonatorBanner from "./ImpersonatorBanner";
|
|
411
|
+
import HelpIcon from "./HelpIcon";
|
|
412
|
+
import { HeaderStateProvider } from "./hooks";
|
|
413
|
+
import defaultContent from "./default-content.json";
|
|
412
414
|
|
|
413
415
|
const HeaderUI = <span class="fstat-no" title="function not covered" >({</span>
|
|
414
416
|
handleCancel,
|
|
@@ -478,6 +480,7 @@ const HeaderUI = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
478
480
|
isIESupportPage={isIESupportPage}
|
|
479
481
|
skipToContentId={skipToContentId}
|
|
480
482
|
includeSkipToSidebar={includeSkipToSidebar}
|
|
483
|
+
isDevPre={isDevPre}
|
|
481
484
|
>
|
|
482
485
|
<nav aria-label="Primary navigation" hidden={!isMobileMenuExpanded}>
|
|
483
486
|
<ul className="navigation-menu">
|
|
@@ -571,7 +574,7 @@ export default HeaderUI;
|
|
|
571
574
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
572
575
|
Code coverage generated by
|
|
573
576
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
574
|
-
at 2023-
|
|
577
|
+
at 2023-10-09T20:35:15.116Z
|
|
575
578
|
</div>
|
|
576
579
|
<script src="../../../prettify.js"></script>
|
|
577
580
|
<script>
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
<span class="cline-any cline-neutral"> </span>
|
|
128
128
|
<span class="cline-any cline-neutral"> </span>
|
|
129
129
|
<span class="cline-any cline-neutral"> </span>
|
|
130
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
130
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
131
131
|
|
|
132
132
|
const HelpIcon = <span class="fstat-no" title="function not covered" >()</span> => (
|
|
133
133
|
<span class="cstat-no" title="statement not covered" > <a</span>
|
|
@@ -166,7 +166,7 @@ export default HelpIcon;
|
|
|
166
166
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
167
167
|
Code coverage generated by
|
|
168
168
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
169
|
-
at 2023-
|
|
169
|
+
at 2023-10-09T20:35:15.116Z
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../../prettify.js"></script>
|
|
172
172
|
<script>
|