@appdirect/sfb-toolkit 4.0.25 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +4 -4
- package/coverage/clover.xml +89 -80
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/constants/customUserAttributesMock.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/pageUrls.js.html +1 -1
- package/coverage/lcov-report/constants/userMock.js.html +1 -1
- package/coverage/lcov-report/controllers/controllers-utils/assetsUtils.js.html +1 -1
- package/coverage/lcov-report/controllers/controllers-utils/index.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/bootstrap-data-filter.js.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/call-to-actions-filter.js.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/index.html +1 -1
- package/coverage/lcov-report/controllers/index.html +15 -15
- package/coverage/lcov-report/controllers/index.js.html +15 -12
- package/coverage/lcov-report/front-end-utils/src/components/base/ResultItem.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/SearchBar.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/item.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/container.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/data-view.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/header-view.js.html +125 -71
- package/coverage/lcov-report/front-end-utils/src/components/index.html +14 -14
- package/coverage/lcov-report/front-end-utils/src/components/search.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/index.html +5 -5
- package/coverage/lcov-report/front-end-utils/src/constants/pageUrl.js.html +12 -6
- package/coverage/lcov-report/front-end-utils/src/constants/roleType.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/searchType.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/utils/debounce.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/utils/index.html +1 -1
- package/coverage/lcov-report/index.html +25 -25
- package/coverage/lcov-report/middlewares/config.js.html +1 -1
- package/coverage/lcov-report/middlewares/index.html +1 -1
- package/coverage/lcov-report/tools/index.html +1 -1
- package/coverage/lcov-report/tools/proxy-fetch.js.html +1 -1
- package/coverage/lcov.info +160 -144
- package/index.js +2 -0
- package/mockPages/admin/admin.html +4 -1
- package/mockPages/login/css/theme-index.css +353 -0
- package/mockPages/login/images/login.png +0 -0
- package/mockPages/login/login.html +43 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/readme.md +16 -174
- package/src/api/cors.js +5 -2
- package/src/controllers/index.js +2 -1
- package/src/front-end-utils/dist/toolbar.bundle.js +1 -1
- package/src/front-end-utils/src/components/header-view.js +80 -62
- package/src/front-end-utils/src/constants/pageUrl.js +2 -1
- package/src/routes/cors.js +55 -31
- package/src/routes/index.js +45 -41
- package/src/routes/mockRoutes/marketplaceManager/bootstrapContext.js +109 -499
- package/src/routes/mockRoutes/user/bootstrapContext.js +26 -432
- package/src/tools/prompt-questions.js +16 -3
- package/src/tools/toolkit-components-add.js +1 -4
- package/src/tools/toolkit-import.js +1 -1
|
@@ -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">88.88% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>48/54</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>26/26</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">88.67% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>47/53</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -304,8 +304,25 @@
|
|
|
304
304
|
<a name='L239'></a><a href='#L239'>239</a>
|
|
305
305
|
<a name='L240'></a><a href='#L240'>240</a>
|
|
306
306
|
<a name='L241'></a><a href='#L241'>241</a>
|
|
307
|
-
<a name='L242'></a><a href='#L242'>242</a
|
|
308
|
-
<
|
|
307
|
+
<a name='L242'></a><a href='#L242'>242</a>
|
|
308
|
+
<a name='L243'></a><a href='#L243'>243</a>
|
|
309
|
+
<a name='L244'></a><a href='#L244'>244</a>
|
|
310
|
+
<a name='L245'></a><a href='#L245'>245</a>
|
|
311
|
+
<a name='L246'></a><a href='#L246'>246</a>
|
|
312
|
+
<a name='L247'></a><a href='#L247'>247</a>
|
|
313
|
+
<a name='L248'></a><a href='#L248'>248</a>
|
|
314
|
+
<a name='L249'></a><a href='#L249'>249</a>
|
|
315
|
+
<a name='L250'></a><a href='#L250'>250</a>
|
|
316
|
+
<a name='L251'></a><a href='#L251'>251</a>
|
|
317
|
+
<a name='L252'></a><a href='#L252'>252</a>
|
|
318
|
+
<a name='L253'></a><a href='#L253'>253</a>
|
|
319
|
+
<a name='L254'></a><a href='#L254'>254</a>
|
|
320
|
+
<a name='L255'></a><a href='#L255'>255</a>
|
|
321
|
+
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
|
+
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
|
+
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
+
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
+
<a name='L260'></a><a href='#L260'>260</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
309
326
|
<span class="cline-any cline-neutral"> </span>
|
|
310
327
|
<span class="cline-any cline-neutral"> </span>
|
|
311
328
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -378,12 +395,17 @@
|
|
|
378
395
|
<span class="cline-any cline-neutral"> </span>
|
|
379
396
|
<span class="cline-any cline-yes">1x</span>
|
|
380
397
|
<span class="cline-any cline-yes">12x</span>
|
|
398
|
+
<span class="cline-any cline-yes">12x</span>
|
|
381
399
|
<span class="cline-any cline-neutral"> </span>
|
|
382
400
|
<span class="cline-any cline-yes">3x</span>
|
|
401
|
+
<span class="cline-any cline-neutral"> </span>
|
|
402
|
+
<span class="cline-any cline-neutral"> </span>
|
|
383
403
|
<span class="cline-any cline-yes">3x</span>
|
|
384
404
|
<span class="cline-any cline-yes">3x</span>
|
|
385
405
|
<span class="cline-any cline-neutral"> </span>
|
|
386
406
|
<span class="cline-any cline-yes">4x</span>
|
|
407
|
+
<span class="cline-any cline-neutral"> </span>
|
|
408
|
+
<span class="cline-any cline-neutral"> </span>
|
|
387
409
|
<span class="cline-any cline-yes">4x</span>
|
|
388
410
|
<span class="cline-any cline-yes">4x</span>
|
|
389
411
|
<span class="cline-any cline-yes">4x</span>
|
|
@@ -423,12 +445,20 @@
|
|
|
423
445
|
<span class="cline-any cline-yes">1x</span>
|
|
424
446
|
<span class="cline-any cline-yes">1x</span>
|
|
425
447
|
<span class="cline-any cline-neutral"> </span>
|
|
448
|
+
<span class="cline-any cline-yes">12x</span>
|
|
449
|
+
<span class="cline-any cline-yes">1x</span>
|
|
450
|
+
<span class="cline-any cline-yes">1x</span>
|
|
451
|
+
<span class="cline-any cline-yes">1x</span>
|
|
452
|
+
<span class="cline-any cline-neutral"> </span>
|
|
426
453
|
<span class="cline-any cline-neutral"> </span>
|
|
427
454
|
<span class="cline-any cline-yes">12x</span>
|
|
428
455
|
<span class="cline-any cline-neutral"> </span>
|
|
429
456
|
<span class="cline-any cline-yes">12x</span>
|
|
430
457
|
<span class="cline-any cline-yes">12x</span>
|
|
431
|
-
<span class="cline-any cline-yes">
|
|
458
|
+
<span class="cline-any cline-yes">1x</span>
|
|
459
|
+
<span class="cline-any cline-neutral"> </span>
|
|
460
|
+
<span class="cline-any cline-yes">12x</span>
|
|
461
|
+
<span class="cline-any cline-yes">6x</span>
|
|
432
462
|
<span class="cline-any cline-neutral"> </span>
|
|
433
463
|
<span class="cline-any cline-neutral"> </span>
|
|
434
464
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -545,32 +575,37 @@
|
|
|
545
575
|
<span class="cline-any cline-neutral"> </span>
|
|
546
576
|
<span class="cline-any cline-neutral"> </span>
|
|
547
577
|
<span class="cline-any cline-neutral"> </span>
|
|
548
|
-
<span class="cline-any cline-neutral"> </span
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
import
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
578
|
+
<span class="cline-any cline-neutral"> </span>
|
|
579
|
+
<span class="cline-any cline-neutral"> </span>
|
|
580
|
+
<span class="cline-any cline-neutral"> </span>
|
|
581
|
+
<span class="cline-any cline-neutral"> </span>
|
|
582
|
+
<span class="cline-any cline-neutral"> </span>
|
|
583
|
+
<span class="cline-any cline-neutral"> </span>
|
|
584
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
585
|
+
import Cookies from "js-cookie";
|
|
586
|
+
import PropTypes from "prop-types";
|
|
587
|
+
import styled from "styled-components";
|
|
588
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
589
|
+
import {
|
|
590
|
+
faFingerprint,
|
|
591
|
+
faInfoCircle,
|
|
592
|
+
faUserCog,
|
|
593
|
+
faHSquare,
|
|
561
594
|
faLock,
|
|
562
595
|
faUnlock,
|
|
563
|
-
faShoppingCart
|
|
564
|
-
} from
|
|
596
|
+
faShoppingCart,
|
|
597
|
+
} from "@fortawesome/free-solid-svg-icons";
|
|
598
|
+
import { NO_ROLE, MARKETPLACE_MANAGER, USER } from "../constants/roleType";
|
|
599
|
+
import { HOME_PAGE_URL, MOCK_ADMIN_PAGE_URL } from "../constants/pageUrl";
|
|
565
600
|
|
|
566
|
-
import Item from "./base/item"
|
|
601
|
+
import Item from "./base/item";
|
|
567
602
|
|
|
568
603
|
const Section = styled.div`
|
|
569
604
|
transition: height 0.3s;
|
|
570
605
|
background: #52534e;
|
|
571
606
|
height: ${({ isOpen }) => (isOpen ? "234px" : "0px")};
|
|
572
607
|
overflow: hidden;
|
|
573
|
-
|
|
608
|
+
`;
|
|
574
609
|
|
|
575
610
|
const Input = styled.input`
|
|
576
611
|
height: 24px;
|
|
@@ -580,7 +615,7 @@ const Input = styled.input`
|
|
|
580
615
|
background: #000;
|
|
581
616
|
font-size: 12px;
|
|
582
617
|
border: 1px solid #979797;
|
|
583
|
-
|
|
618
|
+
`;
|
|
584
619
|
|
|
585
620
|
const Link = styled.a`
|
|
586
621
|
color: #eee;
|
|
@@ -588,7 +623,7 @@ const Link = styled.a`
|
|
|
588
623
|
padding: 0 5px;
|
|
589
624
|
vertical-align: middle;
|
|
590
625
|
font-size: 14px;
|
|
591
|
-
|
|
626
|
+
`;
|
|
592
627
|
|
|
593
628
|
const Button = styled.button`
|
|
594
629
|
border: 1px solid #979797;
|
|
@@ -606,93 +641,106 @@ const Button = styled.button`
|
|
|
606
641
|
vertical-align: middle;
|
|
607
642
|
margin-left: 4px;
|
|
608
643
|
height: 24px;
|
|
609
|
-
|
|
644
|
+
`;
|
|
610
645
|
|
|
611
646
|
const Form = styled.div`
|
|
612
647
|
background: #52534e;
|
|
613
648
|
width: 160px;
|
|
614
649
|
padding: 5px;
|
|
615
|
-
|
|
650
|
+
`;
|
|
616
651
|
|
|
617
652
|
const LOGGED_IN_HEADER_TEMPLATE = "headerIn";
|
|
618
|
-
const COOKIE_EXPIRATION_IN_DAYS = 1/3;
|
|
653
|
+
const COOKIE_EXPIRATION_IN_DAYS = 1 / 3;
|
|
619
654
|
|
|
620
655
|
const updateMockUserCookies = (role) => {
|
|
621
|
-
|
|
656
|
+
console.log(role);
|
|
657
|
+
switch (role) {
|
|
622
658
|
case USER:
|
|
623
|
-
Cookies.set("mockUserLoggedInHeader", true, {
|
|
624
|
-
|
|
659
|
+
Cookies.set("mockUserLoggedInHeader", true, {
|
|
660
|
+
expires: COOKIE_EXPIRATION_IN_DAYS,
|
|
661
|
+
});
|
|
662
|
+
Cookies.set("mockRole", role, { expires: COOKIE_EXPIRATION_IN_DAYS });
|
|
625
663
|
break;
|
|
626
664
|
case MARKETPLACE_MANAGER:
|
|
627
|
-
Cookies.set("mockUserLoggedInHeader", true, {
|
|
628
|
-
|
|
665
|
+
Cookies.set("mockUserLoggedInHeader", true, {
|
|
666
|
+
expires: COOKIE_EXPIRATION_IN_DAYS,
|
|
667
|
+
});
|
|
668
|
+
Cookies.set("mockRole", role, { expires: COOKIE_EXPIRATION_IN_DAYS });
|
|
629
669
|
window.location.href = MOCK_ADMIN_PAGE_URL;
|
|
630
670
|
break;
|
|
631
671
|
default:
|
|
632
|
-
Cookies.remove("mockUserLoggedInHeader")
|
|
672
|
+
Cookies.remove("mockUserLoggedInHeader");
|
|
633
673
|
Cookies.remove("mockRole");
|
|
634
674
|
}
|
|
635
|
-
}
|
|
675
|
+
};
|
|
636
676
|
export default class HeaderView extends React.Component {
|
|
637
677
|
static propTypes = {
|
|
638
678
|
status: PropTypes.string,
|
|
639
679
|
showHideMedium: PropTypes.func,
|
|
640
|
-
hideForms: PropTypes.bool
|
|
641
|
-
}
|
|
680
|
+
hideForms: PropTypes.bool,
|
|
681
|
+
};
|
|
642
682
|
|
|
643
683
|
static defaultProps = {
|
|
644
684
|
status: "small",
|
|
645
685
|
showHideMedium: <span class="fstat-no" title="function not covered" >()</span> => {},
|
|
646
|
-
hideForms: false
|
|
647
|
-
}
|
|
686
|
+
hideForms: false,
|
|
687
|
+
};
|
|
648
688
|
|
|
649
689
|
constructor(props) {
|
|
650
|
-
super(props)
|
|
690
|
+
super(props);
|
|
651
691
|
this.state = {
|
|
652
692
|
sectionIsOpen: false,
|
|
653
693
|
token: "",
|
|
654
694
|
selectedHeader: window.localStorage.getItem("useTemplate"),
|
|
655
|
-
savedToken: window.localStorage.getItem("access_token")
|
|
656
|
-
}
|
|
695
|
+
savedToken: window.localStorage.getItem("access_token"),
|
|
696
|
+
};
|
|
657
697
|
}
|
|
658
698
|
|
|
659
699
|
setHeaderTemplate = (tpl, role) => () => {
|
|
660
|
-
window.localStorage.removeItem("access_token")
|
|
700
|
+
window.localStorage.removeItem("access_token");
|
|
661
701
|
const currentUrl = window.location.href;
|
|
662
|
-
if(currentUrl
|
|
702
|
+
if (currentUrl?.includes("admin") && role !== MARKETPLACE_MANAGER) {
|
|
663
703
|
window.location.href = HOME_PAGE_URL;
|
|
664
704
|
tpl = "headerOut";
|
|
665
705
|
role = NO_ROLE;
|
|
666
706
|
}
|
|
707
|
+
if (tpl === "headerSso") {
|
|
708
|
+
window.location.href = "/login";
|
|
709
|
+
tpl = "headerSso";
|
|
710
|
+
role = NO_ROLE;
|
|
711
|
+
}
|
|
667
712
|
|
|
668
713
|
updateMockUserCookies(role);
|
|
669
714
|
|
|
670
|
-
window.localStorage.setItem("useTemplate", tpl)
|
|
671
|
-
if(
|
|
672
|
-
window.location.
|
|
715
|
+
window.localStorage.setItem("useTemplate", tpl);
|
|
716
|
+
if (currentUrl?.includes("login") && tpl !== "headerSso") {
|
|
717
|
+
window.location.href = HOME_PAGE_URL;
|
|
673
718
|
}
|
|
674
|
-
|
|
719
|
+
if (role !== MARKETPLACE_MANAGER && role !== NO_ROLE) {
|
|
720
|
+
window.location.href = HOME_PAGE_URL;
|
|
721
|
+
}
|
|
722
|
+
};
|
|
675
723
|
|
|
676
724
|
setLoggedInTemplate = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
677
|
-
<span class="cstat-no" title="statement not covered" > Cookies.remove("mockUserLoggedInHeader")
|
|
678
|
-
<span class="cstat-no" title="statement not covered" > Cookies.remove("mockRole")
|
|
679
|
-
<span class="cstat-no" title="statement not covered" > window.localStorage.setItem("access_token", this.state.token)
|
|
680
|
-
<span class="cstat-no" title="statement not covered" > window.localStorage.removeItem("useTemplate")
|
|
725
|
+
<span class="cstat-no" title="statement not covered" > Cookies.remove("mockUserLoggedInHeader");</span>
|
|
726
|
+
<span class="cstat-no" title="statement not covered" > Cookies.remove("mockRole");</span>
|
|
727
|
+
<span class="cstat-no" title="statement not covered" > window.localStorage.setItem("access_token", this.state.token);</span>
|
|
728
|
+
<span class="cstat-no" title="statement not covered" > window.localStorage.removeItem("useTemplate");</span>
|
|
681
729
|
<span class="cstat-no" title="statement not covered" > window.location.href = MOCK_ADMIN_PAGE_URL;</span>
|
|
682
|
-
}
|
|
730
|
+
};
|
|
683
731
|
|
|
684
|
-
handleChange = <span class="fstat-no" title="function not covered" >
|
|
685
|
-
<span class="cstat-no" title="statement not covered" > this.setState({ token: event.target.value })
|
|
686
|
-
}
|
|
732
|
+
handleChange = <span class="fstat-no" title="function not covered" >(e</span>vent) => {
|
|
733
|
+
<span class="cstat-no" title="statement not covered" > this.setState({ token: event.target.value });</span>
|
|
734
|
+
};
|
|
687
735
|
|
|
688
736
|
openSection = () => {
|
|
689
737
|
this.setState({
|
|
690
|
-
sectionIsOpen: !this.state.sectionIsOpen
|
|
691
|
-
})
|
|
692
|
-
}
|
|
738
|
+
sectionIsOpen: !this.state.sectionIsOpen,
|
|
739
|
+
});
|
|
740
|
+
};
|
|
693
741
|
|
|
694
742
|
render() {
|
|
695
|
-
const { sectionIsOpen, selectedHeader, savedToken, value } = this.state
|
|
743
|
+
const { sectionIsOpen, selectedHeader, savedToken, value } = this.state;
|
|
696
744
|
return (
|
|
697
745
|
<div>
|
|
698
746
|
<Item
|
|
@@ -704,7 +752,7 @@ export default class HeaderView extends React.Component {
|
|
|
704
752
|
action="open:header-view"
|
|
705
753
|
/>
|
|
706
754
|
<Section isOpen={sectionIsOpen}>
|
|
707
|
-
|
|
755
|
+
<Item
|
|
708
756
|
onClickHandler={this.setHeaderTemplate("headerSso")}
|
|
709
757
|
iconAlign="3px"
|
|
710
758
|
{...this.props}
|
|
@@ -712,7 +760,7 @@ export default class HeaderView extends React.Component {
|
|
|
712
760
|
isSelected={!!(selectedHeader === "headerSso")}
|
|
713
761
|
icon={<FontAwesomeIcon icon={faFingerprint} />}
|
|
714
762
|
title="SSO Flow"
|
|
715
|
-
action="
|
|
763
|
+
action="open:mock-login"
|
|
716
764
|
/>
|
|
717
765
|
<Item
|
|
718
766
|
onClickHandler={this.setHeaderTemplate("headerCheckout")}
|
|
@@ -739,7 +787,10 @@ export default class HeaderView extends React.Component {
|
|
|
739
787
|
action="header:view-loggedout"
|
|
740
788
|
/>
|
|
741
789
|
<Item
|
|
742
|
-
onClickHandler={this.setHeaderTemplate(
|
|
790
|
+
onClickHandler={this.setHeaderTemplate(
|
|
791
|
+
LOGGED_IN_HEADER_TEMPLATE,
|
|
792
|
+
USER
|
|
793
|
+
)}
|
|
743
794
|
{...this.props}
|
|
744
795
|
iconAlign="3px"
|
|
745
796
|
subItem
|
|
@@ -749,16 +800,19 @@ export default class HeaderView extends React.Component {
|
|
|
749
800
|
action="header:view-loggedin"
|
|
750
801
|
/>
|
|
751
802
|
<Item
|
|
752
|
-
onClickHandler={this.setHeaderTemplate(
|
|
803
|
+
onClickHandler={this.setHeaderTemplate(
|
|
804
|
+
"headerAdmin",
|
|
805
|
+
MARKETPLACE_MANAGER
|
|
806
|
+
)}
|
|
753
807
|
{...this.props}
|
|
754
808
|
iconAlign="3px"
|
|
755
809
|
subItem
|
|
756
|
-
isSelected={selectedHeader === "headerAdmin" || savedToken
|
|
810
|
+
isSelected={selectedHeader === "headerAdmin" || savedToken}
|
|
757
811
|
icon={<FontAwesomeIcon icon={faUserCog} />}
|
|
758
812
|
title="Admin"
|
|
759
813
|
action="open:mock-admin"
|
|
760
814
|
/>
|
|
761
|
-
{
|
|
815
|
+
{!this.props.hideForms && (
|
|
762
816
|
<Form>
|
|
763
817
|
<Input
|
|
764
818
|
type="text"
|
|
@@ -780,10 +834,10 @@ export default class HeaderView extends React.Component {
|
|
|
780
834
|
<FontAwesomeIcon icon={faInfoCircle} />
|
|
781
835
|
</Link>
|
|
782
836
|
</Form>
|
|
783
|
-
}
|
|
837
|
+
)}
|
|
784
838
|
</Section>
|
|
785
839
|
</div>
|
|
786
|
-
)
|
|
840
|
+
);
|
|
787
841
|
}
|
|
788
842
|
}
|
|
789
843
|
</pre></td></tr></table></pre>
|
|
@@ -793,7 +847,7 @@ export default class HeaderView extends React.Component {
|
|
|
793
847
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
794
848
|
Code coverage generated by
|
|
795
849
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
796
|
-
at 2024-
|
|
850
|
+
at 2024-04-08T19:58:27.825Z
|
|
797
851
|
</div>
|
|
798
852
|
<script src="../../../prettify.js"></script>
|
|
799
853
|
<script>
|
|
@@ -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">85.1% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>160/188</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">87.15% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>95/109</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">84.
|
|
47
|
+
<span class="strong">84.78% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>156/184</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -110,17 +110,17 @@
|
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="file high" data-value="header-view.js"><a href="header-view.js.html">header-view.js</a></td>
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
113
|
+
<td data-value="88.88" class="pic high">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 88%"></div><div class="cover-empty" style="width: 12%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
116
|
+
<td data-value="88.88" class="pct high">88.88%</td>
|
|
117
|
+
<td data-value="54" class="abs high">48/54</td>
|
|
118
118
|
<td data-value="100" class="pct high">100%</td>
|
|
119
|
-
<td data-value="
|
|
119
|
+
<td data-value="26" class="abs high">26/26</td>
|
|
120
120
|
<td data-value="70" class="pct medium">70%</td>
|
|
121
121
|
<td data-value="10" class="abs medium">7/10</td>
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="
|
|
122
|
+
<td data-value="88.67" class="pct high">88.67%</td>
|
|
123
|
+
<td data-value="53" class="abs high">47/53</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at 2024-
|
|
149
|
+
at 2024-04-08T19:58:27.825Z
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -967,7 +967,7 @@ export default class SearchTool extends React.Component {
|
|
|
967
967
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
968
968
|
Code coverage generated by
|
|
969
969
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
970
|
-
at 2024-
|
|
970
|
+
at 2024-04-08T19:58:27.825Z
|
|
971
971
|
</div>
|
|
972
972
|
<script src="../../../prettify.js"></script>
|
|
973
973
|
<script>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>12/12</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>12/12</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="100" class="pct high">100%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="4" class="abs high">4/4</td>
|
|
88
88
|
<td data-value="100" class="pct high">100%</td>
|
|
89
89
|
<td data-value="0" class="abs high">0/0</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
91
|
<td data-value="0" class="abs high">0/0</td>
|
|
92
92
|
<td data-value="100" class="pct high">100%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="4" class="abs high">4/4</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2024-
|
|
134
|
+
at 2024-04-08T19:58:27.825Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>4/4</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>4/4</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -65,18 +65,24 @@
|
|
|
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>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</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></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
69
71
|
<span class="cline-any cline-yes">1x</span>
|
|
70
|
-
<span class="cline-any cline-yes">1x</span
|
|
72
|
+
<span class="cline-any cline-yes">1x</span>
|
|
73
|
+
<span class="cline-any cline-yes">1x</span>
|
|
74
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export const BASE_URL = "http://localhost:3555";
|
|
71
75
|
export const HOME_PAGE_URL = `${BASE_URL}/en-US/home`;
|
|
72
|
-
export const MOCK_ADMIN_PAGE_URL = `${BASE_URL}/admin
|
|
76
|
+
export const MOCK_ADMIN_PAGE_URL = `${BASE_URL}/admin`;
|
|
77
|
+
export const MOCK_LOGIN_PAGE_URL = `${BASE_URL}/login`;
|
|
78
|
+
</pre></td></tr></table></pre>
|
|
73
79
|
|
|
74
80
|
<div class='push'></div><!-- for sticky footer -->
|
|
75
81
|
</div><!-- /wrapper -->
|
|
76
82
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
77
83
|
Code coverage generated by
|
|
78
84
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
79
|
-
at 2024-
|
|
85
|
+
at 2024-04-08T19:58:27.825Z
|
|
80
86
|
</div>
|
|
81
87
|
<script src="../../../prettify.js"></script>
|
|
82
88
|
<script>
|
|
@@ -82,7 +82,7 @@ export const NO_ROLE = "NO_ROLE";
|
|
|
82
82
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
83
83
|
Code coverage generated by
|
|
84
84
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
85
|
-
at 2024-
|
|
85
|
+
at 2024-04-08T19:58:27.825Z
|
|
86
86
|
</div>
|
|
87
87
|
<script src="../../../prettify.js"></script>
|
|
88
88
|
<script>
|
|
@@ -154,7 +154,7 @@ export const SEARCH_TYPES = [
|
|
|
154
154
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
155
155
|
Code coverage generated by
|
|
156
156
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
157
|
-
at 2024-
|
|
157
|
+
at 2024-04-08T19:58:27.825Z
|
|
158
158
|
</div>
|
|
159
159
|
<script src="../../../prettify.js"></script>
|
|
160
160
|
<script>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
107
107
|
Code coverage generated by
|
|
108
108
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
109
|
-
at 2024-
|
|
109
|
+
at 2024-04-08T19:58:27.825Z
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../../../prettify.js"></script>
|
|
112
112
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2024-
|
|
104
|
+
at 2024-04-08T19:58:27.825Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../prettify.js"></script>
|
|
107
107
|
<script>
|