Skip to content

Commit e4bd328

Browse files
authored
docs: Change from 'Nuxt.js' to 'Nuxt' (#2924)
* docs: update Nuxt.js references to Nuxt * docs: update references from Nuxt.js to Nuxt * docs: update references from Nuxt.js to Nuxt in English and Chinese configurations * docs: update references from Nuxt.js to Nuxt in Chinese documentation
1 parent 6a02b7a commit e4bd328

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

packages/docs/.vitepress/config/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
9999
link: '/ssr/',
100100
},
101101
{
102-
text: 'Nuxt.js',
102+
text: 'Nuxt',
103103
link: '/ssr/nuxt.html',
104104
},
105105
],

packages/docs/.vitepress/config/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
113113
link: '/zh/ssr/',
114114
},
115115
{
116-
text: 'Nuxt.js',
116+
text: 'Nuxt',
117117
link: '/zh/ssr/nuxt.html',
118118
},
119119
],

packages/docs/ssr/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/>
77

88
:::tip
9-
If you are using **Nuxt.js,** you need to read [**these instructions**](./nuxt.md) instead.
9+
If you are using **Nuxt,** you need to read [**these instructions**](./nuxt.md) instead.
1010
:::
1111

1212
Creating stores with Pinia should work out of the box for SSR as long as you call your `useStore()` functions at the top of `setup` functions, `getters` and `actions`:
@@ -63,7 +63,7 @@ onServerPrefetch(async () => {
6363

6464
## State hydration
6565

66-
To hydrate the initial state, you need to make sure the rootState is included somewhere in the HTML for Pinia to pick it up later on. Depending on what you are using for SSR, **you should escape the state for security reasons**. We recommend using [devalue](https://github.com/Rich-Harris/devalue) which is the one used by Nuxt.js:
66+
To hydrate the initial state, you need to make sure the rootState is included somewhere in the HTML for Pinia to pick it up later on. Depending on what you are using for SSR, **you should escape the state for security reasons**. We recommend using [devalue](https://github.com/Rich-Harris/devalue) which is the one used by Nuxt:
6767

6868
```js
6969
import devalue from 'devalue'

packages/docs/ssr/nuxt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nuxt.js
1+
# Nuxt
22

33
<MasteringPiniaLink
44
href="https://masteringpinia.com/lessons/ssr-friendly-state"

packages/docs/zh/api/modules/pinia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ Store augmented with getters. For internal usage only.
552552
**PiniaVuePlugin**: `Plugin`
553553

554554
Vue 2 插件,必须安装该插件才能使 pinia 工作。
555-
注意,**如果你使用的是 Nuxt.js,那你不需要这个插件**。请使用 `buildModule` 代替:
555+
注意,**如果你使用的是 Nuxt,那你不需要这个插件**。请使用 `buildModule` 代替:
556556
<https://pinia.vuejs.org/zh/ssr/nuxt.html>
557557

558558
**`Example`**

packages/docs/zh/core-concepts/plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ declare module 'pinia' {
397397
还有一个可以从一个 store 类型中提取 _getter_`StoreGetters` 类型。你也可以且**只可以**通过扩展 `DefineStoreOptions``DefineSetupStoreOptions` 类型来扩展 _setup store__option store_ 的选项。
398398
:::
399399

400-
## Nuxt.js %{#nuxt-js}%
400+
## Nuxt %{#nuxt}%
401401

402402
[在 Nuxt 中使用 pinia](../ssr/nuxt.md) 时,你必须先创建一个 [Nuxt 插件](https://nuxt.com/docs/guide/directory-structure/plugins)。这样你才能访问到 `pinia` 实例:
403403

@@ -429,9 +429,9 @@ export default myPlugin
429429

430430
:::
431431

432-
### Nuxt.js 2
432+
### Nuxt 2
433433

434-
如果你使用的是 Nuxt.js 2,其类型会稍有不同:
434+
如果你使用的是 Nuxt 2,其类型会稍有不同:
435435

436436
```ts{3,15-17}
437437
// plugins/myPiniaPlugin.ts

packages/docs/zh/ssr/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/>
77

88
:::tip
9-
如果你使用的是 **Nuxt.js**,你需要阅读的是[**这些说明文档**](./nuxt.md)
9+
如果你使用的是 **Nuxt**,你需要阅读的是[**这些说明文档**](./nuxt.md)
1010
:::
1111

1212
只要你只在 `setup` 函数、`getter``action` 的顶部调用你定义的 `useStore()` 函数,那么使用 Pinia 创建 store 对于 SSR 来说应该是开箱即用的:
@@ -51,7 +51,7 @@ export default {
5151

5252
## State 激活 %{#state-hydration}%
5353

54-
为了激活初始 state,你需要确保 rootState 包含在 HTML 中的某个地方,以便 Pinia 稍后能够接收到它。根据你服务端所渲染的内容,**为了安全你应该转义 state**。我们推荐 Nuxt.js 目前使用的 [@nuxt/devalue](https://github.com/nuxt-contrib/devalue)
54+
为了激活初始 state,你需要确保 rootState 包含在 HTML 中的某个地方,以便 Pinia 稍后能够接收到它。根据你服务端所渲染的内容,**为了安全你应该转义 state**。我们推荐 Nuxt 目前使用的 [@nuxt/devalue](https://github.com/nuxt-contrib/devalue)
5555

5656
```js
5757
import devalue from '@nuxt/devalue'

packages/docs/zh/ssr/nuxt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nuxt.js %{#nuxt-js}%
1+
# Nuxt %{#nuxt}%
22

33
<MasteringPiniaLink
44
href="https://masteringpinia.com/lessons/ssr-friendly-state"

0 commit comments

Comments
 (0)