diff --git a/functions/index.js b/functions/index.js
index b92611ef..9b4575a4 100755
--- a/functions/index.js
+++ b/functions/index.js
@@ -36,16 +36,20 @@ exports.customSearch = functions.https.onRequest((req, res) => {
? `limit ${req.query.limit};`
: 'limit 50;';
+ const search = req.query.searchText
+ ? `search "${req.query.searchText}";`
+ : '';
+
const fields = req.query.fields
? `fields ${req.query.fields};`
: 'fields id,name,slug,rating,name,cover.image_id,first_release_date;';
const data = `
+ ${search}
${fields}
${sort}
${limit}
- ${query}
- `;
+ ${query}`;
axios({
url: 'https://api.igdb.com/v4/games',
@@ -122,7 +126,7 @@ exports.refreshToken = functions.pubsub.schedule('0 0 * * 0')
});
exports.platforms = functions.https.onRequest((req, res) => {
- res.set('Access-Control-Allow-Origin', "*")
+ res.set('Access-Control-Allow-Origin', "*");
const { token } = req.query;
diff --git a/src/components/Dock.vue b/src/components/Dock.vue
index f1a0a169..c43090d4 100755
--- a/src/components/Dock.vue
+++ b/src/components/Dock.vue
@@ -24,7 +24,7 @@
-
+
@@ -34,13 +34,13 @@
import { mapState, mapGetters } from 'vuex';
import PinnedBoards from '@/components/Board/PinnedBoards';
import Sidebar from '@/components/Sidebar';
-// import GlobalSearch from '@/components/GlobalSearch';
+import GlobalSearch from '@/components/GlobalSearch';
export default {
components: {
PinnedBoards,
Sidebar,
- // GlobalSearch,
+ GlobalSearch,
},
computed: {
diff --git a/src/components/GlobalSearch.vue b/src/components/GlobalSearch.vue
index 6ca6764c..d70c02ea 100644
--- a/src/components/GlobalSearch.vue
+++ b/src/components/GlobalSearch.vue
@@ -1,28 +1,87 @@
-
+
+
+
+
+
+
+ Game search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+