From: Evan You Date: Tue, 21 Dec 2021 10:26:45 +0000 (+0800) Subject: docs: use new docs URL (#914) X-Git-Tag: @pinia/nuxt@0.1.8~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7b2c79f12c9baebcddef9b55ce038a19eff5c9d;p=thirdparty%2Fvuejs%2Fpinia.git docs: use new docs URL (#914) --- diff --git a/README.md b/README.md index 084bf622..91abc43d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- - Pinia logo + + Pinia logo


@@ -107,7 +107,7 @@ A few notes about the project and possible questions: **Q**: _What about dynamic modules?_ -**A**: Dynamic modules are not type safe, so instead [we allow creating different stores](https://pinia.esm.dev/cookbook/composing-stores.html) that can be imported anywhere +**A**: Dynamic modules are not type safe, so instead [we allow creating different stores](https://pinia.vuejs.org/cookbook/composing-stores.html) that can be imported anywhere ## Roadmap / Ideas @@ -202,7 +202,7 @@ export default defineComponent({ ## Documentation -To learn more about Pinia, check [its documentation](https://pinia.esm.dev). +To learn more about Pinia, check [its documentation](https://pinia.vuejs.org). ## License diff --git a/packages/docs/.vitepress/config.js b/packages/docs/.vitepress/config.js index 2ea83e02..6b3e97dc 100644 --- a/packages/docs/.vitepress/config.js +++ b/packages/docs/.vitepress/config.js @@ -1,10 +1,10 @@ // @ts-check -const META_URL = 'https://pinia.esm.dev' +const META_URL = 'https://pinia.vuejs.org' const META_TITLE = 'Pinia 🍍' const META_DESCRIPTION = 'Intuitive, type safe, light and flexible Store for Vue' -const META_IMAGE = 'https://pinia.esm.dev/social.png' +const META_IMAGE = 'https://pinia.vuejs.org/social.png' const isProduction = process.env.NODE_ENV diff --git a/packages/nuxt/README.md b/packages/nuxt/README.md index ffa8fac7..6e37477e 100644 --- a/packages/nuxt/README.md +++ b/packages/nuxt/README.md @@ -18,7 +18,7 @@ export default { } ``` -Note you also need `@nuxtjs/composition-api` if you are using Nuxt 2 without Bridge. [Refer to docs for more](https://pinia.esm.dev/ssr/nuxt.html). +Note you also need `@nuxtjs/composition-api` if you are using Nuxt 2 without Bridge. [Refer to docs for more](https://pinia.vuejs.org/ssr/nuxt.html). ## License diff --git a/packages/pinia/CHANGELOG.md b/packages/pinia/CHANGELOG.md index 31648cfc..196e1dc7 100644 --- a/packages/pinia/CHANGELOG.md +++ b/packages/pinia/CHANGELOG.md @@ -48,7 +48,7 @@ ## [2.0.1](https://github.com/vuejs/pinia/compare/pinia@2.0.0...pinia@2.0.1) (2021-11-03) -This release correctly removes the deprecated APIs as advertised in v2. The [documentation](https://pinia.esm.dev/cookbook/migration-v1-v2.html) contains a list of all the deprecations compared to v0.x. +This release correctly removes the deprecated APIs as advertised in v2. The [documentation](https://pinia.vuejs.org/cookbook/migration-v1-v2.html) contains a list of all the deprecations compared to v0.x. ### Bug Fixes @@ -237,7 +237,7 @@ It contains major improvements: - Performance: Pinia now uses `effectScope()`, effectively reducing memory consumption and removing the drawbacks mentioned in the Plugin section about `useStore()` creating multiple store instances (still sharing the state). - Devtools: Many improvements over the information displayed in devtools as well as a few bugfixes -- HMR (Hot Module Replacement): You can now modify your stores without reloading the page and losing the state, making development much easier. Until 3.2.0 (stable) is released, you can find an example [in the playground](https://github.com/vuejs/pinia/blob/2b98eafe441ea7e9a3ff3cef122c24eb5fa03f1d/playground/src/stores/counter.ts#L66-L68). After that, you can read up to date instructions [in the documentation](https://pinia.esm.dev/cookbook/hot-module-replacement.html). +- HMR (Hot Module Replacement): You can now modify your stores without reloading the page and losing the state, making development much easier. Until 3.2.0 (stable) is released, you can find an example [in the playground](https://github.com/vuejs/pinia/blob/2b98eafe441ea7e9a3ff3cef122c24eb5fa03f1d/playground/src/stores/counter.ts#L66-L68). After that, you can read up to date instructions [in the documentation](https://pinia.vuejs.org/cookbook/hot-module-replacement.html). - Setup syntax: You can now define stores with a function instead of options. This enables more complex patterns. See an example [in the playground](https://github.com/vuejs/pinia/blob/75f1fe6aa4ef2629ae1c9840a2d4542ac6e62686/playground/src/stores/jokes-swrv.ts). Setup Stores are unable to group actions like Option Stores due to their very permissive syntax. - Option syntax: we can now pass the `id` as the first parameter. This syntax is preferred over the object syntax to be consistent with the Setup syntax. @@ -424,7 +424,7 @@ It contains major improvements: }) ``` - For more information, refer to [the updated documentation for getters](https://pinia.esm.dev/core-concepts/getters.html). + For more information, refer to [the updated documentation for getters](https://pinia.vuejs.org/core-concepts/getters.html). - **plugins:** To improve the plugin api capabilities, `pinia.use()` now receives a context object instead of just `app`: @@ -436,7 +436,7 @@ It contains major improvements: pinia.use(({ app }) => {}) ``` - Check the new documentation for [Plugins](https://pinia.esm.dev/core-concepts/plugins.html)! + Check the new documentation for [Plugins](https://pinia.vuejs.org/core-concepts/plugins.html)! # [2.0.0-alpha.13](https://github.com/vuejs/pinia/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2021-04-10) diff --git a/packages/pinia/README.md b/packages/pinia/README.md index 2013ed92..d73d322c 100644 --- a/packages/pinia/README.md +++ b/packages/pinia/README.md @@ -1,6 +1,6 @@

- - Pinia logo + + Pinia logo

@@ -17,7 +17,7 @@ ## Documentation -To learn more about Pinia, check [its documentation](https://pinia.esm.dev). +To learn more about Pinia, check [its documentation](https://pinia.vuejs.org). ## License diff --git a/packages/pinia/src/devtools/plugin.ts b/packages/pinia/src/devtools/plugin.ts index 423d5dfa..4f745f93 100644 --- a/packages/pinia/src/devtools/plugin.ts +++ b/packages/pinia/src/devtools/plugin.ts @@ -56,9 +56,9 @@ export function registerPiniaDevtools(app: DevtoolsApp, pinia: Pinia) { { id: 'dev.esm.pinia', label: 'Pinia 🍍', - logo: 'https://pinia.esm.dev/logo.svg', + logo: 'https://pinia.vuejs.org/logo.svg', packageName: 'pinia', - homepage: 'https://pinia.esm.dev', + homepage: 'https://pinia.vuejs.org', componentStateTypes, app, }, @@ -265,9 +265,9 @@ function addStoreToDevtools(app: DevtoolsApp, store: StoreGeneric) { { id: 'dev.esm.pinia', label: 'Pinia 🍍', - logo: 'https://pinia.esm.dev/logo.svg', + logo: 'https://pinia.vuejs.org/logo.svg', packageName: 'pinia', - homepage: 'https://pinia.esm.dev', + homepage: 'https://pinia.vuejs.org', componentStateTypes, app, settings: { diff --git a/packages/pinia/src/vue2-plugin.ts b/packages/pinia/src/vue2-plugin.ts index cb1d6427..293f6d83 100644 --- a/packages/pinia/src/vue2-plugin.ts +++ b/packages/pinia/src/vue2-plugin.ts @@ -6,7 +6,7 @@ import { Pinia, piniaSymbol, setActivePinia } from './rootStore' /** * Vue 2 Plugin that must be installed for pinia to work. Note **you don't need * this plugin if you are using Nuxt.js**. Use the `buildModule` instead: - * https://pinia.esm.dev/ssr/nuxt.html. + * https://pinia.vuejs.org/ssr/nuxt.html. * * @example * ```js