]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: use new docs URL (#914)
authorEvan You <yyx990803@gmail.com>
Tue, 21 Dec 2021 10:26:45 +0000 (18:26 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Dec 2021 10:26:45 +0000 (11:26 +0100)
README.md
packages/docs/.vitepress/config.js
packages/nuxt/README.md
packages/pinia/CHANGELOG.md
packages/pinia/README.md
packages/pinia/src/devtools/plugin.ts
packages/pinia/src/vue2-plugin.ts

index 084bf622df7a93997ac1831ade4d5e73ffe7a7de..91abc43d0f3aa4167787f35161a467b0dc4a33e2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 <p align="center">
-  <a href="https://pinia.esm.dev" target="_blank" rel="noopener noreferrer">
-    <img width="180" src="https://pinia.esm.dev/logo.svg" alt="Pinia logo">
+  <a href="https://pinia.vuejs.org" target="_blank" rel="noopener noreferrer">
+    <img width="180" src="https://pinia.vuejs.org/logo.svg" alt="Pinia logo">
   </a>
 </p>
 <br/>
@@ -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
 
index 2ea83e02c0b94fdb778bf8929180119b2e0cebe9..6b3e97dcd32bf022c9acb2b15086ea16aecef983 100644 (file)
@@ -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
 
index ffa8fac76cf590a068be589b05575406d814886f..6e37477e525e1263034c5184152beac3a54b0e40 100644 (file)
@@ -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
 
index 31648cfcf771d73263d0b0c2b8761b30f232fb83..196e1dc76036aa71ccb439ec45245ad2b1437d8a 100644 (file)
@@ -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)
 
index 2013ed92a19860b6bb134f9f1bca497c4e3bd9a3..d73d322c03898bdd3be0eabd6d49e90b72dd5c43 100644 (file)
@@ -1,6 +1,6 @@
 <p align="center">
-  <a href="https://pinia.esm.dev" target="_blank" rel="noopener noreferrer">
-    <img width="180" src="https://pinia.esm.dev/logo.svg" alt="Pinia logo">
+  <a href="https://pinia.vuejs.org" target="_blank" rel="noopener noreferrer">
+    <img width="180" src="https://pinia.vuejs.org/logo.svg" alt="Pinia logo">
   </a>
 </p>
 
@@ -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
 
index 423d5dfad6e610d4fd0a4d68472eaade74509b92..4f745f9313f3b72021aad4f8a4cfb5dbcfd26a35 100644 (file)
@@ -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: {
index cb1d64270d7b9c7bc94e020b3aae41d0739c415b..293f6d83e08315ea1f5281a974da11d1654d6a8d 100644 (file)
@@ -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