diff --git a/src/boot/axios.js b/src/boot/axios.js index 9dbc942..02e861b 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -1,5 +1,5 @@ -import { boot } from 'quasar/wrappers' -import axios from 'axios' +import { boot } from "quasar/wrappers"; +import axios from "axios"; // Be careful when using SSR for cross-request state pollution // due to creating a Singleton instance here; @@ -7,18 +7,18 @@ import axios from 'axios' // good idea to move this instance creation inside of the // "export default () => {}" function below (which runs individually // for each client) -const api = axios.create({ baseURL: 'https://api.example.com' }) +const api = axios.create({ baseURL: "https://api.example.com" }); export default boot(({ app }) => { // for use inside Vue files (Options API) through this.$axios and this.$api - app.config.globalProperties.$axios = axios + app.config.globalProperties.$axios = axios; // ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form) // so you won't necessarily have to import axios in each vue file - app.config.globalProperties.$api = api + app.config.globalProperties.$api = api; // ^ ^ ^ this will allow you to use this.$api (for Vue Options API form) // so you can easily perform requests against your app's API -}) +}); -export { api } +export { api }; diff --git a/src/components/game_finder/create_a_game.vue b/src/components/game_finder/create_a_game.vue new file mode 100644 index 0000000..e37d9c1 --- /dev/null +++ b/src/components/game_finder/create_a_game.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/pages/game_finder/find_a_game.vue b/src/pages/game_finder/find_a_game.vue index dced386..2f3368a 100644 --- a/src/pages/game_finder/find_a_game.vue +++ b/src/pages/game_finder/find_a_game.vue @@ -1,6 +1,12 @@ @@ -83,9 +89,10 @@