Skip to content

Commit d45fc5a

Browse files
examples: fix typos (#82506)
## Summary Fix typos in code, styles, and documentation across multiple example projects Chores: - Correct variable name typo in the with-slate example (edtorState→editorState) - Fix CSS/SASS class name misspellings (populer→popular, Serach→Search, serachSelector→searchSelector) - Update example documentation and comments to fix English typos (Data SOUCE→SOURCE, accessiblity→accessibility, exchanges, doesn't, deploying, validates, quickly) ### Adding or Updating Examples - [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md Co-authored-by: Joseph <[email protected]>
1 parent 88d774f commit d45fc5a

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

examples/blog-starter/src/app/_components/theme-switcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const Script = memo(() => (
101101
));
102102

103103
/**
104-
* This component wich applies classes and transitions.
104+
* This component applies classes and transitions.
105105
*/
106106
export const ThemeSwitcher = () => {
107107
return (

examples/cms-buttercms/css/main.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/cms-enterspeed/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Start by creating the `blog`-type
9696

9797
```bash
9898
curl --location --request POST 'https://api.enterspeed.com/ingest/v2/1' \
99-
--header 'X-Api-Key: [YOUR DATA SOUCE API KEY]' \
99+
--header 'X-Api-Key: [YOUR DATA SOURCE API KEY]' \
100100
--header 'Content-Type: application/json' \
101101
--data-raw '{
102102
"type": "blog",
@@ -108,7 +108,7 @@ Next, ingest the actual blog post
108108

109109
```bash
110110
curl --location --request POST 'https://api.enterspeed.com/ingest/v2/2' \
111-
--header 'X-Api-Key: [YOUR DATA SOUCE API KEY]' \
111+
--header 'X-Api-Key: [YOUR DATA SOURCE API KEY]' \
112112
--header 'Content-Type: application/json' \
113113
--data-raw '{
114114
"type": "blogPost",

examples/cms-sanity/sanity/schemas/documents/author.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineType({
2222
name: "alt",
2323
type: "string",
2424
title: "Alternative text",
25-
description: "Important for SEO and accessiblity.",
25+
description: "Important for SEO and accessibility.",
2626
validation: (rule) => {
2727
return rule.custom((alt, context) => {
2828
if ((context.document?.picture as any)?.asset?._ref && !alt) {

examples/cms-sanity/sanity/schemas/documents/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default defineType({
6666
name: "alt",
6767
type: "string",
6868
title: "Alternative text",
69-
description: "Important for SEO and accessiblity.",
69+
description: "Important for SEO and accessibility.",
7070
validation: (rule) => {
7171
return rule.custom((alt, context) => {
7272
if ((context.document?.coverImage as any)?.asset?._ref && !alt) {

examples/cms-sitecore-xmcloud/scripts/templates/component-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ${componentFiles
9696
// See https://nextjs.org/docs/advanced-features/dynamic-import
9797
// At the end you will have single preloaded script for each lazy loading module.
9898
// Editing mode doesn't work well with dynamic components in nextjs: dynamic components are not displayed without refresh after a rendering is added.
99-
// This happens beacuse Sitecore editors simply insert updated HTML generated on server side. This conflicts with nextjs dynamic logic as no HTML gets rendered for dynamic component
99+
// This happens because Sitecore editors simply insert updated HTML generated on server side. This conflicts with nextjs dynamic logic as no HTML gets rendered for dynamic component
100100
// So we use require() to obtain dynamic components in editing mode while preserving dynamic logic for non-editing scenarios
101101
// As we need to be able to seamlessly work with dynamic components in both editing and normal modes, different componentFactory functions will be passed to app
102102

examples/cms-sitecore-xmcloud/src/assets/sass/abstracts/vars/_colors.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ $search-filter-slider-bg-active: $bg-blue;
252252
$search-filter-slider-btn-border: $border-gray;
253253
$search-filter-slider-btn-bg: $bg-light-gray;
254254
$search-filter-slider-btn-bg-active: $bg-light-gray-active;
255-
//Serach Pagination
255+
//Search Pagination
256256
$search-pagination-bg: transparent;
257257
$search-pagination-active-bg: $bg-blue;
258258
$search-pagination-active-color: $text-white;
259259
$search-pagination-hover-color: $text-blue;
260260
$search-pagination-hover-bg: $bg-submenu-active;
261261
$search-pagination-hover-border: $border-basic-active;
262262
//Search selector
263-
$serach-selector-variant-color-active: $text-blue-active;
263+
$search-selector-variant-color-active: $text-blue-active;
264264
//Typehead
265265
$tt-color: $text-basic;
266266
$tt-color-active: $text-blue;

examples/cms-wordpress/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut
119119
| `NEXT_PUBLIC_BASE_URL` | Insert base url of frontend | http://localhost:3000 | Used for generating sitemap, redirects etc. |
120120
| `NEXT_PUBLIC_WORDPRESS_API_URL` | Insert base url of your WordPress installation | http://wp-domain.com | Used when requesting wordpress for data |
121121
| `NEXT_PUBLIC_WORDPRESS_API_HOSTNAME` | The hostname without protocol for your WordPress installation | wp-domain.com | Used for dynamically populating the next.config images remotePatterns |
122-
| `HEADLESS_SECRET` | Insert the same random key, that you generated for your `wp-config.php` | INSERT_RANDOM_SECRET_KEY | Used for public exhanges between frontend and backend |
122+
| `HEADLESS_SECRET` | Insert the same random key, that you generated for your `wp-config.php` | INSERT_RANDOM_SECRET_KEY | Used for public exchanges between frontend and backend |
123123
| `WP_USER` | Insert a valid WordPress username | username | Username for a system user created specifically for interacting with your WordPress installation |
124124
| `WP_APP_PASS` | Insert application password | 1234 5678 abcd efgh | [Generate an application password](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/) for the WordPress user defined in `WP_USER` |
125125

@@ -195,7 +195,7 @@ This `functions.php` is implementing different useful features for using WordPre
195195

196196
- Setting up a primary menu (fetched in `Navigation..tsx`)
197197
- Rewriting preview and rest links to match the frontend instead of the WordPress installation
198-
- Implementing cache tag revalidation everytime you update a post in WordPress
198+
- Implementing cache tag revalidation every time you update a post in WordPress
199199
- Implementing rest endpoints for sitemap generation
200200

201201
```php

examples/with-couchbase/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function getServerSideProps(context) {
5959

6060
const { collection } = connection;
6161

62-
// Check connection with a KV GET operation for a key that doesnt exist
62+
// Check connection with a KV GET operation for a key that doesn't exist
6363
let isConnected = false;
6464
try {
6565
await collection.get("testingConnectionKey");

examples/with-sentry/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default function Home() {
235235
</h2>
236236
<p className={inter.className}>
237237
Next.js 13 continues to bring many new features to developers,
238-
especially those depoying on Vercel. We are trying to keep up, we
238+
especially those deploying on Vercel. We are trying to keep up, we
239239
promise!
240240
</p>
241241
</div>

0 commit comments

Comments
 (0)