diff --git a/components/apollo/List.vue b/components/apollo/List.vue index ad1b7597289cfb1ee14723bd340a7a9e7597bd89..6db91abac2be6d3bcbed66755c67e574f28331d7 100644 --- a/components/apollo/List.vue +++ b/components/apollo/List.vue @@ -13,7 +13,7 @@ clientName .split(/(?=[A-Z])/) .map((s) => s.toLowerCase()) - .join(".") + .join("-") }} </option> </select> diff --git a/graphql/endpoints/axiom-team.js b/graphql/endpoints/axiom-team.js new file mode 100644 index 0000000000000000000000000000000000000000..12cfe2fd6c74c674c7e2f86586183861afa834af --- /dev/null +++ b/graphql/endpoints/axiom-team.js @@ -0,0 +1,26 @@ +import { HttpLink } from "apollo-link-http" +import { setContext } from "apollo-link-context" +import { from } from "apollo-link" +import { cache } from "../cache" + +export default (ctx) => { + const ssrMiddleware = setContext((_, { headers }) => { + if (process.client) return headers + return { + headers + } + }) + + const httpLink = new HttpLink({ + uri: "https://gql.wotwizard.axiom-team.fr/" + }) + + const link = from([ssrMiddleware, httpLink]) + + return { + link, + cache, + // https://github.com/nuxt-community/apollo-module/issues/306#issuecomment-607225431 + defaultHttpLink: false + } +} diff --git a/nuxt.config.js b/nuxt.config.js index 3031e2fa351275f6f8441ca6e972938c9a1e237c..a87972a8a073efeb6269c00633c2c9087419d2ca 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -127,7 +127,8 @@ export default { apollo: { clientConfigs: { - trentesaux: "~/graphql/endpoints/trentesaux" + trentesaux: "~/graphql/endpoints/trentesaux", + axiomTeam: "~/graphql/endpoints/axiom-team" } }, diff --git a/package.json b/package.json index aca3ec603312ad1be388eed638b271b3601eea5e..2edf2413cc4392446a323e6e6eb66fb6977f1fc6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wotwizard-ui", - "version": "2.5.0", + "version": "2.5.1", "private": true, "scripts": { "dev": "nuxt", diff --git a/web-ext/manifest.json b/web-ext/manifest.json index 8c14f03f12035911ce28aa0e7e175e62ffbc5396..31e7b9d21c92581f43817dabaaf1116247c4e975 100644 --- a/web-ext/manifest.json +++ b/web-ext/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Wotwizard UI", "description": "Le magicien de la toile de confiance", - "version": "2.5.0", + "version": "2.5.1", "homepage_url": "https://wotwizard.axiom-team.fr", "browser_action": { "browser_style": true,