Skip to content
Snippets Groups Projects
Commit 451b79d5 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

lint

parent dfad0666
No related branches found
No related tags found
1 merge request!88Community admin
Pipeline #180197 passed
<template> <template>
<div id = "headline" class = "text-xl md:text-2xl text-gray-600 font-medium w-full"> <div
id="headline"
class="text-xl md:text-2xl text-gray-600 font-medium w-full"
>
Dine gjenstander Dine gjenstander
</div> </div>
<!-- Search field --> <!-- Search field -->
...@@ -34,11 +37,7 @@ ...@@ -34,11 +37,7 @@
class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full" class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full"
v-if="showItems" v-if="showItems"
> >
<ItemCard <ItemCard v-for="item in visibleItems" :key="item" :item="item" />
v-for="item in visibleItems"
:key="item"
:item="item"
/>
</div> </div>
<!-- Shows items based on search field input --> <!-- Shows items based on search field input -->
...@@ -46,11 +45,7 @@ ...@@ -46,11 +45,7 @@
class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center" class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center"
v-if="showSearchedItems" v-if="showSearchedItems"
> >
<ItemCard <ItemCard v-for="item in searchedItems" :key="item" :item="item" />
v-for="item in searchedItems"
:key="item"
:item="item"
/>
</div> </div>
</div> </div>
<!-- pagination --> <!-- pagination -->
...@@ -74,7 +69,7 @@ export default { ...@@ -74,7 +69,7 @@ export default {
name: "UserItems", name: "UserItems",
components: { components: {
ItemCard, ItemCard,
PaginationTemplate PaginationTemplate,
}, },
data() { data() {
return { return {
...@@ -149,7 +144,6 @@ export default { ...@@ -149,7 +144,6 @@ export default {
async beforeMount() { async beforeMount() {
await this.getUserListingsFromAPI(); await this.getUserListingsFromAPI();
this.updateVisibleTodos(); this.updateVisibleTodos();
}, },
}; };
</script> </script>
...@@ -159,6 +153,5 @@ export default { ...@@ -159,6 +153,5 @@ export default {
display: block; display: block;
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
> >
<li> <li>
<router-link <router-link
to="/user/userItems" to="/user/userItems"
class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
>Mine gjenstander</router-link >Mine gjenstander</router-link
......
...@@ -121,7 +121,7 @@ const routes = [ ...@@ -121,7 +121,7 @@ const routes = [
path: "/user/userItems", path: "/user/userItems",
name: "UserItems", name: "UserItems",
component: () => import("../views/UserProfileViews/UserItemsView.vue"), component: () => import("../views/UserProfileViews/UserItemsView.vue"),
} },
]; ];
const router = createRouter({ const router = createRouter({
......
...@@ -3,16 +3,13 @@ ...@@ -3,16 +3,13 @@
</template> </template>
<script> <script>
import UserItems from "@/components/UserProfileComponents/UserItems.vue" import UserItems from "@/components/UserProfileComponents/UserItems.vue";
export default { export default {
name: "UserItemsView", name: "UserItemsView",
components: { components: {
UserItems UserItems,
} },
};
}
</script> </script>
<style> <style></style>
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment