-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename
vike-pinia
to vike-vue-pinia
BREAKING CHANGE: all references to `vike-pinia` should be replaced with `vike-vue-pinia` b3c0c
- Loading branch information
Showing
30 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[<img src="https://vike.dev/vike-readme.svg" align="right" height="90">](https://vike.dev) | ||
|
||
# `vike-{vue,pinia,vue-query}` | ||
# `vike-{vue,vue-pinia,vue-query}` | ||
|
||
[Vike extensions](https://vike.dev/extensions) for Vue: | ||
- [`vike-vue`](packages/vike-vue/) | ||
- [Changelog](packages/vike-vue/CHANGELOG.md) | ||
- [`vike-pinia`](packages/vike-pinia/) | ||
- [Changelog](packages/vike-pinia/CHANGELOG.md) | ||
- [`vike-vue-pinia`](packages/vike-vue-pinia/) | ||
- [Changelog](packages/vike-vue-pinia/CHANGELOG.md) | ||
- [`vike-vue-query`](packages/vike-vue-query/) | ||
- [Changelog](packages/vike-vue-query/CHANGELOG.md) |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Example of using [Pinia](https://pinia.vuejs.org/) with the `vike-pinia` extension. | ||
Example of using [Pinia](https://pinia.vuejs.org/) with the `vike-vue-pinia` extension. | ||
|
||
```bash | ||
git clone git@github.com:vikejs/vike-vue | ||
cd vike-vue/ | ||
pnpm install | ||
cd examples/pinia/ | ||
cd examples/vue-pinia/ | ||
pnpm run dev | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
packages/vike-pinia/README.md → packages/vike-vue-pinia/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!-- WARNING: keep links absolute in this file so they work on NPM too --> | ||
|
||
[<img src="https://vike.dev/vike-readme.svg" align="right" height="90">](https://vike.dev) | ||
[![npm version](https://img.shields.io/npm/v/vike-pinia)](https://www.npmjs.com/package/vike-pinia) | ||
[![npm version](https://img.shields.io/npm/v/vike-vue-pinia)](https://www.npmjs.com/package/vike-vue-pinia) | ||
|
||
# `vike-pinia` | ||
# `vike-vue-pinia` | ||
|
||
Pinia integration for Vike, see [vike.dev/pinia](https://vike.dev/pinia). | ||
|
||
- [Documentation](https://vike.dev) | ||
- [Example](https://github.com/vikejs/vike-vue/tree/main/examples/pinia) | ||
- [Changelog](https://github.com/vikejs/vike-vue/blob/main/packages/vike-pinia/CHANGELOG.md) | ||
- [Changelog](https://github.com/vikejs/vike-vue/blob/main/packages/vike-vue-pinia/CHANGELOG.md) |
2 changes: 1 addition & 1 deletion
2
packages/vike-pinia/package.json → packages/vike-vue-pinia/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { Pinia, StateTree } from 'pinia' | ||
|
||
export default { | ||
name: 'vike-vue-pinia', | ||
onCreateApp: 'import:vike-vue-pinia/renderer/installPinia:installPinia', | ||
onAfterRenderSSRApp: 'import:vike-vue-pinia/renderer/dehydratePinia:dehydratePinia', | ||
onBeforeMountApp: 'import:vike-vue-pinia/renderer/hydratePinia:hydratePinia', | ||
} | ||
|
||
declare global { | ||
namespace Vike { | ||
interface PageContext { | ||
pinia?: Pinia | ||
fromHtmlRenderer: { | ||
piniaInitialState?: StateTree | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.