From 232a8dea08ab30d438cb13d54a3a6d3c74d4c5cb Mon Sep 17 00:00:00 2001 From: eFrane Date: Mon, 2 Sep 2024 11:40:03 +0000 Subject: [PATCH] deploy: ecf23a4f0b9d38fcc7671d66b18536ef2c7cea63 --- 404.html | 6 +++--- assets/js/{24.641ddb28.js => 24.3226531c.js} | 2 +- assets/js/{25.3ca9d6b3.js => 25.91f1830c.js} | 2 +- assets/js/{27.26ab744f.js => 27.87f07c1c.js} | 2 +- assets/js/{29.746f0c98.js => 29.2626e755.js} | 2 +- assets/js/{33.782fe951.js => 33.4d039178.js} | 2 +- assets/js/{34.fba2356b.js => 34.bf32c4d2.js} | 2 +- assets/js/{35.1e223504.js => 35.d607b3d0.js} | 2 +- assets/js/{36.f6a75ce8.js => 36.617d3774.js} | 2 +- assets/js/{39.4f6dc3a8.js => 39.1fee50fc.js} | 2 +- assets/js/{43.4701a1e5.js => 43.2250b9a9.js} | 2 +- assets/js/{46.ecd1fc23.js => 46.989c26c5.js} | 2 +- assets/js/{53.0a5a39dd.js => 53.f9864fba.js} | 2 +- assets/js/{54.7afc0b6c.js => 54.c335fab6.js} | 2 +- assets/js/{57.a2e0b921.js => 57.50ee9484.js} | 2 +- assets/js/{60.6e42e74d.js => 60.9765273a.js} | 2 +- assets/js/{61.ed6d3058.js => 61.e1898988.js} | 2 +- assets/js/{63.ce848b16.js => 63.aeb4ee57.js} | 2 +- assets/js/{64.2790a4b5.js => 64.ea259c15.js} | 2 +- assets/js/{71.568c0c6b.js => 71.a3f9c3bb.js} | 2 +- assets/js/{72.0b11e488.js => 72.15bb2736.js} | 2 +- assets/js/{73.6a64cd6d.js => 73.2582b43e.js} | 2 +- assets/js/{app.35af93e4.js => app.f0a99cc2.js} | 4 ++-- deep-dive.html | 4 ++-- development/index.html | 4 ++-- index.html | 4 ++-- reference/class/Api.html | 4 ++-- reference/class/FosJsRoutingRouter.html | 4 ++-- reference/class/JsonApiRoute.html | 4 ++-- reference/class/JsonApiRouter.html | 4 ++-- reference/class/ModuleBuilder.html | 4 ++-- reference/class/Performance.html | 4 ++-- reference/class/ResourceBuilder.html | 4 ++-- reference/class/ResourceProxy.html | 4 ++-- reference/class/Route.html | 4 ++-- reference/class/Router.html | 4 ++-- reference/class/StaticRoute.html | 4 ++-- reference/class/StaticRouter.html | 4 ++-- reference/function/checkConfigProperty.html | 4 ++-- reference/function/compileMutation.html | 4 ++-- reference/function/createAction.html | 4 ++-- reference/function/deepMerge.html | 4 ++-- reference/function/deref.html | 4 ++-- reference/function/getAction.html | 4 ++-- reference/function/getRelationship.html | 4 ++-- reference/function/getRelationshipConfig.html | 4 ++-- reference/function/hasChanges.html | 4 ++-- reference/function/hasLoadableRelationship.html | 4 ++-- reference/function/hasLoadedRelationship.html | 4 ++-- reference/function/hasOwn.html | 4 ++-- reference/function/initJsonApiPlugin.html | 4 ++-- reference/function/initialState.html | 4 ++-- reference/function/isAbsoluteUri.html | 4 ++-- reference/function/isMissingModule.html | 4 ++-- reference/function/itemsInRelationshipFormat.html | 4 ++-- reference/function/listAction.html | 4 ++-- reference/function/listRelatedAction.html | 4 ++-- reference/function/listRelationship.html | 4 ++-- reference/function/prepareModuleHashMap.html | 4 ++-- reference/function/prepareQuery.html | 4 ++-- reference/function/processResponseData.html | 4 ++-- reference/function/registerBaseModule.html | 4 ++-- reference/function/registerMissingModule.html | 4 ++-- reference/function/removeMutation.html | 4 ++-- reference/function/resetItemsMutation.html | 4 ++-- reference/function/saveAction.html | 4 ++-- reference/function/setAllMutation.html | 4 ++-- reference/function/setItemMutation.html | 4 ++-- reference/function/setMutation.html | 4 ++-- reference/function/setPaginationMutation.html | 4 ++-- reference/function/setResourceObjectsForModule.html | 4 ++-- reference/function/strip.html | 4 ++-- reference/function/validateCallbackFn.html | 4 ++-- reference/function/validateResourceObject.html | 4 ++-- reference/index.html | 4 ++-- usage/index.html | 4 ++-- usage/modules.html | 4 ++-- usage/requests.html | 4 ++-- usage/router.html | 4 ++-- usage/setup.html | 4 ++-- 80 files changed, 140 insertions(+), 140 deletions(-) rename assets/js/{24.641ddb28.js => 24.3226531c.js} (98%) rename assets/js/{25.3ca9d6b3.js => 25.91f1830c.js} (97%) rename assets/js/{27.26ab744f.js => 27.87f07c1c.js} (92%) rename assets/js/{29.746f0c98.js => 29.2626e755.js} (91%) rename assets/js/{33.782fe951.js => 33.4d039178.js} (95%) rename assets/js/{34.fba2356b.js => 34.bf32c4d2.js} (92%) rename assets/js/{35.1e223504.js => 35.d607b3d0.js} (96%) rename assets/js/{36.f6a75ce8.js => 36.617d3774.js} (97%) rename assets/js/{39.4f6dc3a8.js => 39.1fee50fc.js} (95%) rename assets/js/{43.4701a1e5.js => 43.2250b9a9.js} (93%) rename assets/js/{46.ecd1fc23.js => 46.989c26c5.js} (93%) rename assets/js/{53.0a5a39dd.js => 53.f9864fba.js} (94%) rename assets/js/{54.7afc0b6c.js => 54.c335fab6.js} (94%) rename assets/js/{57.a2e0b921.js => 57.50ee9484.js} (93%) rename assets/js/{60.6e42e74d.js => 60.9765273a.js} (94%) rename assets/js/{61.ed6d3058.js => 61.e1898988.js} (94%) rename assets/js/{63.ce848b16.js => 63.aeb4ee57.js} (94%) rename assets/js/{64.2790a4b5.js => 64.ea259c15.js} (93%) rename assets/js/{71.568c0c6b.js => 71.a3f9c3bb.js} (97%) rename assets/js/{72.0b11e488.js => 72.15bb2736.js} (98%) rename assets/js/{73.6a64cd6d.js => 73.2582b43e.js} (99%) rename assets/js/{app.35af93e4.js => app.f0a99cc2.js} (93%) diff --git a/404.html b/404.html index b6c63845..9b451e83 100644 --- a/404.html +++ b/404.html @@ -8,13 +8,13 @@ - + -

404

There's nothing here.
+ - + diff --git a/assets/js/24.641ddb28.js b/assets/js/24.3226531c.js similarity index 98% rename from assets/js/24.641ddb28.js rename to assets/js/24.3226531c.js index cabbd86a..fd0c5025 100644 --- a/assets/js/24.641ddb28.js +++ b/assets/js/24.3226531c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{216:function(t,a,s){"use strict";s.r(a);var n=s(3),e=Object(n.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"how-things-work-under-the-hood"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-things-work-under-the-hood"}},[t._v("#")]),t._v(" How things work under the hood")]),t._v(" "),a("h2",{attrs:{id:"proxy-objects-for-vuex-mutations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#proxy-objects-for-vuex-mutations"}},[t._v("#")]),t._v(" Proxy Objects for Vuex Mutations")]),t._v(" "),a("p",[t._v("To provide mutations for the api-bound modules, ES Proxy Objects are created\nfor the possible ways in which a module's state should be mutable. Note that\nnot all of the generated mutations may be intended for out-of-module use. But\nsince using mutations outside of vuex without going through an action first is\nconsidered bad practice anyway, this should not pose a problem.")]),t._v(" "),a("h3",{attrs:{id:"the-proxy-mutation-parameter-mapping"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#the-proxy-mutation-parameter-mapping"}},[t._v("#")]),t._v(" The Proxy -> Mutation Parameter mapping")]),t._v(" "),a("p",[t._v("Given a Vuex mutation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" module "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("mutations")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("mutation")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("state"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("callable by")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("commit")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module/mutation'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n")])])]),a("p",[t._v("can be created with the Proxy object")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" mutation "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Proxy")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("state"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// give a base mutation function as input")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * @param {object} target The object this mutation is being applied to, i.e. the above mutation function\n * @param {object} thisArg The current module instance\n * @param {Array} argArray The arguments of the above mutation function, argArray[0] == state, argArray[1] == payload\n **/")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("apply")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("target"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" thisArg"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" argArray"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v(" state"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" argArray\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{215:function(t,a,s){"use strict";s.r(a);var n=s(3),e=Object(n.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"how-things-work-under-the-hood"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#how-things-work-under-the-hood"}},[t._v("#")]),t._v(" How things work under the hood")]),t._v(" "),a("h2",{attrs:{id:"proxy-objects-for-vuex-mutations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#proxy-objects-for-vuex-mutations"}},[t._v("#")]),t._v(" Proxy Objects for Vuex Mutations")]),t._v(" "),a("p",[t._v("To provide mutations for the api-bound modules, ES Proxy Objects are created\nfor the possible ways in which a module's state should be mutable. Note that\nnot all of the generated mutations may be intended for out-of-module use. But\nsince using mutations outside of vuex without going through an action first is\nconsidered bad practice anyway, this should not pose a problem.")]),t._v(" "),a("h3",{attrs:{id:"the-proxy-mutation-parameter-mapping"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#the-proxy-mutation-parameter-mapping"}},[t._v("#")]),t._v(" The Proxy -> Mutation Parameter mapping")]),t._v(" "),a("p",[t._v("Given a Vuex mutation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" module "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("mutations")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("mutation")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("state"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("callable by")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("commit")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module/mutation'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n")])])]),a("p",[t._v("can be created with the Proxy object")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" mutation "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Proxy")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("state"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// give a base mutation function as input")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * @param {object} target The object this mutation is being applied to, i.e. the above mutation function\n * @param {object} thisArg The current module instance\n * @param {Array} argArray The arguments of the above mutation function, argArray[0] == state, argArray[1] == payload\n **/")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("apply")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("target"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" thisArg"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" argArray"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v(" state"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" payload "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" argArray\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/25.3ca9d6b3.js b/assets/js/25.91f1830c.js similarity index 97% rename from assets/js/25.3ca9d6b3.js rename to assets/js/25.91f1830c.js index 418320a1..896081fa 100644 --- a/assets/js/25.3ca9d6b3.js +++ b/assets/js/25.91f1830c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{215:function(e,t,r){"use strict";r.r(t);var o=r(3),s=Object(o.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"development"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#development"}},[e._v("#")]),e._v(" Development")]),e._v(" "),t("p",[e._v("As this library is basically a "),t("a",{attrs:{href:"https://vuex.vuejs.org",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vuex"),t("OutboundLink")],1),e._v("-Plugin, some\nunexpected weirdness may come the way of a developer. Most of which come\ndown to naming differences between the "),t("jsonapi"),e._v(" and the Vuex contexts:")],1),e._v(" "),t("ul",[t("li",[e._v("Resource types in "),t("jsonapi"),e._v(" are namespaced modules in Vuex")],1),e._v(" "),t("li",[e._v("This library makes rather extensive use of "),t("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",target:"_blank",rel:"noopener noreferrer"}},[e._v("Proxy"),t("OutboundLink")],1),e._v(" objects,\nmostly to keep Vuex's reactivity magic getting to places where it would\ndo more harm than good.")])]),e._v(" "),t("h2",{attrs:{id:"testing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#testing"}},[e._v("#")]),e._v(" Testing")]),e._v(" "),t("p",[e._v("The test setup is based around "),t("a",{attrs:{href:"https://jestjs.io",target:"_blank",rel:"noopener noreferrer"}},[e._v("Jest"),t("OutboundLink")],1),e._v(",\n"),t("a",{attrs:{href:"http://www.wheresrhys.co.uk/fetch-mock/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Fetch Mock"),t("OutboundLink")],1),e._v(" and the "),t("a",{attrs:{href:"http://vue-test-utils.vuejs.org",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vue Test Utils"),t("OutboundLink")],1),e._v(".")]),e._v(" "),t("p",[e._v("When testing interactions against a "),t("jsonapi"),e._v(", "),t("code",[e._v("tests/apiMock.js")]),e._v("\nprovides a few helpers:")],1),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Method")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[t("code",[e._v("initApiMockServer(): void")])]),e._v(" "),t("td",[e._v("Configures "),t("code",[e._v("fetch-mock")]),e._v(" with several correct "),t("jsonapi"),e._v(" responses")],1)]),e._v(" "),t("tr",[t("td",[t("code",[e._v("initApiMock(): ResourcefulApi")])]),e._v(" "),t("td",[e._v("Configures a "),t("code",[e._v("ResourcefulApi")]),e._v(" against the mock server methods")])]),e._v(" "),t("tr",[t("td",[t("code",[e._v("getVuexContextForResourceType(ResourcefulApi api, string type): { commit, dispatch, getters, state }")])]),e._v(" "),t("td",[e._v("Returns the Vuex context from a configured api module")])])])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{216:function(e,t,r){"use strict";r.r(t);var o=r(3),s=Object(o.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"development"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#development"}},[e._v("#")]),e._v(" Development")]),e._v(" "),t("p",[e._v("As this library is basically a "),t("a",{attrs:{href:"https://vuex.vuejs.org",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vuex"),t("OutboundLink")],1),e._v("-Plugin, some\nunexpected weirdness may come the way of a developer. Most of which come\ndown to naming differences between the "),t("jsonapi"),e._v(" and the Vuex contexts:")],1),e._v(" "),t("ul",[t("li",[e._v("Resource types in "),t("jsonapi"),e._v(" are namespaced modules in Vuex")],1),e._v(" "),t("li",[e._v("This library makes rather extensive use of "),t("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",target:"_blank",rel:"noopener noreferrer"}},[e._v("Proxy"),t("OutboundLink")],1),e._v(" objects,\nmostly to keep Vuex's reactivity magic getting to places where it would\ndo more harm than good.")])]),e._v(" "),t("h2",{attrs:{id:"testing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#testing"}},[e._v("#")]),e._v(" Testing")]),e._v(" "),t("p",[e._v("The test setup is based around "),t("a",{attrs:{href:"https://jestjs.io",target:"_blank",rel:"noopener noreferrer"}},[e._v("Jest"),t("OutboundLink")],1),e._v(",\n"),t("a",{attrs:{href:"http://www.wheresrhys.co.uk/fetch-mock/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Fetch Mock"),t("OutboundLink")],1),e._v(" and the "),t("a",{attrs:{href:"http://vue-test-utils.vuejs.org",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vue Test Utils"),t("OutboundLink")],1),e._v(".")]),e._v(" "),t("p",[e._v("When testing interactions against a "),t("jsonapi"),e._v(", "),t("code",[e._v("tests/apiMock.js")]),e._v("\nprovides a few helpers:")],1),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Method")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[t("code",[e._v("initApiMockServer(): void")])]),e._v(" "),t("td",[e._v("Configures "),t("code",[e._v("fetch-mock")]),e._v(" with several correct "),t("jsonapi"),e._v(" responses")],1)]),e._v(" "),t("tr",[t("td",[t("code",[e._v("initApiMock(): ResourcefulApi")])]),e._v(" "),t("td",[e._v("Configures a "),t("code",[e._v("ResourcefulApi")]),e._v(" against the mock server methods")])]),e._v(" "),t("tr",[t("td",[t("code",[e._v("getVuexContextForResourceType(ResourcefulApi api, string type): { commit, dispatch, getters, state }")])]),e._v(" "),t("td",[e._v("Returns the Vuex context from a configured api module")])])])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/27.26ab744f.js b/assets/js/27.87f07c1c.js similarity index 92% rename from assets/js/27.26ab744f.js rename to assets/js/27.87f07c1c.js index cf4b2c67..b1bc0221 100644 --- a/assets/js/27.26ab744f.js +++ b/assets/js/27.87f07c1c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{262:function(a,t,n){"use strict";n.r(t);var l=n(3),e=Object(l.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"validateCallbackFn"}})]),a._v(" "),t("h2",{attrs:{id:"validatecallbackfn-fn-⇒-boolean"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#validatecallbackfn-fn-⇒-boolean"}},[a._v("#")]),a._v(" validateCallbackFn(fn) ⇒ "),t("code",[a._v("boolean")])]),a._v(" "),t("p",[a._v("Make sure a passed parameter is actually a function")]),a._v(" "),t("p",[t("strong",[a._v("Kind")]),a._v(": global function")]),a._v(" "),t("table",[t("thead",[t("tr",[t("th",[a._v("Param")])])]),a._v(" "),t("tbody",[t("tr",[t("td",[a._v("fn")])])])])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{263:function(a,t,n){"use strict";n.r(t);var l=n(3),e=Object(l.a)({},(function(){var a=this,t=a._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"validateCallbackFn"}})]),a._v(" "),t("h2",{attrs:{id:"validatecallbackfn-fn-⇒-boolean"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#validatecallbackfn-fn-⇒-boolean"}},[a._v("#")]),a._v(" validateCallbackFn(fn) ⇒ "),t("code",[a._v("boolean")])]),a._v(" "),t("p",[a._v("Make sure a passed parameter is actually a function")]),a._v(" "),t("p",[t("strong",[a._v("Kind")]),a._v(": global function")]),a._v(" "),t("table",[t("thead",[t("tr",[t("th",[a._v("Param")])])]),a._v(" "),t("tbody",[t("tr",[t("td",[a._v("fn")])])])])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/29.746f0c98.js b/assets/js/29.2626e755.js similarity index 91% rename from assets/js/29.746f0c98.js rename to assets/js/29.2626e755.js index a819766f..e23767a4 100644 --- a/assets/js/29.746f0c98.js +++ b/assets/js/29.2626e755.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{263:function(t,r,s){"use strict";s.r(r);var a=s(3),i=Object(a.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("p",[r("a",{attrs:{name:"isAbsoluteUri"}})]),t._v(" "),r("h2",{attrs:{id:"isabsoluteuri-uri"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#isabsoluteuri-uri"}},[t._v("#")]),t._v(" isAbsoluteUri(uri)")]),t._v(" "),r("p",[r("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Param")]),t._v(" "),r("th",[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("uri")]),t._v(" "),r("td",[r("code",[t._v("String")])])])])])])}),[],!1,null,null,null);r.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{261:function(t,r,s){"use strict";s.r(r);var a=s(3),i=Object(a.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("p",[r("a",{attrs:{name:"isAbsoluteUri"}})]),t._v(" "),r("h2",{attrs:{id:"isabsoluteuri-uri"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#isabsoluteuri-uri"}},[t._v("#")]),t._v(" isAbsoluteUri(uri)")]),t._v(" "),r("p",[r("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Param")]),t._v(" "),r("th",[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("uri")]),t._v(" "),r("td",[r("code",[t._v("String")])])])])])])}),[],!1,null,null,null);r.default=i.exports}}]); \ No newline at end of file diff --git a/assets/js/33.782fe951.js b/assets/js/33.4d039178.js similarity index 95% rename from assets/js/33.782fe951.js rename to assets/js/33.4d039178.js index fea496a2..9970fc68 100644 --- a/assets/js/33.782fe951.js +++ b/assets/js/33.4d039178.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{252:function(t,e,o){"use strict";o.r(e);var n=o(3),a=Object(n.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"getRelationship"}})]),t._v(" "),e("h2",{attrs:{id:"getrelationship-store-relatedobject-config-istomany-config-istomany"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getrelationship-store-relatedobject-config-istomany-config-istomany"}},[t._v("#")]),t._v(" getRelationship(store, relatedObject, config{isToMany:, config{isToMany:)")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("store")]),t._v(" "),e("td",[e("code",[t._v("Vuex.Store")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("relatedObject")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("config{isToMany:")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("boolean}")])]),t._v(" "),e("tr",[e("td",[t._v("config{isToMany:")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("boolean}")])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{251:function(t,e,o){"use strict";o.r(e);var n=o(3),a=Object(n.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"getRelationship"}})]),t._v(" "),e("h2",{attrs:{id:"getrelationship-store-relatedobject-config-istomany-config-istomany"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getrelationship-store-relatedobject-config-istomany-config-istomany"}},[t._v("#")]),t._v(" getRelationship(store, relatedObject, config{isToMany:, config{isToMany:)")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("store")]),t._v(" "),e("td",[e("code",[t._v("Vuex.Store")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("relatedObject")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("config{isToMany:")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("boolean}")])]),t._v(" "),e("tr",[e("td",[t._v("config{isToMany:")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("boolean}")])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/34.fba2356b.js b/assets/js/34.bf32c4d2.js similarity index 92% rename from assets/js/34.fba2356b.js rename to assets/js/34.bf32c4d2.js index 5b4a8a0c..c157cbb7 100644 --- a/assets/js/34.fba2356b.js +++ b/assets/js/34.bf32c4d2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{256:function(t,e,o){"use strict";o.r(e);var a=o(3),n=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"getRelationshipConfig"}})]),t._v(" "),e("h2",{attrs:{id:"getrelationshipconfig-relatedobject-⇒-object"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getrelationshipconfig-relatedobject-⇒-object"}},[t._v("#")]),t._v(" getRelationshipConfig(relatedObject) ⇒ "),e("code",[t._v("Object")])]),t._v(" "),e("p",[t._v("Config Getter for the RelationshipMethod")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("relatedObject")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{257:function(t,e,o){"use strict";o.r(e);var a=o(3),n=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"getRelationshipConfig"}})]),t._v(" "),e("h2",{attrs:{id:"getrelationshipconfig-relatedobject-⇒-object"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getrelationshipconfig-relatedobject-⇒-object"}},[t._v("#")]),t._v(" getRelationshipConfig(relatedObject) ⇒ "),e("code",[t._v("Object")])]),t._v(" "),e("p",[t._v("Config Getter for the RelationshipMethod")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("relatedObject")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/35.1e223504.js b/assets/js/35.d607b3d0.js similarity index 96% rename from assets/js/35.1e223504.js rename to assets/js/35.d607b3d0.js index 27c1ccd9..34071c92 100644 --- a/assets/js/35.1e223504.js +++ b/assets/js/35.d607b3d0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{242:function(t,e,r){"use strict";r.r(e);var d=r(3),a=Object(d.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"processResponseData"}})]),t._v(" "),e("h2",{attrs:{id:"processresponsedata-vuexfns-api-currentmodule-data-currentmethod-relatedmodule"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#processresponsedata-vuexfns-api-currentmodule-data-currentmethod-relatedmodule"}},[t._v("#")]),t._v(" processResponseData(vuexFns, api, currentModule, data, currentMethod, relatedModule)")]),t._v(" "),e("p",[t._v("Process the (normalized) data part of a response")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("vuexFns")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("api")]),t._v(" "),e("td",[e("code",[t._v("ResourcefulApi")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("currentModule")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("name of the current storeModule")])]),t._v(" "),e("tr",[e("td",[t._v("data")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("payload from request")])]),t._v(" "),e("tr",[e("td",[t._v("currentMethod")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("default = ''")])]),t._v(" "),e("tr",[e("td",[t._v("relatedModule")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("storeModule")])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{241:function(t,e,r){"use strict";r.r(e);var d=r(3),a=Object(d.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"processResponseData"}})]),t._v(" "),e("h2",{attrs:{id:"processresponsedata-vuexfns-api-currentmodule-data-currentmethod-relatedmodule"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#processresponsedata-vuexfns-api-currentmodule-data-currentmethod-relatedmodule"}},[t._v("#")]),t._v(" processResponseData(vuexFns, api, currentModule, data, currentMethod, relatedModule)")]),t._v(" "),e("p",[t._v("Process the (normalized) data part of a response")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("vuexFns")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("api")]),t._v(" "),e("td",[e("code",[t._v("ResourcefulApi")])]),t._v(" "),e("td")]),t._v(" "),e("tr",[e("td",[t._v("currentModule")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("name of the current storeModule")])]),t._v(" "),e("tr",[e("td",[t._v("data")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("payload from request")])]),t._v(" "),e("tr",[e("td",[t._v("currentMethod")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("default = ''")])]),t._v(" "),e("tr",[e("td",[t._v("relatedModule")]),t._v(" "),e("td",[e("code",[t._v("Object")])]),t._v(" "),e("td",[t._v("storeModule")])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/36.f6a75ce8.js b/assets/js/36.617d3774.js similarity index 97% rename from assets/js/36.f6a75ce8.js rename to assets/js/36.617d3774.js index 9bf093b7..36c8c32e 100644 --- a/assets/js/36.f6a75ce8.js +++ b/assets/js/36.617d3774.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{226:function(t,e,r){"use strict";r.r(e);var o=r(3),a=Object(o.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"Router"}})]),t._v(" "),e("h2",{attrs:{id:"router"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router"}},[t._v("#")]),t._v(" Router")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global class")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#Router"}},[t._v("Router")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#new_Router_new"}},[t._v("new Router()")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#Router+getRoutes"}},[t._v(".getRoutes()")]),t._v(" ⇒ "),e("code",[t._v("Array.")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#Router+addRoute"}},[t._v(".addRoute(route)")])])])])]),t._v(" "),e("p",[e("a",{attrs:{name:"new_Router_new"}})]),t._v(" "),e("h3",{attrs:{id:"new-router"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#new-router"}},[t._v("#")]),t._v(" new Router()")]),t._v(" "),e("p",[t._v("Basic router implementation for the ResourcefulApi.")]),t._v(" "),e("p",[t._v("Automagically creating api bound modules builds on\nan understanding of the available routes. To\neasily instantiate a Store bound to an endpoint,\nroute information for that endpoint must be provided.")]),t._v(" "),e("p",[t._v("Since every endpoint is implemented differently and\nthe choice where this route information comes from\nshould be left to the endpoint developer, this\nlibrary only assumes that route loading can be a\nasynchronous process which eventually returns and\nhas a set of "),e("code",[t._v("Route")]),t._v(" objects in "),e("code",[t._v("this.routes")]),t._v(",\nkeyed by their module and methods. To ensure the latter,\nactually adding "),e("code",[t._v("Route")]),t._v("s should be done via "),e("code",[t._v("addRoute")]),t._v(".")]),t._v(" "),e("p",[e("a",{attrs:{name:"Router+getRoutes"}})]),t._v(" "),e("h3",{attrs:{id:"router-getroutes-⇒-array-route"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router-getroutes-⇒-array-route"}},[t._v("#")]),t._v(" router.getRoutes() ⇒ "),e("code",[t._v("Array.")])]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": instance method of "),e("a",{attrs:{href:"#Router"}},[e("code",[t._v("Router")])]),e("br"),t._v(" "),e("a",{attrs:{name:"Router+addRoute"}})]),t._v(" "),e("h3",{attrs:{id:"router-addroute-route"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router-addroute-route"}},[t._v("#")]),t._v(" router.addRoute(route)")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": instance method of "),e("a",{attrs:{href:"#Router"}},[e("code",[t._v("Router")])])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("route")]),t._v(" "),e("td",[e("code",[t._v("Route")])])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{225:function(t,e,r){"use strict";r.r(e);var o=r(3),a=Object(o.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"Router"}})]),t._v(" "),e("h2",{attrs:{id:"router"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router"}},[t._v("#")]),t._v(" Router")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global class")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#Router"}},[t._v("Router")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#new_Router_new"}},[t._v("new Router()")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#Router+getRoutes"}},[t._v(".getRoutes()")]),t._v(" ⇒ "),e("code",[t._v("Array.")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#Router+addRoute"}},[t._v(".addRoute(route)")])])])])]),t._v(" "),e("p",[e("a",{attrs:{name:"new_Router_new"}})]),t._v(" "),e("h3",{attrs:{id:"new-router"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#new-router"}},[t._v("#")]),t._v(" new Router()")]),t._v(" "),e("p",[t._v("Basic router implementation for the ResourcefulApi.")]),t._v(" "),e("p",[t._v("Automagically creating api bound modules builds on\nan understanding of the available routes. To\neasily instantiate a Store bound to an endpoint,\nroute information for that endpoint must be provided.")]),t._v(" "),e("p",[t._v("Since every endpoint is implemented differently and\nthe choice where this route information comes from\nshould be left to the endpoint developer, this\nlibrary only assumes that route loading can be a\nasynchronous process which eventually returns and\nhas a set of "),e("code",[t._v("Route")]),t._v(" objects in "),e("code",[t._v("this.routes")]),t._v(",\nkeyed by their module and methods. To ensure the latter,\nactually adding "),e("code",[t._v("Route")]),t._v("s should be done via "),e("code",[t._v("addRoute")]),t._v(".")]),t._v(" "),e("p",[e("a",{attrs:{name:"Router+getRoutes"}})]),t._v(" "),e("h3",{attrs:{id:"router-getroutes-⇒-array-route"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router-getroutes-⇒-array-route"}},[t._v("#")]),t._v(" router.getRoutes() ⇒ "),e("code",[t._v("Array.")])]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": instance method of "),e("a",{attrs:{href:"#Router"}},[e("code",[t._v("Router")])]),e("br"),t._v(" "),e("a",{attrs:{name:"Router+addRoute"}})]),t._v(" "),e("h3",{attrs:{id:"router-addroute-route"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router-addroute-route"}},[t._v("#")]),t._v(" router.addRoute(route)")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": instance method of "),e("a",{attrs:{href:"#Router"}},[e("code",[t._v("Router")])])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("route")]),t._v(" "),e("td",[e("code",[t._v("Route")])])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/39.4f6dc3a8.js b/assets/js/39.1fee50fc.js similarity index 95% rename from assets/js/39.4f6dc3a8.js rename to assets/js/39.1fee50fc.js index 88a7e754..529dac9a 100644 --- a/assets/js/39.4f6dc3a8.js +++ b/assets/js/39.1fee50fc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{230:function(e,t,o){"use strict";o.r(t);var a=o(3),s=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"prepareModuleHashMap"}})]),e._v(" "),t("h2",{attrs:{id:"preparemodulehashmap-modules"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#preparemodulehashmap-modules"}},[e._v("#")]),e._v(" prepareModuleHashMap(modules)")]),e._v(" "),t("p",[e._v("Converts a module listing object (e.g. "),t("code",[e._v("{ myModule: myModule }")]),e._v(")\nto the expected syntax for module registration.")]),e._v(" "),t("p",[e._v("By default, this Vuex usage interpretation expects non-api-bound\nmodules to have a "),t("code",[e._v("name")]),e._v("-property which defines their namespaced\nname. This is necessary to facilitate auto-registration of the modules.")]),e._v(" "),t("p",[e._v("N.b.: There is no checking done to avoid overwrites of these modules\nby later-to-be-initialized api-bound modules.")]),e._v(" "),t("p",[t("strong",[e._v("Kind")]),e._v(": global function")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Param")]),e._v(" "),t("th",[e._v("Type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("modules")]),e._v(" "),t("td",[t("code",[e._v("object")]),e._v(" | "),t("code",[e._v("array")])])])])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{229:function(e,t,o){"use strict";o.r(t);var a=o(3),s=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"prepareModuleHashMap"}})]),e._v(" "),t("h2",{attrs:{id:"preparemodulehashmap-modules"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#preparemodulehashmap-modules"}},[e._v("#")]),e._v(" prepareModuleHashMap(modules)")]),e._v(" "),t("p",[e._v("Converts a module listing object (e.g. "),t("code",[e._v("{ myModule: myModule }")]),e._v(")\nto the expected syntax for module registration.")]),e._v(" "),t("p",[e._v("By default, this Vuex usage interpretation expects non-api-bound\nmodules to have a "),t("code",[e._v("name")]),e._v("-property which defines their namespaced\nname. This is necessary to facilitate auto-registration of the modules.")]),e._v(" "),t("p",[e._v("N.b.: There is no checking done to avoid overwrites of these modules\nby later-to-be-initialized api-bound modules.")]),e._v(" "),t("p",[t("strong",[e._v("Kind")]),e._v(": global function")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Param")]),e._v(" "),t("th",[e._v("Type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("modules")]),e._v(" "),t("td",[t("code",[e._v("object")]),e._v(" | "),t("code",[e._v("array")])])])])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/43.4701a1e5.js b/assets/js/43.2250b9a9.js similarity index 93% rename from assets/js/43.4701a1e5.js rename to assets/js/43.2250b9a9.js index 7220e775..d9641476 100644 --- a/assets/js/43.4701a1e5.js +++ b/assets/js/43.2250b9a9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{247:function(t,e,o){"use strict";o.r(e);var r=o(3),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"setItemMutation"}})]),t._v(" "),e("h2",{attrs:{id:"setitemmutation-resourcebuilder-iscollection"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setitemmutation-resourcebuilder-iscollection"}},[t._v("#")]),t._v(" setItemMutation(resourceBuilder, isCollection)")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("resourceBuilder")]),t._v(" "),e("td",[e("code",[t._v("ResourceBuilder")])])]),t._v(" "),e("tr",[e("td",[t._v("isCollection")]),t._v(" "),e("td",[e("code",[t._v("boolean")])])])])])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{248:function(t,e,o){"use strict";o.r(e);var r=o(3),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"setItemMutation"}})]),t._v(" "),e("h2",{attrs:{id:"setitemmutation-resourcebuilder-iscollection"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setitemmutation-resourcebuilder-iscollection"}},[t._v("#")]),t._v(" setItemMutation(resourceBuilder, isCollection)")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("resourceBuilder")]),t._v(" "),e("td",[e("code",[t._v("ResourceBuilder")])])]),t._v(" "),e("tr",[e("td",[t._v("isCollection")]),t._v(" "),e("td",[e("code",[t._v("boolean")])])])])])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/46.ecd1fc23.js b/assets/js/46.989c26c5.js similarity index 93% rename from assets/js/46.ecd1fc23.js rename to assets/js/46.989c26c5.js index 623849a8..e34cebb3 100644 --- a/assets/js/46.ecd1fc23.js +++ b/assets/js/46.989c26c5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{231:function(e,t,r){"use strict";r.r(t);var o=r(3),a=Object(o.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"validateResourceObject"}})]),e._v(" "),t("h2",{attrs:{id:"validateresourceobject-resourceobject-⇒"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#validateresourceobject-resourceobject-⇒"}},[e._v("#")]),e._v(" validateResourceObject(resourceObject) ⇒")]),e._v(" "),t("p",[e._v("Do a crude check for common json:api resource properties.\nThis is (probably) not a long-term solution!")]),e._v(" "),t("p",[t("strong",[e._v("Kind")]),e._v(": global function"),t("br"),e._v(" "),t("strong",[e._v("Returns")]),e._v(": Boolean")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Param")]),e._v(" "),t("th",[e._v("Type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("resourceObject")]),e._v(" "),t("td",[t("code",[e._v("Object")])])])])])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{230:function(e,t,r){"use strict";r.r(t);var o=r(3),a=Object(o.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"validateResourceObject"}})]),e._v(" "),t("h2",{attrs:{id:"validateresourceobject-resourceobject-⇒"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#validateresourceobject-resourceobject-⇒"}},[e._v("#")]),e._v(" validateResourceObject(resourceObject) ⇒")]),e._v(" "),t("p",[e._v("Do a crude check for common json:api resource properties.\nThis is (probably) not a long-term solution!")]),e._v(" "),t("p",[t("strong",[e._v("Kind")]),e._v(": global function"),t("br"),e._v(" "),t("strong",[e._v("Returns")]),e._v(": Boolean")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Param")]),e._v(" "),t("th",[e._v("Type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("resourceObject")]),e._v(" "),t("td",[t("code",[e._v("Object")])])])])])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/53.0a5a39dd.js b/assets/js/53.f9864fba.js similarity index 94% rename from assets/js/53.0a5a39dd.js rename to assets/js/53.f9864fba.js index 7e8d9ea7..70377b50 100644 --- a/assets/js/53.0a5a39dd.js +++ b/assets/js/53.f9864fba.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{229:function(t,n,i){"use strict";i.r(n);var e=i(3),o=Object(e.a)({},(function(){var t=this,n=t._self._c;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("p",[n("a",{attrs:{name:"initJsonApiPlugin"}})]),t._v(" "),n("h2",{attrs:{id:"initjsonapiplugin-config"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#initjsonapiplugin-config"}},[t._v("#")]),t._v(" initJsonApiPlugin(config)")]),t._v(" "),n("p",[t._v("Initialize the API Plugin")]),t._v(" "),n("p",[t._v("May receive a configuration object but at least\nneeds a configured router.")]),t._v(" "),n("p",[n("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Param")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[t._v("config")]),t._v(" "),n("td",[n("code",[t._v("Router")]),t._v(" | "),n("code",[t._v("Object")])]),t._v(" "),n("td",[t._v("or router")])])])])])}),[],!1,null,null,null);n.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{231:function(t,n,i){"use strict";i.r(n);var e=i(3),o=Object(e.a)({},(function(){var t=this,n=t._self._c;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("p",[n("a",{attrs:{name:"initJsonApiPlugin"}})]),t._v(" "),n("h2",{attrs:{id:"initjsonapiplugin-config"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#initjsonapiplugin-config"}},[t._v("#")]),t._v(" initJsonApiPlugin(config)")]),t._v(" "),n("p",[t._v("Initialize the API Plugin")]),t._v(" "),n("p",[t._v("May receive a configuration object but at least\nneeds a configured router.")]),t._v(" "),n("p",[n("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Param")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[t._v("config")]),t._v(" "),n("td",[n("code",[t._v("Router")]),t._v(" | "),n("code",[t._v("Object")])]),t._v(" "),n("td",[t._v("or router")])])])])])}),[],!1,null,null,null);n.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/54.7afc0b6c.js b/assets/js/54.c335fab6.js similarity index 94% rename from assets/js/54.7afc0b6c.js rename to assets/js/54.c335fab6.js index 5af5e705..bb7b64b4 100644 --- a/assets/js/54.7afc0b6c.js +++ b/assets/js/54.c335fab6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{225:function(t,s,o){"use strict";o.r(s);var r=o(3),n=Object(r.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("p",[s("a",{attrs:{name:"FosJsRoutingRouter"}})]),t._v(" "),s("h2",{attrs:{id:"fosjsroutingrouter"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fosjsroutingrouter"}},[t._v("#")]),t._v(" FosJsRoutingRouter")]),t._v(" "),s("p",[s("strong",[t._v("Kind")]),t._v(": global class"),s("br"),t._v(" "),s("strong",[t._v("See")])]),t._v(" "),s("ul",[s("li",[t._v("https://github.com/isychev/fos-routing/")]),t._v(" "),s("li",[t._v("https://github.com/FriendsOfSymfony/FOSJsRoutingBundle")])]),t._v(" "),s("p",[s("a",{attrs:{name:"new_FosJsRoutingRouter_new"}})]),t._v(" "),s("h3",{attrs:{id:"new-fosjsroutingrouter"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#new-fosjsroutingrouter"}},[t._v("#")]),t._v(" new FosJsRoutingRouter()")]),t._v(" "),s("p",[t._v("Pluggable api router if you're using Symfony and the FosJsRouting Bundle")])])}),[],!1,null,null,null);s.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{226:function(t,s,o){"use strict";o.r(s);var r=o(3),n=Object(r.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("p",[s("a",{attrs:{name:"FosJsRoutingRouter"}})]),t._v(" "),s("h2",{attrs:{id:"fosjsroutingrouter"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fosjsroutingrouter"}},[t._v("#")]),t._v(" FosJsRoutingRouter")]),t._v(" "),s("p",[s("strong",[t._v("Kind")]),t._v(": global class"),s("br"),t._v(" "),s("strong",[t._v("See")])]),t._v(" "),s("ul",[s("li",[t._v("https://github.com/isychev/fos-routing/")]),t._v(" "),s("li",[t._v("https://github.com/FriendsOfSymfony/FOSJsRoutingBundle")])]),t._v(" "),s("p",[s("a",{attrs:{name:"new_FosJsRoutingRouter_new"}})]),t._v(" "),s("h3",{attrs:{id:"new-fosjsroutingrouter"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#new-fosjsroutingrouter"}},[t._v("#")]),t._v(" new FosJsRoutingRouter()")]),t._v(" "),s("p",[t._v("Pluggable api router if you're using Symfony and the FosJsRouting Bundle")])])}),[],!1,null,null,null);s.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/57.a2e0b921.js b/assets/js/57.50ee9484.js similarity index 93% rename from assets/js/57.a2e0b921.js rename to assets/js/57.50ee9484.js index 7a73ab76..e89f95eb 100644 --- a/assets/js/57.a2e0b921.js +++ b/assets/js/57.50ee9484.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{241:function(t,e,s){"use strict";s.r(e);var a=s(3),r=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"registerMissingModule"}})]),t._v(" "),e("h2",{attrs:{id:"registermissingmodule-api-modulename"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#registermissingmodule-api-modulename"}},[t._v("#")]),t._v(" registerMissingModule(api, moduleName)")]),t._v(" "),e("p",[t._v("Register a standalone module to the store.")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("api")]),t._v(" "),e("td",[e("code",[t._v("ResourcefulApi")])])]),t._v(" "),e("tr",[e("td",[t._v("moduleName")]),t._v(" "),e("td",[e("code",[t._v("String")])])])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{242:function(t,e,s){"use strict";s.r(e);var a=s(3),r=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"registerMissingModule"}})]),t._v(" "),e("h2",{attrs:{id:"registermissingmodule-api-modulename"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#registermissingmodule-api-modulename"}},[t._v("#")]),t._v(" registerMissingModule(api, moduleName)")]),t._v(" "),e("p",[t._v("Register a standalone module to the store.")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("api")]),t._v(" "),e("td",[e("code",[t._v("ResourcefulApi")])])]),t._v(" "),e("tr",[e("td",[t._v("moduleName")]),t._v(" "),e("td",[e("code",[t._v("String")])])])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/60.6e42e74d.js b/assets/js/60.9765273a.js similarity index 94% rename from assets/js/60.6e42e74d.js rename to assets/js/60.9765273a.js index d037477c..86081223 100644 --- a/assets/js/60.6e42e74d.js +++ b/assets/js/60.9765273a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{261:function(t,r,e){"use strict";e.r(r);var o=e(3),n=Object(o.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("p",[r("a",{attrs:{name:"checkConfigProperty"}})]),t._v(" "),r("h2",{attrs:{id:"checkconfigproperty-config-property-isrequiredprop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#checkconfigproperty-config-property-isrequiredprop"}},[t._v("#")]),t._v(" checkConfigProperty(config, property, isRequiredProp)")]),t._v(" "),r("p",[r("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Param")]),t._v(" "),r("th",[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("config")]),t._v(" "),r("td",[r("code",[t._v("object")])])]),t._v(" "),r("tr",[r("td",[t._v("property")]),t._v(" "),r("td",[r("code",[t._v("String")])])]),t._v(" "),r("tr",[r("td",[t._v("isRequiredProp")]),t._v(" "),r("td",[r("code",[t._v("Boolean")])])])])])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{262:function(t,r,e){"use strict";e.r(r);var o=e(3),n=Object(o.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("p",[r("a",{attrs:{name:"checkConfigProperty"}})]),t._v(" "),r("h2",{attrs:{id:"checkconfigproperty-config-property-isrequiredprop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#checkconfigproperty-config-property-isrequiredprop"}},[t._v("#")]),t._v(" checkConfigProperty(config, property, isRequiredProp)")]),t._v(" "),r("p",[r("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Param")]),t._v(" "),r("th",[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("config")]),t._v(" "),r("td",[r("code",[t._v("object")])])]),t._v(" "),r("tr",[r("td",[t._v("property")]),t._v(" "),r("td",[r("code",[t._v("String")])])]),t._v(" "),r("tr",[r("td",[t._v("isRequiredProp")]),t._v(" "),r("td",[r("code",[t._v("Boolean")])])])])])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/61.ed6d3058.js b/assets/js/61.e1898988.js similarity index 94% rename from assets/js/61.ed6d3058.js rename to assets/js/61.e1898988.js index c36fec81..6d050f22 100644 --- a/assets/js/61.ed6d3058.js +++ b/assets/js/61.e1898988.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{248:function(t,e,o){"use strict";o.r(e);var r=o(3),l=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"setAllMutation"}})]),t._v(" "),e("h2",{attrs:{id:"setallmutation-resourcebuilder"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setallmutation-resourcebuilder"}},[t._v("#")]),t._v(" setAllMutation(resourceBuilder)")]),t._v(" "),e("p",[t._v("Proxy for setting Resource Objects on a collection module")]),t._v(" "),e("p",[t._v("The "),e("code",[t._v("Vuex.commit")]),t._v("-Syntax is")]),t._v(" "),e("p",[e("code",[t._v("commit('module/set', receivedCollectionObject)")])]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("resourceBuilder")]),t._v(" "),e("td",[e("code",[t._v("ResourceBuilder")])])])])])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{247:function(t,e,o){"use strict";o.r(e);var r=o(3),l=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"setAllMutation"}})]),t._v(" "),e("h2",{attrs:{id:"setallmutation-resourcebuilder"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setallmutation-resourcebuilder"}},[t._v("#")]),t._v(" setAllMutation(resourceBuilder)")]),t._v(" "),e("p",[t._v("Proxy for setting Resource Objects on a collection module")]),t._v(" "),e("p",[t._v("The "),e("code",[t._v("Vuex.commit")]),t._v("-Syntax is")]),t._v(" "),e("p",[e("code",[t._v("commit('module/set', receivedCollectionObject)")])]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("resourceBuilder")]),t._v(" "),e("td",[e("code",[t._v("ResourceBuilder")])])])])])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/assets/js/63.ce848b16.js b/assets/js/63.aeb4ee57.js similarity index 94% rename from assets/js/63.ce848b16.js rename to assets/js/63.aeb4ee57.js index 8c884043..b9b31da9 100644 --- a/assets/js/63.ce848b16.js +++ b/assets/js/63.aeb4ee57.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{257:function(t,e,i){"use strict";i.r(e);var n=i(3),a=Object(n.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"initialState"}})]),t._v(" "),e("h2",{attrs:{id:"initialstate-iscollection"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#initialstate-iscollection"}},[t._v("#")]),t._v(" initialState(isCollection)")]),t._v(" "),e("p",[t._v("Return a new Object representing the initial state of a module")]),t._v(" "),e("p",[t._v("The state is returned from inside a self-calling closure to\nmake absolutely sure we get pristine objects. This is a safety\nmeasure to guard against unintended cross-module reference bindings.")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("isCollection")]),t._v(" "),e("td",[e("code",[t._v("Boolean")])])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{256:function(t,e,i){"use strict";i.r(e);var n=i(3),a=Object(n.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[e("a",{attrs:{name:"initialState"}})]),t._v(" "),e("h2",{attrs:{id:"initialstate-iscollection"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#initialstate-iscollection"}},[t._v("#")]),t._v(" initialState(isCollection)")]),t._v(" "),e("p",[t._v("Return a new Object representing the initial state of a module")]),t._v(" "),e("p",[t._v("The state is returned from inside a self-calling closure to\nmake absolutely sure we get pristine objects. This is a safety\nmeasure to guard against unintended cross-module reference bindings.")]),t._v(" "),e("p",[e("strong",[t._v("Kind")]),t._v(": global function")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("isCollection")]),t._v(" "),e("td",[e("code",[t._v("Boolean")])])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/64.2790a4b5.js b/assets/js/64.ea259c15.js similarity index 93% rename from assets/js/64.2790a4b5.js rename to assets/js/64.ea259c15.js index ed41f946..bcdf5988 100644 --- a/assets/js/64.2790a4b5.js +++ b/assets/js/64.ea259c15.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{251:function(e,t,r){"use strict";r.r(t);var a=r(3),o=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"registerBaseModule"}})]),e._v(" "),t("h2",{attrs:{id:"registerbasemodule-store-api-modulename"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#registerbasemodule-store-api-modulename"}},[e._v("#")]),e._v(" registerBaseModule(store, api, moduleName)")]),e._v(" "),t("p",[t("strong",[e._v("Kind")]),e._v(": global function")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Param")]),e._v(" "),t("th",[e._v("Type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("store")]),e._v(" "),t("td",[t("code",[e._v("Vuex.Store")])])]),e._v(" "),t("tr",[t("td",[e._v("api")]),e._v(" "),t("td",[t("code",[e._v("ResourcefulApi")])])]),e._v(" "),t("tr",[t("td",[e._v("moduleName")]),e._v(" "),t("td",[t("code",[e._v("String")])])])])])])}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{252:function(e,t,r){"use strict";r.r(t);var a=r(3),o=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[t("a",{attrs:{name:"registerBaseModule"}})]),e._v(" "),t("h2",{attrs:{id:"registerbasemodule-store-api-modulename"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#registerbasemodule-store-api-modulename"}},[e._v("#")]),e._v(" registerBaseModule(store, api, moduleName)")]),e._v(" "),t("p",[t("strong",[e._v("Kind")]),e._v(": global function")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Param")]),e._v(" "),t("th",[e._v("Type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("store")]),e._v(" "),t("td",[t("code",[e._v("Vuex.Store")])])]),e._v(" "),t("tr",[t("td",[e._v("api")]),e._v(" "),t("td",[t("code",[e._v("ResourcefulApi")])])]),e._v(" "),t("tr",[t("td",[e._v("moduleName")]),e._v(" "),t("td",[t("code",[e._v("String")])])])])])])}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/71.568c0c6b.js b/assets/js/71.a3f9c3bb.js similarity index 97% rename from assets/js/71.568c0c6b.js rename to assets/js/71.a3f9c3bb.js index 92864618..042587ba 100644 --- a/assets/js/71.568c0c6b.js +++ b/assets/js/71.a3f9c3bb.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{219:function(e,t,a){"use strict";a.r(t);var s=a(3),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"requests"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#requests"}},[e._v("#")]),e._v(" Requests")]),e._v(" "),t("h2",{attrs:{id:"the-two-api-classes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#the-two-api-classes"}},[e._v("#")]),e._v(" The two API classes")]),e._v(" "),t("p",[e._v('This library comes with two classes carrying "Api" in their name. One\nis simply called '),t("code",[e._v("Api")]),e._v(". That is a very basic wrapper around the\n"),t("a",{attrs:{href:"https://github.com/axios/axios",target:"_blank",rel:"noopener noreferrer"}},[t("code",[e._v("axios")]),e._v("-Library"),t("OutboundLink")],1),e._v(" which is concerned with request configuration\nand basic response and error handling. The second one listens to\n"),t("code",[e._v("ResourcefulApi")]),e._v(". This one is the main server communication interface\nused by the module's actions.")]),e._v(" "),t("h3",{attrs:{id:"resource-request-methods"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#resource-request-methods"}},[e._v("#")]),e._v(" Resource request methods")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Intention")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("get")]),e._v(" "),t("td",[e._v("Request a single resource")])]),e._v(" "),t("tr",[t("td",[e._v("list")]),e._v(" "),t("td",[e._v("Request a list of resources")])]),e._v(" "),t("tr",[t("td",[e._v("create")]),e._v(" "),t("td",[e._v("Create a new resource")])]),e._v(" "),t("tr",[t("td",[e._v("replace")]),e._v(" "),t("td",[e._v("Replace an existing resource")])]),e._v(" "),t("tr",[t("td",[e._v("update")]),e._v(" "),t("td",[e._v("Update an existing resource")])]),e._v(" "),t("tr",[t("td",[e._v("delete")]),e._v(" "),t("td",[e._v("Delete an existing resource")])])])]),e._v(" "),t("h2",{attrs:{id:"what-happens-during-an-action"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#what-happens-during-an-action"}},[e._v("#")]),e._v(" What happens during an action?")]),e._v(" "),t("h3",{attrs:{id:"example"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[e._v("#")]),e._v(" Example")]),e._v(" "),t("p",[e._v("Given a properly routed API Endpoint "),t("code",[e._v("api/book/")]),e._v(" which will return a list\nof books, in the "),t("code",[e._v("book")]),e._v(" module")]),e._v(" "),t("mermaid",[e._v("\nsequenceDiagram\n activate ResourcefulApi\n Module-xResourcefulApi: Get me a `book.list` please?\n activate Api\n ResourcefulApi-xApi: Hey, can you do a `GET` on books?\n deactivate Api\n ResourcefulApi-xModule: Here's your data\n deactivate ResourcefulApi\n")])],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{218:function(e,t,a){"use strict";a.r(t);var s=a(3),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"requests"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#requests"}},[e._v("#")]),e._v(" Requests")]),e._v(" "),t("h2",{attrs:{id:"the-two-api-classes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#the-two-api-classes"}},[e._v("#")]),e._v(" The two API classes")]),e._v(" "),t("p",[e._v('This library comes with two classes carrying "Api" in their name. One\nis simply called '),t("code",[e._v("Api")]),e._v(". That is a very basic wrapper around the\n"),t("a",{attrs:{href:"https://github.com/axios/axios",target:"_blank",rel:"noopener noreferrer"}},[t("code",[e._v("axios")]),e._v("-Library"),t("OutboundLink")],1),e._v(" which is concerned with request configuration\nand basic response and error handling. The second one listens to\n"),t("code",[e._v("ResourcefulApi")]),e._v(". This one is the main server communication interface\nused by the module's actions.")]),e._v(" "),t("h3",{attrs:{id:"resource-request-methods"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#resource-request-methods"}},[e._v("#")]),e._v(" Resource request methods")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Intention")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("get")]),e._v(" "),t("td",[e._v("Request a single resource")])]),e._v(" "),t("tr",[t("td",[e._v("list")]),e._v(" "),t("td",[e._v("Request a list of resources")])]),e._v(" "),t("tr",[t("td",[e._v("create")]),e._v(" "),t("td",[e._v("Create a new resource")])]),e._v(" "),t("tr",[t("td",[e._v("replace")]),e._v(" "),t("td",[e._v("Replace an existing resource")])]),e._v(" "),t("tr",[t("td",[e._v("update")]),e._v(" "),t("td",[e._v("Update an existing resource")])]),e._v(" "),t("tr",[t("td",[e._v("delete")]),e._v(" "),t("td",[e._v("Delete an existing resource")])])])]),e._v(" "),t("h2",{attrs:{id:"what-happens-during-an-action"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#what-happens-during-an-action"}},[e._v("#")]),e._v(" What happens during an action?")]),e._v(" "),t("h3",{attrs:{id:"example"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[e._v("#")]),e._v(" Example")]),e._v(" "),t("p",[e._v("Given a properly routed API Endpoint "),t("code",[e._v("api/book/")]),e._v(" which will return a list\nof books, in the "),t("code",[e._v("book")]),e._v(" module")]),e._v(" "),t("mermaid",[e._v("\nsequenceDiagram\n activate ResourcefulApi\n Module-xResourcefulApi: Get me a `book.list` please?\n activate Api\n ResourcefulApi-xApi: Hey, can you do a `GET` on books?\n deactivate Api\n ResourcefulApi-xModule: Here's your data\n deactivate ResourcefulApi\n")])],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/72.0b11e488.js b/assets/js/72.15bb2736.js similarity index 98% rename from assets/js/72.0b11e488.js rename to assets/js/72.15bb2736.js index c9a214e5..d99cd547 100644 --- a/assets/js/72.0b11e488.js +++ b/assets/js/72.15bb2736.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{218:function(t,e,a){"use strict";a.r(e);var r=a(3),o=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"routing-in-the-context-of-this-plugin"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#routing-in-the-context-of-this-plugin"}},[t._v("#")]),t._v(" Routing in the context of this plugin")]),t._v(" "),e("h1",{attrs:{id:"router-implementations"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router-implementations"}},[t._v("#")]),t._v(" Router Implementations")]),t._v(" "),e("p",[t._v("This plugin contains several router implementations. The main purpose of\nthe router in vuex-json-api is to provide the resources for "),e("code",[t._v("ResourcefulApi")]),t._v(".\nIn effect, routes define the available modules by defining the possible\nrequest space.")]),t._v(" "),e("h2",{attrs:{id:"available-router-implementations"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#available-router-implementations"}},[t._v("#")]),t._v(" Available Router implementations")]),t._v(" "),e("h3",{attrs:{id:"staticrouter"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#staticrouter"}},[t._v("#")]),t._v(" StaticRouter")]),t._v(" "),e("p",[t._v("Generates a Router with a set of manually configured Routes.")]),t._v(" "),e("h3",{attrs:{id:"jsonapirouter"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#jsonapirouter"}},[t._v("#")]),t._v(" JsonApiRouter")]),t._v(" "),e("p",[t._v("Generates a Router by requesting route data from a json:api endpoint.")]),t._v(" "),e("h2",{attrs:{id:"route"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" "),e("code",[t._v("Route")])]),t._v(" "),e("p",[t._v("A Route configures the specific endpoint in relation to the "),e("code",[t._v("baseUrl")]),t._v(".")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("module")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("has to match the name of the requested type")])]),t._v(" "),e("tr",[e("td",[t._v("action")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("see supported "),e("RouterLink",{attrs:{to:"/usage/requests.html#the-two-api-classes"}},[t._v("apiMethods")])],1)]),t._v(" "),e("tr",[e("td",[t._v("url")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v('can be relative (to the baseUrl) or absolute (then it will bypass the "module name check" and create a storeModule named like the defined by the module param. independet of the type given by the response).')])]),t._v(" "),e("tr",[e("td",[t._v("parameters")]),t._v(" "),e("td",[e("code",[t._v("Array")])]),t._v(" "),e("td",[t._v("(Optional)")])])])]),t._v(" "),e("h2",{attrs:{id:"i-want-my-own-router"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#i-want-my-own-router"}},[t._v("#")]),t._v(" I want my own router")]),t._v(" "),e("p",[t._v("If the provided router implementations don't suit your needs you can\nalways just extend the "),e("code",[t._v("Router")]),t._v(" class and write your own. In the simplest\ncase, overriding "),e("code",[t._v("updateRoutes()")]),t._v(" should do the trick.")])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{220:function(t,e,a){"use strict";a.r(e);var r=a(3),o=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"routing-in-the-context-of-this-plugin"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#routing-in-the-context-of-this-plugin"}},[t._v("#")]),t._v(" Routing in the context of this plugin")]),t._v(" "),e("h1",{attrs:{id:"router-implementations"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#router-implementations"}},[t._v("#")]),t._v(" Router Implementations")]),t._v(" "),e("p",[t._v("This plugin contains several router implementations. The main purpose of\nthe router in vuex-json-api is to provide the resources for "),e("code",[t._v("ResourcefulApi")]),t._v(".\nIn effect, routes define the available modules by defining the possible\nrequest space.")]),t._v(" "),e("h2",{attrs:{id:"available-router-implementations"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#available-router-implementations"}},[t._v("#")]),t._v(" Available Router implementations")]),t._v(" "),e("h3",{attrs:{id:"staticrouter"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#staticrouter"}},[t._v("#")]),t._v(" StaticRouter")]),t._v(" "),e("p",[t._v("Generates a Router with a set of manually configured Routes.")]),t._v(" "),e("h3",{attrs:{id:"jsonapirouter"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#jsonapirouter"}},[t._v("#")]),t._v(" JsonApiRouter")]),t._v(" "),e("p",[t._v("Generates a Router by requesting route data from a json:api endpoint.")]),t._v(" "),e("h2",{attrs:{id:"route"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" "),e("code",[t._v("Route")])]),t._v(" "),e("p",[t._v("A Route configures the specific endpoint in relation to the "),e("code",[t._v("baseUrl")]),t._v(".")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Param")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("module")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("has to match the name of the requested type")])]),t._v(" "),e("tr",[e("td",[t._v("action")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v("see supported "),e("RouterLink",{attrs:{to:"/usage/requests.html#the-two-api-classes"}},[t._v("apiMethods")])],1)]),t._v(" "),e("tr",[e("td",[t._v("url")]),t._v(" "),e("td",[e("code",[t._v("String")])]),t._v(" "),e("td",[t._v('can be relative (to the baseUrl) or absolute (then it will bypass the "module name check" and create a storeModule named like the defined by the module param. independet of the type given by the response).')])]),t._v(" "),e("tr",[e("td",[t._v("parameters")]),t._v(" "),e("td",[e("code",[t._v("Array")])]),t._v(" "),e("td",[t._v("(Optional)")])])])]),t._v(" "),e("h2",{attrs:{id:"i-want-my-own-router"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#i-want-my-own-router"}},[t._v("#")]),t._v(" I want my own router")]),t._v(" "),e("p",[t._v("If the provided router implementations don't suit your needs you can\nalways just extend the "),e("code",[t._v("Router")]),t._v(" class and write your own. In the simplest\ncase, overriding "),e("code",[t._v("updateRoutes()")]),t._v(" should do the trick.")])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/73.6a64cd6d.js b/assets/js/73.2582b43e.js similarity index 99% rename from assets/js/73.6a64cd6d.js rename to assets/js/73.2582b43e.js index a15097e9..f4a02e90 100644 --- a/assets/js/73.6a64cd6d.js +++ b/assets/js/73.2582b43e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{220:function(t,s,a){"use strict";a.r(s);var n=a(3),e=Object(n.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"example-setup"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#example-setup"}},[t._v("#")]),t._v(" Example Setup")]),t._v(" "),s("h2",{attrs:{id:"prepare-the-store"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#prepare-the-store"}},[t._v("#")]),t._v(" Prepare the store")]),t._v(" "),s("div",{staticClass:"language-js extra-class"},[s("pre",{pre:!0,attrs:{class:"language-js"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" createApp "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'vue'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" createStore "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'vuex'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" initJsonApiPlugin"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" prepareModuleHashMap"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" StaticRouter "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'@efrane/vuex-json-api'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" VuexApiRoutes "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'/VuexApiRoutes'")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" router "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("StaticRouter")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("VuexApiRoutes"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" baseUrl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'/my-base/api/1.0'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" app "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createApp")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("rootComponent"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" router\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateRoutes")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("router")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createStore")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("plugins")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("initJsonApiPlugin")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("router")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" router"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("baseUrl")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" baseUrl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("headers")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// you might want to set some custom headers")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("preprocessingCallbacks")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// you can pass an array of promise resolving methods to manipulate the response before passing it to the store")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("errorCallbacks")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// you can pass an array of promise resolving methods to manipulate the response if an error gets returned (e.g. statuscode >= 400)")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("store")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("api"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("checkResponse "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" checkResponse\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" store\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n \napp"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("use")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("export")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n")])])]),s("h2",{attrs:{id:"mount-vue"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mount-vue"}},[t._v("#")]),t._v(" Mount Vue")]),t._v(" "),s("div",{staticClass:"language-js extra-class"},[s("pre",{pre:!0,attrs:{class:"language-js"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" createApp "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'vue'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'/Store'")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The Module names has")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" presetModules "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("name")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-a'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("defaultQuery")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("group")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-a'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("name")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-b'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("defaultQuery")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("group")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-b'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n\nstore"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("store")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" instance "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createApp")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("components")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// do the regular stuff you do, when using vue")]),t._v("\n store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// register preset modules")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" rootModule "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("in")]),t._v(" presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Object")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("prototype"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("hasOwnProperty")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("call")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" rootModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("rootModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("presetModule")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createPresetModule")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("presetModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("name"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("base")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" rootModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("defaultQuery")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" presetModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaultQuery\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n")])])]),s("p",[t._v("That's it.\nNow you should see the registered modules in the vue devTools.")])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{219:function(t,s,a){"use strict";a.r(s);var n=a(3),e=Object(n.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"example-setup"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#example-setup"}},[t._v("#")]),t._v(" Example Setup")]),t._v(" "),s("h2",{attrs:{id:"prepare-the-store"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#prepare-the-store"}},[t._v("#")]),t._v(" Prepare the store")]),t._v(" "),s("div",{staticClass:"language-js extra-class"},[s("pre",{pre:!0,attrs:{class:"language-js"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" createApp "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'vue'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" createStore "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'vuex'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" initJsonApiPlugin"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" prepareModuleHashMap"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" StaticRouter "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'@efrane/vuex-json-api'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" VuexApiRoutes "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'/VuexApiRoutes'")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" router "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("StaticRouter")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("VuexApiRoutes"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" baseUrl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'/my-base/api/1.0'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" app "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createApp")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("rootComponent"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" router\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateRoutes")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("router")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createStore")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("plugins")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("initJsonApiPlugin")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("router")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" router"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("baseUrl")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" baseUrl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("headers")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// you might want to set some custom headers")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("preprocessingCallbacks")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// you can pass an array of promise resolving methods to manipulate the response before passing it to the store")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("errorCallbacks")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// you can pass an array of promise resolving methods to manipulate the response if an error gets returned (e.g. statuscode >= 400)")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("store")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("api"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("checkResponse "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" checkResponse\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" store\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n \napp"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("use")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("export")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n")])])]),s("h2",{attrs:{id:"mount-vue"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mount-vue"}},[t._v("#")]),t._v(" Mount Vue")]),t._v(" "),s("div",{staticClass:"language-js extra-class"},[s("pre",{pre:!0,attrs:{class:"language-js"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" createApp "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'vue'")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" store "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'/Store'")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The Module names has")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" presetModules "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("name")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-a'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("defaultQuery")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("group")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-a'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("name")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-b'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("defaultQuery")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("group")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'module-name-b'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n\nstore"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("store")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" instance "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createApp")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("components")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// do the regular stuff you do, when using vue")]),t._v("\n store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("then")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// register preset modules")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" rootModule "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("in")]),t._v(" presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Object")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("prototype"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("hasOwnProperty")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("call")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" rootModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n presetStoreModules"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("rootModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("presetModule")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n store"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createPresetModule")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("presetModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("name"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("base")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" rootModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("defaultQuery")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" presetModule"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaultQuery\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n")])])]),s("p",[t._v("That's it.\nNow you should see the registered modules in the vue devTools.")])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/app.35af93e4.js b/assets/js/app.f0a99cc2.js similarity index 93% rename from assets/js/app.35af93e4.js rename to assets/js/app.f0a99cc2.js index 52b16c62..35253729 100644 --- a/assets/js/app.35af93e4.js +++ b/assets/js/app.f0a99cc2.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(e){function t(t){for(var r,a,s=t[0],c=t[1],u=t[2],f=0,p=[];f
'};function o(e,t,n){return en?n:e}function i(e){return 100*(-1+e)}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var c=n.render(!t),u=c.querySelector(r.barSelector),l=r.speed,f=r.easing;return c.offsetWidth,a((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(u,function(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+n,o}(e,l,f)),1===e?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),l)}),l)):setTimeout(t,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,a=t.querySelector(r.barSelector),c=e?"-100":i(n.status||0),l=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&p(o),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function c(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=f(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=f(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){var r=n(54),o=n(4),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var r=n(2)(n(1),"Map");e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(74),o=n(81),i=n(83),a=n(84),s=n(85);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(0),o=n(20),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(5),o=n(4);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++nl))return!1;var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var d=-1,v=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++d-1&&e%1==0&&e=0&&Math.floor(t)===t&&isFinite(e)}function v(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===f?JSON.stringify(e,g,2):String(e)}function g(e,t){return t&&t.__v_isRef?t.value:t}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function b(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function k(e,t){return w.call(e,t)}function C(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var $=/-(\w)/g,O=C((function(e){return e.replace($,(function(e,t){return t?t.toUpperCase():""}))})),j=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,S=C((function(e){return e.replace(P,"-$1").toLowerCase()}));var E=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function A(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function R(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n0,Z=G&&G.indexOf("edge/")>0;G&&G.indexOf("android");var ee=G&&/iphone|ipad|ipod|ios/.test(G);G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G);var te,ne=G&&G.match(/firefox\/(\d+)/),re={}.watch,oe=!1;if(Q)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){oe=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===te&&(te=!Q&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),te},se=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"==typeof e&&/native code/.test(e.toString())}var ue,le="undefined"!=typeof Symbol&&ce(Symbol)&&"undefined"!=typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!=typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=null;function pe(e){void 0===e&&(e=null),e||fe&&fe._scope.off(),fe=e,e&&e._scope.on()}var he=function(){function e(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),de=function(e){void 0===e&&(e="");var t=new he;return t.text=e,t.isComment=!0,t};function ve(e){return new he(void 0,void 0,void 0,String(e))}function me(e){var t=new he(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"==typeof SuppressedError&&SuppressedError;var ge=0,ye=[],be=function(){function e(){this._pending=!1,this.id=ge++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ye.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,r=t.length;n0&&(Ge((u=e(u,"".concat(n||"","_").concat(r)))[0])&&Ge(f)&&(p[l]=ve(f.text+u[0].text),u.shift()),p.push.apply(p,u)):c(u)?Ge(f)?p[l]=ve(f.text+u):""!==u&&p.push(ve(u)):Ge(u)&&Ge(f)?p[l]=ve(f.text+u.text):(s(t._isVList)&&a(u.tag)&&i(u.key)&&a(n)&&(u.key="__vlist".concat(n,"_").concat(r,"__")),p.push(u)));return p}(e):void 0}function Ge(e){return a(e)&&a(e.text)&&!1===e.isComment}function Xe(e,t){var n,r,i,s,c=null;if(o(e)||"string"==typeof e)for(c=new Array(e.length),n=0,r=e.length;n0,s=t?!!t.$stable:!a,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&o&&o!==r&&c===o.$key&&!a&&!o.$hasNormal)return o;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=mt(e,n,u,t[u]))}else i={};for(var l in n)l in i||(i[l]=gt(n,l));return t&&Object.isExtensible(t)&&(t._normalized=i),J(i,"$stable",s),J(i,"$key",c),J(i,"$hasNormal",a),i}function mt(e,t,n,r){var i=function(){var t=fe;pe(e);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:Qe(n))&&n[0];return pe(t),n&&(!i||1===n.length&&i.isComment&&!dt(i))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function gt(e,t){return function(){return e[t]}}function yt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};J(t,"_v_attr_proxy",!0),bt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||bt(e._listenersProxy={},e.$listeners,r,e,"$listeners");return e._listenersProxy},get slots(){return function(e){e._slotsProxy||xt(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(e)},emit:E(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Ue(e,t,n)}))}}}function bt(e,t,n,r,o){var i=!1;for(var a in t)a in e?t[a]!==n[a]&&(i=!0):(i=!0,_t(e,a,r,o));for(var a in e)a in t||(i=!0,delete e[a]);return i}function _t(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function xt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}var wt=null;function kt(e,t){return(e.__esModule||le&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Ct(e){if(o(e))for(var t=0;tdocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}var fn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function pn(){var e,t;for(cn=un(),an=!0,tn.sort(fn),sn=0;snsn&&tn[n].id>e.id;)n--;tn.splice(n+1,0,e)}else tn.push(e);on||(on=!0,Ft(pn))}}function dn(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),o=0;o-1)if(i&&!k(o,"default"))a=!1;else if(""===a||a===S(e)){var c=In(String,o.type);(c<0||s-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Xn(e,t){var n=e.cache,r=e.keys,o=e._vnode,i=e.$vnode;for(var a in n){var s=n[a];if(s){var c=s.name;c&&!t(c)&&Yn(n,a,r,o)}}i.componentOptions.children=void 0}function Yn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,x(n,t)}Wn.prototype._init=function(e){var t=this;t._uid=Hn++,t._isVue=!0,t.__v_skip=!0,t._scope=new qe(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=En(Jn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Qt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=pt(t._renderChildren,o),e.$scopedSlots=n?vt(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,o){return $t(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return $t(e,t,n,r,o,!0)};var i=n&&n.data;Re(e,"$attrs",i&&i.attrs||r,null,!0),Re(e,"$listeners",t._parentListeners||r,null,!0)}(t),en(t,"beforeCreate",void 0,!1),function(e){var t=dn(e.$options.inject,e);t&&(Pe(!1),Object.keys(t).forEach((function(n){Re(e,n,t[n])})),Pe(!0))}(t),Fn(t),function(e){var t=e.$options.provide;if(t){var n=u(t)?t.call(e):t;if(!l(n))return;for(var r=ze(e),o=le?Reflect.ownKeys(n):Object.keys(n),i=0;i1?A(n):n;for(var r=A(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Yn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Yn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Xn(e,(function(e){return Gn(t,e)}))})),this.$watch("exclude",(function(t){Xn(e,(function(e){return!Gn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Ct(e),n=t&&t.componentOptions;if(n){var r=Qn(n),o=this.include,i=this.exclude;if(o&&(!r||!Gn(o,r))||i&&r&&Gn(i,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,x(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return z}};Object.defineProperty(e,"config",t),e.util={warn:kn,extend:R,mergeOptions:En,defineReactive:Re},e.set=Me,e.delete=Le,e.nextTick=Ft,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,R(e.options.components,er),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=En(this.options,e),this}}(e),Kn(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Wn),Object.defineProperty(Wn.prototype,"$isServer",{get:ae}),Object.defineProperty(Wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Wn,"FunctionalRenderContext",{value:vn}),Wn.version="2.7.16";var tr=b("style,class"),nr=b("input,textarea,option,select,progress"),rr=b("contenteditable,draggable,spellcheck"),or=b("events,caret,typing,plaintext-only"),ir=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ar="http://www.w3.org/1999/xlink",sr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},cr=function(e){return sr(e)?e.slice(6,e.length):""},ur=function(e){return null==e||!1===e};function lr(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=fr(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=fr(t,n.data));return function(e,t){if(a(e)||a(t))return pr(e,hr(t));return""}(t.staticClass,t.class)}function fr(e,t){return{staticClass:pr(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function pr(e,t){return e?t?e+" "+t:e:t||""}function hr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r-1?Nr(e,t,n):ir(t)?ur(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):rr(t)?e.setAttribute(t,function(e,t){return ur(t)||"false"===t?"false":"contenteditable"===e&&or(t)?t:"true"}(t,n)):sr(t)?ur(n)?e.removeAttributeNS(ar,cr(t)):e.setAttributeNS(ar,t,n):Nr(e,t,n)}function Nr(e,t,n){if(ur(n))e.removeAttribute(t);else{if(X&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Dr={create:Tr,update:Tr};function Fr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=lr(t),c=n._transitionClasses;a(c)&&(s=pr(s,hr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ur,Br={create:Fr,update:Fr};function qr(e,t,n){var r=Ur;return function o(){var i=t.apply(null,arguments);null!==i&&Hr(e,o,n,r)}}var zr=At&&!(ne&&Number(ne[1])<=53);function Vr(e,t,n,r){if(zr){var o=cn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}Ur.addEventListener(e,t,oe?{capture:n,passive:r}:n)}function Hr(e,t,n,r){(r||Ur).removeEventListener(e,t._wrapper||t,n)}function Jr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ur=t.elm||e.elm,function(e){if(a(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Je(n,r,Vr,Hr,qr,t.context),Ur=void 0}}var Wr,Kr={create:Jr,update:Jr,destroy:function(e){return Jr(e,Cr)}};function Qr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,c=e.data.domProps||{},u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=R({},u)),c)n in u||(o[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var l=i(r)?"":String(r);Gr(o,l)&&(o.value=l)}else if("innerHTML"===n&&mr(o.tagName)&&i(o.innerHTML)){(Wr=Wr||document.createElement("div")).innerHTML="".concat(r,"");for(var f=Wr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;f.firstChild;)o.appendChild(f.firstChild)}else if(r!==c[n])try{o[n]=r}catch(e){}}}}function Gr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Xr={create:Qr,update:Qr},Yr=C((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Zr(e){var t=eo(e.style);return e.staticStyle?R(e.staticStyle,t):t}function eo(e){return Array.isArray(e)?M(e):"string"==typeof e?Yr(e):e}var to,no=/^--/,ro=/\s*!important$/,oo=function(e,t,n){if(no.test(t))e.style.setProperty(t,n);else if(ro.test(n))e.style.setProperty(S(t),n.replace(ro,""),"important");else{var r=ao(t);if(Array.isArray(n))for(var o=0,i=n.length;o-1?t.split(uo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function fo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(uo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function po(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&R(t,ho(e.name||"v")),R(t,e),t}return"string"==typeof e?ho(e):void 0}}var ho=C((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),vo=Q&&!Y,mo="transition",go="transitionend",yo="animation",bo="animationend";vo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(mo="WebkitTransition",go="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(yo="WebkitAnimation",bo="webkitAnimationEnd"));var _o=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function xo(e){_o((function(){_o(e)}))}function wo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),lo(e,t))}function ko(e,t){e._transitionClasses&&x(e._transitionClasses,t),fo(e,t)}function Co(e,t,n){var r=Oo(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s="transition"===o?go:bo,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(n="transition",l=a,f=i.length):"animation"===t?u>0&&(n="animation",l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:"transition"===n&&$o.test(r[mo+"Property"])}}function jo(e,t){for(;e.length1}function Mo(e,t){!0!==t.data.show&&So(t)}var Lo=function(e){var t,n,r={},u=e.modules,l=e.nodeOps;for(t=0;t<$r.length;++t)for(r[$r[t]]=[],n=0;nd?_(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&w(t,f,d)}(f,v,g,n,u):a(g)?(a(e.text)&&l.setTextContent(f,""),_(f,null,g,0,g.length-1,n)):a(v)?w(v,0,v.length-1):a(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),a(d)&&a(h=d.hook)&&a(h=h.postpatch)&&h(e,t)}}}function O(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(N(Fo(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function Do(e,t){return t.every((function(t){return!N(t,e)}))}function Fo(e){return"_value"in e?e._value:e.value}function Uo(e){e.target.composing=!0}function Bo(e){e.target.composing&&(e.target.composing=!1,qo(e.target,"input"))}function qo(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function zo(e){return!e.componentInstance||e.data&&e.data.transition?e:zo(e.componentInstance._vnode)}var Vo={model:To,show:{bind:function(e,t,n){var r=t.value,o=(n=zo(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,So(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=zo(n)).data&&n.data.transition?(n.data.show=!0,r?So(n,(function(){e.style.display=e.__vOriginalDisplay})):Eo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}}},Ho={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Jo(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Jo(Ct(t.children)):e}function Wo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var r in o)t[O(r)]=o[r];return t}function Ko(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Qo=function(e){return e.tag||dt(e)},Go=function(e){return"show"===e.name},Xo={name:"transition",props:Ho,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Qo)).length){0;var r=this.mode;0;var o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var i=Jo(o);if(!i)return o;if(this._leaving)return Ko(e,o);var a="__transition-".concat(this._uid,"-");i.key=null==i.key?i.isComment?a+"comment":a+i.tag:c(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=Wo(this),u=this._vnode,l=Jo(u);if(i.data.directives&&i.data.directives.some(Go)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!dt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=R({},s);if("out-in"===r)return this._leaving=!0,We(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ko(e,o);if("in-out"===r){if(dt(i))return u;var p,h=function(){p()};We(s,"afterEnter",h),We(s,"enterCancelled",h),We(f,"delayLeave",(function(e){p=e}))}}return o}}},Yo=R({tag:String,moveClass:String},Ho);function Zo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ei(e){e.data.newPos=e.elm.getBoundingClientRect()}function ti(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}delete Yo.mode;var ni={Transition:Xo,TransitionGroup:{props:Yo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=Wo(this),s=0;s-1?yr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:yr[e]=/HTMLUnknownElement/.test(t.toString())},R(Wn.options.directives,Vo),R(Wn.options.components,ni),Wn.prototype.__patch__=Q?Lo:L,Wn.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=de),en(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Ht(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&en(e,"beforeUpdate")}},!0),n=!1;var o=e._preWatchers;if(o)for(var i=0;i=0&&(t=e.slice(r),e=e.slice(0,r));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:t}}(o.path||""),u=t&&t.path||"/",l=c.path?ki(c.path,u,n||o.append):u,f=function(e,t,n){void 0===t&&(t={});var r,o=n||li;try{r=o(e||"")}catch(e){r={}}for(var i in t){var a=t[i];r[i]=Array.isArray(a)?a.map(ui):ui(a)}return r}(c.query,o.query,r&&r.options.parseQuery),p=o.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:l,query:f,hash:p}}var Vi,Hi=function(){},Ji={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==l?"router-link-exact-active":l,h=null==this.activeClass?f:this.activeClass,d=null==this.exactActiveClass?p:this.exactActiveClass,v=a.redirectedFrom?hi(null,zi(a.redirectedFrom),null,n):a;c[d]=yi(r,v,this.exactPath),c[h]=this.exact||this.exactPath?c[d]:function(e,t){return 0===e.path.replace(pi,"/").indexOf(t.path.replace(pi,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,v);var m=c[d]?this.ariaCurrentValue:null,g=function(e){Wi(e)&&(t.replace?n.replace(i,Hi):n.push(i,Hi))},y={click:Wi};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=g})):y[this.event]=g;var b={class:c},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:g,isActive:c[h],isExactActive:c[d]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?e():e("span",{},_)}if("a"===this.tag)b.on=y,b.attrs={href:s,"aria-current":m};else{var x=function e(t){var n;if(t)for(var r=0;r-1&&(s.params[p]=n.params[p]);return s.path=qi(l.path,s.params),c(l,s,a)}if(s.path){s.params={};for(var h=0;h-1}function Ca(e,t){return ka(e)&&e._isRouter&&(null==t||e.type===t)}function $a(e,t,n){var r=function(o){o>=e.length?n():e[o]?t(e[o],(function(){r(o+1)})):r(o+1)};r(0)}function Oa(e){return function(t,n,r){var o=!1,i=0,a=null;ja(e,(function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){o=!0,i++;var c,u=Ea((function(t){var o;((o=t).__esModule||Sa&&"Module"===o[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:Vi.extend(t),n.components[s]=t,--i<=0&&r()})),l=Ea((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=ka(e)?e:new Error(t),r(a))}));try{c=e(u,l)}catch(e){l(e)}if(c)if("function"==typeof c.then)c.then(u,l);else{var f=c.component;f&&"function"==typeof f.then&&f.then(u,l)}}})),o||r()}}function ja(e,t){return Pa(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Pa(e){return Array.prototype.concat.apply([],e)}var Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ea(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Aa=function(e,t){this.router=e,this.base=function(e){if(!e)if(Ki){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=vi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ra(e,t,n,r){var o=ja(e,(function(e,r,o,i){var a=function(e,t){"function"!=typeof e&&(e=Vi.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,o,i)})):n(a,r,o,i)}));return Pa(r?o.reverse():o)}function Ma(e,t){if(t)return function(){return e.apply(t,arguments)}}Aa.prototype.listen=function(e){this.cb=e},Aa.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Aa.prototype.onError=function(e){this.errorCbs.push(e)},Aa.prototype.transitionTo=function(e,t,n){var r,o=this;try{r=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),t&&t(r),o.ensureURL(),o.router.afterHooks.forEach((function(e){e&&e(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!o.ready&&(Ca(e,ya.redirected)&&i===vi||(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)}))))}))},Aa.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var i,a,s=function(e){!Ca(e)&&ka(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},c=e.matched.length-1,u=o.matched.length-1;if(yi(e,o)&&c===u&&e.matched[c]===o.matched[u])return this.ensureURL(),e.hash&&aa(this.router,o,e,!1),s(((a=xa(i=o,e,ya.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var l=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=va&&n;r&&this.listeners.push(ia());var o=function(){var n=e.current,o=Ta(e.base);e.current===vi&&o===e._startLocation||e.transitionTo(o,(function(e){r&&aa(t,e,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){ma(Ci(r.base+e.fullPath)),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){ga(Ci(r.base+e.fullPath)),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Ta(this.base)!==this.current.fullPath){var t=Ci(this.base+this.current.fullPath);e?ma(t):ga(t)}},t.prototype.getCurrentLocation=function(){return Ta(this.base)},t}(Aa);function Ta(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(Ci(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ia=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=Ta(e);if(!/^\/#/.test(t))return window.location.replace(Ci(e+"/#"+t)),!0}(this.base)||Na()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=va&&t;n&&this.listeners.push(ia());var r=function(){var t=e.current;Na()&&e.transitionTo(Da(),(function(r){n&&aa(e.router,r,t,!0),va||Ba(r.fullPath)}))},o=va?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ua(e.fullPath),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ba(e.fullPath),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Da()!==t&&(e?Ua(t):Ba(t))},t.prototype.getCurrentLocation=function(){return Da()},t}(Aa);function Na(){var e=Da();return"/"===e.charAt(0)||(Ba("/"+e),!1)}function Da(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Fa(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Ua(e){va?ma(Fa(e)):window.location.hash=e}function Ba(e){va?ga(Fa(e)):window.location.replace(Fa(e))}var qa=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ca(e,ya.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Aa),za=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Xi(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!va&&!1!==e.fallback,this.fallback&&(t="hash"),Ki||(t="abstract"),this.mode=t,t){case"history":this.history=new La(this,e.base);break;case"hash":this.history=new Ia(this,e.base,this.fallback);break;case"abstract":this.history=new qa(this,e.base);break;default:0}},Va={currentRoute:{configurable:!0}};za.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Va.currentRoute.get=function(){return this.history&&this.history.current},za.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof La||n instanceof Ia){var r=function(e){n.setupListeners(),function(e){var r=n.current,o=t.options.scrollBehavior;va&&o&&"fullPath"in e&&aa(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},za.prototype.beforeEach=function(e){return Ja(this.beforeHooks,e)},za.prototype.beforeResolve=function(e){return Ja(this.resolveHooks,e)},za.prototype.afterEach=function(e){return Ja(this.afterHooks,e)},za.prototype.onReady=function(e,t){this.history.onReady(e,t)},za.prototype.onError=function(e){this.history.onError(e)},za.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},za.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},za.prototype.go=function(e){this.history.go(e)},za.prototype.back=function(){this.go(-1)},za.prototype.forward=function(){this.go(1)},za.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},za.prototype.resolve=function(e,t,n){var r=zi(e,t=t||this.history.current,n,this),o=this.match(r,t),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?Ci(e+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},za.prototype.getRoutes=function(){return this.matcher.getRoutes()},za.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},za.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(za.prototype,Va);var Ha=za;function Ja(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}za.install=function e(t){if(!e.installed||Vi!==t){e.installed=!0,Vi=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",xi),t.component("RouterLink",Ji);var o=t.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},za.version="3.6.5",za.isNavigationFailure=Ca,za.NavigationFailureType=ya,za.START_LOCATION=vi,Ki&&window.Vue&&window.Vue.use(za);var Wa={"components/AlgoliaSearchBox":()=>Promise.all([n.e(0),n.e(19)]).then(n.bind(null,207)),"components/DropdownLink":()=>Promise.all([n.e(0),n.e(13)]).then(n.bind(null,166)),"components/DropdownTransition":()=>Promise.all([n.e(0),n.e(20)]).then(n.bind(null,154)),"components/Home":()=>Promise.all([n.e(0),n.e(15)]).then(n.bind(null,192)),"components/NavLink":()=>n.e(22).then(n.bind(null,153)),"components/NavLinks":()=>Promise.all([n.e(0),n.e(12)]).then(n.bind(null,177)),"components/Navbar":()=>Promise.all([n.e(0),n.e(1)]).then(n.bind(null,203)),"components/Page":()=>Promise.all([n.e(0),n.e(11)]).then(n.bind(null,193)),"components/PageEdit":()=>Promise.all([n.e(0),n.e(16)]).then(n.bind(null,179)),"components/PageNav":()=>Promise.all([n.e(0),n.e(14)]).then(n.bind(null,180)),"components/Sidebar":()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,194)),"components/SidebarButton":()=>Promise.all([n.e(0),n.e(21)]).then(n.bind(null,195)),"components/SidebarGroup":()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,178)),"components/SidebarLink":()=>Promise.all([n.e(0),n.e(17)]).then(n.bind(null,167)),"components/SidebarLinks":()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,165)),"global-components/Badge":()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,213)),"global-components/CodeBlock":()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,208)),"global-components/CodeGroup":()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,209)),"layouts/404":()=>n.e(7).then(n.bind(null,210)),"layouts/Layout":()=>Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,211)),NotFound:()=>n.e(7).then(n.bind(null,210)),Layout:()=>Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,211))},Ka={"v-4d323bd8":()=>n.e(23).then(n.bind(null,214)),"v-33592580":()=>n.e(25).then(n.bind(null,215)),"v-38781923":()=>n.e(24).then(n.bind(null,216)),"v-a9dc5998":()=>n.e(69).then(n.bind(null,217)),"v-71c2cd23":()=>n.e(70).then(n.bind(null,212)),"v-4ad408c1":()=>n.e(72).then(n.bind(null,218)),"v-67ba7d8b":()=>n.e(71).then(n.bind(null,219)),"v-1283c6ba":()=>n.e(73).then(n.bind(null,220)),"v-0db3c54e":()=>n.e(31).then(n.bind(null,221)),"v-0c69976f":()=>n.e(30).then(n.bind(null,222)),"v-49c8f649":()=>n.e(47).then(n.bind(null,223)),"v-f2c09488":()=>n.e(67).then(n.bind(null,224)),"v-5dc4612d":()=>n.e(54).then(n.bind(null,225)),"v-17e728c0":()=>n.e(36).then(n.bind(null,226)),"v-33faa4a4":()=>n.e(44).then(n.bind(null,227)),"v-2720ef19":()=>n.e(41).then(n.bind(null,228)),"v-5d6066e2":()=>n.e(53).then(n.bind(null,229)),"v-1c8659c0":()=>n.e(39).then(n.bind(null,230)),"v-46aef638":()=>n.e(46).then(n.bind(null,231)),"v-00e9312e":()=>n.e(26).then(n.bind(null,232)),"v-5a304ccb":()=>n.e(50).then(n.bind(null,233)),"v-5dc99f07":()=>n.e(55).then(n.bind(null,234)),"v-06af9c14":()=>n.e(28).then(n.bind(null,235)),"v-1bfb9cc8":()=>n.e(38).then(n.bind(null,236)),"v-3a435c5c":()=>n.e(45).then(n.bind(null,237)),"v-6d14be7a":()=>n.e(58).then(n.bind(null,238)),"v-6dad531a":()=>n.e(59).then(n.bind(null,239)),"v-18a942e2":()=>n.e(37).then(n.bind(null,240)),"v-67c3b570":()=>n.e(57).then(n.bind(null,241)),"v-174fa19d":()=>n.e(35).then(n.bind(null,242)),"v-5d5bd37b":()=>n.e(52).then(n.bind(null,243)),"v-24b55d06":()=>n.e(40).then(n.bind(null,244)),"v-53fe9ece":()=>n.e(49).then(n.bind(null,245)),"v-13dab3c1":()=>n.e(32).then(n.bind(null,246)),"v-3020b259":()=>n.e(43).then(n.bind(null,247)),"v-78969153":()=>n.e(61).then(n.bind(null,248)),"v-e97a16a8":()=>n.e(66).then(n.bind(null,249)),"v-7b8b979c":()=>n.e(62).then(n.bind(null,250)),"v-ce665d4a":()=>n.e(64).then(n.bind(null,251)),"v-14561809":()=>n.e(33).then(n.bind(null,252)),"v-5c3ed1e5":()=>n.e(51).then(n.bind(null,253)),"v-d6889680":()=>n.e(65).then(n.bind(null,254)),"v-661fcd45":()=>n.e(56).then(n.bind(null,255)),"v-1547d1e7":()=>n.e(34).then(n.bind(null,256)),"v-bcb00224":()=>n.e(63).then(n.bind(null,257)),"v-fb185622":()=>n.e(68).then(n.bind(null,258)),"v-4d94196a":()=>n.e(48).then(n.bind(null,259)),"v-2a978f76":()=>n.e(42).then(n.bind(null,260)),"v-76b8bc10":()=>n.e(60).then(n.bind(null,261)),"v-01979d90":()=>n.e(27).then(n.bind(null,262)),"v-089a996c":()=>n.e(29).then(n.bind(null,263))};function Qa(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const Ga=/-(\w)/g,Xa=Qa(e=>e.replace(Ga,(e,t)=>t?t.toUpperCase():"")),Ya=/\B([A-Z])/g,Za=Qa(e=>e.replace(Ya,"-$1").toLowerCase()),es=Qa(e=>e.charAt(0).toUpperCase()+e.slice(1));function ts(e,t){if(!t)return;if(e(t))return e(t);return t.includes("-")?e(es(Xa(t))):e(es(t))||e(Za(t))}const ns=Object.assign({},Wa,Ka),rs=e=>ns[e],os=e=>Ka[e],is=e=>Wa[e],as=e=>Wn.component(e);function ss(e){return ts(os,e)}function cs(e){return ts(is,e)}function us(e){return ts(rs,e)}function ls(e){return ts(as,e)}function fs(...e){return Promise.all(e.filter(e=>e).map(async e=>{if(!ls(e)&&us(e)){const t=await us(e)();Wn.component(e,t.default)}}))}function ps(e,t){"undefined"!=typeof window&&window.__VUEPRESS__&&(window.__VUEPRESS__[e]=t)}var hs=n(46),ds=n.n(hs),vs=n(47),ms=n.n(vs),gs={created(){if(this.siteMeta=this.$site.headTags.filter(([e])=>"meta"===e).map(([e,t])=>t),this.$ssrContext){const t=this.getMergedMetaTags();this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.pageMeta=(e=t)?e.map(e=>{let t="{t+=` ${n}="${ms()(e[n])}"`}),t+">"}).join("\n "):"",this.$ssrContext.canonicalLink=bs(this.$canonicalUrl)}var e},mounted(){this.currentMetaTags=[...document.querySelectorAll("meta")],this.updateMeta(),this.updateCanonicalLink()},methods:{updateMeta(){document.title=this.$title,document.documentElement.lang=this.$lang;const e=this.getMergedMetaTags();this.currentMetaTags=_s(e,this.currentMetaTags)},getMergedMetaTags(){const e=this.$page.frontmatter.meta||[];return ds()([{name:"description",content:this.$description}],e,this.siteMeta,xs)},updateCanonicalLink(){ys(),this.$canonicalUrl&&document.head.insertAdjacentHTML("beforeend",bs(this.$canonicalUrl))}},watch:{$page(){this.updateMeta(),this.updateCanonicalLink()}},beforeDestroy(){_s(null,this.currentMetaTags),ys()}};function ys(){const e=document.querySelector("link[rel='canonical']");e&&e.remove()}function bs(e=""){return e?``:""}function _s(e,t){if(t&&[...t].filter(e=>e.parentNode===document.head).forEach(e=>document.head.removeChild(e)),e)return e.map(e=>{const t=document.createElement("meta");return Object.keys(e).forEach(n=>{t.setAttribute(n,e[n])}),document.head.appendChild(t),t})}function xs(e){for(const t of["name","property","itemprop"])if(e.hasOwnProperty(t))return e[t]+t;return JSON.stringify(e)}var ws=n(48),ks={mounted(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(ws)()((function(){this.setActiveHash()}),300),setActiveHash(){const e=[].slice.call(document.querySelectorAll(".sidebar-link")),t=[].slice.call(document.querySelectorAll(".header-anchor")).filter(t=>e.some(e=>e.hash===t.hash)),n=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),o=window.innerHeight+n;for(let e=0;e=i.parentElement.offsetTop+10&&(!a||n{this.$nextTick(()=>{this.$vuepress.$set("disableScrollBehavior",!1)})})}}}},beforeDestroy(){window.removeEventListener("scroll",this.onScroll)}},Cs=n(12),$s=n.n(Cs),Os=[gs,ks,{mounted(){$s.a.configure({showSpinner:!1}),this.$router.beforeEach((e,t,n)=>{e.path===t.path||Wn.component(e.name)||$s.a.start(),n()}),this.$router.afterEach(()=>{$s.a.done(),this.isSidebarOpen=!1})}}],js={name:"GlobalLayout",computed:{layout(){const e=this.getLayout();return ps("layout",e),Wn.component(e)}},methods:{getLayout(){if(this.$page.path){const e=this.$page.frontmatter.layout;return e&&(this.$vuepress.getLayoutAsyncComponent(e)||this.$vuepress.getVueComponent(e))?e:"Layout"}return"NotFound"}}},Ps=n(3),Ss=Object(Ps.a)(js,(function(){return(0,this._self._c)(this.layout,{tag:"component"})}),[],!1,null,null,null).exports;!function(e,t,n){switch(t){case"components":e[t]||(e[t]={}),Object.assign(e[t],n);break;case"mixins":e[t]||(e[t]=[]),e[t].push(...n);break;default:throw new Error("Unknown option name.")}}(Ss,"mixins",Os);const Es=[{name:"v-4d323bd8",path:"/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4d323bd8").then(n)}},{path:"/index.html",redirect:"/"},{name:"v-33592580",path:"/development/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-33592580").then(n)}},{path:"/development/index.html",redirect:"/development/"},{name:"v-38781923",path:"/deep-dive.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-38781923").then(n)}},{name:"v-a9dc5998",path:"/usage/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-a9dc5998").then(n)}},{path:"/usage/index.html",redirect:"/usage/"},{name:"v-71c2cd23",path:"/usage/modules.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-71c2cd23").then(n)}},{name:"v-4ad408c1",path:"/usage/router.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4ad408c1").then(n)}},{name:"v-67ba7d8b",path:"/usage/requests.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-67ba7d8b").then(n)}},{name:"v-1283c6ba",path:"/usage/setup.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1283c6ba").then(n)}},{name:"v-9c0f51cc",path:"/reference/class/ModuleBuilder.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-9c0f51cc").then(n)}},{name:"v-1078091c",path:"/reference/class/JsonApiRoute.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1078091c").then(n)}},{name:"v-718e502e",path:"/reference/class/JsonApiRouter.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-718e502e").then(n)}},{name:"v-ecf66ec0",path:"/reference/class/Route.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-ecf66ec0").then(n)}},{name:"v-4b25e572",path:"/reference/class/StaticRouter.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4b25e572").then(n)}},{name:"v-60a48542",path:"/reference/function/strip.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-60a48542").then(n)}},{name:"v-0db3c54e",path:"/reference/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-0db3c54e").then(n)}},{path:"/reference/index.html",redirect:"/reference/"},{name:"v-0c69976f",path:"/reference/class/Api.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-0c69976f").then(n)}},{name:"v-49c8f649",path:"/reference/class/ResourceProxy.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-49c8f649").then(n)}},{name:"v-f2c09488",path:"/reference/class/ResourceBuilder.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-f2c09488").then(n)}},{name:"v-5dc4612d",path:"/reference/class/FosJsRoutingRouter.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5dc4612d").then(n)}},{name:"v-17e728c0",path:"/reference/class/Router.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-17e728c0").then(n)}},{name:"v-33faa4a4",path:"/reference/class/StaticRoute.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-33faa4a4").then(n)}},{name:"v-2720ef19",path:"/reference/class/Performance.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-2720ef19").then(n)}},{name:"v-5d6066e2",path:"/reference/function/initJsonApiPlugin.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5d6066e2").then(n)}},{name:"v-1c8659c0",path:"/reference/function/prepareModuleHashMap.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1c8659c0").then(n)}},{name:"v-46aef638",path:"/reference/function/validateResourceObject.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-46aef638").then(n)}},{name:"v-00e9312e",path:"/reference/function/createAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-00e9312e").then(n)}},{name:"v-5a304ccb",path:"/reference/function/getAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5a304ccb").then(n)}},{name:"v-5dc99f07",path:"/reference/function/listAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5dc99f07").then(n)}},{name:"v-06af9c14",path:"/reference/function/listRelatedAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-06af9c14").then(n)}},{name:"v-1bfb9cc8",path:"/reference/function/saveAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1bfb9cc8").then(n)}},{name:"v-3a435c5c",path:"/reference/function/hasChanges.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-3a435c5c").then(n)}},{name:"v-6d14be7a",path:"/reference/function/itemsInRelationshipFormat.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-6d14be7a").then(n)}},{name:"v-6dad531a",path:"/reference/function/prepareQuery.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-6dad531a").then(n)}},{name:"v-18a942e2",path:"/reference/function/isMissingModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-18a942e2").then(n)}},{name:"v-67c3b570",path:"/reference/function/registerMissingModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-67c3b570").then(n)}},{name:"v-174fa19d",path:"/reference/function/processResponseData.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-174fa19d").then(n)}},{name:"v-5d5bd37b",path:"/reference/function/compileMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5d5bd37b").then(n)}},{name:"v-24b55d06",path:"/reference/function/setResourceObjectsForModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-24b55d06").then(n)}},{name:"v-53fe9ece",path:"/reference/function/removeMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-53fe9ece").then(n)}},{name:"v-13dab3c1",path:"/reference/function/resetItemsMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-13dab3c1").then(n)}},{name:"v-3020b259",path:"/reference/function/setItemMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-3020b259").then(n)}},{name:"v-78969153",path:"/reference/function/setAllMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-78969153").then(n)}},{name:"v-e97a16a8",path:"/reference/function/setMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-e97a16a8").then(n)}},{name:"v-7b8b979c",path:"/reference/function/setPaginationMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-7b8b979c").then(n)}},{name:"v-ce665d4a",path:"/reference/function/registerBaseModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-ce665d4a").then(n)}},{name:"v-14561809",path:"/reference/function/getRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-14561809").then(n)}},{name:"v-5c3ed1e5",path:"/reference/function/hasLoadableRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5c3ed1e5").then(n)}},{name:"v-d6889680",path:"/reference/function/hasLoadedRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-d6889680").then(n)}},{name:"v-661fcd45",path:"/reference/function/listRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-661fcd45").then(n)}},{name:"v-1547d1e7",path:"/reference/function/getRelationshipConfig.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1547d1e7").then(n)}},{name:"v-bcb00224",path:"/reference/function/initialState.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-bcb00224").then(n)}},{name:"v-fb185622",path:"/reference/function/hasOwn.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-fb185622").then(n)}},{name:"v-4d94196a",path:"/reference/function/deepMerge.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4d94196a").then(n)}},{name:"v-2a978f76",path:"/reference/function/deref.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-2a978f76").then(n)}},{name:"v-76b8bc10",path:"/reference/function/checkConfigProperty.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-76b8bc10").then(n)}},{name:"v-01979d90",path:"/reference/function/validateCallbackFn.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-01979d90").then(n)}},{name:"v-089a996c",path:"/reference/function/isAbsoluteUri.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-089a996c").then(n)}},{path:"*",component:Ss}],As={title:"Json:Api for Vuex",description:"Automagic Json:Api integration for Vuex",base:"/",headTags:[],pages:[{title:"Json:Api for Vuex",frontmatter:{sidebar:"off"},regularPath:"/",relativePath:"README.md",key:"v-4d323bd8",path:"/",headers:[{level:2,title:"Quick Setup",slug:"quick-setup"}]},{title:"Development",frontmatter:{},regularPath:"/development/",relativePath:"development/README.md",key:"v-33592580",path:"/development/",headers:[{level:2,title:"Testing",slug:"testing"}]},{title:"How things work under the hood",frontmatter:{},regularPath:"/deep-dive.html",relativePath:"deep-dive.md",key:"v-38781923",path:"/deep-dive.html",headers:[{level:2,title:"Proxy Objects for Vuex Mutations",slug:"proxy-objects-for-vuex-mutations"},{level:3,title:"The Proxy -> Mutation Parameter mapping",slug:"the-proxy-mutation-parameter-mapping"}]},{title:"Usage",frontmatter:{},regularPath:"/usage/",relativePath:"usage/README.md",key:"v-a9dc5998",path:"/usage/",headers:[{level:2,title:"Structure",slug:"structure"}]},{title:"Modules",frontmatter:{},regularPath:"/usage/modules.html",relativePath:"usage/modules.md",key:"v-71c2cd23",path:"/usage/modules.html",headers:[{level:2,title:"State",slug:"state"},{level:3,title:"The fields",slug:"the-fields"},{level:2,title:"Mutations",slug:"mutations"},{level:3,title:"Default Mutations",slug:"default-mutations"},{level:3,title:"Additional Mutations",slug:"additional-mutations"},{level:3,title:"Calling mutations without dispatching an action",slug:"calling-mutations-without-dispatching-an-action"},{level:2,title:"Actions",slug:"actions"},{level:3,title:"get",slug:"get"},{level:3,title:"reset",slug:"reset"},{level:3,title:"list",slug:"list"},{level:3,title:"set",slug:"set"},{level:3,title:"update",slug:"update"},{level:2,title:"Getters",slug:"getters"}]},{title:"Routing in the context of this plugin",frontmatter:{},regularPath:"/usage/router.html",relativePath:"usage/router.md",key:"v-4ad408c1",path:"/usage/router.html",headers:[{level:2,title:"Available Router implementations",slug:"available-router-implementations"},{level:3,title:"StaticRouter",slug:"staticrouter"},{level:3,title:"JsonApiRouter",slug:"jsonapirouter"},{level:2,title:"Route",slug:"route"},{level:2,title:"I want my own router",slug:"i-want-my-own-router"}]},{title:"Requests",frontmatter:{},regularPath:"/usage/requests.html",relativePath:"usage/requests.md",key:"v-67ba7d8b",path:"/usage/requests.html",headers:[{level:2,title:"The two API classes",slug:"the-two-api-classes"},{level:3,title:"Resource request methods",slug:"resource-request-methods"},{level:2,title:"What happens during an action?",slug:"what-happens-during-an-action"},{level:3,title:"Example",slug:"example"}]},{title:"Example Setup",frontmatter:{},regularPath:"/usage/setup.html",relativePath:"usage/setup.md",key:"v-1283c6ba",path:"/usage/setup.html",headers:[{level:2,title:"Prepare the store",slug:"prepare-the-store"},{level:2,title:"Mount Vue",slug:"mount-vue"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/ModuleBuilder.html",key:"v-9c0f51cc",path:"/reference/class/ModuleBuilder.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/JsonApiRoute.html",key:"v-1078091c",path:"/reference/class/JsonApiRoute.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/JsonApiRouter.html",key:"v-718e502e",path:"/reference/class/JsonApiRouter.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Route.html",key:"v-ecf66ec0",path:"/reference/class/Route.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/StaticRouter.html",key:"v-4b25e572",path:"/reference/class/StaticRouter.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/strip.html",key:"v-60a48542",path:"/reference/function/strip.html"},{title:"Reference (JS)",frontmatter:{title:"Reference (JS)"},regularPath:"/reference/",key:"v-0db3c54e",path:"/reference/",headers:[{level:2,title:"Classes",slug:"classes"},{level:2,title:"Global Functions",slug:"global-functions"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Api.html",key:"v-0c69976f",path:"/reference/class/Api.html",headers:[{level:2,title:"Api",slug:"api"},{level:3,title:"new Api()",slug:"new-api"},{level:3,title:"api.setSuccessCallbacks(callbacks)",slug:"api-setsuccesscallbacks-callbacks"},{level:3,title:"api.setErrorCallbacks(callbacks)",slug:"api-seterrorcallbacks-callbacks"},{level:3,title:"api.addSuccessCallback(callback)",slug:"api-addsuccesscallback-callback"},{level:3,title:"api.addErrorCallback(callback)",slug:"api-adderrorcallback-callback"},{level:3,title:"api.resetSuccessCallbacks()",slug:"api-resetsuccesscallbacks"},{level:3,title:"api.resetErrorCallbacks()",slug:"api-reseterrorcallbacks"},{level:3,title:"api.setHeader(name, value, overwrite)",slug:"api-setheader-name-value-overwrite"},{level:3,title:"api.addHeaders(headers)",slug:"api-addheaders-headers"},{level:3,title:"api._doRequest(method, url, params, data) ⇒",slug:"api-dorequest-method-url-params-data-⇒-promise-response"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/ResourceProxy.html",key:"v-49c8f649",path:"/reference/class/ResourceProxy.html",headers:[{level:2,title:"ResourceProxy",slug:"resourceproxy"},{level:3,title:"new ResourceProxy()",slug:"new-resourceproxy"},{level:3,title:"resourceProxy.addRoute(route)",slug:"resourceproxy-addroute-route"},{level:3,title:"resourceProxy.methodNotAvailable(methodName)",slug:"resourceproxy-methodnotavailable-methodname"},{level:3,title:"resourceProxy.get(parameters, data) ⇒",slug:"resourceproxy-get-parameters-data-⇒"},{level:3,title:"resourceProxy.list(parameters, data) ⇒",slug:"resourceproxy-list-parameters-data-⇒"},{level:3,title:"resourceProxy.create(parameters, data) ⇒",slug:"resourceproxy-create-parameters-data-⇒"},{level:3,title:"resourceProxy.replace(parameters, data) ⇒",slug:"resourceproxy-replace-parameters-data-⇒"},{level:3,title:"resourceProxy.update(parameters, data) ⇒",slug:"resourceproxy-update-parameters-data-⇒"},{level:3,title:"resourceProxy.delete(parameters, data) ⇒",slug:"resourceproxy-delete-parameters-data-⇒"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/ResourceBuilder.html",key:"v-f2c09488",path:"/reference/class/ResourceBuilder.html",headers:[{level:2,title:"ResourceBuilder",slug:"resourcebuilder"},{level:3,title:"resourceBuilder.build(jsonResourceObject)",slug:"resourcebuilder-build-jsonresourceobject"},{level:3,title:"resourceBuilder.buildRelationshipMethods(obj)",slug:"resourcebuilder-buildrelationshipmethods-obj"},{level:3,title:"ResourceBuilder.strip(functionalResourceObject)",slug:"resourcebuilder-strip-functionalresourceobject"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/FosJsRoutingRouter.html",key:"v-5dc4612d",path:"/reference/class/FosJsRoutingRouter.html",headers:[{level:2,title:"FosJsRoutingRouter",slug:"fosjsroutingrouter"},{level:3,title:"new FosJsRoutingRouter()",slug:"new-fosjsroutingrouter"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Router.html",key:"v-17e728c0",path:"/reference/class/Router.html",headers:[{level:2,title:"Router",slug:"router"},{level:3,title:"new Router()",slug:"new-router"},{level:3,title:"router.getRoutes() ⇒",slug:"router-getroutes-⇒-array-route"},{level:3,title:"router.addRoute(route)",slug:"router-addroute-route"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/StaticRoute.html",key:"v-33faa4a4",path:"/reference/class/StaticRoute.html",headers:[{level:2,title:"StaticRoute",slug:"staticroute"},{level:3,title:"new StaticRoute()",slug:"new-staticroute"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Performance.html",key:"v-2720ef19",path:"/reference/class/Performance.html",headers:[{level:2,title:"Performance",slug:"performance"},{level:3,title:"new Performance()",slug:"new-performance"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/initJsonApiPlugin.html",key:"v-5d6066e2",path:"/reference/function/initJsonApiPlugin.html",headers:[{level:2,title:"initJsonApiPlugin(config)",slug:"initjsonapiplugin-config"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/prepareModuleHashMap.html",key:"v-1c8659c0",path:"/reference/function/prepareModuleHashMap.html",headers:[{level:2,title:"prepareModuleHashMap(modules)",slug:"preparemodulehashmap-modules"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/validateResourceObject.html",key:"v-46aef638",path:"/reference/function/validateResourceObject.html",headers:[{level:2,title:"validateResourceObject(resourceObject) ⇒",slug:"validateresourceobject-resourceobject-⇒"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/createAction.html",key:"v-00e9312e",path:"/reference/function/createAction.html",headers:[{level:2,title:"createAction(api, moduleName)",slug:"createaction-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/getAction.html",key:"v-5a304ccb",path:"/reference/function/getAction.html",headers:[{level:2,title:"getAction(api, moduleName, defaultQuery)",slug:"getaction-api-modulename-defaultquery"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/listAction.html",key:"v-5dc99f07",path:"/reference/function/listAction.html",headers:[{level:2,title:"listAction(api, moduleName, defaultQuery, module)",slug:"listaction-api-modulename-defaultquery-module"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/listRelatedAction.html",key:"v-06af9c14",path:"/reference/function/listRelatedAction.html",headers:[{level:2,title:"listRelatedAction(api, moduleName)",slug:"listrelatedaction-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/saveAction.html",key:"v-1bfb9cc8",path:"/reference/function/saveAction.html",headers:[{level:2,title:"saveAction(api, isCollection, moduleName, defaultQuery)",slug:"saveaction-api-iscollection-modulename-defaultquery"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasChanges.html",key:"v-3a435c5c",path:"/reference/function/hasChanges.html",headers:[{level:2,title:"hasChanges(state)",slug:"haschanges-state"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/itemsInRelationshipFormat.html",key:"v-6d14be7a",path:"/reference/function/itemsInRelationshipFormat.html",headers:[{level:2,title:"itemsInRelationshipFormat(state) ⇒",slug:"itemsinrelationshipformat-state-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/prepareQuery.html",key:"v-6dad531a",path:"/reference/function/prepareQuery.html",headers:[{level:2,title:"prepareQuery(query, defaultQuery)",slug:"preparequery-query-defaultquery"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/isMissingModule.html",key:"v-18a942e2",path:"/reference/function/isMissingModule.html",headers:[{level:2,title:"isMissingModule(store, moduleName)",slug:"ismissingmodule-store-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/registerMissingModule.html",key:"v-67c3b570",path:"/reference/function/registerMissingModule.html",headers:[{level:2,title:"registerMissingModule(api, moduleName)",slug:"registermissingmodule-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/processResponseData.html",key:"v-174fa19d",path:"/reference/function/processResponseData.html",headers:[{level:2,title:"processResponseData(vuexFns, api, currentModule, data, currentMethod, relatedModule)",slug:"processresponsedata-vuexfns-api-currentmodule-data-currentmethod-relatedmodule"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/compileMutation.html",key:"v-5d5bd37b",path:"/reference/function/compileMutation.html",headers:[{level:2,title:"compileMutation(currentModule, destinationModule) ⇒",slug:"compilemutation-currentmodule-destinationmodule-⇒-string"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setResourceObjectsForModule.html",key:"v-24b55d06",path:"/reference/function/setResourceObjectsForModule.html",headers:[{level:2,title:"setResourceObjectsForModule(vuexFns, currentModule, destinationModule, objects)",slug:"setresourceobjectsformodule-vuexfns-currentmodule-destinationmodule-objects"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/removeMutation.html",key:"v-53fe9ece",path:"/reference/function/removeMutation.html",headers:[{level:2,title:"removeMutation(isCollection)",slug:"removemutation-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/resetItemsMutation.html",key:"v-13dab3c1",path:"/reference/function/resetItemsMutation.html",headers:[{level:2,title:"resetItemsMutation(isCollection)",slug:"resetitemsmutation-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setItemMutation.html",key:"v-3020b259",path:"/reference/function/setItemMutation.html",headers:[{level:2,title:"setItemMutation(resourceBuilder, isCollection)",slug:"setitemmutation-resourcebuilder-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setAllMutation.html",key:"v-78969153",path:"/reference/function/setAllMutation.html",headers:[{level:2,title:"setAllMutation(resourceBuilder)",slug:"setallmutation-resourcebuilder"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setMutation.html",key:"v-e97a16a8",path:"/reference/function/setMutation.html",headers:[{level:2,title:"setMutation(store, resourceBuilder, isCollection)",slug:"setmutation-store-resourcebuilder-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setPaginationMutation.html",key:"v-7b8b979c",path:"/reference/function/setPaginationMutation.html",headers:[{level:2,title:"setPaginationMutation(state, pagination)",slug:"setpaginationmutation-state-pagination"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/registerBaseModule.html",key:"v-ce665d4a",path:"/reference/function/registerBaseModule.html",headers:[{level:2,title:"registerBaseModule(store, api, moduleName)",slug:"registerbasemodule-store-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/getRelationship.html",key:"v-14561809",path:"/reference/function/getRelationship.html",headers:[{level:2,title:"getRelationship(store, relatedObject, config{isToMany:, config{isToMany:)",slug:"getrelationship-store-relatedobject-config-istomany-config-istomany"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasLoadableRelationship.html",key:"v-5c3ed1e5",path:"/reference/function/hasLoadableRelationship.html",headers:[{level:2,title:"hasLoadableRelationship(obj)",slug:"hasloadablerelationship-obj"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasLoadedRelationship.html",key:"v-d6889680",path:"/reference/function/hasLoadedRelationship.html",headers:[{level:2,title:"hasLoadedRelationship(obj)",slug:"hasloadedrelationship-obj"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/listRelationship.html",key:"v-661fcd45",path:"/reference/function/listRelationship.html",headers:[{level:2,title:"listRelationship(store, relatedObjects)",slug:"listrelationship-store-relatedobjects"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/getRelationshipConfig.html",key:"v-1547d1e7",path:"/reference/function/getRelationshipConfig.html",headers:[{level:2,title:"getRelationshipConfig(relatedObject) ⇒",slug:"getrelationshipconfig-relatedobject-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/initialState.html",key:"v-bcb00224",path:"/reference/function/initialState.html",headers:[{level:2,title:"initialState(isCollection)",slug:"initialstate-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasOwn.html",key:"v-fb185622",path:"/reference/function/hasOwn.html",headers:[{level:2,title:"hasOwn(object, property)",slug:"hasown-object-property"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/deepMerge.html",key:"v-4d94196a",path:"/reference/function/deepMerge.html",headers:[{level:2,title:"deepMerge(target, source) ⇒",slug:"deepmerge-target-source-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/deref.html",key:"v-2a978f76",path:"/reference/function/deref.html",headers:[{level:2,title:"deref(obj) ⇒",slug:"deref-obj-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/checkConfigProperty.html",key:"v-76b8bc10",path:"/reference/function/checkConfigProperty.html",headers:[{level:2,title:"checkConfigProperty(config, property, isRequiredProp)",slug:"checkconfigproperty-config-property-isrequiredprop"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/validateCallbackFn.html",key:"v-01979d90",path:"/reference/function/validateCallbackFn.html",headers:[{level:2,title:"validateCallbackFn(fn) ⇒",slug:"validatecallbackfn-fn-⇒-boolean"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/isAbsoluteUri.html",key:"v-089a996c",path:"/reference/function/isAbsoluteUri.html",headers:[{level:2,title:"isAbsoluteUri(uri)",slug:"isabsoluteuri-uri"}]}],themeConfig:{nav:[{text:"Home",link:"/"},{text:"Development",link:"/development/"},{text:"Reference",link:"/reference/"},{text:"Usage",link:"/usage/"}],repo:"eFrane/vuex-json-api",editLinks:!0,editLinkText:"Help us improve this page!",displayAllHeaders:!0,activeHeaderLinks:!0,sidebar:"auto"}};n(145);Wn.component("jsonapi",()=>Promise.all([n.e(0),n.e(18)]).then(n.bind(null,264))),Wn.component("Badge",()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,213))),Wn.component("CodeBlock",()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,208))),Wn.component("CodeGroup",()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,209)));n(146);var Rs={props:{color:{required:!1,default:"rgb(66, 185, 131)"}}},Ms=(n(147),Object(Ps.a)(Rs,(function(){return(0,this._self._c)("div",{staticClass:"spinner",style:{background:this.color}})}),[],!1,null,"1bbcb91a",null).exports);const Ls={name:"Mermaid",props:{id:{type:String,required:!1,default:()=>"diagram_"+Date.now()},graph:{type:String,required:!1}},data:()=>({svg:void 0}),computed:{graphData(){return this.graph?this.graph:this.$slots.default[0].text}},render(e){return void 0===this.svg?e("Loading"):e("div",{class:["mermaid-diagram"],domProps:{innerHTML:this.svg,style:"width: 100%"}})},mounted(){n.e(74).then(n.t.bind(null,204,7)).then(e=>{e.initialize({startOnLoad:!0}),e.render(this.id,this.graphData,e=>{this.svg=e})})},components:{Loading:Ms}};var Ts=[{},({Vue:e})=>{e.mixin({computed:{$dataBlock(){return this.$options.__data__block__}}})},{},{},({Vue:e})=>{e.component(Ls.name,Ls)}],Is=[];class Ns extends class{constructor(){this.store=new Wn({data:{state:{}}})}$get(e){return this.store.state[e]}$set(e,t){Wn.set(this.store.state,e,t)}$emit(...e){this.store.$emit(...e)}$on(...e){this.store.$on(...e)}}{}Object.assign(Ns.prototype,{getPageAsyncComponent:ss,getLayoutAsyncComponent:cs,getAsyncComponent:us,getVueComponent:ls});var Ds={install(e){const t=new Ns;e.$vuepress=t,e.prototype.$vuepress=t}};function Fs(e,t){const n=t.toLowerCase();return e.options.routes.some(e=>e.path.toLowerCase()===n)}var Us={props:{pageKey:String,slotKey:{type:String,default:"default"}},render(e){const t=this.pageKey||this.$parent.$page.key;return ps("pageKey",t),Wn.component(t)||Wn.component(t,ss(t)),Wn.component(t)?e(t):e("")}},Bs={functional:!0,props:{slotKey:String,required:!0},render:(e,{props:t,slots:n})=>e("div",{class:["content__"+t.slotKey]},n()[t.slotKey])},qs={computed:{openInNewWindowTitle(){return this.$themeLocaleConfig.openNewWindowText||"(opens new window)"}}},zs=(n(148),n(149),Object(Ps.a)(qs,(function(){var e=this._self._c;return e("span",[e("svg",{staticClass:"icon outbound",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"}},[e("path",{attrs:{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}}),this._v(" "),e("polygon",{attrs:{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"}})]),this._v(" "),e("span",{staticClass:"sr-only"},[this._v(this._s(this.openInNewWindowTitle))])])}),[],!1,null,null,null).exports),Vs={functional:!0,render(e,{parent:t,children:n}){if(t._isMounted)return n;t.$once("hook:mounted",()=>{t.$forceUpdate()})}};Wn.config.productionTip=!1,Wn.use(Ha),Wn.use(Ds),Wn.mixin(function(e,t,n=Wn){!function(e){e.locales&&Object.keys(e.locales).forEach(t=>{e.locales[t].path=t});Object.freeze(e)}(t),n.$vuepress.$set("siteData",t);const r=new(e(n.$vuepress.$get("siteData"))),o=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(r)),i={};return Object.keys(o).reduce((e,t)=>(t.startsWith("$")&&(e[t]=o[t].get),e),i),{computed:i}}(e=>class{setPage(e){this.__page=e}get $site(){return e}get $themeConfig(){return this.$site.themeConfig}get $frontmatter(){return this.$page.frontmatter}get $localeConfig(){const{locales:e={}}=this.$site;let t,n;for(const r in e)"/"===r?n=e[r]:0===this.$page.path.indexOf(r)&&(t=e[r]);return t||n||{}}get $siteTitle(){return this.$localeConfig.title||this.$site.title||""}get $canonicalUrl(){const{canonicalUrl:e}=this.$page.frontmatter;return"string"==typeof e&&e}get $title(){const e=this.$page,{metaTitle:t}=this.$page.frontmatter;if("string"==typeof t)return t;const n=this.$siteTitle,r=e.frontmatter.home?null:e.frontmatter.title||e.title;return n?r?r+" | "+n:n:r||"VuePress"}get $description(){const e=function(e){if(e){const t=e.filter(e=>"description"===e.name)[0];if(t)return t.content}}(this.$page.frontmatter.meta);return e||(this.$page.frontmatter.description||this.$localeConfig.description||this.$site.description||"")}get $lang(){return this.$page.frontmatter.lang||this.$localeConfig.lang||"en-US"}get $localePath(){return this.$localeConfig.path||"/"}get $themeLocaleConfig(){return(this.$site.themeConfig.locales||{})[this.$localePath]||{}}get $page(){return this.__page?this.__page:function(e,t){for(let n=0;nn||(e.hash?!Wn.$vuepress.$get("disableScrollBehavior")&&{selector:decodeURIComponent(e.hash)}:{x:0,y:0})});!function(e){e.beforeEach((t,n,r)=>{if(Fs(e,t.path))r();else if(/(\/|\.html)$/.test(t.path))if(/\/$/.test(t.path)){const n=t.path.replace(/\/$/,"")+".html";Fs(e,n)?r(n):r()}else r();else{const n=t.path+"/",o=t.path+".html";Fs(e,o)?r(o):Fs(e,n)?r(n):r()}})}(n);const r={};try{await Promise.all(Ts.filter(e=>"function"==typeof e).map(t=>t({Vue:Wn,options:r,router:n,siteData:As,isServer:e})))}catch(e){console.error(e)}return{app:new Wn(Object.assign(r,{router:n,render:e=>e("div",{attrs:{id:"app"}},[e("RouterView",{ref:"layout"}),e("div",{class:"global-ui"},Is.map(t=>e(t)))])})),router:n}}(!1).then(({app:e,router:t})=>{t.onReady(()=>{e.$mount("#app")})})}]); \ No newline at end of file +var r=Object.freeze({}),o=Array.isArray;function i(e){return null==e}function a(e){return null!=e}function s(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return"function"==typeof e}function l(e){return null!==e&&"object"==typeof e}var f=Object.prototype.toString;function p(e){return"[object Object]"===f.call(e)}function h(e){return"[object RegExp]"===f.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function v(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===f?JSON.stringify(e,g,2):String(e)}function g(e,t){return t&&t.__v_isRef?t.value:t}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function b(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function k(e,t){return w.call(e,t)}function C(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var $=/-(\w)/g,O=C((function(e){return e.replace($,(function(e,t){return t?t.toUpperCase():""}))})),j=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,S=C((function(e){return e.replace(P,"-$1").toLowerCase()}));var E=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function A(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function R(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n0,Z=G&&G.indexOf("edge/")>0;G&&G.indexOf("android");var ee=G&&/iphone|ipad|ipod|ios/.test(G);G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G);var te,ne=G&&G.match(/firefox\/(\d+)/),re={}.watch,oe=!1;if(Q)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){oe=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===te&&(te=!Q&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),te},se=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"==typeof e&&/native code/.test(e.toString())}var ue,le="undefined"!=typeof Symbol&&ce(Symbol)&&"undefined"!=typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!=typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=null;function pe(e){void 0===e&&(e=null),e||fe&&fe._scope.off(),fe=e,e&&e._scope.on()}var he=function(){function e(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),de=function(e){void 0===e&&(e="");var t=new he;return t.text=e,t.isComment=!0,t};function ve(e){return new he(void 0,void 0,void 0,String(e))}function me(e){var t=new he(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"==typeof SuppressedError&&SuppressedError;var ge=0,ye=[],be=function(){function e(){this._pending=!1,this.id=ge++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ye.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,r=t.length;n0&&(Ge((u=e(u,"".concat(n||"","_").concat(r)))[0])&&Ge(f)&&(p[l]=ve(f.text+u[0].text),u.shift()),p.push.apply(p,u)):c(u)?Ge(f)?p[l]=ve(f.text+u):""!==u&&p.push(ve(u)):Ge(u)&&Ge(f)?p[l]=ve(f.text+u.text):(s(t._isVList)&&a(u.tag)&&i(u.key)&&a(n)&&(u.key="__vlist".concat(n,"_").concat(r,"__")),p.push(u)));return p}(e):void 0}function Ge(e){return a(e)&&a(e.text)&&!1===e.isComment}function Xe(e,t){var n,r,i,s,c=null;if(o(e)||"string"==typeof e)for(c=new Array(e.length),n=0,r=e.length;n0,s=t?!!t.$stable:!a,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&o&&o!==r&&c===o.$key&&!a&&!o.$hasNormal)return o;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=mt(e,n,u,t[u]))}else i={};for(var l in n)l in i||(i[l]=gt(n,l));return t&&Object.isExtensible(t)&&(t._normalized=i),J(i,"$stable",s),J(i,"$key",c),J(i,"$hasNormal",a),i}function mt(e,t,n,r){var i=function(){var t=fe;pe(e);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:Qe(n))&&n[0];return pe(t),n&&(!i||1===n.length&&i.isComment&&!dt(i))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function gt(e,t){return function(){return e[t]}}function yt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};J(t,"_v_attr_proxy",!0),bt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||bt(e._listenersProxy={},e.$listeners,r,e,"$listeners");return e._listenersProxy},get slots(){return function(e){e._slotsProxy||xt(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(e)},emit:E(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Ue(e,t,n)}))}}}function bt(e,t,n,r,o){var i=!1;for(var a in t)a in e?t[a]!==n[a]&&(i=!0):(i=!0,_t(e,a,r,o));for(var a in e)a in t||(i=!0,delete e[a]);return i}function _t(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function xt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}var wt=null;function kt(e,t){return(e.__esModule||le&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Ct(e){if(o(e))for(var t=0;tdocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}var fn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function pn(){var e,t;for(cn=un(),an=!0,tn.sort(fn),sn=0;snsn&&tn[n].id>e.id;)n--;tn.splice(n+1,0,e)}else tn.push(e);on||(on=!0,Ft(pn))}}function dn(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),o=0;o-1)if(i&&!k(o,"default"))a=!1;else if(""===a||a===S(e)){var c=In(String,o.type);(c<0||s-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Xn(e,t){var n=e.cache,r=e.keys,o=e._vnode,i=e.$vnode;for(var a in n){var s=n[a];if(s){var c=s.name;c&&!t(c)&&Yn(n,a,r,o)}}i.componentOptions.children=void 0}function Yn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,x(n,t)}Wn.prototype._init=function(e){var t=this;t._uid=Hn++,t._isVue=!0,t.__v_skip=!0,t._scope=new qe(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=En(Jn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Qt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=pt(t._renderChildren,o),e.$scopedSlots=n?vt(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,o){return $t(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return $t(e,t,n,r,o,!0)};var i=n&&n.data;Re(e,"$attrs",i&&i.attrs||r,null,!0),Re(e,"$listeners",t._parentListeners||r,null,!0)}(t),en(t,"beforeCreate",void 0,!1),function(e){var t=dn(e.$options.inject,e);t&&(Pe(!1),Object.keys(t).forEach((function(n){Re(e,n,t[n])})),Pe(!0))}(t),Fn(t),function(e){var t=e.$options.provide;if(t){var n=u(t)?t.call(e):t;if(!l(n))return;for(var r=ze(e),o=le?Reflect.ownKeys(n):Object.keys(n),i=0;i1?A(n):n;for(var r=A(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Yn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Yn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Xn(e,(function(e){return Gn(t,e)}))})),this.$watch("exclude",(function(t){Xn(e,(function(e){return!Gn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Ct(e),n=t&&t.componentOptions;if(n){var r=Qn(n),o=this.include,i=this.exclude;if(o&&(!r||!Gn(o,r))||i&&r&&Gn(i,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,x(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return z}};Object.defineProperty(e,"config",t),e.util={warn:kn,extend:R,mergeOptions:En,defineReactive:Re},e.set=Me,e.delete=Le,e.nextTick=Ft,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,R(e.options.components,er),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=En(this.options,e),this}}(e),Kn(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Wn),Object.defineProperty(Wn.prototype,"$isServer",{get:ae}),Object.defineProperty(Wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Wn,"FunctionalRenderContext",{value:vn}),Wn.version="2.7.16";var tr=b("style,class"),nr=b("input,textarea,option,select,progress"),rr=b("contenteditable,draggable,spellcheck"),or=b("events,caret,typing,plaintext-only"),ir=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ar="http://www.w3.org/1999/xlink",sr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},cr=function(e){return sr(e)?e.slice(6,e.length):""},ur=function(e){return null==e||!1===e};function lr(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=fr(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=fr(t,n.data));return function(e,t){if(a(e)||a(t))return pr(e,hr(t));return""}(t.staticClass,t.class)}function fr(e,t){return{staticClass:pr(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function pr(e,t){return e?t?e+" "+t:e:t||""}function hr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r-1?Nr(e,t,n):ir(t)?ur(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):rr(t)?e.setAttribute(t,function(e,t){return ur(t)||"false"===t?"false":"contenteditable"===e&&or(t)?t:"true"}(t,n)):sr(t)?ur(n)?e.removeAttributeNS(ar,cr(t)):e.setAttributeNS(ar,t,n):Nr(e,t,n)}function Nr(e,t,n){if(ur(n))e.removeAttribute(t);else{if(X&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Dr={create:Tr,update:Tr};function Fr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=lr(t),c=n._transitionClasses;a(c)&&(s=pr(s,hr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ur,Br={create:Fr,update:Fr};function qr(e,t,n){var r=Ur;return function o(){var i=t.apply(null,arguments);null!==i&&Hr(e,o,n,r)}}var zr=At&&!(ne&&Number(ne[1])<=53);function Vr(e,t,n,r){if(zr){var o=cn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}Ur.addEventListener(e,t,oe?{capture:n,passive:r}:n)}function Hr(e,t,n,r){(r||Ur).removeEventListener(e,t._wrapper||t,n)}function Jr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ur=t.elm||e.elm,function(e){if(a(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Je(n,r,Vr,Hr,qr,t.context),Ur=void 0}}var Wr,Kr={create:Jr,update:Jr,destroy:function(e){return Jr(e,Cr)}};function Qr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,c=e.data.domProps||{},u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=R({},u)),c)n in u||(o[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var l=i(r)?"":String(r);Gr(o,l)&&(o.value=l)}else if("innerHTML"===n&&mr(o.tagName)&&i(o.innerHTML)){(Wr=Wr||document.createElement("div")).innerHTML="".concat(r,"");for(var f=Wr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;f.firstChild;)o.appendChild(f.firstChild)}else if(r!==c[n])try{o[n]=r}catch(e){}}}}function Gr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Xr={create:Qr,update:Qr},Yr=C((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Zr(e){var t=eo(e.style);return e.staticStyle?R(e.staticStyle,t):t}function eo(e){return Array.isArray(e)?M(e):"string"==typeof e?Yr(e):e}var to,no=/^--/,ro=/\s*!important$/,oo=function(e,t,n){if(no.test(t))e.style.setProperty(t,n);else if(ro.test(n))e.style.setProperty(S(t),n.replace(ro,""),"important");else{var r=ao(t);if(Array.isArray(n))for(var o=0,i=n.length;o-1?t.split(uo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function fo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(uo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function po(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&R(t,ho(e.name||"v")),R(t,e),t}return"string"==typeof e?ho(e):void 0}}var ho=C((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),vo=Q&&!Y,mo="transition",go="transitionend",yo="animation",bo="animationend";vo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(mo="WebkitTransition",go="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(yo="WebkitAnimation",bo="webkitAnimationEnd"));var _o=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function xo(e){_o((function(){_o(e)}))}function wo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),lo(e,t))}function ko(e,t){e._transitionClasses&&x(e._transitionClasses,t),fo(e,t)}function Co(e,t,n){var r=Oo(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s="transition"===o?go:bo,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(n="transition",l=a,f=i.length):"animation"===t?u>0&&(n="animation",l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:"transition"===n&&$o.test(r[mo+"Property"])}}function jo(e,t){for(;e.length1}function Mo(e,t){!0!==t.data.show&&So(t)}var Lo=function(e){var t,n,r={},u=e.modules,l=e.nodeOps;for(t=0;t<$r.length;++t)for(r[$r[t]]=[],n=0;nd?_(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&w(t,f,d)}(f,v,g,n,u):a(g)?(a(e.text)&&l.setTextContent(f,""),_(f,null,g,0,g.length-1,n)):a(v)?w(v,0,v.length-1):a(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),a(d)&&a(h=d.hook)&&a(h=h.postpatch)&&h(e,t)}}}function O(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(N(Fo(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function Do(e,t){return t.every((function(t){return!N(t,e)}))}function Fo(e){return"_value"in e?e._value:e.value}function Uo(e){e.target.composing=!0}function Bo(e){e.target.composing&&(e.target.composing=!1,qo(e.target,"input"))}function qo(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function zo(e){return!e.componentInstance||e.data&&e.data.transition?e:zo(e.componentInstance._vnode)}var Vo={model:To,show:{bind:function(e,t,n){var r=t.value,o=(n=zo(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,So(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=zo(n)).data&&n.data.transition?(n.data.show=!0,r?So(n,(function(){e.style.display=e.__vOriginalDisplay})):Eo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}}},Ho={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Jo(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Jo(Ct(t.children)):e}function Wo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var r in o)t[O(r)]=o[r];return t}function Ko(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Qo=function(e){return e.tag||dt(e)},Go=function(e){return"show"===e.name},Xo={name:"transition",props:Ho,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Qo)).length){0;var r=this.mode;0;var o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var i=Jo(o);if(!i)return o;if(this._leaving)return Ko(e,o);var a="__transition-".concat(this._uid,"-");i.key=null==i.key?i.isComment?a+"comment":a+i.tag:c(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=Wo(this),u=this._vnode,l=Jo(u);if(i.data.directives&&i.data.directives.some(Go)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!dt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=R({},s);if("out-in"===r)return this._leaving=!0,We(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ko(e,o);if("in-out"===r){if(dt(i))return u;var p,h=function(){p()};We(s,"afterEnter",h),We(s,"enterCancelled",h),We(f,"delayLeave",(function(e){p=e}))}}return o}}},Yo=R({tag:String,moveClass:String},Ho);function Zo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ei(e){e.data.newPos=e.elm.getBoundingClientRect()}function ti(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}delete Yo.mode;var ni={Transition:Xo,TransitionGroup:{props:Yo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=Wo(this),s=0;s-1?yr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:yr[e]=/HTMLUnknownElement/.test(t.toString())},R(Wn.options.directives,Vo),R(Wn.options.components,ni),Wn.prototype.__patch__=Q?Lo:L,Wn.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=de),en(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Ht(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&en(e,"beforeUpdate")}},!0),n=!1;var o=e._preWatchers;if(o)for(var i=0;i=0&&(t=e.slice(r),e=e.slice(0,r));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:t}}(o.path||""),u=t&&t.path||"/",l=c.path?ki(c.path,u,n||o.append):u,f=function(e,t,n){void 0===t&&(t={});var r,o=n||li;try{r=o(e||"")}catch(e){r={}}for(var i in t){var a=t[i];r[i]=Array.isArray(a)?a.map(ui):ui(a)}return r}(c.query,o.query,r&&r.options.parseQuery),p=o.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:l,query:f,hash:p}}var Vi,Hi=function(){},Ji={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==l?"router-link-exact-active":l,h=null==this.activeClass?f:this.activeClass,d=null==this.exactActiveClass?p:this.exactActiveClass,v=a.redirectedFrom?hi(null,zi(a.redirectedFrom),null,n):a;c[d]=yi(r,v,this.exactPath),c[h]=this.exact||this.exactPath?c[d]:function(e,t){return 0===e.path.replace(pi,"/").indexOf(t.path.replace(pi,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,v);var m=c[d]?this.ariaCurrentValue:null,g=function(e){Wi(e)&&(t.replace?n.replace(i,Hi):n.push(i,Hi))},y={click:Wi};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=g})):y[this.event]=g;var b={class:c},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:g,isActive:c[h],isExactActive:c[d]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?e():e("span",{},_)}if("a"===this.tag)b.on=y,b.attrs={href:s,"aria-current":m};else{var x=function e(t){var n;if(t)for(var r=0;r-1&&(s.params[p]=n.params[p]);return s.path=qi(l.path,s.params),c(l,s,a)}if(s.path){s.params={};for(var h=0;h-1}function Ca(e,t){return ka(e)&&e._isRouter&&(null==t||e.type===t)}function $a(e,t,n){var r=function(o){o>=e.length?n():e[o]?t(e[o],(function(){r(o+1)})):r(o+1)};r(0)}function Oa(e){return function(t,n,r){var o=!1,i=0,a=null;ja(e,(function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){o=!0,i++;var c,u=Ea((function(t){var o;((o=t).__esModule||Sa&&"Module"===o[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:Vi.extend(t),n.components[s]=t,--i<=0&&r()})),l=Ea((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=ka(e)?e:new Error(t),r(a))}));try{c=e(u,l)}catch(e){l(e)}if(c)if("function"==typeof c.then)c.then(u,l);else{var f=c.component;f&&"function"==typeof f.then&&f.then(u,l)}}})),o||r()}}function ja(e,t){return Pa(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Pa(e){return Array.prototype.concat.apply([],e)}var Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ea(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Aa=function(e,t){this.router=e,this.base=function(e){if(!e)if(Ki){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=vi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ra(e,t,n,r){var o=ja(e,(function(e,r,o,i){var a=function(e,t){"function"!=typeof e&&(e=Vi.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,o,i)})):n(a,r,o,i)}));return Pa(r?o.reverse():o)}function Ma(e,t){if(t)return function(){return e.apply(t,arguments)}}Aa.prototype.listen=function(e){this.cb=e},Aa.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Aa.prototype.onError=function(e){this.errorCbs.push(e)},Aa.prototype.transitionTo=function(e,t,n){var r,o=this;try{r=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),t&&t(r),o.ensureURL(),o.router.afterHooks.forEach((function(e){e&&e(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!o.ready&&(Ca(e,ya.redirected)&&i===vi||(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)}))))}))},Aa.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var i,a,s=function(e){!Ca(e)&&ka(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},c=e.matched.length-1,u=o.matched.length-1;if(yi(e,o)&&c===u&&e.matched[c]===o.matched[u])return this.ensureURL(),e.hash&&aa(this.router,o,e,!1),s(((a=xa(i=o,e,ya.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var l=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=va&&n;r&&this.listeners.push(ia());var o=function(){var n=e.current,o=Ta(e.base);e.current===vi&&o===e._startLocation||e.transitionTo(o,(function(e){r&&aa(t,e,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){ma(Ci(r.base+e.fullPath)),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){ga(Ci(r.base+e.fullPath)),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Ta(this.base)!==this.current.fullPath){var t=Ci(this.base+this.current.fullPath);e?ma(t):ga(t)}},t.prototype.getCurrentLocation=function(){return Ta(this.base)},t}(Aa);function Ta(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(Ci(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ia=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=Ta(e);if(!/^\/#/.test(t))return window.location.replace(Ci(e+"/#"+t)),!0}(this.base)||Na()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=va&&t;n&&this.listeners.push(ia());var r=function(){var t=e.current;Na()&&e.transitionTo(Da(),(function(r){n&&aa(e.router,r,t,!0),va||Ba(r.fullPath)}))},o=va?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ua(e.fullPath),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ba(e.fullPath),aa(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Da()!==t&&(e?Ua(t):Ba(t))},t.prototype.getCurrentLocation=function(){return Da()},t}(Aa);function Na(){var e=Da();return"/"===e.charAt(0)||(Ba("/"+e),!1)}function Da(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Fa(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Ua(e){va?ma(Fa(e)):window.location.hash=e}function Ba(e){va?ga(Fa(e)):window.location.replace(Fa(e))}var qa=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ca(e,ya.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Aa),za=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Xi(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!va&&!1!==e.fallback,this.fallback&&(t="hash"),Ki||(t="abstract"),this.mode=t,t){case"history":this.history=new La(this,e.base);break;case"hash":this.history=new Ia(this,e.base,this.fallback);break;case"abstract":this.history=new qa(this,e.base);break;default:0}},Va={currentRoute:{configurable:!0}};za.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Va.currentRoute.get=function(){return this.history&&this.history.current},za.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof La||n instanceof Ia){var r=function(e){n.setupListeners(),function(e){var r=n.current,o=t.options.scrollBehavior;va&&o&&"fullPath"in e&&aa(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},za.prototype.beforeEach=function(e){return Ja(this.beforeHooks,e)},za.prototype.beforeResolve=function(e){return Ja(this.resolveHooks,e)},za.prototype.afterEach=function(e){return Ja(this.afterHooks,e)},za.prototype.onReady=function(e,t){this.history.onReady(e,t)},za.prototype.onError=function(e){this.history.onError(e)},za.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},za.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},za.prototype.go=function(e){this.history.go(e)},za.prototype.back=function(){this.go(-1)},za.prototype.forward=function(){this.go(1)},za.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},za.prototype.resolve=function(e,t,n){var r=zi(e,t=t||this.history.current,n,this),o=this.match(r,t),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?Ci(e+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},za.prototype.getRoutes=function(){return this.matcher.getRoutes()},za.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},za.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(za.prototype,Va);var Ha=za;function Ja(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}za.install=function e(t){if(!e.installed||Vi!==t){e.installed=!0,Vi=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",xi),t.component("RouterLink",Ji);var o=t.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},za.version="3.6.5",za.isNavigationFailure=Ca,za.NavigationFailureType=ya,za.START_LOCATION=vi,Ki&&window.Vue&&window.Vue.use(za);var Wa={"components/AlgoliaSearchBox":()=>Promise.all([n.e(0),n.e(19)]).then(n.bind(null,207)),"components/DropdownLink":()=>Promise.all([n.e(0),n.e(13)]).then(n.bind(null,166)),"components/DropdownTransition":()=>Promise.all([n.e(0),n.e(20)]).then(n.bind(null,154)),"components/Home":()=>Promise.all([n.e(0),n.e(15)]).then(n.bind(null,192)),"components/NavLink":()=>n.e(22).then(n.bind(null,153)),"components/NavLinks":()=>Promise.all([n.e(0),n.e(12)]).then(n.bind(null,177)),"components/Navbar":()=>Promise.all([n.e(0),n.e(1)]).then(n.bind(null,203)),"components/Page":()=>Promise.all([n.e(0),n.e(11)]).then(n.bind(null,193)),"components/PageEdit":()=>Promise.all([n.e(0),n.e(16)]).then(n.bind(null,179)),"components/PageNav":()=>Promise.all([n.e(0),n.e(14)]).then(n.bind(null,180)),"components/Sidebar":()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,194)),"components/SidebarButton":()=>Promise.all([n.e(0),n.e(21)]).then(n.bind(null,195)),"components/SidebarGroup":()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,178)),"components/SidebarLink":()=>Promise.all([n.e(0),n.e(17)]).then(n.bind(null,167)),"components/SidebarLinks":()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,165)),"global-components/Badge":()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,213)),"global-components/CodeBlock":()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,208)),"global-components/CodeGroup":()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,209)),"layouts/404":()=>n.e(7).then(n.bind(null,210)),"layouts/Layout":()=>Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,211)),NotFound:()=>n.e(7).then(n.bind(null,210)),Layout:()=>Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,211))},Ka={"v-4d323bd8":()=>n.e(23).then(n.bind(null,214)),"v-38781923":()=>n.e(24).then(n.bind(null,215)),"v-33592580":()=>n.e(25).then(n.bind(null,216)),"v-a9dc5998":()=>n.e(69).then(n.bind(null,217)),"v-71c2cd23":()=>n.e(70).then(n.bind(null,212)),"v-67ba7d8b":()=>n.e(71).then(n.bind(null,218)),"v-1283c6ba":()=>n.e(73).then(n.bind(null,219)),"v-4ad408c1":()=>n.e(72).then(n.bind(null,220)),"v-0db3c54e":()=>n.e(31).then(n.bind(null,221)),"v-0c69976f":()=>n.e(30).then(n.bind(null,222)),"v-49c8f649":()=>n.e(47).then(n.bind(null,223)),"v-f2c09488":()=>n.e(67).then(n.bind(null,224)),"v-17e728c0":()=>n.e(36).then(n.bind(null,225)),"v-5dc4612d":()=>n.e(54).then(n.bind(null,226)),"v-33faa4a4":()=>n.e(44).then(n.bind(null,227)),"v-2720ef19":()=>n.e(41).then(n.bind(null,228)),"v-1c8659c0":()=>n.e(39).then(n.bind(null,229)),"v-46aef638":()=>n.e(46).then(n.bind(null,230)),"v-5d6066e2":()=>n.e(53).then(n.bind(null,231)),"v-00e9312e":()=>n.e(26).then(n.bind(null,232)),"v-5a304ccb":()=>n.e(50).then(n.bind(null,233)),"v-5dc99f07":()=>n.e(55).then(n.bind(null,234)),"v-06af9c14":()=>n.e(28).then(n.bind(null,235)),"v-1bfb9cc8":()=>n.e(38).then(n.bind(null,236)),"v-3a435c5c":()=>n.e(45).then(n.bind(null,237)),"v-6d14be7a":()=>n.e(58).then(n.bind(null,238)),"v-6dad531a":()=>n.e(59).then(n.bind(null,239)),"v-18a942e2":()=>n.e(37).then(n.bind(null,240)),"v-174fa19d":()=>n.e(35).then(n.bind(null,241)),"v-67c3b570":()=>n.e(57).then(n.bind(null,242)),"v-5d5bd37b":()=>n.e(52).then(n.bind(null,243)),"v-24b55d06":()=>n.e(40).then(n.bind(null,244)),"v-53fe9ece":()=>n.e(49).then(n.bind(null,245)),"v-13dab3c1":()=>n.e(32).then(n.bind(null,246)),"v-78969153":()=>n.e(61).then(n.bind(null,247)),"v-3020b259":()=>n.e(43).then(n.bind(null,248)),"v-e97a16a8":()=>n.e(66).then(n.bind(null,249)),"v-7b8b979c":()=>n.e(62).then(n.bind(null,250)),"v-14561809":()=>n.e(33).then(n.bind(null,251)),"v-ce665d4a":()=>n.e(64).then(n.bind(null,252)),"v-5c3ed1e5":()=>n.e(51).then(n.bind(null,253)),"v-d6889680":()=>n.e(65).then(n.bind(null,254)),"v-661fcd45":()=>n.e(56).then(n.bind(null,255)),"v-bcb00224":()=>n.e(63).then(n.bind(null,256)),"v-1547d1e7":()=>n.e(34).then(n.bind(null,257)),"v-fb185622":()=>n.e(68).then(n.bind(null,258)),"v-4d94196a":()=>n.e(48).then(n.bind(null,259)),"v-2a978f76":()=>n.e(42).then(n.bind(null,260)),"v-089a996c":()=>n.e(29).then(n.bind(null,261)),"v-76b8bc10":()=>n.e(60).then(n.bind(null,262)),"v-01979d90":()=>n.e(27).then(n.bind(null,263))};function Qa(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const Ga=/-(\w)/g,Xa=Qa(e=>e.replace(Ga,(e,t)=>t?t.toUpperCase():"")),Ya=/\B([A-Z])/g,Za=Qa(e=>e.replace(Ya,"-$1").toLowerCase()),es=Qa(e=>e.charAt(0).toUpperCase()+e.slice(1));function ts(e,t){if(!t)return;if(e(t))return e(t);return t.includes("-")?e(es(Xa(t))):e(es(t))||e(Za(t))}const ns=Object.assign({},Wa,Ka),rs=e=>ns[e],os=e=>Ka[e],is=e=>Wa[e],as=e=>Wn.component(e);function ss(e){return ts(os,e)}function cs(e){return ts(is,e)}function us(e){return ts(rs,e)}function ls(e){return ts(as,e)}function fs(...e){return Promise.all(e.filter(e=>e).map(async e=>{if(!ls(e)&&us(e)){const t=await us(e)();Wn.component(e,t.default)}}))}function ps(e,t){"undefined"!=typeof window&&window.__VUEPRESS__&&(window.__VUEPRESS__[e]=t)}var hs=n(46),ds=n.n(hs),vs=n(47),ms=n.n(vs),gs={created(){if(this.siteMeta=this.$site.headTags.filter(([e])=>"meta"===e).map(([e,t])=>t),this.$ssrContext){const t=this.getMergedMetaTags();this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.pageMeta=(e=t)?e.map(e=>{let t="{t+=` ${n}="${ms()(e[n])}"`}),t+">"}).join("\n "):"",this.$ssrContext.canonicalLink=bs(this.$canonicalUrl)}var e},mounted(){this.currentMetaTags=[...document.querySelectorAll("meta")],this.updateMeta(),this.updateCanonicalLink()},methods:{updateMeta(){document.title=this.$title,document.documentElement.lang=this.$lang;const e=this.getMergedMetaTags();this.currentMetaTags=_s(e,this.currentMetaTags)},getMergedMetaTags(){const e=this.$page.frontmatter.meta||[];return ds()([{name:"description",content:this.$description}],e,this.siteMeta,xs)},updateCanonicalLink(){ys(),this.$canonicalUrl&&document.head.insertAdjacentHTML("beforeend",bs(this.$canonicalUrl))}},watch:{$page(){this.updateMeta(),this.updateCanonicalLink()}},beforeDestroy(){_s(null,this.currentMetaTags),ys()}};function ys(){const e=document.querySelector("link[rel='canonical']");e&&e.remove()}function bs(e=""){return e?``:""}function _s(e,t){if(t&&[...t].filter(e=>e.parentNode===document.head).forEach(e=>document.head.removeChild(e)),e)return e.map(e=>{const t=document.createElement("meta");return Object.keys(e).forEach(n=>{t.setAttribute(n,e[n])}),document.head.appendChild(t),t})}function xs(e){for(const t of["name","property","itemprop"])if(e.hasOwnProperty(t))return e[t]+t;return JSON.stringify(e)}var ws=n(48),ks={mounted(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(ws)()((function(){this.setActiveHash()}),300),setActiveHash(){const e=[].slice.call(document.querySelectorAll(".sidebar-link")),t=[].slice.call(document.querySelectorAll(".header-anchor")).filter(t=>e.some(e=>e.hash===t.hash)),n=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),o=window.innerHeight+n;for(let e=0;e=i.parentElement.offsetTop+10&&(!a||n{this.$nextTick(()=>{this.$vuepress.$set("disableScrollBehavior",!1)})})}}}},beforeDestroy(){window.removeEventListener("scroll",this.onScroll)}},Cs=n(12),$s=n.n(Cs),Os=[gs,ks,{mounted(){$s.a.configure({showSpinner:!1}),this.$router.beforeEach((e,t,n)=>{e.path===t.path||Wn.component(e.name)||$s.a.start(),n()}),this.$router.afterEach(()=>{$s.a.done(),this.isSidebarOpen=!1})}}],js={name:"GlobalLayout",computed:{layout(){const e=this.getLayout();return ps("layout",e),Wn.component(e)}},methods:{getLayout(){if(this.$page.path){const e=this.$page.frontmatter.layout;return e&&(this.$vuepress.getLayoutAsyncComponent(e)||this.$vuepress.getVueComponent(e))?e:"Layout"}return"NotFound"}}},Ps=n(3),Ss=Object(Ps.a)(js,(function(){return(0,this._self._c)(this.layout,{tag:"component"})}),[],!1,null,null,null).exports;!function(e,t,n){switch(t){case"components":e[t]||(e[t]={}),Object.assign(e[t],n);break;case"mixins":e[t]||(e[t]=[]),e[t].push(...n);break;default:throw new Error("Unknown option name.")}}(Ss,"mixins",Os);const Es=[{name:"v-4d323bd8",path:"/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4d323bd8").then(n)}},{path:"/index.html",redirect:"/"},{name:"v-38781923",path:"/deep-dive.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-38781923").then(n)}},{name:"v-33592580",path:"/development/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-33592580").then(n)}},{path:"/development/index.html",redirect:"/development/"},{name:"v-a9dc5998",path:"/usage/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-a9dc5998").then(n)}},{path:"/usage/index.html",redirect:"/usage/"},{name:"v-71c2cd23",path:"/usage/modules.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-71c2cd23").then(n)}},{name:"v-67ba7d8b",path:"/usage/requests.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-67ba7d8b").then(n)}},{name:"v-1283c6ba",path:"/usage/setup.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1283c6ba").then(n)}},{name:"v-4ad408c1",path:"/usage/router.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4ad408c1").then(n)}},{name:"v-9c0f51cc",path:"/reference/class/ModuleBuilder.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-9c0f51cc").then(n)}},{name:"v-1078091c",path:"/reference/class/JsonApiRoute.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1078091c").then(n)}},{name:"v-718e502e",path:"/reference/class/JsonApiRouter.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-718e502e").then(n)}},{name:"v-ecf66ec0",path:"/reference/class/Route.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-ecf66ec0").then(n)}},{name:"v-4b25e572",path:"/reference/class/StaticRouter.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4b25e572").then(n)}},{name:"v-60a48542",path:"/reference/function/strip.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-60a48542").then(n)}},{name:"v-0db3c54e",path:"/reference/",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-0db3c54e").then(n)}},{path:"/reference/index.html",redirect:"/reference/"},{name:"v-0c69976f",path:"/reference/class/Api.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-0c69976f").then(n)}},{name:"v-49c8f649",path:"/reference/class/ResourceProxy.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-49c8f649").then(n)}},{name:"v-f2c09488",path:"/reference/class/ResourceBuilder.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-f2c09488").then(n)}},{name:"v-17e728c0",path:"/reference/class/Router.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-17e728c0").then(n)}},{name:"v-5dc4612d",path:"/reference/class/FosJsRoutingRouter.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5dc4612d").then(n)}},{name:"v-33faa4a4",path:"/reference/class/StaticRoute.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-33faa4a4").then(n)}},{name:"v-2720ef19",path:"/reference/class/Performance.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-2720ef19").then(n)}},{name:"v-1c8659c0",path:"/reference/function/prepareModuleHashMap.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1c8659c0").then(n)}},{name:"v-46aef638",path:"/reference/function/validateResourceObject.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-46aef638").then(n)}},{name:"v-5d6066e2",path:"/reference/function/initJsonApiPlugin.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5d6066e2").then(n)}},{name:"v-00e9312e",path:"/reference/function/createAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-00e9312e").then(n)}},{name:"v-5a304ccb",path:"/reference/function/getAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5a304ccb").then(n)}},{name:"v-5dc99f07",path:"/reference/function/listAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5dc99f07").then(n)}},{name:"v-06af9c14",path:"/reference/function/listRelatedAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-06af9c14").then(n)}},{name:"v-1bfb9cc8",path:"/reference/function/saveAction.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1bfb9cc8").then(n)}},{name:"v-3a435c5c",path:"/reference/function/hasChanges.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-3a435c5c").then(n)}},{name:"v-6d14be7a",path:"/reference/function/itemsInRelationshipFormat.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-6d14be7a").then(n)}},{name:"v-6dad531a",path:"/reference/function/prepareQuery.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-6dad531a").then(n)}},{name:"v-18a942e2",path:"/reference/function/isMissingModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-18a942e2").then(n)}},{name:"v-174fa19d",path:"/reference/function/processResponseData.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-174fa19d").then(n)}},{name:"v-67c3b570",path:"/reference/function/registerMissingModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-67c3b570").then(n)}},{name:"v-5d5bd37b",path:"/reference/function/compileMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5d5bd37b").then(n)}},{name:"v-24b55d06",path:"/reference/function/setResourceObjectsForModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-24b55d06").then(n)}},{name:"v-53fe9ece",path:"/reference/function/removeMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-53fe9ece").then(n)}},{name:"v-13dab3c1",path:"/reference/function/resetItemsMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-13dab3c1").then(n)}},{name:"v-78969153",path:"/reference/function/setAllMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-78969153").then(n)}},{name:"v-3020b259",path:"/reference/function/setItemMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-3020b259").then(n)}},{name:"v-e97a16a8",path:"/reference/function/setMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-e97a16a8").then(n)}},{name:"v-7b8b979c",path:"/reference/function/setPaginationMutation.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-7b8b979c").then(n)}},{name:"v-14561809",path:"/reference/function/getRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-14561809").then(n)}},{name:"v-ce665d4a",path:"/reference/function/registerBaseModule.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-ce665d4a").then(n)}},{name:"v-5c3ed1e5",path:"/reference/function/hasLoadableRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-5c3ed1e5").then(n)}},{name:"v-d6889680",path:"/reference/function/hasLoadedRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-d6889680").then(n)}},{name:"v-661fcd45",path:"/reference/function/listRelationship.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-661fcd45").then(n)}},{name:"v-bcb00224",path:"/reference/function/initialState.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-bcb00224").then(n)}},{name:"v-1547d1e7",path:"/reference/function/getRelationshipConfig.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-1547d1e7").then(n)}},{name:"v-fb185622",path:"/reference/function/hasOwn.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-fb185622").then(n)}},{name:"v-4d94196a",path:"/reference/function/deepMerge.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-4d94196a").then(n)}},{name:"v-2a978f76",path:"/reference/function/deref.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-2a978f76").then(n)}},{name:"v-089a996c",path:"/reference/function/isAbsoluteUri.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-089a996c").then(n)}},{name:"v-76b8bc10",path:"/reference/function/checkConfigProperty.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-76b8bc10").then(n)}},{name:"v-01979d90",path:"/reference/function/validateCallbackFn.html",component:Ss,beforeEnter:(e,t,n)=>{fs("Layout","v-01979d90").then(n)}},{path:"*",component:Ss}],As={title:"Json:Api for Vuex",description:"Automagic Json:Api integration for Vuex",base:"/",headTags:[],pages:[{title:"Json:Api for Vuex",frontmatter:{sidebar:"off"},regularPath:"/",relativePath:"README.md",key:"v-4d323bd8",path:"/",headers:[{level:2,title:"Quick Setup",slug:"quick-setup"}]},{title:"How things work under the hood",frontmatter:{},regularPath:"/deep-dive.html",relativePath:"deep-dive.md",key:"v-38781923",path:"/deep-dive.html",headers:[{level:2,title:"Proxy Objects for Vuex Mutations",slug:"proxy-objects-for-vuex-mutations"},{level:3,title:"The Proxy -> Mutation Parameter mapping",slug:"the-proxy-mutation-parameter-mapping"}]},{title:"Development",frontmatter:{},regularPath:"/development/",relativePath:"development/README.md",key:"v-33592580",path:"/development/",headers:[{level:2,title:"Testing",slug:"testing"}]},{title:"Usage",frontmatter:{},regularPath:"/usage/",relativePath:"usage/README.md",key:"v-a9dc5998",path:"/usage/",headers:[{level:2,title:"Structure",slug:"structure"}]},{title:"Modules",frontmatter:{},regularPath:"/usage/modules.html",relativePath:"usage/modules.md",key:"v-71c2cd23",path:"/usage/modules.html",headers:[{level:2,title:"State",slug:"state"},{level:3,title:"The fields",slug:"the-fields"},{level:2,title:"Mutations",slug:"mutations"},{level:3,title:"Default Mutations",slug:"default-mutations"},{level:3,title:"Additional Mutations",slug:"additional-mutations"},{level:3,title:"Calling mutations without dispatching an action",slug:"calling-mutations-without-dispatching-an-action"},{level:2,title:"Actions",slug:"actions"},{level:3,title:"get",slug:"get"},{level:3,title:"reset",slug:"reset"},{level:3,title:"list",slug:"list"},{level:3,title:"set",slug:"set"},{level:3,title:"update",slug:"update"},{level:2,title:"Getters",slug:"getters"}]},{title:"Requests",frontmatter:{},regularPath:"/usage/requests.html",relativePath:"usage/requests.md",key:"v-67ba7d8b",path:"/usage/requests.html",headers:[{level:2,title:"The two API classes",slug:"the-two-api-classes"},{level:3,title:"Resource request methods",slug:"resource-request-methods"},{level:2,title:"What happens during an action?",slug:"what-happens-during-an-action"},{level:3,title:"Example",slug:"example"}]},{title:"Example Setup",frontmatter:{},regularPath:"/usage/setup.html",relativePath:"usage/setup.md",key:"v-1283c6ba",path:"/usage/setup.html",headers:[{level:2,title:"Prepare the store",slug:"prepare-the-store"},{level:2,title:"Mount Vue",slug:"mount-vue"}]},{title:"Routing in the context of this plugin",frontmatter:{},regularPath:"/usage/router.html",relativePath:"usage/router.md",key:"v-4ad408c1",path:"/usage/router.html",headers:[{level:2,title:"Available Router implementations",slug:"available-router-implementations"},{level:3,title:"StaticRouter",slug:"staticrouter"},{level:3,title:"JsonApiRouter",slug:"jsonapirouter"},{level:2,title:"Route",slug:"route"},{level:2,title:"I want my own router",slug:"i-want-my-own-router"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/ModuleBuilder.html",key:"v-9c0f51cc",path:"/reference/class/ModuleBuilder.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/JsonApiRoute.html",key:"v-1078091c",path:"/reference/class/JsonApiRoute.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/JsonApiRouter.html",key:"v-718e502e",path:"/reference/class/JsonApiRouter.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Route.html",key:"v-ecf66ec0",path:"/reference/class/Route.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/StaticRouter.html",key:"v-4b25e572",path:"/reference/class/StaticRouter.html"},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/strip.html",key:"v-60a48542",path:"/reference/function/strip.html"},{title:"Reference (JS)",frontmatter:{title:"Reference (JS)"},regularPath:"/reference/",key:"v-0db3c54e",path:"/reference/",headers:[{level:2,title:"Classes",slug:"classes"},{level:2,title:"Global Functions",slug:"global-functions"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Api.html",key:"v-0c69976f",path:"/reference/class/Api.html",headers:[{level:2,title:"Api",slug:"api"},{level:3,title:"new Api()",slug:"new-api"},{level:3,title:"api.setSuccessCallbacks(callbacks)",slug:"api-setsuccesscallbacks-callbacks"},{level:3,title:"api.setErrorCallbacks(callbacks)",slug:"api-seterrorcallbacks-callbacks"},{level:3,title:"api.addSuccessCallback(callback)",slug:"api-addsuccesscallback-callback"},{level:3,title:"api.addErrorCallback(callback)",slug:"api-adderrorcallback-callback"},{level:3,title:"api.resetSuccessCallbacks()",slug:"api-resetsuccesscallbacks"},{level:3,title:"api.resetErrorCallbacks()",slug:"api-reseterrorcallbacks"},{level:3,title:"api.setHeader(name, value, overwrite)",slug:"api-setheader-name-value-overwrite"},{level:3,title:"api.addHeaders(headers)",slug:"api-addheaders-headers"},{level:3,title:"api._doRequest(method, url, params, data) ⇒",slug:"api-dorequest-method-url-params-data-⇒-promise-response"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/ResourceProxy.html",key:"v-49c8f649",path:"/reference/class/ResourceProxy.html",headers:[{level:2,title:"ResourceProxy",slug:"resourceproxy"},{level:3,title:"new ResourceProxy()",slug:"new-resourceproxy"},{level:3,title:"resourceProxy.addRoute(route)",slug:"resourceproxy-addroute-route"},{level:3,title:"resourceProxy.methodNotAvailable(methodName)",slug:"resourceproxy-methodnotavailable-methodname"},{level:3,title:"resourceProxy.get(parameters, data) ⇒",slug:"resourceproxy-get-parameters-data-⇒"},{level:3,title:"resourceProxy.list(parameters, data) ⇒",slug:"resourceproxy-list-parameters-data-⇒"},{level:3,title:"resourceProxy.create(parameters, data) ⇒",slug:"resourceproxy-create-parameters-data-⇒"},{level:3,title:"resourceProxy.replace(parameters, data) ⇒",slug:"resourceproxy-replace-parameters-data-⇒"},{level:3,title:"resourceProxy.update(parameters, data) ⇒",slug:"resourceproxy-update-parameters-data-⇒"},{level:3,title:"resourceProxy.delete(parameters, data) ⇒",slug:"resourceproxy-delete-parameters-data-⇒"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/ResourceBuilder.html",key:"v-f2c09488",path:"/reference/class/ResourceBuilder.html",headers:[{level:2,title:"ResourceBuilder",slug:"resourcebuilder"},{level:3,title:"resourceBuilder.build(jsonResourceObject)",slug:"resourcebuilder-build-jsonresourceobject"},{level:3,title:"resourceBuilder.buildRelationshipMethods(obj)",slug:"resourcebuilder-buildrelationshipmethods-obj"},{level:3,title:"ResourceBuilder.strip(functionalResourceObject)",slug:"resourcebuilder-strip-functionalresourceobject"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Router.html",key:"v-17e728c0",path:"/reference/class/Router.html",headers:[{level:2,title:"Router",slug:"router"},{level:3,title:"new Router()",slug:"new-router"},{level:3,title:"router.getRoutes() ⇒",slug:"router-getroutes-⇒-array-route"},{level:3,title:"router.addRoute(route)",slug:"router-addroute-route"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/FosJsRoutingRouter.html",key:"v-5dc4612d",path:"/reference/class/FosJsRoutingRouter.html",headers:[{level:2,title:"FosJsRoutingRouter",slug:"fosjsroutingrouter"},{level:3,title:"new FosJsRoutingRouter()",slug:"new-fosjsroutingrouter"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/StaticRoute.html",key:"v-33faa4a4",path:"/reference/class/StaticRoute.html",headers:[{level:2,title:"StaticRoute",slug:"staticroute"},{level:3,title:"new StaticRoute()",slug:"new-staticroute"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/class/Performance.html",key:"v-2720ef19",path:"/reference/class/Performance.html",headers:[{level:2,title:"Performance",slug:"performance"},{level:3,title:"new Performance()",slug:"new-performance"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/prepareModuleHashMap.html",key:"v-1c8659c0",path:"/reference/function/prepareModuleHashMap.html",headers:[{level:2,title:"prepareModuleHashMap(modules)",slug:"preparemodulehashmap-modules"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/validateResourceObject.html",key:"v-46aef638",path:"/reference/function/validateResourceObject.html",headers:[{level:2,title:"validateResourceObject(resourceObject) ⇒",slug:"validateresourceobject-resourceobject-⇒"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/initJsonApiPlugin.html",key:"v-5d6066e2",path:"/reference/function/initJsonApiPlugin.html",headers:[{level:2,title:"initJsonApiPlugin(config)",slug:"initjsonapiplugin-config"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/createAction.html",key:"v-00e9312e",path:"/reference/function/createAction.html",headers:[{level:2,title:"createAction(api, moduleName)",slug:"createaction-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/getAction.html",key:"v-5a304ccb",path:"/reference/function/getAction.html",headers:[{level:2,title:"getAction(api, moduleName, defaultQuery)",slug:"getaction-api-modulename-defaultquery"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/listAction.html",key:"v-5dc99f07",path:"/reference/function/listAction.html",headers:[{level:2,title:"listAction(api, moduleName, defaultQuery, module)",slug:"listaction-api-modulename-defaultquery-module"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/listRelatedAction.html",key:"v-06af9c14",path:"/reference/function/listRelatedAction.html",headers:[{level:2,title:"listRelatedAction(api, moduleName)",slug:"listrelatedaction-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/saveAction.html",key:"v-1bfb9cc8",path:"/reference/function/saveAction.html",headers:[{level:2,title:"saveAction(api, isCollection, moduleName, defaultQuery)",slug:"saveaction-api-iscollection-modulename-defaultquery"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasChanges.html",key:"v-3a435c5c",path:"/reference/function/hasChanges.html",headers:[{level:2,title:"hasChanges(state)",slug:"haschanges-state"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/itemsInRelationshipFormat.html",key:"v-6d14be7a",path:"/reference/function/itemsInRelationshipFormat.html",headers:[{level:2,title:"itemsInRelationshipFormat(state) ⇒",slug:"itemsinrelationshipformat-state-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/prepareQuery.html",key:"v-6dad531a",path:"/reference/function/prepareQuery.html",headers:[{level:2,title:"prepareQuery(query, defaultQuery)",slug:"preparequery-query-defaultquery"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/isMissingModule.html",key:"v-18a942e2",path:"/reference/function/isMissingModule.html",headers:[{level:2,title:"isMissingModule(store, moduleName)",slug:"ismissingmodule-store-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/processResponseData.html",key:"v-174fa19d",path:"/reference/function/processResponseData.html",headers:[{level:2,title:"processResponseData(vuexFns, api, currentModule, data, currentMethod, relatedModule)",slug:"processresponsedata-vuexfns-api-currentmodule-data-currentmethod-relatedmodule"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/registerMissingModule.html",key:"v-67c3b570",path:"/reference/function/registerMissingModule.html",headers:[{level:2,title:"registerMissingModule(api, moduleName)",slug:"registermissingmodule-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/compileMutation.html",key:"v-5d5bd37b",path:"/reference/function/compileMutation.html",headers:[{level:2,title:"compileMutation(currentModule, destinationModule) ⇒",slug:"compilemutation-currentmodule-destinationmodule-⇒-string"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setResourceObjectsForModule.html",key:"v-24b55d06",path:"/reference/function/setResourceObjectsForModule.html",headers:[{level:2,title:"setResourceObjectsForModule(vuexFns, currentModule, destinationModule, objects)",slug:"setresourceobjectsformodule-vuexfns-currentmodule-destinationmodule-objects"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/removeMutation.html",key:"v-53fe9ece",path:"/reference/function/removeMutation.html",headers:[{level:2,title:"removeMutation(isCollection)",slug:"removemutation-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/resetItemsMutation.html",key:"v-13dab3c1",path:"/reference/function/resetItemsMutation.html",headers:[{level:2,title:"resetItemsMutation(isCollection)",slug:"resetitemsmutation-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setAllMutation.html",key:"v-78969153",path:"/reference/function/setAllMutation.html",headers:[{level:2,title:"setAllMutation(resourceBuilder)",slug:"setallmutation-resourcebuilder"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setItemMutation.html",key:"v-3020b259",path:"/reference/function/setItemMutation.html",headers:[{level:2,title:"setItemMutation(resourceBuilder, isCollection)",slug:"setitemmutation-resourcebuilder-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setMutation.html",key:"v-e97a16a8",path:"/reference/function/setMutation.html",headers:[{level:2,title:"setMutation(store, resourceBuilder, isCollection)",slug:"setmutation-store-resourcebuilder-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/setPaginationMutation.html",key:"v-7b8b979c",path:"/reference/function/setPaginationMutation.html",headers:[{level:2,title:"setPaginationMutation(state, pagination)",slug:"setpaginationmutation-state-pagination"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/getRelationship.html",key:"v-14561809",path:"/reference/function/getRelationship.html",headers:[{level:2,title:"getRelationship(store, relatedObject, config{isToMany:, config{isToMany:)",slug:"getrelationship-store-relatedobject-config-istomany-config-istomany"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/registerBaseModule.html",key:"v-ce665d4a",path:"/reference/function/registerBaseModule.html",headers:[{level:2,title:"registerBaseModule(store, api, moduleName)",slug:"registerbasemodule-store-api-modulename"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasLoadableRelationship.html",key:"v-5c3ed1e5",path:"/reference/function/hasLoadableRelationship.html",headers:[{level:2,title:"hasLoadableRelationship(obj)",slug:"hasloadablerelationship-obj"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasLoadedRelationship.html",key:"v-d6889680",path:"/reference/function/hasLoadedRelationship.html",headers:[{level:2,title:"hasLoadedRelationship(obj)",slug:"hasloadedrelationship-obj"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/listRelationship.html",key:"v-661fcd45",path:"/reference/function/listRelationship.html",headers:[{level:2,title:"listRelationship(store, relatedObjects)",slug:"listrelationship-store-relatedobjects"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/initialState.html",key:"v-bcb00224",path:"/reference/function/initialState.html",headers:[{level:2,title:"initialState(isCollection)",slug:"initialstate-iscollection"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/getRelationshipConfig.html",key:"v-1547d1e7",path:"/reference/function/getRelationshipConfig.html",headers:[{level:2,title:"getRelationshipConfig(relatedObject) ⇒",slug:"getrelationshipconfig-relatedobject-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/hasOwn.html",key:"v-fb185622",path:"/reference/function/hasOwn.html",headers:[{level:2,title:"hasOwn(object, property)",slug:"hasown-object-property"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/deepMerge.html",key:"v-4d94196a",path:"/reference/function/deepMerge.html",headers:[{level:2,title:"deepMerge(target, source) ⇒",slug:"deepmerge-target-source-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/deref.html",key:"v-2a978f76",path:"/reference/function/deref.html",headers:[{level:2,title:"deref(obj) ⇒",slug:"deref-obj-⇒-object"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/isAbsoluteUri.html",key:"v-089a996c",path:"/reference/function/isAbsoluteUri.html",headers:[{level:2,title:"isAbsoluteUri(uri)",slug:"isabsoluteuri-uri"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/checkConfigProperty.html",key:"v-76b8bc10",path:"/reference/function/checkConfigProperty.html",headers:[{level:2,title:"checkConfigProperty(config, property, isRequiredProp)",slug:"checkconfigproperty-config-property-isrequiredprop"}]},{frontmatter:{prev:"/reference/"},regularPath:"/reference/function/validateCallbackFn.html",key:"v-01979d90",path:"/reference/function/validateCallbackFn.html",headers:[{level:2,title:"validateCallbackFn(fn) ⇒",slug:"validatecallbackfn-fn-⇒-boolean"}]}],themeConfig:{nav:[{text:"Home",link:"/"},{text:"Development",link:"/development/"},{text:"Reference",link:"/reference/"},{text:"Usage",link:"/usage/"}],repo:"eFrane/vuex-json-api",editLinks:!0,editLinkText:"Help us improve this page!",displayAllHeaders:!0,activeHeaderLinks:!0,sidebar:"auto"}};n(145);Wn.component("jsonapi",()=>Promise.all([n.e(0),n.e(18)]).then(n.bind(null,264))),Wn.component("Badge",()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,213))),Wn.component("CodeBlock",()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,208))),Wn.component("CodeGroup",()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,209)));n(146);var Rs={props:{color:{required:!1,default:"rgb(66, 185, 131)"}}},Ms=(n(147),Object(Ps.a)(Rs,(function(){return(0,this._self._c)("div",{staticClass:"spinner",style:{background:this.color}})}),[],!1,null,"1bbcb91a",null).exports);const Ls={name:"Mermaid",props:{id:{type:String,required:!1,default:()=>"diagram_"+Date.now()},graph:{type:String,required:!1}},data:()=>({svg:void 0}),computed:{graphData(){return this.graph?this.graph:this.$slots.default[0].text}},render(e){return void 0===this.svg?e("Loading"):e("div",{class:["mermaid-diagram"],domProps:{innerHTML:this.svg,style:"width: 100%"}})},mounted(){n.e(74).then(n.t.bind(null,204,7)).then(e=>{e.initialize({startOnLoad:!0}),e.render(this.id,this.graphData,e=>{this.svg=e})})},components:{Loading:Ms}};var Ts=[{},({Vue:e})=>{e.mixin({computed:{$dataBlock(){return this.$options.__data__block__}}})},{},{},({Vue:e})=>{e.component(Ls.name,Ls)}],Is=[];class Ns extends class{constructor(){this.store=new Wn({data:{state:{}}})}$get(e){return this.store.state[e]}$set(e,t){Wn.set(this.store.state,e,t)}$emit(...e){this.store.$emit(...e)}$on(...e){this.store.$on(...e)}}{}Object.assign(Ns.prototype,{getPageAsyncComponent:ss,getLayoutAsyncComponent:cs,getAsyncComponent:us,getVueComponent:ls});var Ds={install(e){const t=new Ns;e.$vuepress=t,e.prototype.$vuepress=t}};function Fs(e,t){const n=t.toLowerCase();return e.options.routes.some(e=>e.path.toLowerCase()===n)}var Us={props:{pageKey:String,slotKey:{type:String,default:"default"}},render(e){const t=this.pageKey||this.$parent.$page.key;return ps("pageKey",t),Wn.component(t)||Wn.component(t,ss(t)),Wn.component(t)?e(t):e("")}},Bs={functional:!0,props:{slotKey:String,required:!0},render:(e,{props:t,slots:n})=>e("div",{class:["content__"+t.slotKey]},n()[t.slotKey])},qs={computed:{openInNewWindowTitle(){return this.$themeLocaleConfig.openNewWindowText||"(opens new window)"}}},zs=(n(148),n(149),Object(Ps.a)(qs,(function(){var e=this._self._c;return e("span",[e("svg",{staticClass:"icon outbound",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"}},[e("path",{attrs:{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}}),this._v(" "),e("polygon",{attrs:{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"}})]),this._v(" "),e("span",{staticClass:"sr-only"},[this._v(this._s(this.openInNewWindowTitle))])])}),[],!1,null,null,null).exports),Vs={functional:!0,render(e,{parent:t,children:n}){if(t._isMounted)return n;t.$once("hook:mounted",()=>{t.$forceUpdate()})}};Wn.config.productionTip=!1,Wn.use(Ha),Wn.use(Ds),Wn.mixin(function(e,t,n=Wn){!function(e){e.locales&&Object.keys(e.locales).forEach(t=>{e.locales[t].path=t});Object.freeze(e)}(t),n.$vuepress.$set("siteData",t);const r=new(e(n.$vuepress.$get("siteData"))),o=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(r)),i={};return Object.keys(o).reduce((e,t)=>(t.startsWith("$")&&(e[t]=o[t].get),e),i),{computed:i}}(e=>class{setPage(e){this.__page=e}get $site(){return e}get $themeConfig(){return this.$site.themeConfig}get $frontmatter(){return this.$page.frontmatter}get $localeConfig(){const{locales:e={}}=this.$site;let t,n;for(const r in e)"/"===r?n=e[r]:0===this.$page.path.indexOf(r)&&(t=e[r]);return t||n||{}}get $siteTitle(){return this.$localeConfig.title||this.$site.title||""}get $canonicalUrl(){const{canonicalUrl:e}=this.$page.frontmatter;return"string"==typeof e&&e}get $title(){const e=this.$page,{metaTitle:t}=this.$page.frontmatter;if("string"==typeof t)return t;const n=this.$siteTitle,r=e.frontmatter.home?null:e.frontmatter.title||e.title;return n?r?r+" | "+n:n:r||"VuePress"}get $description(){const e=function(e){if(e){const t=e.filter(e=>"description"===e.name)[0];if(t)return t.content}}(this.$page.frontmatter.meta);return e||(this.$page.frontmatter.description||this.$localeConfig.description||this.$site.description||"")}get $lang(){return this.$page.frontmatter.lang||this.$localeConfig.lang||"en-US"}get $localePath(){return this.$localeConfig.path||"/"}get $themeLocaleConfig(){return(this.$site.themeConfig.locales||{})[this.$localePath]||{}}get $page(){return this.__page?this.__page:function(e,t){for(let n=0;nn||(e.hash?!Wn.$vuepress.$get("disableScrollBehavior")&&{selector:decodeURIComponent(e.hash)}:{x:0,y:0})});!function(e){e.beforeEach((t,n,r)=>{if(Fs(e,t.path))r();else if(/(\/|\.html)$/.test(t.path))if(/\/$/.test(t.path)){const n=t.path.replace(/\/$/,"")+".html";Fs(e,n)?r(n):r()}else r();else{const n=t.path+"/",o=t.path+".html";Fs(e,o)?r(o):Fs(e,n)?r(n):r()}})}(n);const r={};try{await Promise.all(Ts.filter(e=>"function"==typeof e).map(t=>t({Vue:Wn,options:r,router:n,siteData:As,isServer:e})))}catch(e){console.error(e)}return{app:new Wn(Object.assign(r,{router:n,render:e=>e("div",{attrs:{id:"app"}},[e("RouterView",{ref:"layout"}),e("div",{class:"global-ui"},Is.map(t=>e(t)))])})),router:n}}(!1).then(({app:e,router:t})=>{t.onReady(()=>{e.$mount("#app")})})}]); \ No newline at end of file diff --git a/deep-dive.html b/deep-dive.html index dd1620de..59f19ef3 100644 --- a/deep-dive.html +++ b/deep-dive.html @@ -8,7 +8,7 @@ - + @@ -56,6 +56,6 @@ } )
- + diff --git a/development/index.html b/development/index.html index 7d4ffbcc..53e2723e 100644 --- a/development/index.html +++ b/development/index.html @@ -8,7 +8,7 @@ - + @@ -39,6 +39,6 @@ do more harm than good.

# Testing

The test setup is based around Jest (opens new window), Fetch Mock (opens new window) and the Vue Test Utils (opens new window).

When testing interactions against a {json:api}, tests/apiMock.js provides a few helpers:

Method Description
initApiMockServer(): void Configures fetch-mock with several correct {json:api} responses
initApiMock(): ResourcefulApi Configures a ResourcefulApi against the mock server methods
getVuexContextForResourceType(ResourcefulApi api, string type): { commit, dispatch, getters, state } Returns the Vuex context from a configured api module
- + diff --git a/index.html b/index.html index 9f7b7864..50394b66 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - + @@ -78,6 +78,6 @@ <li v-for="book in books">{{ book.attributes.title }}</li> </ul>
- + diff --git a/reference/class/Api.html b/reference/class/Api.html index 3261f572..3834319b 100644 --- a/reference/class/Api.html +++ b/reference/class/Api.html @@ -8,7 +8,7 @@ - + @@ -41,6 +41,6 @@

- + diff --git a/reference/class/FosJsRoutingRouter.html b/reference/class/FosJsRoutingRouter.html index d78740aa..3d57e99d 100644 --- a/reference/class/FosJsRoutingRouter.html +++ b/reference/class/FosJsRoutingRouter.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/class/JsonApiRoute.html b/reference/class/JsonApiRoute.html index 7c2679b1..4fc5df67 100644 --- a/reference/class/JsonApiRoute.html +++ b/reference/class/JsonApiRoute.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/class/JsonApiRouter.html b/reference/class/JsonApiRouter.html index 7c2679b1..4fc5df67 100644 --- a/reference/class/JsonApiRouter.html +++ b/reference/class/JsonApiRouter.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/class/ModuleBuilder.html b/reference/class/ModuleBuilder.html index 7c2679b1..4fc5df67 100644 --- a/reference/class/ModuleBuilder.html +++ b/reference/class/ModuleBuilder.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/class/Performance.html b/reference/class/Performance.html index b60aa0a1..55d8758b 100644 --- a/reference/class/Performance.html +++ b/reference/class/Performance.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/class/ResourceBuilder.html b/reference/class/ResourceBuilder.html index 4db7e001..c1604eda 100644 --- a/reference/class/ResourceBuilder.html +++ b/reference/class/ResourceBuilder.html @@ -8,7 +8,7 @@ - + @@ -41,6 +41,6 @@

- + diff --git a/reference/class/ResourceProxy.html b/reference/class/ResourceProxy.html index 74755407..3837fe22 100644 --- a/reference/class/ResourceProxy.html +++ b/reference/class/ResourceProxy.html @@ -8,7 +8,7 @@ - + @@ -39,6 +39,6 @@

- + diff --git a/reference/class/Route.html b/reference/class/Route.html index 7c2679b1..4fc5df67 100644 --- a/reference/class/Route.html +++ b/reference/class/Route.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/class/Router.html b/reference/class/Router.html index 8551701a..ffacecff 100644 --- a/reference/class/Router.html +++ b/reference/class/Router.html @@ -8,7 +8,7 @@ - + @@ -47,6 +47,6 @@

- + diff --git a/reference/class/StaticRoute.html b/reference/class/StaticRoute.html index ce00252a..8a9f2976 100644 --- a/reference/class/StaticRoute.html +++ b/reference/class/StaticRoute.html @@ -8,7 +8,7 @@ - + @@ -45,6 +45,6 @@

- + diff --git a/reference/class/StaticRouter.html b/reference/class/StaticRouter.html index 7c2679b1..4fc5df67 100644 --- a/reference/class/StaticRouter.html +++ b/reference/class/StaticRouter.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/checkConfigProperty.html b/reference/function/checkConfigProperty.html index c60c5f94..21f5ad24 100644 --- a/reference/function/checkConfigProperty.html +++ b/reference/function/checkConfigProperty.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/compileMutation.html b/reference/function/compileMutation.html index 12e10d38..0f02ebeb 100644 --- a/reference/function/compileMutation.html +++ b/reference/function/compileMutation.html @@ -8,7 +8,7 @@ - + @@ -38,6 +38,6 @@

- + diff --git a/reference/function/createAction.html b/reference/function/createAction.html index 98e8a2e7..62230dde 100644 --- a/reference/function/createAction.html +++ b/reference/function/createAction.html @@ -8,7 +8,7 @@ - + @@ -44,6 +44,6 @@

- + diff --git a/reference/function/deepMerge.html b/reference/function/deepMerge.html index 5e4a4bf7..d62bac36 100644 --- a/reference/function/deepMerge.html +++ b/reference/function/deepMerge.html @@ -8,7 +8,7 @@ - + @@ -38,6 +38,6 @@

- + diff --git a/reference/function/deref.html b/reference/function/deref.html index 8ffd3320..ecdf70f7 100644 --- a/reference/function/deref.html +++ b/reference/function/deref.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/getAction.html b/reference/function/getAction.html index 374c3c63..595b4de2 100644 --- a/reference/function/getAction.html +++ b/reference/function/getAction.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/getRelationship.html b/reference/function/getRelationship.html index 12c6cfc5..6cdfaa0d 100644 --- a/reference/function/getRelationship.html +++ b/reference/function/getRelationship.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/getRelationshipConfig.html b/reference/function/getRelationshipConfig.html index a99297f6..737ec087 100644 --- a/reference/function/getRelationshipConfig.html +++ b/reference/function/getRelationshipConfig.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/hasChanges.html b/reference/function/hasChanges.html index 536deb1d..4b094df6 100644 --- a/reference/function/hasChanges.html +++ b/reference/function/hasChanges.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/hasLoadableRelationship.html b/reference/function/hasLoadableRelationship.html index 77ee7b47..9e4aa620 100644 --- a/reference/function/hasLoadableRelationship.html +++ b/reference/function/hasLoadableRelationship.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/hasLoadedRelationship.html b/reference/function/hasLoadedRelationship.html index b44075d7..fd48bd36 100644 --- a/reference/function/hasLoadedRelationship.html +++ b/reference/function/hasLoadedRelationship.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/hasOwn.html b/reference/function/hasOwn.html index 942f05b6..123bda25 100644 --- a/reference/function/hasOwn.html +++ b/reference/function/hasOwn.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/initJsonApiPlugin.html b/reference/function/initJsonApiPlugin.html index 7419d2d9..010d2064 100644 --- a/reference/function/initJsonApiPlugin.html +++ b/reference/function/initJsonApiPlugin.html @@ -8,7 +8,7 @@ - + @@ -38,6 +38,6 @@

- + diff --git a/reference/function/initialState.html b/reference/function/initialState.html index 8fbe2c6b..822138ef 100644 --- a/reference/function/initialState.html +++ b/reference/function/initialState.html @@ -8,7 +8,7 @@ - + @@ -39,6 +39,6 @@

- + diff --git a/reference/function/isAbsoluteUri.html b/reference/function/isAbsoluteUri.html index c6bc09d1..6372e181 100644 --- a/reference/function/isAbsoluteUri.html +++ b/reference/function/isAbsoluteUri.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/isMissingModule.html b/reference/function/isMissingModule.html index 8b78403f..e2bddf96 100644 --- a/reference/function/isMissingModule.html +++ b/reference/function/isMissingModule.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/itemsInRelationshipFormat.html b/reference/function/itemsInRelationshipFormat.html index 8300f267..233b1886 100644 --- a/reference/function/itemsInRelationshipFormat.html +++ b/reference/function/itemsInRelationshipFormat.html @@ -8,7 +8,7 @@ - + @@ -38,6 +38,6 @@

- + diff --git a/reference/function/listAction.html b/reference/function/listAction.html index ed6eddc7..ad38066b 100644 --- a/reference/function/listAction.html +++ b/reference/function/listAction.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/listRelatedAction.html b/reference/function/listRelatedAction.html index 86a22b52..37d46f67 100644 --- a/reference/function/listRelatedAction.html +++ b/reference/function/listRelatedAction.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/listRelationship.html b/reference/function/listRelationship.html index 8a7beb63..e4f23861 100644 --- a/reference/function/listRelationship.html +++ b/reference/function/listRelationship.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/prepareModuleHashMap.html b/reference/function/prepareModuleHashMap.html index ef6863d2..5066ec8d 100644 --- a/reference/function/prepareModuleHashMap.html +++ b/reference/function/prepareModuleHashMap.html @@ -8,7 +8,7 @@ - + @@ -41,6 +41,6 @@

- + diff --git a/reference/function/prepareQuery.html b/reference/function/prepareQuery.html index de9bfb82..5b4f3381 100644 --- a/reference/function/prepareQuery.html +++ b/reference/function/prepareQuery.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/processResponseData.html b/reference/function/processResponseData.html index c1e856d5..4c53dfba 100644 --- a/reference/function/processResponseData.html +++ b/reference/function/processResponseData.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/registerBaseModule.html b/reference/function/registerBaseModule.html index 3dc302b8..ec99e4e5 100644 --- a/reference/function/registerBaseModule.html +++ b/reference/function/registerBaseModule.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/registerMissingModule.html b/reference/function/registerMissingModule.html index 8373a57c..12c7c1f2 100644 --- a/reference/function/registerMissingModule.html +++ b/reference/function/registerMissingModule.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/removeMutation.html b/reference/function/removeMutation.html index 483246de..f345ae62 100644 --- a/reference/function/removeMutation.html +++ b/reference/function/removeMutation.html @@ -8,7 +8,7 @@ - + @@ -42,6 +42,6 @@

- + diff --git a/reference/function/resetItemsMutation.html b/reference/function/resetItemsMutation.html index 749cda69..916e8b0f 100644 --- a/reference/function/resetItemsMutation.html +++ b/reference/function/resetItemsMutation.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/saveAction.html b/reference/function/saveAction.html index 8151c03b..b1bc0fef 100644 --- a/reference/function/saveAction.html +++ b/reference/function/saveAction.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/setAllMutation.html b/reference/function/setAllMutation.html index 483d3f19..9817a034 100644 --- a/reference/function/setAllMutation.html +++ b/reference/function/setAllMutation.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/setItemMutation.html b/reference/function/setItemMutation.html index a1ba882e..71a7c616 100644 --- a/reference/function/setItemMutation.html +++ b/reference/function/setItemMutation.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/setMutation.html b/reference/function/setMutation.html index 1e900b99..5e93fa51 100644 --- a/reference/function/setMutation.html +++ b/reference/function/setMutation.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/setPaginationMutation.html b/reference/function/setPaginationMutation.html index 99da7b8c..7ae3bc17 100644 --- a/reference/function/setPaginationMutation.html +++ b/reference/function/setPaginationMutation.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/setResourceObjectsForModule.html b/reference/function/setResourceObjectsForModule.html index 4cc71e25..f700b189 100644 --- a/reference/function/setResourceObjectsForModule.html +++ b/reference/function/setResourceObjectsForModule.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/strip.html b/reference/function/strip.html index 7c2679b1..4fc5df67 100644 --- a/reference/function/strip.html +++ b/reference/function/strip.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/validateCallbackFn.html b/reference/function/validateCallbackFn.html index 8a3af2f4..aa6bd255 100644 --- a/reference/function/validateCallbackFn.html +++ b/reference/function/validateCallbackFn.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

- + diff --git a/reference/function/validateResourceObject.html b/reference/function/validateResourceObject.html index 156cdf89..d568ca31 100644 --- a/reference/function/validateResourceObject.html +++ b/reference/function/validateResourceObject.html @@ -8,7 +8,7 @@ - + @@ -38,6 +38,6 @@

- + diff --git a/reference/index.html b/reference/index.html index 370bdfc2..61742926 100644 --- a/reference/index.html +++ b/reference/index.html @@ -8,7 +8,7 @@ - + @@ -33,6 +33,6 @@ GitHub (opens new window)
- + diff --git a/usage/index.html b/usage/index.html index f86f6772..84a63aa6 100644 --- a/usage/index.html +++ b/usage/index.html @@ -8,7 +8,7 @@ - + @@ -34,6 +34,6 @@ GitHub (opens new window)

# Usage

# Structure

This library offers a plugin for Vuex which integrates with a {json:api} (opens new window) Server. The general plugin structure is:

- + diff --git a/usage/modules.html b/usage/modules.html index 8755e5b7..e8d8494d 100644 --- a/usage/modules.html +++ b/usage/modules.html @@ -8,7 +8,7 @@ - + @@ -72,6 +72,6 @@ If you're willing to pay very close attention to the parameters any particular mutation expects, go ahead. If not, be aware of the possibly destructive consequences.

# Actions

Name Description
get Get a single item
reset Reset the module state
list Get a list of items
set Set an item's data
update Update an item on the server

# get

# reset

# list

instead of an Id-String, you can pass an Object with an Id-Key and and option key.

Available Options Description
sendUnchangedAttributes If you want to send explicit attributes that are not (necessarily) changed. (accepts an string or array of attributes)
sendFullAttributes To send whole Attributes insead of the changed delta of an Array or Object. (accepts an string or array of attributes)

# set

# update

# Getters

- + diff --git a/usage/requests.html b/usage/requests.html index bfab93d7..bba72da0 100644 --- a/usage/requests.html +++ b/usage/requests.html @@ -8,7 +8,7 @@ - + @@ -39,6 +39,6 @@ ResourcefulApi. This one is the main server communication interface used by the module's actions.

# Resource request methods

Name Intention
get Request a single resource
list Request a list of resources
create Create a new resource
replace Replace an existing resource
update Update an existing resource
delete Delete an existing resource

# What happens during an action?

# Example

Given a properly routed API Endpoint api/book/ which will return a list of books, in the book module

- + diff --git a/usage/router.html b/usage/router.html index bd2a98bb..00661bc4 100644 --- a/usage/router.html +++ b/usage/router.html @@ -8,7 +8,7 @@ - + @@ -38,6 +38,6 @@ request space.

# Available Router implementations

# StaticRouter

Generates a Router with a set of manually configured Routes.

# JsonApiRouter

Generates a Router by requesting route data from a json:api endpoint.

# Route

A Route configures the specific endpoint in relation to the baseUrl.

Param Type Description
module String has to match the name of the requested type
action String see supported apiMethods
url String can be relative (to the baseUrl) or absolute (then it will bypass the "module name check" and create a storeModule named like the defined by the module param. independet of the type given by the response).
parameters Array (Optional)

# I want my own router

If the provided router implementations don't suit your needs you can always just extend the Router class and write your own. In the simplest case, overriding updateRoutes() should do the trick.

- + diff --git a/usage/setup.html b/usage/setup.html index 42c913a4..77c8f6d5 100644 --- a/usage/setup.html +++ b/usage/setup.html @@ -8,7 +8,7 @@ - + @@ -108,6 +108,6 @@ })

That's it. Now you should see the registered modules in the vue devTools.

- +