diff --git a/src/components/CommunityComponents/CommunityHome.vue b/src/components/CommunityComponents/CommunityHome.vue index c653ab6fa6b920348c7a4dbd39eef6aff1244136..b564a97e487eea78a0d5e01e73e6718f880e1cab 100644 --- a/src/components/CommunityComponents/CommunityHome.vue +++ b/src/components/CommunityComponents/CommunityHome.vue @@ -55,14 +55,14 @@ <!-- Shows items based on search field input --> <div - class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full" - v-if="showSearchedItems" + class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full" + v-if="showSearchedItems" > <ItemCard - v-for="item in searchedItems" - :key="item" - :item="item" - @click="goToItemInfoPage(item.listingID)" + v-for="item in searchedItems" + :key="item" + :item="item" + @click="goToItemInfoPage(item.listingID)" /> </div> </div> diff --git a/src/components/UserAuthComponents/NewPasswordForm.vue b/src/components/UserAuthComponents/NewPasswordForm.vue index 4adb53500baaabb5030968f6e2d1cb0916d5c0ea..6eda88be53228aa45ac942c8b251f1662fd2ed58 100644 --- a/src/components/UserAuthComponents/NewPasswordForm.vue +++ b/src/components/UserAuthComponents/NewPasswordForm.vue @@ -15,8 +15,7 @@ id="oldPasswordField" :class="{ error: v$.user.oldPassword.$errors.length }" > - <label - class="block text-sm text-gray-800 dark:text-gray-200" + <label class="block text-sm text-gray-800 dark:text-gray-200" >Gammelt passord</label > <input @@ -42,8 +41,7 @@ class="mt-4" :class="{ error: v$.user.password.$errors.length }" > - <label - class="block text-sm text-gray-800 dark:text-gray-200" + <label class="block text-sm text-gray-800 dark:text-gray-200" >Nytt passord</label > <input @@ -70,8 +68,7 @@ :class="{ error: v$.user.rePassword.$errors.length }" > <div class="flex items-center justify-between"> - <label - class="block text-sm text-gray-800 dark:text-gray-200" + <label class="block text-sm text-gray-800 dark:text-gray-200" >Gjenta nytt passord</label > </div> diff --git a/src/components/UserAuthComponents/RegisterForm.vue b/src/components/UserAuthComponents/RegisterForm.vue index b47d6ad769397bfda1e294f0b1cc697c2b584533..466a9ab154c78e9c970df17b960851d5b378682a 100644 --- a/src/components/UserAuthComponents/RegisterForm.vue +++ b/src/components/UserAuthComponents/RegisterForm.vue @@ -182,7 +182,6 @@ import { import Button from "@/components/BaseComponents/ColoredButton"; import UserService from "@/services/user.service"; - export default { components: { Button, diff --git a/src/components/UserProfileComponents/UserItems.vue b/src/components/UserProfileComponents/UserItems.vue index 02a06fee3d26ce64f649f962b83b3958ad0a724a..be1cc0457ac6caa220b9c8afedc467ae143d8585 100644 --- a/src/components/UserProfileComponents/UserItems.vue +++ b/src/components/UserProfileComponents/UserItems.vue @@ -110,23 +110,23 @@ </div> <!-- Shows items based on search field input --> - <div - class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full" - v-if="showSearchedItems" - > - <div - class="cardContainer" - id="item" - v-for="item in searchedItems" - :key="item" - > - <div class="w-full"> - <ItemCard - id="ItemCardSearch" - class="ItemCard w-full h-full" - :item="item" - /> - </div> + <div + class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full" + v-if="showSearchedItems" + > + <div + class="cardContainer" + id="item" + v-for="item in searchedItems" + :key="item" + > + <div class="w-full"> + <ItemCard + id="ItemCardSearch" + class="ItemCard w-full h-full" + :item="item" + /> + </div> <!-- Dropdown menu with options for editing an item and deleting an item --> <TripleDotButton class="DotButton" @click="openDotMenu(item)" /> diff --git a/src/router/index.js b/src/router/index.js index 7804eca4ed872f85fa920b0ce83cffbdd5daa974..563131c78452c42a65ef14c683a1f76abcac758c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -152,10 +152,7 @@ const routes = [ * Catch all for wrong/non-existing routes * Must be last to catch all */ - { path: "/:pathMatch(.*)*", - name: "not-found", - component: NotFound - }, + { path: "/:pathMatch(.*)*", name: "not-found", component: NotFound }, ]; const router = createRouter({ diff --git a/tests/unit/component-tests/base-component-tests/color-button.spec.js b/tests/unit/component-tests/base-component-tests/color-button.spec.js index 90c7a43df8e616a2a6349ef00db2934eb35ce40a..ca9efb412b59485756b500dcbe8fb283e2464d31 100644 --- a/tests/unit/component-tests/base-component-tests/color-button.spec.js +++ b/tests/unit/component-tests/base-component-tests/color-button.spec.js @@ -16,7 +16,7 @@ describe("ColoredButtonComponent", () => { it("renders correctly", () => { expect(wrapper.element).toMatchSnapshot(); }); - + it("is instantiated", () => { expect(wrapper.exists()).toBeTruthy(); }); diff --git a/tests/unit/component-tests/base-component-tests/footer-bar.spec.js b/tests/unit/component-tests/base-component-tests/footer-bar.spec.js index c50efb9e22f767ff23292cb0c1b371cb8c19f460..f730e97654497cd4515b8f63f68718b01b81f2c9 100644 --- a/tests/unit/component-tests/base-component-tests/footer-bar.spec.js +++ b/tests/unit/component-tests/base-component-tests/footer-bar.spec.js @@ -15,4 +15,4 @@ describe("FooterBar component", () => { it("is instantiated", () => { expect(wrapper.exists()).toBeTruthy(); }); -}); \ No newline at end of file +}); diff --git a/tests/unit/component-tests/base-component-tests/form-image-display.spec.js b/tests/unit/component-tests/base-component-tests/form-image-display.spec.js index 3cb8f55a0e6b87a98fe2172ef58f6cb35eea19f7..2e2a3483fb42d9808c1716085083ced78dfd7160 100644 --- a/tests/unit/component-tests/base-component-tests/form-image-display.spec.js +++ b/tests/unit/component-tests/base-component-tests/form-image-display.spec.js @@ -8,7 +8,7 @@ describe("FormImageDisplay component", () => { wrapper = mount(FormImageDisplay, { //passing prop to component props: { - image: "http://localhost:3000/api/images/5" + image: "http://localhost:3000/api/images/5", }, }); }); @@ -20,4 +20,4 @@ describe("FormImageDisplay component", () => { it("is instantiated", () => { expect(wrapper.exists()).toBeTruthy(); }); -}); \ No newline at end of file +}); diff --git a/tests/unit/component-tests/base-component-tests/triple-dot-button.spec.js b/tests/unit/component-tests/base-component-tests/triple-dot-button.spec.js index f796516f86eaa2fe675fa95b0bcfec8040a23c29..12657b3bfe01c9432b99af2d20deeb802722df51 100644 --- a/tests/unit/component-tests/base-component-tests/triple-dot-button.spec.js +++ b/tests/unit/component-tests/base-component-tests/triple-dot-button.spec.js @@ -15,4 +15,4 @@ describe("TripleDotButton component", () => { it("is instantiated", () => { expect(wrapper.exists()).toBeTruthy(); }); -}); \ No newline at end of file +});