Skip to content

Commit b35ac10

Browse files
authored
fix: typos (#1500)
1 parent 70936d3 commit b35ac10

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed

src/about/community-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Code contribution is not the only form of contribution to the Vue community. Ans
4646

4747
Triaging an issue means gathering missing information, running the reproduction, verifying the issue's validity, and investigating the cause of the issue.
4848

49-
We receive many issues in [our repositories on GitHub](https://github.com/vuejs) every single day. Our bandwidth is limited compared to the amount of users we have, so issue triaging alone can take an enormous amount of effort from the team. By helping us traige the issues, you are helping us become more efficient, allowing us to spend time on higher priority work.
49+
We receive many issues in [our repositories on GitHub](https://github.com/vuejs) every single day. Our bandwidth is limited compared to the amount of users we have, so issue triaging alone can take an enormous amount of effort from the team. By helping us triage the issues, you are helping us become more efficient, allowing us to spend time on higher priority work.
5050

5151
You don't have to triage an issue with the goal of fixing it (although that would be nice too). Sharing the result of your investigation, for example the commit that led to the bug, can already save us a ton of time.
5252

src/about/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Vue 3 is one of the most performant mainstream frontend frameworks, and handles
2626

2727
In stress-testing scenarios, Vue out-performs React and Angular by a decent margin in the [js-framework-benchmark](https://rawgit.com/krausest/js-framework-benchmark/master/webdriver-ts-results/table.html). It also goes neck-and-neck against some of the fastest production-level non-Virtual-DOM frameworks in the benchmark.
2828

29-
Do note that synthetic benchmarks like the above focus on raw rendering performance with dedicated optimizations and may not be fully representative of real-world performance results. If you care more about page load performance, here is the [Lighthouse audit](https://www.webpagetest.org/result/210818_BiDcYB_4a83d7a1f2a7f6fdc76db16a00b4882d/) generated via [WebPageTest](https://www.webpagetest.org/lighthouse) for a real-world, Vue-powered site with SSG pre-rendering, full page hydration and SPA client-side navigations. It scores 98 in performance on an emulated Moto G4 with 4x CPU throttling over 3G networks.
29+
Do note that synthetic benchmarks like the above focus on raw rendering performance with dedicated optimizations and may not be fully representative of real-world performance results. If you care more about page load performance, here is the [Lighthouse audit](https://www.webpagetest.org/result/210818_BiDcYB_4a83d7a1f2a7f6fdc76db16a00b4882d/) generated via [WebPageTest](https://www.webpagetest.org/lighthouse) for a real-world, Vue-powered site with SSG pre-rendering, full page hydration and SPA client-side navigation. It scores 98 in performance on an emulated Moto G4 with 4x CPU throttling over 3G networks.
3030

3131
You can learn more about how Vue automatically optimizes runtime performance in the [Rendering Mechanism](/guide/extras/rendering-mechanism.html) section, and how to optimize a Vue app in particularly demanding cases in the [Performance Optimization Guide](/guide/best-practices/performance.html).
3232

src/api/ApiIndex.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { data as apiIndex, APIGroup } from './api.data'
66
import { ref, computed } from 'vue'
77
88
const query = ref('')
9-
const nomralize = (s: string) => s.toLowerCase().replace(/-/g, ' ')
9+
const normalize = (s: string) => s.toLowerCase().replace(/-/g, ' ')
1010
1111
const filtered = computed(() => {
12-
const q = nomralize(query.value)
13-
const matches = (text: string) => nomralize(text).includes(q)
12+
const q = normalize(query.value)
13+
const matches = (text: string) => normalize(text).includes(q)
1414
1515
return apiIndex
1616
.map((section) => {

src/api/api.data.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ const headersCache = new Map<
4040
>()
4141

4242
function parsePageHeaders(link: string) {
43-
const fullePath = path.join(__dirname, '../', link) + '.md'
44-
const timestamp = fs.statSync(fullePath).mtimeMs
43+
const fullPath = path.join(__dirname, '../', link) + '.md'
44+
const timestamp = fs.statSync(fullPath).mtimeMs
4545

46-
const cached = headersCache.get(fullePath)
46+
const cached = headersCache.get(fullPath)
4747
if (cached && timestamp === cached.timestamp) {
4848
return cached.headers
4949
}
5050

51-
const src = fs.readFileSync(fullePath, 'utf-8')
51+
const src = fs.readFileSync(fullPath, 'utf-8')
5252
const h2s = src.match(/^## [^\n]+/gm)
5353
let headers: string[] = []
5454
if (h2s) {
@@ -61,7 +61,7 @@ function parsePageHeaders(link: string) {
6161
.trim()
6262
)
6363
}
64-
headersCache.set(fullePath, {
64+
headersCache.set(fullPath, {
6565
timestamp,
6666
headers
6767
})

src/api/application.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ Adjusts template whitespace handling behavior.
438438
439439
- **Details**
440440
441-
Vue removes / condenses whitespaces in templates to produce more efficient compiled output. The default strategy is "condense", with the following behavior:
441+
Vue removes / condenses whitespace characters in templates to produce more efficient compiled output. The default strategy is "condense", with the following behavior:
442442
443-
1. Leading / ending whitespaces inside an element are condensed into a single space.
444-
2. Whitespaces between elements that contain newlines are removed.
445-
3. Consecutive whitespaces in text nodes are condensed into a single space.
443+
1. Leading / ending whitespace characters inside an element are condensed into a single space.
444+
2. Whitespace characters between elements that contain newlines are removed.
445+
3. Consecutive whitespace characters in text nodes are condensed into a single space.
446446
447447
Setting this option to `'preserve'` will disable (2) and (3).
448448

src/api/sfc-spec.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ An SFC automatically infers the component's name from its **filename** in the fo
7676

7777
- Dev warning formatting
7878
- DevTools inspection
79-
- Recursive self-reference. E.g. a file named `FooBar.vue` can refer to itself as `<FooBar/>` in its template. This has lower priority than explicity registered/imported components.
79+
- Recursive self-reference. E.g. a file named `FooBar.vue` can refer to itself as `<FooBar/>` in its template. This has lower priority than explicitly registered/imported components.
8080

8181
## Pre-Processors
8282

@@ -103,7 +103,7 @@ p {{ msg }}
103103
</style>
104104
```
105105

106-
Note the intergration with pre-processors may differ based on the toolchain. Check out the respective documentations for examples:
106+
Note that integration with various pre-processors may differ by toolchain. Check out the respective documentation for examples:
107107

108108
- [Vite](https://vitejs.dev](features.html#css-pre-processors)
109109
- [Vue CLI](https://cli.vuejs.org](css.html#pre-processors)
@@ -126,7 +126,7 @@ Beware that `src` imports follow the same path resolution rules as webpack modul
126126

127127
```vue
128128
<!-- import a file from the installed "todomvc-app-css" npm package -->
129-
<style src="todomvc-app-css/index.css">
129+
<style src="todomvc-app-css/index.css" />
130130
```
131131

132132
`src` imports also work with custom blocks, e.g.:

src/examples/src/fetching-data/App/composition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010

1111
watchEffect(async () => {
1212
// this effect will run immediately and then
13-
// re-run whenver currentBranch.value changes
13+
// re-run whenever currentBranch.value changes
1414
const url = `${API_URL}${currentBranch.value}`
1515
commits.value = await (await fetch(url)).json()
1616
})

src/guide/essentials/template-refs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ See also: [Typing Template Refs](/guide/typescript/composition-api.html#typing-t
9393
9494
<div class="composition-api">
9595

96-
When `ref` is used inside `v-for`, the corrensponding ref should contain an Array value, which will be populated with the elements after mount:
96+
When `ref` is used inside `v-for`, the corresponding ref should contain an Array value, which will be populated with the elements after mount:
9797

9898
```vue
9999
<script setup>

src/guide/extras/rendering-mechanism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ When this component needs to re-render, it only needs to traverse the flattened
181181
</div>
182182
```
183183

184-
A child block is tracked inside the parent block's array of dynamic descendents. This retains a stable structure for the parent block.
184+
A child block is tracked inside the parent block's array of dynamic descendants. This retains a stable structure for the parent block.
185185

186186
### Impact on SSR Hydration
187187

188188
Both patch flags and tree flattening also greatly improve Vue's [SSR Hydration](/guide/scaling-up/ssr.html#client-hydration) performance:
189189

190190
- Single element hydration can take fast paths based on the corresponding vnode's patch flag.
191191

192-
- Only block nodes and their dynamic descendents need to be traversed during hydration, effectively achieving partial hydration at the template level.
192+
- Only block nodes and their dynamic descendants need to be traversed during hydration, effectively achieving partial hydration at the template level.

src/guide/extras/ways-of-using-vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can use Vue to [build standard Web Components](/guide/extras/web-components)
1414

1515
## Single-Page Application (SPA)
1616

17-
Some applications require rich interactivity and non-trivial stateful logic on the frontend. The best way to build such applications is to use an architecture where Vue not only controls the entire page, but also handles data updates and navigations without having to reload the page. This type of application is typically referred to as a Single-Page Application (SPA).
17+
Some applications require rich interactivity and non-trivial stateful logic on the frontend. The best way to build such applications is to use an architecture where Vue not only controls the entire page, but also handles data updates and navigation without having to reload the page. This type of application is typically referred to as a Single-Page Application (SPA).
1818

1919
Vue provides core libraries and [comprehensive tooling support](/guide/scaling-up/tooling) with amazing developer experience for building modern SPAs, including:
2020

src/guide/extras/web-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ document.body.appendChild(
120120

121121
- When the element's `disconnectedCallback` is invoked, Vue will check whether the element is detached from the document after a microtask tick.
122122

123-
- If the element is still in the document, it's a move and the component instance will be perserved;
123+
- If the element is still in the document, it's a move and the component instance will be preserved;
124124

125125
- If the element is detached from the document, it's a removal and the component instance will be unmounted.
126126

src/guide/scaling-up/sfc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SFC is a defining feature of Vue as a framework, and is the recommended approach
4646

4747
- Single-Page Applications (SPA)
4848
- Static Site Generation (SSG)
49-
- Any non-trivial frontends where a build step can be justified for better development experience (DX).
49+
- Any non-trivial frontend where a build step can be justified for better development experience (DX).
5050

5151
That said, we do realize there are scenarios where SFCs can feel like overkill. This is why Vue can still be used via plain JavaScript without a build step. If you are just looking for enhancing largely static HTML with light interactions, you can also check out [petite-vue](https://github.com/vuejs/petite-vue), a 5kb subset of Vue optimized for progressive enhancement.
5252

src/tutorial/src/step-11/description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ createApp({
5656

5757
We also need to register the component using the `components` option. Here we are using the object property shorthand to register the `ChildComp` component under the `ChildComp` key.
5858

59-
Because we are writing the template in the DOM, it will be subject to browser's parsing rules, which is case-insensitive for tag names. Therefore, we need to use the kabab-cased name to reference the child component:
59+
Because we are writing the template in the DOM, it will be subject to browser's parsing rules, which is case-insensitive for tag names. Therefore, we need to use the kebab-cased name to reference the child component:
6060

6161
```vue-html
6262
<child-comp></child-comp>

0 commit comments

Comments
 (0)