From 1e3c4ab95b411858dda0e271af1bd0949bbe88df Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:39:48 -0400 Subject: [PATCH 01/33] spelling: according Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- demo/reactjs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/reactjs/README.md b/demo/reactjs/README.md index 2dab1ec2ee..902c4ccc2a 100644 --- a/demo/reactjs/README.md +++ b/demo/reactjs/README.md @@ -602,7 +602,7 @@ This project setup minifies your CSS and adds vendor prefixes to it automaticall Support for new CSS features like the [`all` property](https://developer.mozilla.org/en-US/docs/Web/CSS/all), [`break` properties](https://www.w3.org/TR/css-break-3/#breaking-controls), [custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), and [media query ranges](https://www.w3.org/TR/mediaqueries-4/#range-context) are automatically polyfilled to add support for older browsers. -You can customize your target support browsers by adjusting the `browserslist` key in `package.json` accoring to the [Browserslist specification](https://github.com/browserslist/browserslist#readme). +You can customize your target support browsers by adjusting the `browserslist` key in `package.json` according to the [Browserslist specification](https://github.com/browserslist/browserslist#readme). For example, this: From 0b558ebf0ad1da4169820eeb9456c37aac6475b1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:40:55 -0400 Subject: [PATCH 02/33] spelling: asynchronously Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/render/render.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/render.spec.ts b/src/render/render.spec.ts index 429a3d7c12..bde3279452 100644 --- a/src/render/render.spec.ts +++ b/src/render/render.spec.ts @@ -37,7 +37,7 @@ describe('render', function () { done() }) }) - it('should render to html stream asyncly', function (done) { + it('should render to html stream asynchronously', function (done) { const scope = new Context() class CustomTag extends Tag { render () { From 34b9b552c3963b48839118f31d8d7ed12d2d4495 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:41:10 -0400 Subject: [PATCH 03/33] spelling: background Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/themes/navy/source/css/_variables.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/themes/navy/source/css/_variables.styl b/docs/themes/navy/source/css/_variables.styl index 65fa9728dd..1cf1e1e94d 100644 --- a/docs/themes/navy/source/css/_variables.styl +++ b/docs/themes/navy/source/css/_variables.styl @@ -22,7 +22,7 @@ vendor-prefixes = webkit moz ms official --color-default-invert: #444 --color-gray: invert(#999) --color-border: #6a6a6a - --color-backgrond: #fff + --color-background: #fff --color-navy: hsl(210, 25%, 12%) --color-news-bg: darken(hsl(210, 25%, 12%), 5%) --color-navy-lighter: lighten(hsl(210, 25%, 12%), 7%) From d927265077528cfd592c9d5f30c45fa794f34303 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:42:09 -0400 Subject: [PATCH 04/33] spelling: camel Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 584fb08b4b..21d1ab3190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1201,7 +1201,7 @@ supports Node.js 6, other bundles are also provided via dist/liquid.esm.js, dist ### BREAKING CHANGES -* Options and method names in JavaScript API are now renamed to cammelCase, for a complete list see #109 +* Options and method names in JavaScript API are now renamed to camelCase, for a complete list see #109 ## [7.5.1](https://github.com/harttle/liquidjs/compare/v7.5.0...v7.5.1) (2019-03-05) From df0c00df21cdf8d94b1b5f58a462d4e1b3ab2779 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 00:31:15 -0400 Subject: [PATCH 05/33] spelling: cannot Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/source/tutorials/options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/tutorials/options.md b/docs/source/tutorials/options.md index db4124c93c..e564954eac 100644 --- a/docs/source/tutorials/options.md +++ b/docs/source/tutorials/options.md @@ -141,7 +141,7 @@ it defaults to false. For example, when set to true, a blank string would evalu **ownPropertyOnly** hides scope variables from prototypes, useful when you're passing a not sanitized object into LiquidJS or need to hide prototypes from templates. Defaults to `true`. {% note info Non-existent Tags %} -Non-existent tags always throw errors during parsing and this behavior can not be customized. +Non-existent tags always throw errors during parsing and this behavior cannot be customized. {% endnote %} ## Parameter Order From 4f7dd0652e8b8841249d56e8887698dedfaf4316 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:38:09 -0400 Subject: [PATCH 06/33] spelling: case-sensitive Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- demo/reactjs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/reactjs/README.md b/demo/reactjs/README.md index 902c4ccc2a..66fdd2d13c 100644 --- a/demo/reactjs/README.md +++ b/demo/reactjs/README.md @@ -2317,7 +2317,7 @@ MyDirectory in /tmp/build_1234/src It means you need to ensure that the lettercase of the file or directory you `import` matches the one you see on your filesystem or on GitHub. -This is important because Linux (the operating system used by Heroku) is case sensitive. So `MyDirectory` and `mydirectory` are two distinct directories and thus, even though the project builds locally, the difference in case breaks the `import` statements on Heroku remotes. +This is important because Linux (the operating system used by Heroku) is case-sensitive. So `MyDirectory` and `mydirectory` are two distinct directories and thus, even though the project builds locally, the difference in case breaks the `import` statements on Heroku remotes. ##### "Could not find a required file." @@ -2466,7 +2466,7 @@ If you are completely sure that you didn't terminate the process, consider [addi ### `npm run build` fails on Heroku -This may be a problem with case sensitive filenames. +This may be a problem with case-sensitive filenames. Please refer to [this section](#resolving-heroku-deployment-errors). ### Moment.js locales are missing From 7311733ac6f07cd2a49e1e0ba84e261900a187f4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:31:05 -0400 Subject: [PATCH 07/33] spelling: comparison Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/parser/tokenizer.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/tokenizer.spec.ts b/src/parser/tokenizer.spec.ts index c1dc11828c..671fd58afa 100644 --- a/src/parser/tokenizer.spec.ts +++ b/src/parser/tokenizer.spec.ts @@ -503,7 +503,7 @@ describe('Tokenizer', function () { it('should match contains', () => { expect(new Tokenizer('contains').matchTrie(opTrie)).toBe(8) }) - it('should match comparision', () => { + it('should match comparison', () => { expect(new Tokenizer('>').matchTrie(opTrie)).toBe(1) expect(new Tokenizer('>=').matchTrie(opTrie)).toBe(2) expect(new Tokenizer('<').matchTrie(opTrie)).toBe(1) From 47516e5f54f467ae42d9640c817c2671a58729b9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:12:13 -0400 Subject: [PATCH 08/33] spelling: demos Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/source/filters/overview.md | 2 +- docs/source/tags/overview.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/filters/overview.md b/docs/source/filters/overview.md index b32b4c802e..f7aee5af72 100644 --- a/docs/source/filters/overview.md +++ b/docs/source/filters/overview.md @@ -3,7 +3,7 @@ title: Filters description: Description and demo for each Liquid filter --- -LiquidJS implements business-logic independent filters that are typically implemented in [shopify/liquid][shopify/liquid]. This section contains the specification and demoes for all the filters implemented by LiquidJS. +LiquidJS implements business-logic independent filters that are typically implemented in [shopify/liquid][shopify/liquid]. This section contains the specification and demos for all the filters implemented by LiquidJS. There's 40+ filters supported by LiquidJS. These filters can be categorized into these groups: diff --git a/docs/source/tags/overview.md b/docs/source/tags/overview.md index fea60f4913..e57c2d52f3 100644 --- a/docs/source/tags/overview.md +++ b/docs/source/tags/overview.md @@ -3,7 +3,7 @@ title: Tags description: Description and demo for each Liquid tag --- -LiquidJS implements business-logic independent tags that are typically implemented in [shopify/liquid][shopify/liquid]. This section contains the specification and demoes for all the tags implemented by LiquidJS. +LiquidJS implements business-logic independent tags that are typically implemented in [shopify/liquid][shopify/liquid]. This section contains the specification and demos for all the tags implemented by LiquidJS. There're a dozen of tags supported by LiquidJS, with all tags in [shopify/liquid][shopify/liquid]. These tags can be categorized into these groups: From 3ea5a5a744369246ad3c2cd2f03f187d4d42b35a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:14:03 -0400 Subject: [PATCH 09/33] spelling: forloop Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- benchmark/tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/tag.js b/benchmark/tag.js index 0c17dc7510..1c8b445551 100755 --- a/benchmark/tag.js +++ b/benchmark/tag.js @@ -10,7 +10,7 @@ function tag () { new Benchmark.Suite('tag') .add('if', test('{% if "foobar" %}foo{% endif %}')) .add('unless', test('{%unless "foo"%}true{%else%}false{%endunless%}')) - .add('for', test('{% for i in (1..3) %}{{fooloop.index}}{% endfor %}')) + .add('for', test('{% for i in (1..3) %}{{forloop.index}}{% endfor %}')) .add('switch', test('{%case 3%}{% when 1 %}1{% when 2 %}2{% when 3 %}3{%endcase%}')) .add('assign', test('{%assign a="foo bar"%}')) .add('capture', test('{%capture foo%}what is this{%endcapture%}')) From fe32c07284f195f773c20cc3ed8909633b6fee1d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:02:10 -0400 Subject: [PATCH 10/33] spelling: formatters Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/util/strftime.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/strftime.spec.ts b/src/util/strftime.spec.ts index 4d60429332..8edf30b1a9 100644 --- a/src/util/strftime.spec.ts +++ b/src/util/strftime.spec.ts @@ -172,7 +172,7 @@ describe('util/strftime', function () { it('should escape %t as \\t', function () { expect(t(now, '%t')).toBe('\t') }) - it('should retain un-recognized formaters', function () { + it('should retain un-recognized formatters', function () { expect(t(now, '%o')).toBe('%o') }) }) From 9430455e92f7ebbc97a27534ccfc2ac7978e7686 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 00:29:50 -0400 Subject: [PATCH 11/33] spelling: github Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.md | 8 ++++---- docs/_config.yml | 2 +- docs/source/index.pug | 4 ++-- docs/source/manifest.json | 2 +- docs/source/tutorials/contribution-guidelines.md | 2 +- docs/source/tutorials/differences.md | 2 +- docs/source/tutorials/intro-to-liquid.md | 2 +- docs/themes/navy/layout/partial/header.swig | 2 +- docs/themes/navy/layout/partial/share.swig | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c332d89f03..7c8eb2f5ce 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ [![DUB license](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)](https://github.com/harttle/liquidjs/blob/master/LICENSE) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/harttle/liquidjs) -A simple, expressive and safe [Shopify][shopify/liquid] / Github Pages compatible template engine in pure JavaScript. -**The purpose of this repo** is to provide a standard Liquid implementation for the JavaScript community so that [Jekyll sites](https://jekyllrb.com), [Github Pages](https://pages.github.com/) and [Shopify templates](https://themes.shopify.com/) can be ported to Node.js without pain. +A simple, expressive and safe [Shopify][shopify/liquid] / GitHub Pages compatible template engine in pure JavaScript. +**The purpose of this repo** is to provide a standard Liquid implementation for the JavaScript community so that [Jekyll sites](https://jekyllrb.com), [GitHub Pages](https://pages.github.com/) and [Shopify templates](https://themes.shopify.com/) can be ported to Node.js without pain. * [Documentation][doc] * Please star [LiquidJS on GitHub][github]! -* Financial support via [Github Sponsors](https://github.com/sponsors/harttle), or [LiquidJS on Open Collective][oc] +* Financial support via [GitHub Sponsors](https://github.com/sponsors/harttle), or [LiquidJS on Open Collective][oc]

logo

@@ -69,7 +69,7 @@ Feel free to create a PR or contact me to add your use case into this list! If you personally love LiquidJS or it's benefiting your business, please consider financially support us: -- via [Github Sponsors](https://github.com/sponsors/harttle), or +- via [GitHub Sponsors](https://github.com/sponsors/harttle), or - via [LiquidJS on Open Collective][oc] Special thanks to the following sponsors! diff --git a/docs/_config.yml b/docs/_config.yml index ef5b4ff2f1..0b98992711 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,6 +1,6 @@ title: LiquidJS subtitle: "A simple, expressive and safe template engine." -description: "LiquidJS is a simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript." +description: "LiquidJS is a simple, expressive and safe Shopify / GitHub Pages compatible template engine in pure JavaScript." author: Harttle language: - en diff --git a/docs/source/index.pug b/docs/source/index.pug index 7766699008..f05ee1d7e7 100644 --- a/docs/source/index.pug +++ b/docs/source/index.pug @@ -1,5 +1,5 @@ layout: index -description: LiquidJS is a simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript. +description: LiquidJS is a simple, expressive and safe Shopify / GitHub Pages compatible template engine in pure JavaScript. subtitle: A simple, expressive and safe template engine. --- ul#intro-feature-list @@ -20,7 +20,7 @@ ul#intro-feature-list .intro-feature-icon i.icon-shopify h3.intro-feature-title Shopify Compatible - p.intro-feature-desc All filters and tags from Ruby #[a(href="https://github.com/shopify/liquid") shopify/liquid] are supported by LiquidJS. #[a(href="https://jekyllrb.com/") Jekyll sites], #[a(href="https://pages.github.com/") Github Pages] and #[a(href="https://themes.shopify.com/") Shopify templates] can be ported to Node.js without pain. + p.intro-feature-desc All filters and tags from Ruby #[a(href="https://github.com/shopify/liquid") shopify/liquid] are supported by LiquidJS. #[a(href="https://jekyllrb.com/") Jekyll sites], #[a(href="https://pages.github.com/") GitHub Pages] and #[a(href="https://themes.shopify.com/") Shopify templates] can be ported to Node.js without pain. li.intro-feature-wrap .intro-feature .intro-feature-icon diff --git a/docs/source/manifest.json b/docs/source/manifest.json index 1e0cf27bc3..7bc0951249 100644 --- a/docs/source/manifest.json +++ b/docs/source/manifest.json @@ -1,7 +1,7 @@ { "short_name": "LiquidJS", "name": "LiquidJS", - "description": "A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.", + "description": "A simple, expressive and safe Shopify / GitHub Pages compatible template engine in pure JavaScript.", "icons": [ { "src": "/icon/apple-touch-icon-57x57.png", diff --git a/docs/source/tutorials/contribution-guidelines.md b/docs/source/tutorials/contribution-guidelines.md index 4d8e5a0359..140126ffd6 100644 --- a/docs/source/tutorials/contribution-guidelines.md +++ b/docs/source/tutorials/contribution-guidelines.md @@ -20,7 +20,7 @@ Getting started and building is described in [CONTRIBUTING.md](https://github.co ## Financial Support -LiquidJS is Open Source and Free. To help it live and thrive, especially when LiquidJS is benefiting your business, please consider contribute on [Github Sponsors](https://github.com/sponsors/harttle) or [Open Collective][oc]. If I'm missing anything, find me via Twitter (harttleharttle) or email (harttleharttle at gmail), to add you into [the contributors table](https://github.com/harttle/liquidjs#contributors-). +LiquidJS is Open Source and Free. To help it live and thrive, especially when LiquidJS is benefiting your business, please consider contribute on [GitHub Sponsors](https://github.com/sponsors/harttle) or [Open Collective][oc]. If I'm missing anything, find me via Twitter (harttleharttle) or email (harttleharttle at gmail), to add you into [the contributors table](https://github.com/harttle/liquidjs#contributors-). [oc]: https://opencollective.com/liquidjs/contribute/backer-10665/checkout [shopify/liquid]: https://shopify.github.io/liquid/ diff --git a/docs/source/tutorials/differences.md b/docs/source/tutorials/differences.md index e6bb6cfcbd..fef364d2a4 100644 --- a/docs/source/tutorials/differences.md +++ b/docs/source/tutorials/differences.md @@ -4,7 +4,7 @@ title: Differences with Shopify/liquid ## Compatibility -Being compatible with the Ruby version is one of our priorities. Liquid language is originally [implemented in Ruby][ruby-liquid] and used by Shopify and Jekyll (and thus Github Pages). As you can see it's one of the most popular template engines in Ruby. There're lots of people using LiquidJS to serve their templates originally written for Shopify themes and Jekyll sites. +Being compatible with the Ruby version is one of our priorities. Liquid language is originally [implemented in Ruby][ruby-liquid] and used by Shopify and Jekyll (and thus GitHub Pages). As you can see it's one of the most popular template engines in Ruby. There're lots of people using LiquidJS to serve their templates originally written for Shopify themes and Jekyll sites. So "being compatible" means serving developers from Shopify and Jekyll well: diff --git a/docs/source/tutorials/intro-to-liquid.md b/docs/source/tutorials/intro-to-liquid.md index fe65508f6e..d5baee03cb 100644 --- a/docs/source/tutorials/intro-to-liquid.md +++ b/docs/source/tutorials/intro-to-liquid.md @@ -3,7 +3,7 @@ title: The Liquid Template Language describe: A short introduction to the Liquid template language and some simple demos. --- -LiquidJS is a simple, expressive and safe [Shopify][shopify/liquid] / Github Pages compatible template engine in pure JavaScript. The purpose of this repo is to provide a standard Liquid implementation for the JavaScript community. Liquid is originally implemented in Ruby and used by Github Pages, Jekyll and Shopify, see [Differences with Shopify/liquid][diff]. +LiquidJS is a simple, expressive and safe [Shopify][shopify/liquid] / GitHub Pages compatible template engine in pure JavaScript. The purpose of this repo is to provide a standard Liquid implementation for the JavaScript community. Liquid is originally implemented in Ruby and used by GitHub Pages, Jekyll and Shopify, see [Differences with Shopify/liquid][diff]. LiquidJS syntax is relatively simple. There're 2 types of markups in LiquidJS: diff --git a/docs/themes/navy/layout/partial/header.swig b/docs/themes/navy/layout/partial/header.swig index 9eacc455cf..0dfcdda713 100644 --- a/docs/themes/navy/layout/partial/header.swig +++ b/docs/themes/navy/layout/partial/header.swig @@ -18,7 +18,7 @@ {% endfor %} - Github + GitHub diff --git a/docs/themes/navy/layout/partial/share.swig b/docs/themes/navy/layout/partial/share.swig index 2b3c902efa..bdc730bb3a 100644 --- a/docs/themes/navy/layout/partial/share.swig +++ b/docs/themes/navy/layout/partial/share.swig @@ -3,7 +3,7 @@ NPM Downloads -Contributors of LiquidJS on Github +Contributors of LiquidJS on GitHub Donate to LiquidJS on Open Collective From bc07933b39c8b702c46b4b0eecdf2330a18a071e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:43:54 -0400 Subject: [PATCH 12/33] spelling: guidelines Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/themes/navy/languages/en.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/themes/navy/languages/en.yml b/docs/themes/navy/languages/en.yml index 1718428eb5..46be128450 100644 --- a/docs/themes/navy/languages/en.yml +++ b/docs/themes/navy/languages/en.yml @@ -10,7 +10,7 @@ index: get_started: Get Started contributors: title: Contributors - description: 'LiquidJS follows the all-contributors specification, see guildelines here! Thanks goes to these wonderful people:' + description: 'LiquidJS follows the all-contributors specification, see guidelines here! Thanks goes to these wonderful people:' sponsors: title: Sponsors description: 'If you personally love LiquidJS or it's benefiting your business, please sponsor us!' From 0a05b98cb876c2991ebb9fdfe89f3510b35d4c02 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:44:13 -0400 Subject: [PATCH 13/33] spelling: hashes Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/parser/tokenizer.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/tokenizer.spec.ts b/src/parser/tokenizer.spec.ts index 671fd58afa..c8d4f6311f 100644 --- a/src/parser/tokenizer.spec.ts +++ b/src/parser/tokenizer.spec.ts @@ -69,7 +69,7 @@ describe('Tokenizer', function () { expect(hash2!.name.content).toBe('foo') expect(hash2!.value!.getText()).toBe('a[ "bar"]') }) - it('should read multiple hashs', () => { + it('should read multiple hashes', () => { const hashes = new Tokenizer(', limit: 3 reverse offset:off').readHashes() expect(hashes).toHaveLength(3) const [limit, reverse, offset] = hashes From 377e70e3eb7de2b50d52f0c74df3099fec05fc98 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Jun 2024 11:39:09 -0400 Subject: [PATCH 14/33] spelling: https Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.md | 16 ++--- benchmark/engines/create-liquid.js | 2 +- benchmark/engines/handlebars.js | 2 +- benchmark/engines/swig.js | 2 +- benchmark/templates/todolist.jsx | 2 +- demo/reactjs/README.md | 62 +++++++++---------- demo/reactjs/src/index.js | 2 +- docs/source/filters/date.md | 2 +- .../tutorials/access-scope-in-filters.md | 2 +- .../tutorials/contribution-guidelines.md | 2 +- docs/source/tutorials/parse-parameters.md | 6 +- docs/source/tutorials/render-tag-content.md | 6 +- docs/source/tutorials/setup.md | 2 +- docs/source/tutorials/use-in-expressjs.md | 2 +- docs/themes/navy/languages/en.yml | 2 +- docs/themes/navy/layout/page.swig | 2 +- docs/themes/navy/layout/partial/demo.liquid | 2 +- docs/themes/navy/layout/partial/head.swig | 2 +- test/e2e/xhr.spec.ts | 4 +- 19 files changed, 61 insertions(+), 61 deletions(-) diff --git a/README.md b/README.md index 7c8eb2f5ce..46d1daab94 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Special thanks to the following sponsors! Opensense Inc.
Opensense
Eleventy
Eleventy
- Peter deHaan
Peter deHaan
+ Peter deHaan
Peter deHaan
Touchless
Touchless
Adam Darrah
Dropkiq
Dailycontributors
Dailycontributors
@@ -129,7 +129,7 @@ Want to contribute? see [Contribution Guidelines][contribution]. Thanks goes to Ryan Kennedy
Ryan Kennedy

💻 Sami Kukkonen
Sami Kukkonen

💻 Scott Santucci
Scott Santucci

💻 - Steven
Steven

💡 💻 + Steven
Steven

💡 💻 azu
azu

📖 Joonas
Joonas

💻 @@ -138,7 +138,7 @@ Want to contribute? see [Contribution Guidelines][contribution]. Thanks goes to Brandon Pittman
Brandon Pittman

💻 tgrandgent
tgrandgent

💻 Martin Schuster
Martin Schuster

💻 - Ray
Ray

⚠️ 💻 + Ray
Ray

⚠️ 💻 Cristofer Gonzales
Cristofer Gonzales

💻 Raymond Camden
Raymond Camden

📖 @@ -147,9 +147,9 @@ Want to contribute? see [Contribution Guidelines][contribution]. Thanks goes to Anthony Ciccarello
Anthony Ciccarello

📖 Bogdan Chadkin
Bogdan Chadkin

💻 Tejas Manohar
Tejas Manohar

💻 - Peter deHaan
Peter deHaan

📖 + Peter deHaan
Peter deHaan

📖 amit777
amit777

💻 - Steffen Schuldenzucker
Steffen Schuldenzucker

💻 + Steffen Schuldenzucker
Steffen Schuldenzucker

💻 Pixcell
Pixcell

💻 @@ -179,8 +179,8 @@ Want to contribute? see [Contribution Guidelines][contribution]. Thanks goes to prassie
prassie

📖 - Slav Ivanov
Slav Ivanov

💻 - Daniel Rosenberg
Daniel Rosenberg

💻 + Slav Ivanov
Slav Ivanov

💻 + Daniel Rosenberg
Daniel Rosenberg

💻 bobgubko
bobgubko

💻 BaNgan
BaNgan

📖 Mahyar Pasarzangene
Mahyar Pasarzangene

📖 @@ -189,7 +189,7 @@ Want to contribute? see [Contribution Guidelines][contribution]. Thanks goes to Nick Reilingh
Nick Reilingh

📖 - Francisco Soto
Francisco Soto

💻 + Francisco Soto
Francisco Soto

💻 David LJ
David LJ

📖 Rasmus Wriedt Larsen
Rasmus Wriedt Larsen

📖 Bruno Carvalho
Bruno Carvalho

💻 diff --git a/benchmark/engines/create-liquid.js b/benchmark/engines/create-liquid.js index 59b01f384b..cd911188ad 100644 --- a/benchmark/engines/create-liquid.js +++ b/benchmark/engines/create-liquid.js @@ -7,7 +7,7 @@ function createEngine (pkg) { cache: true, extname: '.liquid' }) - liquid.registerFilter('url', path => `http://example.com${path}`) + liquid.registerFilter('url', path => `https://example.com${path}`) return { load: path => liquid.parse(readFileSync(path + '.liquid', 'utf8')), render: (tpl, data) => liquid.renderSync(tpl, data) diff --git a/benchmark/engines/handlebars.js b/benchmark/engines/handlebars.js index 5857b600f7..87314401cd 100644 --- a/benchmark/engines/handlebars.js +++ b/benchmark/engines/handlebars.js @@ -12,7 +12,7 @@ handlebars.registerHelper('concat', function (...args) { }) handlebars.registerHelper('url', function (path) { - return `http://example.com${path}` + return `https://example.com${path}` }) handlebars.registerHelper('inc', function (num) { diff --git a/benchmark/engines/swig.js b/benchmark/engines/swig.js index d43432b21d..83c34d5735 100644 --- a/benchmark/engines/swig.js +++ b/benchmark/engines/swig.js @@ -1,7 +1,7 @@ const swig = require('swig') swig.setFilter('url', function (path) { - return `http://example.com${path}` + return `https://example.com${path}` }) swig.setFilter('prepend', function (input, arg) { diff --git a/benchmark/templates/todolist.jsx b/benchmark/templates/todolist.jsx index b6633a233f..64e2444ee3 100644 --- a/benchmark/templates/todolist.jsx +++ b/benchmark/templates/todolist.jsx @@ -5,7 +5,7 @@ function capitalize (str) { return str[0].toUpperCase() + str.slice(1).toLowerCase() } function url (path) { - return `http://example.com${path}` + return `https://example.com${path}` } function renderTodoIcon (id) { return diff --git a/demo/reactjs/README.md b/demo/reactjs/README.md index 66fdd2d13c..a4b5f47619 100644 --- a/demo/reactjs/README.md +++ b/demo/reactjs/README.md @@ -381,7 +381,7 @@ This works for any library, not just `react-router-dom`. ## Importing a Component This project setup supports ES6 modules thanks to Webpack.
-While you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](http://exploringjs.com/es6/ch_modules.html) instead. +While you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](https://exploringjs.com/es6/ch_modules.html) instead. For example: @@ -414,7 +414,7 @@ class DangerButton extends Component { export default DangerButton; ``` -Be aware of the [difference between default and named exports](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281). It is a common source of mistakes. +Be aware of the [difference between default and named exports](https://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281). It is a common source of mistakes. We suggest that you stick to using default imports and exports when a module only exports a single thing (for example, a component). That’s what you get when you use `export default Button` and `import Button from './Button'`. @@ -422,15 +422,15 @@ Named exports are useful for utility modules that export several functions. A mo Learn more about ES6 modules: -- [When to use the curly braces?](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281) -- [Exploring ES6: Modules](http://exploringjs.com/es6/ch_modules.html) +- [When to use the curly braces?](https://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281) +- [Exploring ES6: Modules](https://exploringjs.com/es6/ch_modules.html) - [Understanding ES6: Modules](https://leanpub.com/understandinges6/read#leanpub-auto-encapsulating-code-with-modules) ## Code Splitting Instead of downloading the entire app before users can use it, code splitting allows you to split your code into small chunks which you can then load on demand. -This project setup supports code splitting via [dynamic `import()`](http://2ality.com/2017/01/import-operator.html#loading-code-on-demand). Its [proposal](https://github.com/tc39/proposal-dynamic-import) is in stage 3. The `import()` function-like form takes the module name as an argument and returns a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which always resolves to the namespace object of the module. +This project setup supports code splitting via [dynamic `import()`](https://2ality.com/2017/01/import-operator.html#loading-code-on-demand). Its [proposal](https://github.com/tc39/proposal-dynamic-import) is in stage 3. The `import()` function-like form takes the module name as an argument and returns a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which always resolves to the namespace object of the module. Here is an example: @@ -476,7 +476,7 @@ You can also use it with `async` / `await` syntax if you prefer it. ### With React Router -If you are using React Router check out [this tutorial](http://serverless-stack.com/chapters/code-splitting-in-create-react-app.html) on how to use code splitting with it. You can find the companion GitHub repository [here](https://github.com/AnomalyInnovations/serverless-stack-demo-client/tree/code-splitting-in-create-react-app). +If you are using React Router check out [this tutorial](https://serverless-stack.com/chapters/code-splitting-in-create-react-app.html) on how to use code splitting with it. You can find the companion GitHub repository [here](https://github.com/AnomalyInnovations/serverless-stack-demo-client/tree/code-splitting-in-create-react-app). Also check out the [Code Splitting](https://reactjs.org/docs/code-splitting.html) section in React documentation. @@ -755,7 +755,7 @@ The `public` folder is useful as a workaround for a number of less common cases: - You need a file with a specific name in the build output, such as [`manifest.webmanifest`](https://developer.mozilla.org/en-US/docs/Web/Manifest). - You have thousands of images and need to dynamically reference their paths. -- You want to include a small script like [`pace.js`](http://github.hubspot.com/pace/docs/welcome/) outside of the bundled code. +- You want to include a small script like [`pace.js`](https://github.hubspot.com/pace/docs/welcome/) outside of the bundled code. - Some library may be incompatible with Webpack and you have no other option but to include it as a `