@govtechsg/oobee 0.10.92 → 0.10.94

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.
Files changed (70) hide show
  1. package/AGENTS.md +34 -0
  2. package/README.md +19 -0
  3. package/dist/cli.js +3 -2
  4. package/dist/combine.js +4 -4
  5. package/dist/constants/common.js +136 -49
  6. package/dist/crawlers/commonCrawlerFunc.js +54 -2
  7. package/dist/crawlers/crawlDomain.js +9 -2
  8. package/dist/crawlers/crawlIntelligentSitemap.js +9 -4
  9. package/dist/crawlers/crawlSitemap.js +14 -2
  10. package/dist/crawlers/custom/utils.js +22 -9
  11. package/dist/crawlers/guards/urlGuard.js +19 -1
  12. package/dist/crawlers/runCustom.js +8 -2
  13. package/dist/generateOobeeClientScanner.js +1 -1
  14. package/dist/mergeAxeResults/itemsStore.js +32 -3
  15. package/dist/static/ejs/partials/components/allIssues/CategoryBadges.ejs +3 -0
  16. package/dist/static/ejs/partials/components/allIssues/IssuesTable.ejs +3 -3
  17. package/dist/static/ejs/partials/components/header/aboutScanModal/AboutScanModal.ejs +1 -1
  18. package/dist/static/ejs/partials/components/header/aboutScanModal/ScanConfiguration.ejs +3 -3
  19. package/dist/static/ejs/partials/components/header/aboutScanModal/ScanDetails.ejs +34 -27
  20. package/dist/static/ejs/partials/components/ruleModal/ruleOffcanvas.ejs +1 -0
  21. package/dist/static/ejs/partials/components/scannedPagesSegmentedTabs.ejs +7 -0
  22. package/dist/static/ejs/partials/components/wcagCoverageDetails.ejs +5 -5
  23. package/dist/static/ejs/partials/scripts/header/aboutScanModal/AboutScanModal.ejs +3 -3
  24. package/dist/static/ejs/partials/scripts/prioritiseIssues/PrioritiseIssues.ejs +21 -19
  25. package/dist/static/ejs/partials/scripts/ruleModal/pageAccordionBuilder.ejs +39 -8
  26. package/dist/static/ejs/partials/scripts/scannedPagesSegmentedTabs.ejs +11 -5
  27. package/dist/static/ejs/partials/scripts/screenshotLightbox.ejs +49 -31
  28. package/dist/static/ejs/partials/styles/header/SiteInfo.ejs +1 -1
  29. package/dist/static/ejs/partials/styles/header/aboutScanModal/ScanDetails.ejs +36 -16
  30. package/dist/static/ejs/partials/styles/prioritiseIssues/PrioritiseIssues.ejs +22 -1
  31. package/dist/static/ejs/partials/styles/styles.ejs +1 -1
  32. package/dist/static/ejs/partials/styles/wcagCompliance/WcagGaugeBar.ejs +6 -0
  33. package/dist/static/ejs/partials/styles/wcagCompliance.ejs +5 -4
  34. package/dist/static/ejs/partials/styles/wcagCoverageDetails.ejs +6 -1
  35. package/oobee-client-scanner.js +4 -4
  36. package/package.json +2 -2
  37. package/src/cli.ts +3 -2
  38. package/src/combine.ts +4 -2
  39. package/src/constants/common.ts +131 -35
  40. package/src/crawlers/commonCrawlerFunc.ts +56 -2
  41. package/src/crawlers/crawlDomain.ts +11 -1
  42. package/src/crawlers/crawlIntelligentSitemap.ts +10 -4
  43. package/src/crawlers/crawlSitemap.ts +19 -2
  44. package/src/crawlers/custom/utils.ts +26 -13
  45. package/src/crawlers/guards/urlGuard.ts +18 -1
  46. package/src/crawlers/runCustom.ts +10 -1
  47. package/src/generateOobeeClientScanner.ts +1 -1
  48. package/src/mergeAxeResults/itemsStore.ts +37 -3
  49. package/src/static/ejs/partials/components/allIssues/CategoryBadges.ejs +3 -0
  50. package/src/static/ejs/partials/components/allIssues/IssuesTable.ejs +3 -3
  51. package/src/static/ejs/partials/components/header/aboutScanModal/AboutScanModal.ejs +1 -1
  52. package/src/static/ejs/partials/components/header/aboutScanModal/ScanConfiguration.ejs +3 -3
  53. package/src/static/ejs/partials/components/header/aboutScanModal/ScanDetails.ejs +34 -27
  54. package/src/static/ejs/partials/components/ruleModal/ruleOffcanvas.ejs +1 -0
  55. package/src/static/ejs/partials/components/scannedPagesSegmentedTabs.ejs +7 -0
  56. package/src/static/ejs/partials/components/wcagCoverageDetails.ejs +5 -5
  57. package/src/static/ejs/partials/scripts/header/aboutScanModal/AboutScanModal.ejs +3 -3
  58. package/src/static/ejs/partials/scripts/prioritiseIssues/PrioritiseIssues.ejs +21 -19
  59. package/src/static/ejs/partials/scripts/ruleModal/pageAccordionBuilder.ejs +39 -8
  60. package/src/static/ejs/partials/scripts/scannedPagesSegmentedTabs.ejs +11 -5
  61. package/src/static/ejs/partials/scripts/screenshotLightbox.ejs +49 -31
  62. package/src/static/ejs/partials/styles/header/SiteInfo.ejs +1 -1
  63. package/src/static/ejs/partials/styles/header/aboutScanModal/ScanDetails.ejs +36 -16
  64. package/src/static/ejs/partials/styles/prioritiseIssues/PrioritiseIssues.ejs +22 -1
  65. package/src/static/ejs/partials/styles/styles.ejs +1 -1
  66. package/src/static/ejs/partials/styles/wcagCompliance/WcagGaugeBar.ejs +6 -0
  67. package/src/static/ejs/partials/styles/wcagCompliance.ejs +5 -4
  68. package/src/static/ejs/partials/styles/wcagCoverageDetails.ejs +6 -1
  69. package/testStaticJSScanner.html +1 -1
  70. /package/{d5e2f6a7-0279-41a3-8763-844970cdf0ba.txt → 67e8137b-1939-4253-8f11-a82bc833cfcb.txt} +0 -0
@@ -3,12 +3,16 @@
3
3
  word-break: break-word;
4
4
  }
5
5
 
6
- #scan-about > ul > li:first-child {
7
- padding-top: 0.5rem;
6
+ #aboutScanModalLabel {
7
+ margin-bottom: 1rem;
8
8
  }
9
9
 
10
- #scan-about ul {
10
+ #scan-about > ul {
11
11
  padding-left: 0;
12
+ padding-top: 0;
13
+ padding-bottom: 1rem;
14
+ margin-top: 0;
15
+ margin-bottom: 0;
12
16
  }
13
17
 
14
18
  #scan-about li {
@@ -38,21 +42,28 @@
38
42
  margin-bottom: 0.3rem;
39
43
  }
40
44
 
41
- .advanced-group {
42
- display: flex;
43
- align-items: center;
44
- margin-bottom: 0 !important;
45
+ #scan-about li.advanced-group {
46
+ align-items: flex-start;
47
+ margin-bottom: 0;
48
+ }
49
+
50
+ #scan-about li.advanced-group > .advanced-group-content {
51
+ min-width: 0;
52
+ flex: 1;
45
53
  }
46
54
 
47
- .advanced-group + .advanced-sublist,
48
- .advanced-group + ul {
49
- list-style: disc !important;
50
- margin-left: 3.125rem;
55
+ #scan-about li.advanced-group > .advanced-group-content > ul.advanced-sublist {
56
+ list-style: disc;
57
+ list-style-position: outside;
58
+ margin-left: 8px;
59
+ margin-top: 0.5rem;
60
+ padding-left: 12px;
61
+ text-indent: -2px;
51
62
  }
52
63
 
53
- .advanced-group + .advanced-sublist li,
54
- .advanced-group + ul li {
64
+ #scan-about li.advanced-group > .advanced-group-content > ul.advanced-sublist li {
55
65
  margin: 0;
66
+ list-style-position: outside !important;
56
67
  }
57
68
 
58
69
  .advanced-sublist-li {
@@ -85,10 +96,14 @@
85
96
 
86
97
  .about-scan-toggle .about-us-type-of-scan-text {
87
98
  color: var(--a11y-majorelle-blue) !important;
88
- display: inline !important;
89
- text-decoration: none;
99
+ display: inline;
100
+ text-decoration: underline;
90
101
  cursor: pointer;
91
102
  }
103
+
104
+ #pagesScannedModalToggleTxt {
105
+ color: var(--a11y-majorelle-blue) !important;
106
+ }
92
107
  .about-scan-toggle:hover .about-us-type-of-scan-text,
93
108
  .about-scan-toggle .about-us-type-of-scan-text:focus-visible {
94
109
  text-decoration: underline;
@@ -112,9 +127,14 @@
112
127
  line-height: 1.2;
113
128
  }
114
129
 
130
+ .about-scan-divider-item {
131
+ display: block !important;
132
+ margin-bottom: 2rem !important;
133
+ }
134
+
115
135
  .about-scan-link-text {
116
136
  color: var(--a11y-majorelle-blue);
117
- text-decoration: none;
137
+ text-decoration: underline;
118
138
  cursor: pointer;
119
139
  }
120
140
 
@@ -120,15 +120,36 @@
120
120
 
121
121
  .priority-issue-item {
122
122
  padding: 0.75rem;
123
- cursor: pointer;
124
123
  position: relative;
125
124
  padding-left: 1.5rem;
125
+ display: flex;
126
+ align-items: flex-start;
127
+ }
128
+
129
+ .priority-issue-action {
130
+ appearance: none;
131
+ border: 0;
132
+ background: transparent;
133
+ width: 100%;
134
+ padding: 0;
135
+ margin: 0;
136
+ display: flex;
137
+ text-align: left;
138
+ cursor: pointer;
139
+ color: inherit;
140
+ line-height: 1.5;
141
+ }
142
+
143
+ .priority-issue-action > .w-90 {
144
+ width: 100% !important;
126
145
  }
127
146
 
128
147
  .priority-issue-item::before {
129
148
  counter-increment: issue-counter;
130
149
  content: counter(issue-counter) '.';
131
150
  line-height: 1.5;
151
+ margin-right: 0.5rem;
152
+ flex-shrink: 0;
132
153
  }
133
154
 
134
155
  .priority-issue-item:hover:not(.active) {
@@ -98,7 +98,7 @@
98
98
 
99
99
  a {
100
100
  color: var(--a11y-majorelle-blue);
101
- text-decoration: none;
101
+ text-decoration: underline;
102
102
  }
103
103
 
104
104
  a:hover {
@@ -39,6 +39,11 @@
39
39
  .gauge-number {
40
40
  font-weight: 700;
41
41
  font-size: 16px;
42
+ color: var(--dark-charcoal, #1f1f1f);
43
+ background-color: var(--true-white, #fff);
44
+ display: inline-block;
45
+ padding: 2px 8px;
46
+ border-radius: 999px;
42
47
  }
43
48
 
44
49
  .gauge-caption {
@@ -54,6 +59,7 @@
54
59
 
55
60
  .gauge-value-number {
56
61
  font-size: 24px;
62
+ color: var(--dark-charcoal, #1f1f1f);
57
63
  }
58
64
 
59
65
  .gauge-value-number.perfect-score {
@@ -18,10 +18,11 @@
18
18
  margin-bottom: 0rem;
19
19
  }
20
20
 
21
- .wcag-link {
22
- font-size: 1rem;
23
- border: 0;
24
- }
21
+ .wcag-link {
22
+ font-size: 1rem;
23
+ border: 0;
24
+ text-decoration: underline;
25
+ }
25
26
 
26
27
  .wcag-status {
27
28
  margin-bottom: 0.3rem;
@@ -12,9 +12,14 @@
12
12
  gap: 10px 18px;
13
13
  }
14
14
 
15
+ #wcagCoverage .wcag-criteria-heading {
16
+ font-size: 1.25rem;
17
+ line-height: 1.2;
18
+ }
19
+
15
20
  #wcagCoverage .wcag-grid a {
16
21
  color: var(--a11y-majorelle-blue, #5735DF);
17
- text-decoration: none;
22
+ text-decoration: underline;
18
23
  }
19
24
  #wcagCoverage .wcag-grid a:hover,
20
25
  #wcagCoverage .wcag-grid a:focus-visible {
@@ -98,7 +98,7 @@
98
98
  font-size: 0.78rem; color: #0d6efd; text-decoration: none;
99
99
  white-space: nowrap;
100
100
  }
101
- .goto-link:hover { text-decoration: underline; }
101
+ /* .goto-link:hover { text-decoration: underline; } */
102
102
  .item-message {
103
103
  display: block; font-size: 0.75rem; color: #6c757d;
104
104
  margin: 1px 0 6px; font-style: italic;