|
|
|
@ -5,11 +5,13 @@
|
|
|
|
|
|
|
|
|
|
import playSearch from '@playsearch.kaki87.net/v2-client'; |
|
|
|
|
|
|
|
|
|
import { apiUrl } from '../../config.js'; |
|
|
|
|
|
|
|
|
|
import AppHeader from './AppHeader.vue'; |
|
|
|
|
import AppMain from './AppMain.vue'; |
|
|
|
|
import AppFooter from './AppFooter.vue'; |
|
|
|
|
|
|
|
|
|
const client = playSearch({ host: 'https://playsearch-v2-api.kaki87.net' }); |
|
|
|
|
const client = playSearch({ host: apiUrl }); |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
@ -24,6 +26,7 @@
|
|
|
|
|
filters: undefined |
|
|
|
|
}), |
|
|
|
|
computed: { |
|
|
|
|
apiUrl: () => apiUrl, |
|
|
|
|
filteredItems: function(){ |
|
|
|
|
if(!this.filters) return this.items; |
|
|
|
|
const { |
|
|
|
@ -121,6 +124,7 @@
|
|
|
|
|
|
|
|
|
|
<template class="App"> |
|
|
|
|
<AppHeader |
|
|
|
|
:api-url="apiUrl" |
|
|
|
|
:is-loading="isLoading" |
|
|
|
|
@submit-search="search" |
|
|
|
|
></AppHeader> |
|
|
|
@ -130,6 +134,7 @@
|
|
|
|
|
:total-item-count="items.length" |
|
|
|
|
></AppMain> |
|
|
|
|
<AppFooter |
|
|
|
|
:api-url="apiUrl" |
|
|
|
|
:filter-data="filterData" |
|
|
|
|
@update-filters="_filters => $data.filters = _filters" |
|
|
|
|
></AppFooter> |
|
|
|
|