Skip to content

Commit 3e50840

Browse files
authored
Content - chore: typo cleanup in meli-melo (#2509)
1 parent 7b98210 commit 3e50840

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+178
-178
lines changed

méli-mélo/2021-04-gcaem/combobox-en.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
{
3-
"title": "Canabis & Report a problem test page",
3+
"title": "Cannabis & Report a problem test page",
44
"language": "en",
55
"dateModified": "2021-04-13",
66
"script": [
@@ -74,7 +74,7 @@
7474
<p>If you have questions about, ask away!</p>
7575
<ul>
7676
<li data-wb-fieldflow='{"action":"redir", "url": "http://wet-boew.github.io/v4.0-ci/demos/data-ajax/data-ajax-en.html"}'>Inserting content</li>
77-
<li data-wb-fieldflow='{"action":"redir", "url": "http://wet-boew.github.io/v4.0-ci/demos/lightbox/lightbox-en.html"}'>Photo galery</li>
77+
<li data-wb-fieldflow='{"action":"redir", "url": "http://wet-boew.github.io/v4.0-ci/demos/lightbox/lightbox-en.html"}'>Photo gallery</li>
7878
<li data-wb-fieldflow='{"action":"redir", "url": "http://wet-boew.github.io/v4.0-ci/demos/charts/charts-en.html"}'>Draw charts</li>
7979
<li data-wb-fieldflow='{"action":"redir", "url": "http://wet-boew.github.io/v4.0-ci/demos/details/details-en.html"}'>Expand and collapse content</li>
8080
<li data-wb-fieldflow='{"action":"redir", "url": "http://wet-boew.github.io/v4.0-ci/demos/equalheight/equalheight-en.html"}'>Set a consistant height</li>

méli-mélo/2021-04-gcaem/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<li><a href="combobox-en.html">Combobox</a></li>
1111
</ul>
1212

13-
<p>This méli-mélo project can be called throught the following attribute:</p>
13+
<p>This méli-mélo project can be called through the following attribute:</p>
1414

1515

1616
<pre><code>data-wb5-bind
@@ -85,4 +85,4 @@
8585

8686
combobox-wrapper
8787

88-
</code></pre>
88+
</code></pre>

méli-mélo/2021-04-gcaem/js/x-combobox.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var componentName = "wb-combobox",
145145
return ( matchChars / maxChars ) * 100;
146146
}
147147

148-
// Check agains the pass Ratio
148+
// Check against the pass Ratio
149149
var result = similartextCheck( str1, str2 );
150150
passRatio = parseInt( passRatio );
151151
if ( result >= passRatio ) {
@@ -474,7 +474,7 @@ var componentName = "wb-combobox",
474474

475475
if ( typeof replacementValue === "object" ) {
476476

477-
// Stringfy the value
477+
// Stringify the value
478478
replacementValue = JSON.stringify( replacementValue );
479479
}
480480

@@ -526,7 +526,7 @@ var componentName = "wb-combobox",
526526
el.ifConditions.push( condition );
527527
},
528528

529-
// @tmplId going to be replated by the Real DOM template
529+
// @tmplId going to be replaced by the Real DOM template
530530
renderTemplate = function( dataObj, settings ) {
531531

532532
// Prepare the template
@@ -553,7 +553,7 @@ var componentName = "wb-combobox",
553553

554554
// Template cheat sheet
555555
// Document.querySelector()
556-
// It only take the first occurence
556+
// It only take the first occurrence
557557
//var cssSelectorsMapping = {
558558
// "CSS selector": "Property Name in the dataObj" // Need a modifier (like TextContent, ....)
559559
//}
@@ -725,7 +725,7 @@ var componentName = "wb-combobox",
725725
virtualLinearDOM[ frgItemId ] = dataObject;
726726

727727
// Add a class || data attribute to note it is a component
728-
// - This is to be able to retreive the associated data on a event
728+
// - This is to be able to retrieve the associated data on a event
729729
i_cache.classList.add( "wb5React" );
730730
}
731731

@@ -739,7 +739,7 @@ var componentName = "wb-combobox",
739739
// The fragment would replace the current element
740740
elm.parentNode.insertBefore( tmpl, elm );
741741

742-
// Detach the current element - Eventually they could be completly removed
742+
// Detach the current element - Eventually they could be completely removed
743743
if ( !settings.hideSourceUI ) {
744744
elm.id = wb.getId();
745745
docFragmentSourceUI.appendChild( elm );
@@ -866,7 +866,7 @@ var componentName = "wb-combobox",
866866

867867
if ( idxOpen !== -1 && idxClose !== -1 && idxOpen + 1 !== idxClose ) {
868868

869-
// We have an internal functin
869+
// We have an internal function
870870

871871
// Extract in between and re-process
872872
var newPointer = pointer.substring( 0, idxOpen ),
@@ -1205,7 +1205,7 @@ var componentName = "wb-combobox",
12051205
if ( Array.isArray( val ) ) {
12061206

12071207
// Just make reactive those special properties
1208-
val.wbLen = parseInt( val.length ); // Length of the array (Updated before an iteration happend on it)
1208+
val.wbLen = parseInt( val.length ); // Length of the array (Updated before an iteration happened on it)
12091209
val.wbActive = 0; // Number of items that was identified being "True"
12101210

12111211
makeReactive( val, "wbLen", key );
@@ -1456,7 +1456,7 @@ $document.on( "keydown", "[role=combobox] input", function( evt ) {
14561456
$( options[ activeIndex ] ).trigger( "wb.select" );
14571457

14581458
hideListbox();
1459-
evt.preventDefault(); // Need to prevent default here because when the combobox is within a form, the form are submited
1459+
evt.preventDefault(); // Need to prevent default here because when the combobox is within a form, the form are submitted
14601460
return;
14611461
case KeyCode.TAB:
14621462

méli-mélo/2021-04-gcaem/js/x-core-wb5.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
WET 5.0 (early bird)
3-
@author: Goverment of Canada
3+
@author: Government of Canada
44
======================================================== */
55
( function( $, document ) {
66
"use strict";
@@ -90,7 +90,7 @@ $.fn.extend( {
9090

9191
/* ---------------------------------
9292
@extension: rand
93-
@returns: [collection] of randoms elements
93+
@returns: [collection] of random elements
9494
-------------------------------- */
9595
rand: function( k ) {
9696
var b = this,
@@ -151,7 +151,7 @@ $.fn.extend( {
151151

152152
/* ---------------------------------
153153
Bind
154-
@description: creates a referencable set of elements to a node
154+
@description: creates a referenceable set of elements to a node
155155
@api
156156
- elements are extended with related function
157157
$elm.related( nodelist )

méli-mélo/2021-04-gcaem/js/x-wb5-charts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $( document ).on( "wb-ready.wb-charts", "[data-wb-charts-interactive]", function
5959
tooltipid = wb.getId().replace( /-/g, "" ),
6060
template = $( action.selector ).html(),
6161
decimals = ( action.options ) ? action.options : 1,
62-
$chart = $table.prev(); // Because the charts is inserted immediatly before the table when it is not inside an expand collapse.
62+
$chart = $table.prev(); // Because the charts is inserted immediately before the table when it is not inside an expand collapse.
6363

6464
$( "<div id='" + tooltipid + "' class='wbchrt-tpl'></div>" ).css( {
6565
position: "absolute",

méli-mélo/2021-04-gcaem/js/x-wb5-datatable.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/*
88
Global Helper functions
9-
@author: Goverment of Canada
9+
@author: Government of Canada
1010
======================================================== */
1111

1212
/* ---------------------------------
@@ -70,7 +70,7 @@ $( document ).on( "draw.dt", ".wb-tables", function( evnt ) {
7070
} );
7171

7272
/* Workaround for IE and Edge, which need the details polyfills
73-
* The source of the issue are unknow.
73+
* The source of the issue are unknown.
7474
* Hypothesis: Is the polyfill get executed and then the datatable do a DOM mutation which remove the event handler previously added by the polyfill?
7575
*/
7676
if ( !Modernizr.details ) {
@@ -307,7 +307,7 @@ $( document ).on( "keypress click", "[data-wbtbl-tagcloud] li button", function(
307307
} );
308308

309309
/*
310-
* External event to refresh the table controler
310+
* External event to refresh the table controller
311311
*
312312
* @param: isSelected Define if the search trigger a selection or not, undefined means true
313313
*
@@ -444,7 +444,7 @@ function applySearchFilter() {
444444
* data-wbtbl-post
445445
* @description post to a datable search columns via form elements
446446
* @param {[event]} evt
447-
* @return {[boolean]} proceed to submite
447+
* @return {[boolean]} proceed to submit
448448
*/
449449
$( document ).on( "submit", "[data-wbtbl-post]", function( ) {
450450

@@ -461,7 +461,7 @@ $( document ).on( "submit", "[data-wbtbl-post]", function( ) {
461461
* data-wbtbl-post
462462
* @description post to a datable search columns via form elements
463463
* @param {[event]} evt
464-
* @return {[boolean]} proceed to submite
464+
* @return {[boolean]} proceed to submit
465465
*/
466466
$( document ).on( "reset", "[data-wbtbl-post]", function( ) {
467467

méli-mélo/2021-04-gcaem/meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"description": {
1616
"en": "Isolation of custom CSS and JS code that was in the GCWeb version published on AEM",
17-
"fr": "Isolation du code CSS et JS personalisé qui était inclus dans la version de GCWeb publié sur AEM"
17+
"fr": "Isolation du code CSS et JS personnalisé qui était inclus dans la version de GCWeb publié sur AEM"
1818
},
1919
"modified": "2021-04-17",
2020
"componentName": "2021-04-gcaem",

méli-mélo/2021-05-conjunction/a11y-1-conjunction.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"foaf:Organization"
2727
],
2828
"earl:mainAssertor": {
29-
"foaf:name": "Oakes Christopher (Github: @Christopher-O)",
29+
"foaf:name": "Oakes Christopher (GitHub: @Christopher-O)",
3030
"foaf:homepage": "https://github.com/Christopher-O",
3131
"@type": [
3232
"earl:Assertor",

méli-mélo/2021-05-conjunction/conjunction-doc-en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h3 id="h-1-1" class="mrgn-tp-md">"Or" design</h3>
1919
<ul class="fa-ul">
2020
<li><span class="fa-li fas fa-check text-success"></span>Use to clearly demonstrate there are options</li>
2121
<li><span class="fa-li fas fa-check text-success"></span>Use to make the options, and number of options, easily scannable</li>
22-
<li><span class="fa-li fas fa-check text-success"></span>Use to ensure a user can easily identify which block of content applies to them so they don't spend time reading unneccessary content, before they see the next option (which is the default experience when content is stacked vertically)</li>
22+
<li><span class="fa-li fas fa-check text-success"></span>Use to ensure a user can easily identify which block of content applies to them so they don't spend time reading unnecessary content, before they see the next option (which is the default experience when content is stacked vertically)</li>
2323
</ul>
2424
</div>
2525
<div class=" col-sm-6">

méli-mélo/2021-05-conjunction/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
css:
77
- and-or.css
88
---
9-
<p>Providing a more visual seperation between two decision points by a visual cue (or) based on user testing. Also provide a connecting conjunction to show two parts are connected (and).</p>
9+
<p>Providing a more visual separation between two decision points by a visual cue (or) based on user testing. Also provide a connecting conjunction to show two parts are connected (and).</p>
1010

1111
<nav>
1212
<h2 class="h5">Table of content</h2>

0 commit comments

Comments
 (0)