Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
617
VApp/node_modules/vuex/CHANGELOG.md
generated
vendored
Normal file
617
VApp/node_modules/vuex/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,617 @@
|
||||
# [4.1.0](https://github.com/vuejs/vuex/compare/v4.0.2...v4.1.0) (2022-10-14)
|
||||
|
||||
### Vue Core Version Requirement Change
|
||||
|
||||
**This release contains an important fix (#1883) that relies on the `effectScope` API from Vue core, which is only available in Vue 3.2+.**
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **build:** node deprecated warning in export module ([#2048](https://github.com/vuejs/vuex/issues/2048)) ([397e9fb](https://github.com/vuejs/vuex/commit/397e9fba45c8b4ec0c4a33d2578e34829bd348d7))
|
||||
* getters being destroyed on component destroy ([#1878](https://github.com/vuejs/vuex/issues/1878)) ([#1883](https://github.com/vuejs/vuex/issues/1883)) ([b2f851f](https://github.com/vuejs/vuex/commit/b2f851f427aa872d1e4f5a4774e07c4c69562789))
|
||||
|
||||
|
||||
|
||||
## [4.0.2](https://github.com/vuejs/vuex/compare/v4.0.1...v4.0.2) (2021-06-17)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **devtools:** fix no getters displayed on root module + better getters inspector ([#1986](https://github.com/vuejs/vuex/issues/1986)) ([bc20295](https://github.com/vuejs/vuex/commit/bc20295331eb2bee40d6ae779d1ada31c542604c))
|
||||
* **build:** cjs build failing due to `__VUE_PROD_DEVTOOLS__` defined ([#1991](https://github.com/vuejs/vuex/issues/1991)) ([#1992](https://github.com/vuejs/vuex/issues/1992)) ([7151622](https://github.com/vuejs/vuex/commit/7151622d646968686546f1c4c80f7575c9b99176))
|
||||
|
||||
## [4.0.1](https://github.com/vuejs/vuex/compare/v4.0.0...v4.0.1) (2021-05-24)
|
||||
|
||||
### Features
|
||||
|
||||
* dx: add devtools integration ([#1949](https://github.com/vuejs/vuex/pull/1949))
|
||||
|
||||
# [4.0.0](https://github.com/vuejs/vuex/compare/v4.0.0-rc.2...v4.0.0) (2021-02-02)
|
||||
|
||||
This is the official Vuex 4 release.
|
||||
|
||||
The focus for Vuex 4 is compatibility. Vuex 4 supports Vue 3, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code with Vue 3.
|
||||
|
||||
There are a few breaking changes described in a later section, so please check them out.
|
||||
|
||||
You can find basic usage with both Option and Composition API in the `example` directory.
|
||||
|
||||
It's still released under `next` tag in NPM package as same as Vue 3. We're planning to remove `next` tag once Vue 3 is ready to remove it.
|
||||
|
||||
There have been a lot of contribution to make Vuex 4 stable. Thank you all for your very much appreciated help. It wouldn't have been possible without this wonderful Vue community!
|
||||
|
||||
## Documentation
|
||||
|
||||
To check out docs, visit [next.vuex.vuejs.org](https://next.vuex.vuejs.org/).
|
||||
|
||||
## Breaking changes
|
||||
|
||||
### Installation process has changed
|
||||
|
||||
To align with the new Vue 3 initialization process, the installation process of Vuex has changed.
|
||||
|
||||
To create a new store instance, users are now encouraged to use the newly introduced `createStore` function.
|
||||
|
||||
```js
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
export const store = createStore({
|
||||
state() {
|
||||
return {
|
||||
count: 1
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
> Whilst this is not technically a breaking change, you may still use the `new Store(...)` syntax, we recommend this approach to align with Vue 3 and Vue Router Next.
|
||||
|
||||
To install Vuex to a Vue instance, pass the store instance instead of Vuex.
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue'
|
||||
import { store } from './store'
|
||||
import App from './App.vue'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(store)
|
||||
|
||||
app.mount('#app')
|
||||
```
|
||||
|
||||
### Bundles are now aligned with Vue 3
|
||||
|
||||
The following bundles are generated to align with Vue 3 bundles:
|
||||
|
||||
- `vuex.global(.prod).js`
|
||||
- For direct use with `<script src="...">` in the browser. Exposes the Vuex global.
|
||||
- Global build is built as IIFE, and not UMD, and is only meant for direct use with `<script src="...">`.
|
||||
- Contains hard-coded prod/dev branches and the prod build is pre-minified. Use the `.prod.js` files for production.
|
||||
- `vuex.esm-browser(.prod).js`
|
||||
- For use with native ES module imports (including module supporting browsers via `<script type="module">`.
|
||||
- `vuex.esm-bundler.js`
|
||||
- For use with bundlers such as `webpack`, `rollup` and `parcel`.
|
||||
- Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler).
|
||||
- Does not ship minified builds (to be done together with the rest of the code after bundling).
|
||||
- `vuex.cjs.js`
|
||||
- For use in Node.js server-side rendering with `require()`.
|
||||
|
||||
### Typings for `ComponentCustomProperties`
|
||||
|
||||
Vuex 4 removes its global typings for `this.$store` within Vue Component to solve [issue #994](https://github.com/vuejs/vuex/issues/994). When used with TypeScript, you must declare your own module augmentation.
|
||||
|
||||
Place the following code in your project to allow `this.$store` to be typed correctly:
|
||||
|
||||
```ts
|
||||
// vuex-shim.d.ts
|
||||
|
||||
import { ComponentCustomProperties } from 'vue'
|
||||
import { Store } from 'vuex'
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
// Declare your own store states.
|
||||
interface State {
|
||||
count: number
|
||||
}
|
||||
|
||||
interface ComponentCustomProperties {
|
||||
$store: Store<State>
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### `createLogger` function is exported from the core module
|
||||
|
||||
In Vuex 3, `createLogger` function was exported from `vuex/dist/logger` but it's now included in the core package. You should import the function directly from `vuex` package.
|
||||
|
||||
```js
|
||||
import { createLogger } from 'vuex'
|
||||
```
|
||||
|
||||
### Bug Fixes Included Since 4.0.0-rc.2
|
||||
|
||||
* export missing `storeKey` ([4ab2947](https://github.com/vuejs/vuex/commit/4ab294793a2c20ea6040f01f316618682df61fff))
|
||||
* fix tree shaking notworking in webpack bundle ([#1906](https://github.com/vuejs/vuex/issues/1906)) ([#1907](https://github.com/vuejs/vuex/issues/1907)) ([aeddf7a](https://github.com/vuejs/vuex/commit/aeddf7a7c618eda7f316f8a6ace8d21eb96c29ff))
|
||||
|
||||
# [4.0.0-rc.2](https://github.com/vuejs/vuex/compare/v4.0.0-rc.1...v4.0.0-rc.2) (2020-11-25)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix getters stop working when component is destroyed ([#1884](https://github.com/vuejs/vuex/issues/1884)) ([c3a695e](https://github.com/vuejs/vuex/commit/c3a695e10682ab1b7288e72669861c9ca959df76))
|
||||
* stop throwing an error on `hasModule` when parent does not exists ([#1850](https://github.com/vuejs/vuex/issues/1850)) ([f76d72d](https://github.com/vuejs/vuex/commit/f76d72d6c1f7cd30de9d459e23c371890c56f463))
|
||||
|
||||
### Features
|
||||
|
||||
* **build:** enable named esm module import on node.js >= 14 ([4f4a909](https://github.com/vuejs/vuex/commit/4f4a9096b46aa61580c32371adb19445157ba80c))
|
||||
|
||||
# [4.0.0-rc.1](https://github.com/vuejs/vuex/compare/v4.0.0-beta.4...v4.0.0-rc.1) (2020-10-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix getters getting re-evaluated on every access ([#1823](https://github.com/vuejs/vuex/issues/1823)) ([#1860](https://github.com/vuejs/vuex/issues/1860)) ([0006765](https://github.com/vuejs/vuex/commit/0006765ca3c5641ef732bad9df58e01f05c6f19c))
|
||||
* **types:** add lost argument of useStore ([#1803](https://github.com/vuejs/vuex/issues/1803)) ([657afe3](https://github.com/vuejs/vuex/commit/657afe3db42c8d1d721216955fc2be3132e9fe6c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **types:** adding logger type for logger plugin ([#1853](https://github.com/vuejs/vuex/issues/1853)) ([cb3198d](https://github.com/vuejs/vuex/commit/cb3198d5998bdb11ef05dfa5ef98d5c5fa873089))
|
||||
|
||||
|
||||
|
||||
## [3.5.1](https://github.com/vuejs/vuex/compare/v4.0.0-beta.3...v3.5.1) (2020-06-29)
|
||||
|
||||
|
||||
|
||||
# [4.0.0-beta.4](https://github.com/vuejs/vuex/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2020-06-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **types:** add missing `logger.d.ts` file to the package ([#1789](https://github.com/vuejs/vuex/issues/1789)) ([a477334](https://github.com/vuejs/vuex/commit/a477334b909913f6a92bdbedcf4a3016a62eab7a))
|
||||
* warn when unregistering non existing module ([#1786](https://github.com/vuejs/vuex/issues/1786)) ([7cec79d](https://github.com/vuejs/vuex/commit/7cec79d339b874ec41f35891c891dfd27460c1d3))
|
||||
|
||||
|
||||
|
||||
# [3.5.0](https://github.com/vuejs/vuex/compare/v4.0.0-beta.2...v3.5.0) (2020-06-29)
|
||||
|
||||
|
||||
|
||||
# [4.0.0-beta.3](https://github.com/vuejs/vuex/compare/v4.0.0-beta.2...v4.0.0-beta.3) (2020-06-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* UMD bundle containing `process.env` flag ([#1749](https://github.com/vuejs/vuex/issues/1749)) ([0fea8c4](https://github.com/vuejs/vuex/commit/0fea8c44060d08b3b421f1ddaa809fdffbc89b00))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* include `createLogger` function in core export ([afa566d](https://github.com/vuejs/vuex/commit/afa566d7f7b8e516389463b437fbfcb9eafdbd1b))
|
||||
* include logger plugin to the core export ([#1783](https://github.com/vuejs/vuex/issues/1783)) ([04e2bd8](https://github.com/vuejs/vuex/commit/04e2bd8b3509c67398a6fe73a3d53660069feca8))
|
||||
|
||||
|
||||
|
||||
# [3.4.0](https://github.com/vuejs/vuex/compare/4.0.0-beta.2...v3.4.0) (2020-05-11)
|
||||
|
||||
|
||||
|
||||
# [4.0.0-beta.2](https://github.com/vuejs/vuex/compare/v4.0.0-beta.1...v4.0.0-beta.2) (2020-05-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- types: add `useStore` function ([#1736](https://github.com/vuejs/vuex/issues/1736)) [#1739](https://github.com/vuejs/vuex/issues/1736)
|
||||
- build: fix `iife` build containing `process.env`.
|
||||
|
||||
# [4.0.0-beta.1](https://github.com/vuejs/vuex/compare/v3.3.0...v4.0.0-beta.1) (2020-04-25)
|
||||
|
||||
### Features
|
||||
|
||||
- Added TypeScript support.
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
#### Bundles are now aligned with Vue 3
|
||||
|
||||
The bundles are generated as below to align with Vue 3 bundles.
|
||||
|
||||
- `vuex.global(.prod).js`
|
||||
- For direct use via `<script src="...">` in the browser. Exposes the Vuex global.
|
||||
- Note that global builds are not UMD builds. They are built as IIFEs and is only meant for direct use via `<script src="...">`.
|
||||
- Contains hard-coded prod/dev branches, and the prod build is pre-minified. Use the `.prod.js` files for production.
|
||||
- `vuex.esm-browser(.prod).js`
|
||||
- For usage via native ES modules imports (in browser via `<script type="module">`.
|
||||
- `vuex.esm-bundler.js`
|
||||
- For use with bundlers like `webpack`, `rollup` and `parcel`.
|
||||
- Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler).
|
||||
- Does not ship minified builds (to be done together with the rest of the code after bundling).
|
||||
- `vuex.cjs.js`
|
||||
- For use in Node.js server-side rendering via `require()`.
|
||||
|
||||
#### Typings for `ComponentCustomProperties`
|
||||
|
||||
Vuex 4 removes its global typings for `this.$store` within Vue Component due to solving [issue #994](https://github.com/vuejs/vuex/issues/994). When using TypeScript, you must provide your own augment declaration.
|
||||
|
||||
Please place the following code in your project to have `this.$store` working.
|
||||
|
||||
```ts
|
||||
// vuex-shim.d.ts
|
||||
|
||||
declare module "@vue/runtime-core" {
|
||||
// Declare your own store states.
|
||||
interface State {
|
||||
count: number
|
||||
}
|
||||
|
||||
interface ComponentCustomProperties {
|
||||
$store: Store<State>;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
# [4.0.0-alpha.1](https://github.com/vuejs/vuex/compare/v3.1.3...v4.0.0-alpha.1) (2020-03-15)
|
||||
|
||||
|
||||
This is the Vue 3 compatible version of Vuex. The focus is compatibility, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code for Vue 3.
|
||||
|
||||
## Status: Alpha
|
||||
|
||||
All Vuex 3 feature works. There are a few breaking changes described in a later section, so please check them out. You can find basic usage with both option and composition API at `example` folder.
|
||||
|
||||
Please note that it's still unstable, and there might be bugs. Please provide us feedback if you find anything. You may use [vue-next-webpack-preview](https://github.com/vuejs/vue-next-webpack-preview) to test out Vue 3 with Vuex 4.
|
||||
|
||||
## Breaking changes
|
||||
|
||||
### Installation process has changed
|
||||
|
||||
To align with the new Vue 3 initialization process, the installation process of Vuex has changed as well.
|
||||
|
||||
You should use a new `createStore` function to create a new store instance.
|
||||
|
||||
```js
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
const store = createStore({
|
||||
state () {
|
||||
return {
|
||||
count: 1
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
> This is technically not a breaking change because you could still use `new Store(...)` syntax. However, to align with Vue 3 and also with Vue Router Next, we recommend users to use `createStore` function instead.
|
||||
|
||||
Then to install Vuex to Vue app instance, pass the store instance instead of Vuex.
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue'
|
||||
import store from './store'
|
||||
import App from './APP.vue'
|
||||
|
||||
const app = createApp(Counter)
|
||||
|
||||
app.use(store)
|
||||
|
||||
app.mount('#app')
|
||||
```
|
||||
|
||||
## Kown issues
|
||||
|
||||
- The code is kept as close to Vuex 3 code base as possible, and there're plenty of places where we should refactor. However, we are waiting for all of the test cases to pass before doing so (some tests require Vue 3 update).
|
||||
- TypeScript support is not ready yet. Please use JS environment to test this for now.
|
||||
|
||||
|
||||
# [3.4.0](https://github.com/vuejs/vuex/compare/v3.3.0...v3.4.0) (2020-05-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Allow action subscribers to catch rejections. ([#1740](https://github.com/vuejs/vuex/issues/1740)) ([6ebbe64](https://github.com/vuejs/vuex/commit/6ebbe64c5821d19e55a41dc8b1d81cfce6cbd195)), closes [#1489](https://github.com/vuejs/vuex/issues/1489) [#1558](https://github.com/vuejs/vuex/issues/1558) [#1625](https://github.com/vuejs/vuex/issues/1625)
|
||||
|
||||
|
||||
# [3.3.0](https://github.com/vuejs/vuex/compare/v3.2.0...v3.3.0) (2020-04-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Prepend devtool handler ([#1358](https://github.com/vuejs/vuex/issues/1358)) ([a39d076](https://github.com/vuejs/vuex/commit/a39d0767e4041cdd5cf8050774106c01d39024e0)), closes [vuejs/vue-devtools#678](https://github.com/vuejs/vue-devtools/issues/678)
|
||||
* **types:** Add `devtools` to store options type ([#1478](https://github.com/vuejs/vuex/issues/1478)) ([38c11dc](https://github.com/vuejs/vuex/commit/38c11dcbaea7d7e661a1623cabb5aef7c6e47ba7))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Add `prepend` option for `subscribe` and `subscribeAction` ([#1358](https://github.com/vuejs/vuex/issues/1358)) ([a39d076](https://github.com/vuejs/vuex/commit/a39d0767e4041cdd5cf8050774106c01d39024e0))
|
||||
* **logger:** `createLogger` can optionally log actions ([#987](https://github.com/vuejs/vuex/issues/987)) ([18be128](https://github.com/vuejs/vuex/commit/18be128ad933d1fca6da05c060f7664ce0c819ae))
|
||||
|
||||
|
||||
|
||||
# [3.2.0](https://github.com/vuejs/vuex/compare/v3.1.3...v3.2.0) (2020-04-19)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add Store#hasModule(path) API ([#834](https://github.com/vuejs/vuex/issues/834)) ([d65d142](https://github.com/vuejs/vuex/commit/d65d14276e87aca17cfbd3fbf4af9e8dbb808f24))
|
||||
|
||||
|
||||
|
||||
## [3.1.3](https://github.com/vuejs/vuex/compare/v3.1.2...v3.1.3) (2020-03-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Prevent invalidating subscription iterator ([#1438](https://github.com/vuejs/vuex/issues/1438)) ([e012653](https://github.com/vuejs/vuex/commit/e0126533301febf66072f1865cf9a77778cf2176))
|
||||
|
||||
|
||||
|
||||
## [3.1.2](https://github.com/vuejs/vuex/compare/v3.1.1...v3.1.2) (2019-11-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* tweak mapping helper warning message ([#1641](https://github.com/vuejs/vuex/issues/1641)) ([e60bc76](https://github.com/vuejs/vuex/commit/e60bc76154bb05c12b24342617b946d9a6e2f476))
|
||||
* **types:** avoid broadening vue instance type when using map helpers ([#1639](https://github.com/vuejs/vuex/issues/1639)) ([9a96720](https://github.com/vuejs/vuex/commit/9a9672050bcfee198c379069ec0e1b03ca6cb965))
|
||||
* add warnings when the different namespaced modules has the same names… ([#1554](https://github.com/vuejs/vuex/issues/1554)) ([91f3e69](https://github.com/vuejs/vuex/commit/91f3e69ed9e290cf91f8885c6d5ae2c97fa7ab81))
|
||||
* Should vuex mapState print error message [#1093](https://github.com/vuejs/vuex/issues/1093) ([#1297](https://github.com/vuejs/vuex/issues/1297)) ([e5ca2d5](https://github.com/vuejs/vuex/commit/e5ca2d52e89a126bd48bd8a6003be77379960ea9))
|
||||
* Warn about conflicts between state and module ([#1365](https://github.com/vuejs/vuex/issues/1365)) ([538ee58](https://github.com/vuejs/vuex/commit/538ee5803bbca2fc8077208fb30c8d56d8be5cae))
|
||||
* **docs:** Clearify state object type ([#1601](https://github.com/vuejs/vuex/issues/1601)) ([de06f76](https://github.com/vuejs/vuex/commit/de06f76380e7429489c0eb15acc8e0b34a383860))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* Implementing a cache for the gettersProxy object creation ([#1546](https://github.com/vuejs/vuex/issues/1546)) ([4003382](https://github.com/vuejs/vuex/commit/40033825b7259c2e9b702bdf94e0b24ed4511d7c))
|
||||
|
||||
|
||||
|
||||
## [3.1.1](https://github.com/vuejs/vuex/compare/v3.1.0...v3.1.1) (2019-05-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Memory leak happening while using registerModule/u… ([#1508](https://github.com/vuejs/vuex/issues/1508)) ([cb9986a](https://github.com/vuejs/vuex/commit/cb9986ae5a62e002a1d876e881ee5f31dd410888)), closes [issue#1507](https://github.com/issue/issues/1507)
|
||||
* **types:** Make mutation and action payload optional in definition file ([#1517](https://github.com/vuejs/vuex/issues/1517)) ([0e109e2](https://github.com/vuejs/vuex/commit/0e109e2a38dafdc0c2bd6bd3892bc66cfe252b16)), closes [#1491](https://github.com/vuejs/vuex/issues/1491)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **devtool:** allow usage in non-browser environments ([#1404](https://github.com/vuejs/vuex/issues/1404)) ([665455f](https://github.com/vuejs/vuex/commit/665455f8daf8512e7adbf63c2842bc0b1e39efdb))
|
||||
* **esm build:** build ES modules for browser ([#1533](https://github.com/vuejs/vuex/issues/1533)) ([d7c7f98](https://github.com/vuejs/vuex/commit/d7c7f9844831f98c5c9aaca213746c4ccc5d6929))
|
||||
|
||||
|
||||
|
||||
# [3.1.0](https://github.com/vuejs/vuex/compare/v3.0.1...v3.1.0) (2019-01-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **types:** add helpers to default export type declaration as in sources ([#1408](https://github.com/vuejs/vuex/issues/1408)) ([404d0de](https://github.com/vuejs/vuex/commit/404d0de9531322a1a462e53dfd858d20f0bd99af))
|
||||
* **types:** add type annotation for the context of actions ([#1322](https://github.com/vuejs/vuex/issues/1322)) ([d1b5c66](https://github.com/vuejs/vuex/commit/d1b5c66961ab53e0172cbc706ff616227bcb5c77))
|
||||
* **types:** allow a function type for root `state` option ([#1132](https://github.com/vuejs/vuex/issues/1132)) ([d39791b](https://github.com/vuejs/vuex/commit/d39791bd05830b1889705761ef5779449e35e97f))
|
||||
* Add key to v-for ([#1369](https://github.com/vuejs/vuex/issues/1369)) ([a9bd047](https://github.com/vuejs/vuex/commit/a9bd047ea147cacfcb4003946aeebccd2c5e1e4e))
|
||||
* avoid to call root state function twice ([#1034](https://github.com/vuejs/vuex/issues/1034)) ([86677eb](https://github.com/vuejs/vuex/commit/86677ebcbfaecf712f339b73a568150fc9fd5f5e))
|
||||
* fix [#1032](https://github.com/vuejs/vuex/issues/1032), relax vue typing in helpers ([#1044](https://github.com/vuejs/vuex/issues/1044)) ([7c7ed1d](https://github.com/vuejs/vuex/commit/7c7ed1d37ee8a5058082d763d80529e5fef86a0b))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add ability to turn off devtools on vuex by passing an off options ([#1407](https://github.com/vuejs/vuex/issues/1407)) ([be75d41](https://github.com/vuejs/vuex/commit/be75d41cf54d50177a7db7e9218e8d1c820ae830))
|
||||
* ensure errors in action subscribers do not break actions ([acd7249](https://github.com/vuejs/vuex/commit/acd72492eaffff3661f75860a3d7ab37b73c3906))
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* Revert "Update util find (#1205)" (fix #1286) ([273bf86](https://github.com/vuejs/vuex/commit/273bf86b330ee580a73176c300919996b7d9c2c3)), closes [#1286](https://github.com/vuejs/vuex/issues/1286)
|
||||
|
||||
|
||||
|
||||
## [3.0.1](https://github.com/vuejs/vuex/compare/v3.0.0...v3.0.1) (2017-11-01)
|
||||
|
||||
|
||||
|
||||
# [3.0.0](https://github.com/vuejs/vuex/compare/v2.5.0...v3.0.0) (2017-10-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **typings:** adapt to the new Vue typings ([#909](https://github.com/vuejs/vuex/issues/909)) ([65dbfec](https://github.com/vuejs/vuex/commit/65dbfec40d5fe7aac05aab333c7b70768997ca7f))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **typings:** It is no longer compatible with the old Vue typings
|
||||
|
||||
* chore(package): bump typescript and vue core typings
|
||||
|
||||
* chore: bump vue
|
||||
|
||||
* Update package.json
|
||||
|
||||
|
||||
|
||||
# [2.5.0](https://github.com/vuejs/vuex/compare/v2.4.1...v2.5.0) (2017-10-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* initialize root state as an empty object if state function returns no value ([#927](https://github.com/vuejs/vuex/issues/927)) ([0e9756b](https://github.com/vuejs/vuex/commit/0e9756b93c5de8e03286d93f0b50af5f8dfd3bac))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add logger plugin logger config support ([#771](https://github.com/vuejs/vuex/issues/771)) ([804c3bb](https://github.com/vuejs/vuex/commit/804c3bbd2e60f11412f5a7cb7694969f8f6c215c))
|
||||
* preserve state with registerModule ([#837](https://github.com/vuejs/vuex/issues/837)) ([4c1841e](https://github.com/vuejs/vuex/commit/4c1841e79e63ca0ca95d0cc1b218fde258f23c20))
|
||||
* root actions in namespaced modules ([#941](https://github.com/vuejs/vuex/issues/941)) ([73189eb](https://github.com/vuejs/vuex/commit/73189eb35509de7d49bd2b577900ad560d37dcb0))
|
||||
* subscribeAction ([#960](https://github.com/vuejs/vuex/issues/960)) ([a8326b1](https://github.com/vuejs/vuex/commit/a8326b1bd77158e7e5903eed4cc98b52599e3dbd))
|
||||
|
||||
|
||||
|
||||
## [2.4.1](https://github.com/vuejs/vuex/compare/v2.4.0...v2.4.1) (2017-09-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* allow installation on extended Vue copies ([c87b72f](https://github.com/vuejs/vuex/commit/c87b72f2ff7f65e708c4b59a752ef234d0f28d1f))
|
||||
* link to details of mutations in components ([#930](https://github.com/vuejs/vuex/issues/930)) ([e82782b](https://github.com/vuejs/vuex/commit/e82782ba81c398dd5b78a195257a9d1c3a6d85ef))
|
||||
* move auto installation code into the store constructor ([#914](https://github.com/vuejs/vuex/issues/914)) ([852ac43](https://github.com/vuejs/vuex/commit/852ac43ea4813ecaeb1e5106c4a29c74e57c2fd7))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* allow to passing functions in mapActions/mapMutations (fix [#750](https://github.com/vuejs/vuex/issues/750)) ([#924](https://github.com/vuejs/vuex/issues/924)) ([be15f32](https://github.com/vuejs/vuex/commit/be15f32c0077d8fe9bafa38c1b319b655cfd5f86))
|
||||
|
||||
|
||||
|
||||
# [2.4.0](https://github.com/vuejs/vuex/compare/v2.3.0...v2.4.0) (2017-08-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **typings:** watch() returns an unwatch function ([#922](https://github.com/vuejs/vuex/issues/922)) ([a4bd081](https://github.com/vuejs/vuex/commit/a4bd0816838cc4a843d833363b9aa412c1256e5e))
|
||||
* add missing typings and docs of createNamespacedHelpers ([#910](https://github.com/vuejs/vuex/issues/910)) ([7ad573b](https://github.com/vuejs/vuex/commit/7ad573bba59d23dbd66e3a25e6614296aeb98d42))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **store:** bind mutation and action handlers to store ([#872](https://github.com/vuejs/vuex/issues/872)) ([67da622](https://github.com/vuejs/vuex/commit/67da6225552e46266ed059c7f0d0128294cd08ed))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* do not connect devtools if Vue.config.devtools == false ([#881](https://github.com/vuejs/vuex/issues/881)) ([dd7f817](https://github.com/vuejs/vuex/commit/dd7f8178d93e6121a447c410b9c652f40cd80937))
|
||||
|
||||
|
||||
|
||||
# [2.3.0](https://github.com/vuejs/vuex/compare/v2.2.1...v2.3.0) (2017-04-13)
|
||||
|
||||
|
||||
* Add '-loader' suffix to webpack config (#722) ([84b4634](https://github.com/vuejs/vuex/commit/84b463438ea4133f7f326dc18212e3d4b7b5a177)), closes [#722](https://github.com/vuejs/vuex/issues/722)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'babel-loader' instead of 'babel'.
|
||||
My version of webpack: 2.2.0-rc.3
|
||||
Adding the '-loader' suffix fixed the problem.
|
||||
Not sure though how safe it is to use 'babel-loader' instead of 'babel' with previous webpack versions...
|
||||
|
||||
|
||||
|
||||
## [2.2.1](https://github.com/vuejs/vuex/compare/v2.2.0...v2.2.1) (2017-02-26)
|
||||
|
||||
|
||||
|
||||
# [2.2.0](https://github.com/vuejs/vuex/compare/v2.1.2...v2.2.0) (2017-02-26)
|
||||
|
||||
|
||||
|
||||
## [2.1.2](https://github.com/vuejs/vuex/compare/v2.1.1...v2.1.2) (2017-02-06)
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* Revert "Update modules.md (#534)" ([5e145b3](https://github.com/vuejs/vuex/commit/5e145b3a2d45977b52cfff41b3b663f629d67e74)), closes [#534](https://github.com/vuejs/vuex/issues/534)
|
||||
|
||||
|
||||
|
||||
## [2.1.1](https://github.com/vuejs/vuex/compare/v2.1.0...v2.1.1) (2016-12-17)
|
||||
|
||||
|
||||
|
||||
# [2.1.0](https://github.com/vuejs/vuex/compare/v2.0.0...v2.1.0) (2016-12-16)
|
||||
|
||||
|
||||
|
||||
# [2.0.0](https://github.com/vuejs/vuex/compare/v2.0.0-rc.6...v2.0.0) (2016-09-30)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.6](https://github.com/vuejs/vuex/compare/v2.0.0-rc.5...v2.0.0-rc.6) (2016-09-24)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.5](https://github.com/vuejs/vuex/compare/v2.0.0-rc.4...v2.0.0-rc.5) (2016-08-15)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.4](https://github.com/vuejs/vuex/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2016-08-05)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.3](https://github.com/vuejs/vuex/compare/v2.0.0-rc.1...v2.0.0-rc.3) (2016-07-11)
|
||||
|
||||
|
||||
|
||||
# [2.0.0-rc.1](https://github.com/vuejs/vuex/compare/v1.0.0-rc...v2.0.0-rc.1) (2016-07-05)
|
||||
|
||||
|
||||
|
||||
# [1.0.0-rc](https://github.com/vuejs/vuex/compare/v0.8.2...v1.0.0-rc) (2016-07-01)
|
||||
|
||||
|
||||
|
||||
## [0.8.2](https://github.com/vuejs/vuex/compare/v0.8.1...v0.8.2) (2016-06-28)
|
||||
|
||||
|
||||
|
||||
## [0.8.1](https://github.com/vuejs/vuex/compare/v0.8.0...v0.8.1) (2016-06-28)
|
||||
|
||||
|
||||
|
||||
# [0.8.0](https://github.com/vuejs/vuex/compare/v0.7.1...v0.8.0) (2016-06-23)
|
||||
|
||||
|
||||
|
||||
## [0.7.1](https://github.com/vuejs/vuex/compare/v0.7.0...v0.7.1) (2016-06-22)
|
||||
|
||||
|
||||
|
||||
# [0.7.0](https://github.com/vuejs/vuex/compare/v0.6.3...v0.7.0) (2016-06-21)
|
||||
|
||||
|
||||
|
||||
## [0.6.3](https://github.com/vuejs/vuex/compare/v0.6.2...v0.6.3) (2016-04-23)
|
||||
|
||||
|
||||
|
||||
## [0.6.2](https://github.com/vuejs/vuex/compare/v0.6.1...v0.6.2) (2016-03-08)
|
||||
|
||||
|
||||
|
||||
## [0.6.1](https://github.com/vuejs/vuex/compare/v0.6.0...v0.6.1) (2016-03-07)
|
||||
|
||||
|
||||
|
||||
# [0.6.0](https://github.com/vuejs/vuex/compare/v0.5.1...v0.6.0) (2016-03-07)
|
||||
|
||||
|
||||
|
||||
## [0.5.1](https://github.com/vuejs/vuex/compare/v0.5.0...v0.5.1) (2016-03-04)
|
||||
|
||||
|
||||
|
||||
# [0.5.0](https://github.com/vuejs/vuex/compare/v0.4.2...v0.5.0) (2016-03-04)
|
||||
|
||||
|
||||
|
||||
## [0.4.2](https://github.com/vuejs/vuex/compare/v0.4.1...v0.4.2) (2016-03-02)
|
||||
|
||||
|
||||
|
||||
## [0.4.1](https://github.com/vuejs/vuex/compare/v0.4.0...v0.4.1) (2016-03-01)
|
||||
|
||||
|
||||
|
||||
# [0.4.0](https://github.com/vuejs/vuex/compare/v0.3.0...v0.4.0) (2016-03-01)
|
||||
|
||||
|
||||
|
||||
# [0.3.0](https://github.com/vuejs/vuex/compare/4a22523b8cf4a1954ec95a0083ddef6c085f4905...v0.3.0) (2016-02-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **api:** fix typo ([4a22523](https://github.com/vuejs/vuex/commit/4a22523b8cf4a1954ec95a0083ddef6c085f4905))
|
||||
* **forms:** fix typo ([50094a6](https://github.com/vuejs/vuex/commit/50094a604f32d00ceb784a3fbf07c82c502faca2))
|
||||
|
||||
|
||||
|
21
VApp/node_modules/vuex/LICENSE
generated
vendored
Normal file
21
VApp/node_modules/vuex/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-present Evan You
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
59
VApp/node_modules/vuex/README.md
generated
vendored
Normal file
59
VApp/node_modules/vuex/README.md
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
# Vuex
|
||||
|
||||
[](https://npmjs.com/package/vuex)
|
||||
[](https://circleci.com/gh/vuejs/vuex)
|
||||
|
||||
---
|
||||
|
||||
**Pinia is now the new default**
|
||||
|
||||
The official state management library for Vue has changed to [Pinia](https://pinia.vuejs.org). Pinia has almost the exact same or enhanced API as Vuex 5, described in [Vuex 5 RFC](https://github.com/vuejs/rfcs/pull/271). You could simply consider Pinia as Vuex 5 with a different name. Pinia also works with Vue 2.x as well.
|
||||
|
||||
Vuex 3 and 4 will still be maintained. However, it's unlikely to add new functionalities to it. Vuex and Pinia can be installed in the same project. If you're migrating existing Vuex app to Pinia, it might be a suitable option. However, if you're planning to start a new project, we highly recommend using Pinia instead.
|
||||
|
||||
---
|
||||
|
||||
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official [devtools extension](https://github.com/vuejs/vue-devtools) to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
|
||||
|
||||
Learn more about Vuex at "[What is Vuex?](https://vuex.vuejs.org/)", or get started by looking into [full documentation](http://vuex.vuejs.org/).
|
||||
|
||||
## Documentation
|
||||
|
||||
To check out docs, visit [vuex.vuejs.org](https://vuex.vuejs.org/).
|
||||
|
||||
## Examples
|
||||
|
||||
You may find example applications built with Vuex under the `examples` directory.
|
||||
|
||||
Running the examples:
|
||||
|
||||
```bash
|
||||
$ npm install
|
||||
$ npm run dev # serve examples at localhost:8080
|
||||
```
|
||||
|
||||
## Questions
|
||||
|
||||
For questions and support please use the [Discord chat server](https://chat.vuejs.org) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
|
||||
|
||||
## Issues
|
||||
|
||||
Please make sure to read the [Issue Reporting Checklist](https://github.com/vuejs/vuex/blob/main/.github/contributing.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Changelog
|
||||
|
||||
Detailed changes for each release are documented in the [release notes](https://github.com/vuejs/vuex/releases).
|
||||
|
||||
## Stay In Touch
|
||||
|
||||
For latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs).
|
||||
|
||||
## Contribution
|
||||
|
||||
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/blob/main/.github/contributing.md) before making a pull request.
|
||||
|
||||
## License
|
||||
|
||||
[MIT](http://opensource.org/licenses/MIT)
|
||||
|
||||
Copyright (c) 2015-present Evan You
|
1486
VApp/node_modules/vuex/dist/vuex.cjs.js
generated
vendored
Normal file
1486
VApp/node_modules/vuex/dist/vuex.cjs.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1484
VApp/node_modules/vuex/dist/vuex.esm-browser.js
generated
vendored
Normal file
1484
VApp/node_modules/vuex/dist/vuex.esm-browser.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1323
VApp/node_modules/vuex/dist/vuex.esm-browser.prod.js
generated
vendored
Normal file
1323
VApp/node_modules/vuex/dist/vuex.esm-browser.prod.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1485
VApp/node_modules/vuex/dist/vuex.esm-bundler.js
generated
vendored
Normal file
1485
VApp/node_modules/vuex/dist/vuex.esm-bundler.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1514
VApp/node_modules/vuex/dist/vuex.global.js
generated
vendored
Normal file
1514
VApp/node_modules/vuex/dist/vuex.global.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
VApp/node_modules/vuex/dist/vuex.global.prod.js
generated
vendored
Normal file
6
VApp/node_modules/vuex/dist/vuex.global.prod.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
32
VApp/node_modules/vuex/dist/vuex.mjs
generated
vendored
Normal file
32
VApp/node_modules/vuex/dist/vuex.mjs
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
import Vuex from '../dist/vuex.cjs.js'
|
||||
|
||||
const {
|
||||
version,
|
||||
Store,
|
||||
storeKey,
|
||||
createStore,
|
||||
install,
|
||||
useStore,
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
mapActions,
|
||||
createNamespacedHelpers,
|
||||
createLogger
|
||||
} = Vuex
|
||||
|
||||
export {
|
||||
Vuex as default,
|
||||
version,
|
||||
Store,
|
||||
storeKey,
|
||||
createStore,
|
||||
install,
|
||||
useStore,
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
mapActions,
|
||||
createNamespacedHelpers,
|
||||
createLogger
|
||||
}
|
100
VApp/node_modules/vuex/package.json
generated
vendored
Normal file
100
VApp/node_modules/vuex/package.json
generated
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
{
|
||||
"name": "vuex",
|
||||
"version": "4.1.0",
|
||||
"description": "state management for Vue.js",
|
||||
"main": "dist/vuex.cjs.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"module": "./dist/vuex.esm-bundler.js",
|
||||
"require": "./dist/vuex.cjs.js",
|
||||
"import": "./dist/vuex.mjs"
|
||||
},
|
||||
"./*": "./*",
|
||||
"./": "./"
|
||||
},
|
||||
"module": "dist/vuex.esm-bundler.js",
|
||||
"browser": "dist/vuex.esm-browser.js",
|
||||
"unpkg": "dist/vuex.global.js",
|
||||
"jsdelivr": "dist/vuex.global.js",
|
||||
"typings": "types/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"files": [
|
||||
"dist",
|
||||
"types/index.d.ts",
|
||||
"types/helpers.d.ts",
|
||||
"types/logger.d.ts",
|
||||
"types/vue.d.ts"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "node examples/server.js",
|
||||
"build": "node scripts/build.js",
|
||||
"lint": "eslint src test",
|
||||
"test": "npm run lint && npm run build && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e && npm run test:esm",
|
||||
"test:unit": "jest --testPathIgnorePatterns test/e2e",
|
||||
"test:e2e": "start-server-and-test dev http://localhost:8080 \"jest --testPathIgnorePatterns test/unit\"",
|
||||
"test:ssr": "cross-env VUE_ENV=server jest --testPathIgnorePatterns test/e2e",
|
||||
"test:types": "tsc -p types/test",
|
||||
"test:esm": "node test/esm/esm-test.js",
|
||||
"coverage": "jest --testPathIgnorePatterns test/e2e --coverage",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||
"release": "node scripts/release.js",
|
||||
"docs": "vitepress dev docs",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:serve": "yarn docs:build && vitepress serve docs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vuex.git"
|
||||
},
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vuex/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vuex#readme",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/devtools-api": "^6.0.0-beta.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.3",
|
||||
"@babel/preset-env": "^7.14.2",
|
||||
"@rollup/plugin-buble": "^0.21.3",
|
||||
"@rollup/plugin-commonjs": "^19.0.0",
|
||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||
"@rollup/plugin-replace": "^2.4.2",
|
||||
"@types/node": "^15.6.0",
|
||||
"@vue/compiler-sfc": "^3.2.4",
|
||||
"babel-jest": "^26.6.3",
|
||||
"babel-loader": "^8.2.2",
|
||||
"brotli": "^1.3.2",
|
||||
"chalk": "^4.1.1",
|
||||
"conventional-changelog-cli": "^2.1.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"css-loader": "^2.1.0",
|
||||
"enquirer": "^2.3.5",
|
||||
"eslint": "^7.27.0",
|
||||
"eslint-plugin-vue-libs": "^4.0.0",
|
||||
"execa": "^5.0.0",
|
||||
"express": "^4.17.1",
|
||||
"fs-extra": "^10.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"puppeteer": "^9.1.1",
|
||||
"regenerator-runtime": "^0.13.5",
|
||||
"rollup": "^2.49.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"semver": "^7.3.5",
|
||||
"start-server-and-test": "^1.12.3",
|
||||
"todomvc-app-css": "^2.4.1",
|
||||
"typescript": "^4.2.4",
|
||||
"vitepress": "^0.20.0",
|
||||
"vue": "^3.2.4",
|
||||
"vue-loader": "^16.5.0",
|
||||
"vue-style-loader": "^4.1.3",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-dev-middleware": "^3.7.2",
|
||||
"webpack-hot-middleware": "^2.25.0"
|
||||
}
|
||||
}
|
86
VApp/node_modules/vuex/types/helpers.d.ts
generated
vendored
Normal file
86
VApp/node_modules/vuex/types/helpers.d.ts
generated
vendored
Normal file
@ -0,0 +1,86 @@
|
||||
import { ComponentPublicInstance } from 'vue';
|
||||
import { Dispatch, Commit } from './index';
|
||||
|
||||
type Computed = () => any;
|
||||
type InlineComputed<T extends Function> = T extends (...args: any[]) => infer R ? () => R : never
|
||||
type MutationMethod = (...args: any[]) => void;
|
||||
type ActionMethod = (...args: any[]) => Promise<any>;
|
||||
type InlineMethod<T extends (fn: any, ...args: any[]) => any> = T extends (fn: any, ...args: infer Args) => infer R ? (...args: Args) => R : never
|
||||
type CustomVue = ComponentPublicInstance & Record<string, any>;
|
||||
|
||||
interface Mapper<R> {
|
||||
<Key extends string>(map: Key[]): { [K in Key]: R };
|
||||
<Map extends Record<string, string>>(map: Map): { [K in keyof Map]: R };
|
||||
}
|
||||
|
||||
interface MapperWithNamespace<R> {
|
||||
<Key extends string>(namespace: string, map: Key[]): { [K in Key]: R };
|
||||
<Map extends Record<string, string>>(namespace: string, map: Map): { [K in keyof Map]: R };
|
||||
}
|
||||
|
||||
interface MapperForState {
|
||||
<S, Map extends Record<string, (this: CustomVue, state: S, getters: any) => any> = {}>(
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineComputed<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForStateWithNamespace {
|
||||
<S, Map extends Record<string, (this: CustomVue, state: S, getters: any) => any> = {}>(
|
||||
namespace: string,
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineComputed<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForAction {
|
||||
<Map extends Record<string, (this: CustomVue, dispatch: Dispatch, ...args: any[]) => any>>(
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForActionWithNamespace {
|
||||
<Map extends Record<string, (this: CustomVue, dispatch: Dispatch, ...args: any[]) => any>>(
|
||||
namespace: string,
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForMutation {
|
||||
<Map extends Record<string, (this: CustomVue, commit: Commit, ...args: any[]) => any>>(
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
interface MapperForMutationWithNamespace {
|
||||
<Map extends Record<string, (this: CustomVue, commit: Commit, ...args: any[]) => any>>(
|
||||
namespace: string,
|
||||
map: Map
|
||||
): { [K in keyof Map]: InlineMethod<Map[K]> };
|
||||
}
|
||||
|
||||
|
||||
interface NamespacedMappers {
|
||||
mapState: Mapper<Computed> & MapperForState;
|
||||
mapMutations: Mapper<MutationMethod> & MapperForMutation;
|
||||
mapGetters: Mapper<Computed>;
|
||||
mapActions: Mapper<ActionMethod> & MapperForAction;
|
||||
}
|
||||
|
||||
export declare const mapState: Mapper<Computed>
|
||||
& MapperWithNamespace<Computed>
|
||||
& MapperForState
|
||||
& MapperForStateWithNamespace;
|
||||
|
||||
export declare const mapMutations: Mapper<MutationMethod>
|
||||
& MapperWithNamespace<MutationMethod>
|
||||
& MapperForMutation
|
||||
& MapperForMutationWithNamespace;
|
||||
|
||||
export declare const mapGetters: Mapper<Computed>
|
||||
& MapperWithNamespace<Computed>;
|
||||
|
||||
export declare const mapActions: Mapper<ActionMethod>
|
||||
& MapperWithNamespace<ActionMethod>
|
||||
& MapperForAction
|
||||
& MapperForActionWithNamespace;
|
||||
|
||||
export declare function createNamespacedHelpers(namespace: string): NamespacedMappers;
|
167
VApp/node_modules/vuex/types/index.d.ts
generated
vendored
Normal file
167
VApp/node_modules/vuex/types/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,167 @@
|
||||
import { App, WatchOptions, InjectionKey } from "vue";
|
||||
|
||||
// augment typings of Vue.js
|
||||
import "./vue";
|
||||
|
||||
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from "./helpers";
|
||||
import { createLogger } from "./logger";
|
||||
|
||||
export * from "./helpers";
|
||||
export * from "./logger";
|
||||
|
||||
export declare class Store<S> {
|
||||
constructor(options: StoreOptions<S>);
|
||||
|
||||
readonly state: S;
|
||||
readonly getters: any;
|
||||
|
||||
install(app: App, injectKey?: InjectionKey<Store<any>> | string): void;
|
||||
|
||||
replaceState(state: S): void;
|
||||
|
||||
dispatch: Dispatch;
|
||||
commit: Commit;
|
||||
|
||||
subscribe<P extends MutationPayload>(fn: (mutation: P, state: S) => any, options?: SubscribeOptions): () => void;
|
||||
subscribeAction<P extends ActionPayload>(fn: SubscribeActionOptions<P, S>, options?: SubscribeOptions): () => void;
|
||||
watch<T>(getter: (state: S, getters: any) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): () => void;
|
||||
|
||||
registerModule<T>(path: string, module: Module<T, S>, options?: ModuleOptions): void;
|
||||
registerModule<T>(path: string[], module: Module<T, S>, options?: ModuleOptions): void;
|
||||
|
||||
unregisterModule(path: string): void;
|
||||
unregisterModule(path: string[]): void;
|
||||
|
||||
hasModule(path: string): boolean;
|
||||
hasModule(path: string[]): boolean;
|
||||
|
||||
hotUpdate(options: {
|
||||
actions?: ActionTree<S, S>;
|
||||
mutations?: MutationTree<S>;
|
||||
getters?: GetterTree<S, S>;
|
||||
modules?: ModuleTree<S>;
|
||||
}): void;
|
||||
}
|
||||
|
||||
export const storeKey: string;
|
||||
|
||||
export function createStore<S>(options: StoreOptions<S>): Store<S>;
|
||||
|
||||
export function useStore<S = any>(injectKey?: InjectionKey<Store<S>> | string): Store<S>;
|
||||
|
||||
export interface Dispatch {
|
||||
(type: string, payload?: any, options?: DispatchOptions): Promise<any>;
|
||||
<P extends Payload>(payloadWithType: P, options?: DispatchOptions): Promise<any>;
|
||||
}
|
||||
|
||||
export interface Commit {
|
||||
(type: string, payload?: any, options?: CommitOptions): void;
|
||||
<P extends Payload>(payloadWithType: P, options?: CommitOptions): void;
|
||||
}
|
||||
|
||||
export interface ActionContext<S, R> {
|
||||
dispatch: Dispatch;
|
||||
commit: Commit;
|
||||
state: S;
|
||||
getters: any;
|
||||
rootState: R;
|
||||
rootGetters: any;
|
||||
}
|
||||
|
||||
export interface Payload {
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface MutationPayload extends Payload {
|
||||
payload: any;
|
||||
}
|
||||
|
||||
export interface ActionPayload extends Payload {
|
||||
payload: any;
|
||||
}
|
||||
|
||||
export interface SubscribeOptions {
|
||||
prepend?: boolean
|
||||
}
|
||||
|
||||
export type ActionSubscriber<P, S> = (action: P, state: S) => any;
|
||||
export type ActionErrorSubscriber<P, S> = (action: P, state: S, error: Error) => any;
|
||||
|
||||
export interface ActionSubscribersObject<P, S> {
|
||||
before?: ActionSubscriber<P, S>;
|
||||
after?: ActionSubscriber<P, S>;
|
||||
error?: ActionErrorSubscriber<P, S>;
|
||||
}
|
||||
|
||||
export type SubscribeActionOptions<P, S> = ActionSubscriber<P, S> | ActionSubscribersObject<P, S>;
|
||||
|
||||
export interface DispatchOptions {
|
||||
root?: boolean;
|
||||
}
|
||||
|
||||
export interface CommitOptions {
|
||||
silent?: boolean;
|
||||
root?: boolean;
|
||||
}
|
||||
|
||||
export interface StoreOptions<S> {
|
||||
state?: S | (() => S);
|
||||
getters?: GetterTree<S, S>;
|
||||
actions?: ActionTree<S, S>;
|
||||
mutations?: MutationTree<S>;
|
||||
modules?: ModuleTree<S>;
|
||||
plugins?: Plugin<S>[];
|
||||
strict?: boolean;
|
||||
devtools?: boolean;
|
||||
}
|
||||
|
||||
export type ActionHandler<S, R> = (this: Store<R>, injectee: ActionContext<S, R>, payload?: any) => any;
|
||||
export interface ActionObject<S, R> {
|
||||
root?: boolean;
|
||||
handler: ActionHandler<S, R>;
|
||||
}
|
||||
|
||||
export type Getter<S, R> = (state: S, getters: any, rootState: R, rootGetters: any) => any;
|
||||
export type Action<S, R> = ActionHandler<S, R> | ActionObject<S, R>;
|
||||
export type Mutation<S> = (state: S, payload?: any) => any;
|
||||
export type Plugin<S> = (store: Store<S>) => any;
|
||||
|
||||
export interface Module<S, R> {
|
||||
namespaced?: boolean;
|
||||
state?: S | (() => S);
|
||||
getters?: GetterTree<S, R>;
|
||||
actions?: ActionTree<S, R>;
|
||||
mutations?: MutationTree<S>;
|
||||
modules?: ModuleTree<R>;
|
||||
}
|
||||
|
||||
export interface ModuleOptions {
|
||||
preserveState?: boolean;
|
||||
}
|
||||
|
||||
export interface GetterTree<S, R> {
|
||||
[key: string]: Getter<S, R>;
|
||||
}
|
||||
|
||||
export interface ActionTree<S, R> {
|
||||
[key: string]: Action<S, R>;
|
||||
}
|
||||
|
||||
export interface MutationTree<S> {
|
||||
[key: string]: Mutation<S>;
|
||||
}
|
||||
|
||||
export interface ModuleTree<R> {
|
||||
[key: string]: Module<any, R>;
|
||||
}
|
||||
|
||||
declare const _default: {
|
||||
Store: typeof Store;
|
||||
mapState: typeof mapState,
|
||||
mapMutations: typeof mapMutations,
|
||||
mapGetters: typeof mapGetters,
|
||||
mapActions: typeof mapActions,
|
||||
createNamespacedHelpers: typeof createNamespacedHelpers,
|
||||
createLogger: typeof createLogger
|
||||
};
|
||||
export default _default;
|
20
VApp/node_modules/vuex/types/logger.d.ts
generated
vendored
Normal file
20
VApp/node_modules/vuex/types/logger.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import { Payload, Plugin } from "./index";
|
||||
|
||||
interface Logger extends Partial<Pick<Console, 'groupCollapsed' | 'group' | 'groupEnd'>> {
|
||||
log(message: string, color: string, payload: any): void;
|
||||
log(message: string): void;
|
||||
}
|
||||
|
||||
export interface LoggerOption<S> {
|
||||
collapsed?: boolean;
|
||||
filter?: <P extends Payload>(mutation: P, stateBefore: S, stateAfter: S) => boolean;
|
||||
transformer?: (state: S) => any;
|
||||
mutationTransformer?: <P extends Payload>(mutation: P) => any;
|
||||
actionFilter?: <P extends Payload>(action: P, state: S) => boolean;
|
||||
actionTransformer?: <P extends Payload>(action: P) => any;
|
||||
logMutations?: boolean;
|
||||
logActions?: boolean;
|
||||
logger?: Logger;
|
||||
}
|
||||
|
||||
export function createLogger<S>(option?: LoggerOption<S>): Plugin<S>;
|
12
VApp/node_modules/vuex/types/vue.d.ts
generated
vendored
Normal file
12
VApp/node_modules/vuex/types/vue.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Extends interfaces in Vue.js
|
||||
*/
|
||||
|
||||
import { ComponentCustomOptions } from "vue";
|
||||
import { Store } from "./index";
|
||||
|
||||
declare module "@vue/runtime-core" {
|
||||
interface ComponentCustomOptions {
|
||||
store?: Store<any>;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user