-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- CHG: Vuetifty update. - FIX: npm audit fix.
- Loading branch information
1 parent
1b0c2ad
commit da821bf
Showing
8 changed files
with
460 additions
and
280 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<template> | ||
<v-container fluid> | ||
<h1 class="text-h4 mb-3">{{ $t('pageSearchTitle') }}</h1> | ||
<v-divider class="mb-3" /> | ||
<div v-html="$t('pageSearchText')" /> | ||
|
||
<template v-if="searchTerm"> | ||
<h1 class="text-h4 mb-3"> | ||
{{ $t('pageAlbumsTitle') }} | ||
</h1> | ||
<v-divider class="mb-3" /> | ||
<AlbumGallery :getData="getAlbums" /> | ||
|
||
<h1 class="text-h4 mb-3 mt-6"> | ||
{{ $t('pageImagesTitle') }} | ||
</h1> | ||
<v-divider class="mb-3" /> | ||
<ImageGallery :getData="getImages" :getIds="getIds" /> | ||
</template> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
import ImageGallery from '@/components/ImageGallery.vue' | ||
import AlbumGallery from '@/components/AlbumGallery.vue' | ||
import { apiPostAlbums, apiPostImageIds, apiPostImages } from '@/plugins/api' | ||
import { mapGetters } from 'vuex' | ||
export default { | ||
components: { | ||
ImageGallery, | ||
AlbumGallery | ||
}, | ||
data: function () { | ||
return { | ||
searchTerm: '' | ||
} | ||
}, | ||
computed: { | ||
...mapGetters([ | ||
'storeToken' | ||
]) | ||
}, | ||
methods: { | ||
getAlbums: function (params) { | ||
const adjusted = Object.assign({}, params, { searchTerm: this.searchTerm }) | ||
return apiPostAlbums(adjusted) | ||
}, | ||
getImages: function (params) { | ||
const adjusted = Object.assign({}, params, { searchTerm: this.searchTerm }) | ||
return apiPostImages(adjusted) | ||
}, | ||
getIds: function (params) { | ||
const adjusted = Object.assign({}, params, { searchTerm: this.searchTerm }) | ||
return apiPostImageIds(adjusted) | ||
} | ||
}, | ||
mounted: function () { | ||
if (this.$route.params && this.$route.params.searchTerm) { | ||
this.searchTerm = this.$route.params.searchTerm | ||
} | ||
} | ||
} | ||
</script> |