Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Remove unused code #208

Merged
merged 2 commits into from
Sep 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions src/components/SearchGridManualLoad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
<script>
import { SET_MEDIA } from '~/store-modules/mutation-types'

const DEFAULT_PAGE_SIZE = 20

export default {
name: 'SearchGridManualLoad',
props: {
Expand Down Expand Up @@ -127,17 +125,6 @@ export default {
},
},
watch: {
_images: {
handler() {
if (this.$state) {
this.$state.loaded()
if (this._imagesCount < this.currentPage * DEFAULT_PAGE_SIZE) {
this.$state.complete()
}
}
this.isDataInitialized = true
},
},
_query: {
handler() {
this.searchChanged()
Expand Down Expand Up @@ -168,37 +155,6 @@ export default {
opacity: 1;
}

.search-grid_layout-control h5 {
padding-top: 1.36vh;
font-size: 1rem;
display: inline-block;
}

.search-grid_layout-control h5 {
margin-right: 10px;
}

.search-grid_layout-control {
text-align: right;

fieldset {
display: inline;
margin-right: 5px;
}
}

.infinite-loading-container {
margin-top: 30px;
width: 100%;
}

.search-grid_ctr {
.item {
width: 320px;
margin-bottom: 20px;
}
}

.search-grid:after {
content: '';
display: block;
Expand Down
3 changes: 0 additions & 3 deletions src/styles/utilities/initial-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ $color-dark-slate-blue: rgb(60, 92, 153);
$color-dark-slate-gray: rgb(51, 51, 51); // BRAND COLOR
$purple: hsl(271, 100%, 71%); // NOT IN VOCABULARY

// Typography
@import url('https://unpkg.com/@creativecommons/fonts@2020.9.3/css/fonts.css');

// Families
$family-inter: 'Inter', sans-serif;
$family-jetbrains-mono: 'JetBrains Mono', monospace;
Expand Down