2
0
Fork 0
mirror of https://github.com/romancm/gamebrary synced 2025-02-13 17:58:22 +00:00

remove todos

This commit is contained in:
Gamebrary 2022-08-19 14:48:47 -07:00
parent 594357ca8c
commit 23cb8834bd
13 changed files with 4 additions and 50 deletions

View file

@ -1,5 +1,5 @@
// firebase emulators:start --only functions
// TODO: INJECT TOKEN USING AXIOS MIDDLEWARE
// TODO: Inject token using axios middleware
// Add json object in .runtimeconfig.json to use env variables locally
const functions = require('firebase-functions');

View file

@ -1,17 +1,3 @@
<!-- TODO: improve board and game caching -->
<!-- TODO: GOG, steam, and amazon affiliate links -->
<!-- TODO: allow board sorting -->
<!-- TODO: Use moment? or use dayjs without wrapper -->
<!-- TODO: remove toasts -->
<!-- TODO: add mega search shift + k -->
<!-- TODO: re-translate strings -->
<!-- TODO: focus on affiliate stuff -->
<!-- TODO: update email template, update logo, etc... -->
<!-- TODO: use navigator.onLine -->
<!-- TODO: integrate itch.io -->
<!-- TODO: integrate fandom/wikia -->
<!-- TODO: https://zelda.fandom.com/api/v1/Articles/List?expand=1&category=Characters&limit=10000 -->
<!-- TODO: itch.io referral https://itch.io/register?return_to=https%3A%2F%2Fitch.io%2Fpartners%2Fapplication -->
<template>
<div
id="app"

View file

@ -1,8 +1,6 @@
<template lang="html">
<b-row v-if="user" class="p-1 boards">
<template v-if="showPlaceholder">
Loading
</template>
<b-spinner v-if="loading" class="spinner-centered" />
<template v-else>
<empty-state
@ -27,7 +25,7 @@
sm="6"
md="4"
lg="3"
class="p-2"
class="px-2 pb-2"
>
<mini-board
:board="board"
@ -63,10 +61,6 @@ export default {
...mapState(['publicBoards', 'user', 'boards', 'wallpapers']),
...mapGetters(['isBoardOwner', 'platformNames', 'sortedBoards']),
showPlaceholder() {
return this.loading && Object.keys(this.boards).length === 0;
},
showCreateBoard() {
return !this.loading && Object.keys(this.boards).length;
},
@ -152,8 +146,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.boards {
}
</style>

View file

@ -10,7 +10,7 @@
</b-button>
</portal>
<game-boards class="mb-3" />
<game-boards />
</b-container>
</template>

View file

@ -1,4 +1,3 @@
<!-- TODO: finish layout -->
<template lang="html">
<b-container>
<b-spinner v-if="loading" class="spinner-centered" />

View file

@ -1,6 +1,3 @@
<!-- TODO: Highlight exclusive games (e.g. only for NSW) -->
<!-- TODO: add pricecharting info -->
<!-- TODO: show GOG buy button -->
<template lang="html">
<b-container>
<b-spinner v-if="loading" class="spinner-centered" />
@ -102,7 +99,6 @@
<!-- <game-speedruns /> -->
<!-- <div v-if="gameAchievements"> -->
<!-- TODO: add steam achievements -->
<!-- <pre>{{ gameAchievements }}</pre> -->
<!-- </div> -->
</b-col>

View file

@ -1,18 +1,15 @@
<template lang="html">
<!-- TODO: split into their own route -->
<dashboard-page v-if="user" />
<public-home-page v-else />
</template>
<script>
// import GameBoards from '@/components/GameBoards';
import DashboardPage from '@/pages/DashboardPage';
import PublicHomePage from '@/pages/PublicHomePage';
import { mapState } from 'vuex';
export default {
components: {
// GameBoards,
DashboardPage,
PublicHomePage,
},

View file

@ -1,5 +1,3 @@
<!-- TODO: allow notes to be public -->
<!-- TODO: pagination? -->
<template lang="html">
<b-container>
<portal to="pageTitle">

View file

@ -1,4 +1,3 @@
<!-- TODO: finish this -->
<template lang="html">
<b-container fluid>
<page-title

View file

@ -1,6 +1,3 @@
<!-- TODO: add filters -->
<!-- TODO: add empty state with predefined searches -->
<!-- TODO: add pagination -->
<template lang="html">
<b-container>
<portal to="pageTitle">Search</portal>

View file

@ -2,7 +2,6 @@
<b-container fluid>
<page-title title="Steam settings" />
<!-- TODO: Explain how steam id is used -->
<b-form-group label="Steam ID:">
<b-form-input
v-model="steamId"

View file

@ -10,7 +10,6 @@
@loading="load"
/>
<!-- TODO: finish UI, set loading spinner -->
<b-card class="text-center">
<h2>Level up your video game collection!</h2>
<p class="lead-text">

View file

@ -3,9 +3,6 @@ import { firestore, storage } from 'firebase/app';
import 'firebase/storage';
import 'firebase/firestore';
// TODO: break up into smaller files and import them here
// TODO: use proxy endpoint
const API_BASE = 'https://us-central1-gamebrary-8c736.cloudfunctions.net';
// const API_BASE = 'http://localhost:5001/gamebrary-8c736/us-central1';
@ -39,7 +36,6 @@ export default {
});
},
// TODO: use endpoint for everything?
IGDB({ state }, { path, data }) {
return new Promise((resolve, reject) => {
axios.get(`${API_BASE}/igdb?token=${state.twitchToken.access_token}&path=${path}&data=${data}`)
@ -176,7 +172,6 @@ export default {
},
LOAD_PUBLIC_BOARDS({ commit }) {
// TODO: paginate
return new Promise((resolve, reject) => {
const db = firestore();