From 4805fe674ab62288bb2ccaf8821df000d027fae5 Mon Sep 17 00:00:00 2001
From: Natalia Tepluhina
Date: Thu, 21 Jul 2022 20:11:18 +0200
Subject: [PATCH 001/927] fix: added Node version requirement
Close #1839
---
src/guide/quick-start.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/guide/quick-start.md b/src/guide/quick-start.md
index 822b10b501..fc12b04992 100644
--- a/src/guide/quick-start.md
+++ b/src/guide/quick-start.md
@@ -19,7 +19,7 @@ You can try Vue with SFCs online on [StackBlitz](https://vite.new/vue). StackBli
:::tip Pre-requisites
- Familiarity with the command line
-- Install [Node.js](https://nodejs.org/)
+- Install [Node.js](https://nodejs.org/) version 15.0 or higher
:::
To create a build-tool-enabled Vue project on your machine, run the following command in your command line (without the `>` sign):
From abd953b1df5266d45808bbd050fbafb7d167ac74 Mon Sep 17 00:00:00 2001
From: Jinjiang
Date: Fri, 22 Jul 2022 02:19:38 +0800
Subject: [PATCH 002/927] Support dynamic loading of special sponsors (#1838)
---
.vitepress/theme/components/Home.vue | 36 +++++++++++--------
.vitepress/theme/components/SponsorsGroup.vue | 29 ++-------------
.vitepress/theme/components/sponsors.ts | 31 ++++++++++++++++
3 files changed, 54 insertions(+), 42 deletions(-)
create mode 100644 .vitepress/theme/components/sponsors.ts
diff --git a/.vitepress/theme/components/Home.vue b/.vitepress/theme/components/Home.vue
index 572fe2414b..9b200be87a 100644
--- a/.vitepress/theme/components/Home.vue
+++ b/.vitepress/theme/components/Home.vue
@@ -1,7 +1,13 @@
@@ -35,21 +41,20 @@ import VueMasteryModal from './VueMasteryModal.vue';
-
Special Sponsor
-
-
-
-
-
-
- Advanced IDE for Vue
+
+
+
+
+
+
+
+
+
+ {{ description }}
+
+
@@ -181,13 +186,14 @@ html:not(.dark) .accent,
font-weight: 500;
font-size: 13px;
vertical-align: middle;
- margin: 0 24px;
+ margin-right: 24px;
}
#special-sponsor img {
display: inline-block;
vertical-align: middle;
height: 36px;
+ margin-right: 24px;
}
.dark #special-sponsor img {
@@ -279,4 +285,4 @@ html:not(.dark) .accent,
font-size: 36px;
}
}
-
\ No newline at end of file
+
diff --git a/.vitepress/theme/components/SponsorsGroup.vue b/.vitepress/theme/components/SponsorsGroup.vue
index f1e3e7c8bf..7900489b2f 100644
--- a/.vitepress/theme/components/SponsorsGroup.vue
+++ b/.vitepress/theme/components/SponsorsGroup.vue
@@ -1,28 +1,6 @@
-
-
diff --git a/.vitepress/theme/components/sponsors.ts b/.vitepress/theme/components/sponsors.ts
new file mode 100644
index 0000000000..4ab714f568
--- /dev/null
+++ b/.vitepress/theme/components/sponsors.ts
@@ -0,0 +1,31 @@
+// shared data across instances so we load only once
+
+import { ref } from 'vue'
+
+export interface Sponsor {
+ url: string
+ img: string
+ name: string
+ description?: string
+}
+
+export interface SponsorData {
+ special: Sponsor[]
+ platinum: Sponsor[]
+ platinum_china: Sponsor[]
+ gold: Sponsor[]
+ silver: Sponsor[]
+ bronze: Sponsor[]
+}
+
+export const data = ref()
+export const pending = ref(false)
+
+export const base = `https://sponsors.vuejs.org`
+
+export const load = async () => {
+ if (!pending.value) {
+ pending.value = true
+ data.value = await (await fetch(`${base}/data.json`)).json()
+ }
+}
From cc15d625fdec77dbb4f09854795fbc70babfdac9 Mon Sep 17 00:00:00 2001
From: Natalia Tepluhina
Date: Fri, 22 Jul 2022 15:30:53 +0200
Subject: [PATCH 003/927] feat: added a link to MDN JS guide
Close #1837
---
src/guide/introduction.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/guide/introduction.md b/src/guide/introduction.md
index c623f3d1ac..9c452ea846 100644
--- a/src/guide/introduction.md
+++ b/src/guide/introduction.md
@@ -71,7 +71,7 @@ The above example demonstrates the two core features of Vue:
You may already have questions - don't worry. We will cover every little detail in the rest of the documentation. For now, please read along so you can have a high-level understanding of what Vue offers.
:::tip Prerequisites
-The rest of the documentation assumes basic familiarity with HTML, CSS and JavaScript. If you are totally new to frontend development, it might not be the best idea to jump right into a framework as your first step - grasp the basics and then come back! Prior experience with other frameworks helps, but is not required.
+The rest of the documentation assumes basic familiarity with HTML, CSS and JavaScript. If you are totally new to frontend development, it might not be the best idea to jump right into a framework as your first step - grasp the basics and then come back! You can check your knowledge level with [this JavaScript overview](https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript). Prior experience with other frameworks helps, but is not required.
:::
## The Progressive Framework
From 76526bf8f0ce89b9b4072ba87813bf2365cb1f8e Mon Sep 17 00:00:00 2001
From: Hichem Fantar
Date: Fri, 22 Jul 2022 17:50:11 +0100
Subject: [PATCH 004/927] Fix vue mastery banner z-order (#1850)
closes #1846
---
.vitepress/theme/components/VueMasteryBanner.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.vitepress/theme/components/VueMasteryBanner.vue b/.vitepress/theme/components/VueMasteryBanner.vue
index ab40bb090f..0ed2846585 100644
--- a/.vitepress/theme/components/VueMasteryBanner.vue
+++ b/.vitepress/theme/components/VueMasteryBanner.vue
@@ -43,7 +43,7 @@ function close () {
overflow: hidden;
position: fixed;
top: 0;
- z-index: 2;
+ z-index: var(--vp-z-index-banner);
width: 100%;
transition: all 0.3s ease-out 0.1s;
}
From f10655a3574d4ab486c4de4e3692bf18f57833c7 Mon Sep 17 00:00:00 2001
From: Matheus Rodrigues
<65840136+matheus-rodrigues00@users.noreply.github.com>
Date: Sat, 23 Jul 2022 03:51:12 -0300
Subject: [PATCH 005/927] Fixed small typo (#1851)
---
src/api/component-instance.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/component-instance.md b/src/api/component-instance.md
index 20b4c30952..b2ae9151b9 100644
--- a/src/api/component-instance.md
+++ b/src/api/component-instance.md
@@ -55,7 +55,7 @@ The root DOM node that the component instance is managing.
- For components with multiple root nodes, `$el` will be the placeholder DOM node that Vue uses to keep track of the component's position in the DOM (a text node, or a comment node in SSR hydration mode).
:::tip
- For consistency, its is recommended to use [template refs](/guide/essentials/template-refs.html) for direct access to elements instead of relying on `$el`.
+ For consistency, it is recommended to use [template refs](/guide/essentials/template-refs.html) for direct access to elements instead of relying on `$el`.
:::
## $options
From a60bcea527bfd719918dbfc5bbbc7ec7362c44d2 Mon Sep 17 00:00:00 2001
From: aathan
Date: Sun, 24 Jul 2022 23:40:27 -0700
Subject: [PATCH 006/927] typoe fix (#1855)
---
src/guide/built-ins/keep-alive.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/guide/built-ins/keep-alive.md b/src/guide/built-ins/keep-alive.md
index b307bad108..709fe27d6e 100644
--- a/src/guide/built-ins/keep-alive.md
+++ b/src/guide/built-ins/keep-alive.md
@@ -16,7 +16,7 @@ In the Component Basics chapter, we introduced the syntax for [Dynamic Component
By default, an active component instance will be unmounted when switched away from. This will cause any changed state it holds to be lost.
-In the example below, we have two stateful components - A contains a counter, while B contains a message synced with an input via `v-model`. Try update the state of one of them, switch away, and then switch back to it:
+In the example below, we have two stateful components - A contains a counter, while B contains a message synced with an input via `v-model`. Try updating the state of one of them, switch away, and then switch back to it:
From 58844c0fd6146fcc235ef2a2f40948fcd1379200 Mon Sep 17 00:00:00 2001
From: chunjin
Date: Mon, 25 Jul 2022 15:34:21 +0800
Subject: [PATCH 007/927] Fix Caveats about props in TS with Options API
(#1853)
The inference limit of TypeScript has been improved in TypeScript 4.7. MR:
https://github.com/microsoft/TypeScript/pull/48538
---
src/guide/typescript/options-api.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/guide/typescript/options-api.md b/src/guide/typescript/options-api.md
index ad957ae444..9efeca7a02 100644
--- a/src/guide/typescript/options-api.md
+++ b/src/guide/typescript/options-api.md
@@ -67,7 +67,7 @@ export default defineComponent({
### Caveats
-Because of a [design limitation](https://github.com/microsoft/TypeScript/issues/38845) in TypeScript, you have to be careful when using function values for `validator` and `default` prop options - make sure to use arrow functions:
+If your TypeScript version is less than `4.7`, you have to be careful when using function values for `validator` and `default` prop options - make sure to use arrow functions:
```ts
import { defineComponent } from 'vue'
@@ -82,7 +82,7 @@ export default defineComponent({
props: {
bookA: {
type: Object as PropType,
- // Make sure to use arrow functions
+ // Make sure to use arrow functions if your TypeScript version is less than 4.7
default: () => ({
title: 'Arrow Function Expression'
}),
@@ -92,7 +92,7 @@ export default defineComponent({
})
```
-This prevents TypeScript from having to infer the type of `this` inside these functions, which, unfortunately, can cause the type inference to fail.
+This prevents TypeScript from having to infer the type of `this` inside these functions, which, unfortunately, can cause the type inference to fail. It was a previous [design limitation](https://github.com/microsoft/TypeScript/issues/38845), and now has been improved in [TypeScript 4.7](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#improved-function-inference-in-objects-and-methods).
## Typing Component Emits
From 63065f816c6d42483ba96a7ea74b37bd1067d7b4 Mon Sep 17 00:00:00 2001
From: Evan You
Date: Tue, 26 Jul 2022 10:32:18 +0800
Subject: [PATCH 008/927] chore: remove VueMastery banner
---
.../theme/components/VueMasteryBanner.vue | 308 ------------------
.vitepress/theme/index.ts | 6 +-
2 files changed, 2 insertions(+), 312 deletions(-)
delete mode 100644 .vitepress/theme/components/VueMasteryBanner.vue
diff --git a/.vitepress/theme/components/VueMasteryBanner.vue b/.vitepress/theme/components/VueMasteryBanner.vue
deleted file mode 100644
index 0ed2846585..0000000000
--- a/.vitepress/theme/components/VueMasteryBanner.vue
+++ /dev/null
@@ -1,308 +0,0 @@
-
-