Skip to content

Commit

Permalink
fix: Attempt to standardize import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
25Ericcheong committed May 18, 2024
1 parent 4366294 commit 01a8caa
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import NavBar from "./components/nav-bar.vue";
import "./output.css";
import NavBar from "@/components/nav-bar.vue";
import "@/output.css";
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/about-us.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getImageUrl } from "../util/image";
import { getImageUrl } from "@/util/image";
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/wrapper-header.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import MainHeader from "./main-header.vue";
import MainHeader from "@/components/header/main-header.vue";
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/drinks-menu-modal.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { MenuItemType } from "@/components/menu/menu-item-type";
import { useMenuStore, type CartItemDrinks } from "@/stores/useMenuStore";
import { computed, ref } from "vue";
import { MenuItemType } from "./menu-item-type";
const props = defineProps({
drinksName: { type: String, required: true },
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/menu-items.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Menu } from "./menu.vue";
import type { Menu } from "@/components/menu/menu.vue";

export const OAT_MILK = "Oat Milk";

Expand Down
14 changes: 7 additions & 7 deletions src/components/menu/menu.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script setup lang="ts">
import BingsuMenuModal from "@/components/menu/bingsu-menu-modal.vue";
import DrinksMenuModal from "@/components/menu/drinks-menu-modal.vue";
import { MenuItemType } from "@/components/menu/menu-item-type";
import { MENU } from "@/components/menu/menu-items";
import SummaryMenuModal from "@/components/menu/summary-menu-modal.vue";
import ToppingMenu from "@/components/menu/topping-menu.vue";
import "@/output.css";
import { useMenuStore } from "@/stores/useMenuStore";
import { getImageUrlForMenu } from "@/util/image";
import { storeToRefs } from "pinia";
import { computed, ref, watch } from "vue";
import BingsuMenuModal from "./bingsu-menu-modal.vue";
import DrinksMenuModal from "./drinks-menu-modal.vue";
import { MenuItemType } from "./menu-item-type";
import { MENU } from "./menu-items";
import SummaryMenuModal from "./summary-menu-modal.vue";
import ToppingMenu from "./topping-menu.vue";
import "/src/output.css";
interface MenuItemBase {
price: number;
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav-bar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { PATHS } from "@/router/router";
import { computed, ref, watch } from "vue";
import { useRoute } from "vue-router";
import { PATHS } from "../router/router";
const route = useRoute();
const relativePath = ref(route.path);
Expand Down
2 changes: 1 addition & 1 deletion src/components/our-mentions.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { getImageUrl } from "@/util/image";
import { onMounted, ref } from "vue";
import { getImageUrl } from "../util/image";
const moments = ref<string[]>([
"A variety of flavour that aren't too sweet - making them perfect",
Expand Down
2 changes: 1 addition & 1 deletion src/components/product.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getImageUrl } from "../util/image";
import { getImageUrl } from "@/util/image";
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions src/router/router.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRouter, createWebHistory } from "vue-router";

import Home from "../views/home.vue";
import Menu from "../views/menu.vue";
import Home from "@/views/home.vue";
import Menu from "@/views/menu.vue";

const PATHS = {
HOME: "/",
Expand Down
14 changes: 7 additions & 7 deletions src/views/home.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import AboutUs from "../components/about-us.vue";
import Feedback from "../components/feedback.vue";
import Footer from "../components/footer.vue";
import LandingPageHeader from "../components/header/wrapper-header.vue";
import OurMentions from "../components/our-mentions.vue";
import Product from "../components/product.vue";
import AboutUs from "@/components/about-us.vue";
import Feedback from "@/components/feedback.vue";
import Footer from "@/components/footer.vue";
import LandingPageHeader from "@/components/header/wrapper-header.vue";
import OurMentions from "@/components/our-mentions.vue";
import Product from "@/components/product.vue";
import "../output.css";
import "@/output.css";
</script>
<template>
<div class="bg-creamwhitebq">
Expand Down
4 changes: 2 additions & 2 deletions src/views/menu.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Footer from "../components/footer.vue";
import Menu from "../components/menu/menu.vue";
import Footer from "@/components/footer.vue";
import Menu from "@/components/menu/menu.vue";
</script>
<template>
<div>
Expand Down

0 comments on commit 01a8caa

Please sign in to comment.