diff --git a/src/components/common/AppHeader.vue b/src/components/common/AppHeader.vue new file mode 100644 index 0000000..f4ff72b --- /dev/null +++ b/src/components/common/AppHeader.vue @@ -0,0 +1,21 @@ + + + + + + + + APLIKASI PRODUK + + + + + \ No newline at end of file diff --git a/src/components/common/AppSidebar.vue b/src/components/common/AppSidebar.vue new file mode 100644 index 0000000..6c7d93b --- /dev/null +++ b/src/components/common/AppSidebar.vue @@ -0,0 +1,44 @@ + + + + + KDM Dashboard + + + + + + + + + + Dashboard + + + + + Products + + + + + + + + + \ No newline at end of file diff --git a/src/components/common/StatusBadge.vue b/src/components/common/StatusBadge.vue new file mode 100644 index 0000000..eca4661 --- /dev/null +++ b/src/components/common/StatusBadge.vue @@ -0,0 +1,29 @@ + + + {{ status }} + + + + \ No newline at end of file diff --git a/src/components/product/ProductCard.vue b/src/components/product/ProductCard.vue new file mode 100644 index 0000000..4afb317 --- /dev/null +++ b/src/components/product/ProductCard.vue @@ -0,0 +1,29 @@ + + + + PHOTO + + + + {{ product.name }} + + + + {{ product.stock > 0 ? `Ready ${product.stock} Unit` : 'No Stock' }} + + + + + \ No newline at end of file diff --git a/src/components/product/SerialItem.vue b/src/components/product/SerialItem.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/composables/useProducts.ts b/src/composables/useProducts.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue new file mode 100644 index 0000000..bc5ec3e --- /dev/null +++ b/src/layouts/MainLayout.vue @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index b2fff99..6ab430f 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,16 +1,35 @@ import { createRouter, createWebHistory } from '@ionic/vue-router'; import { RouteRecordRaw } from 'vue-router'; -import HomePage from '../views/HomePage.vue' +import HomePage from '@/views/home/HomePage.vue' +import ProductListPage from '@/views/product/ProductListPage.vue'; +import ProductDetailPage from '@/views/product/ProductDetailPage.vue'; +import MainLayout from '@/layouts/MainLayout.vue' const routes: Array = [ { path: '/', - redirect: '/home' - }, - { - path: '/home', - name: 'Home', - component: HomePage + component: MainLayout, + children: [ + { + path: '', + redirect: '/products' + }, + { + path: 'home', + name: 'Home', + component: HomePage + }, + { + path: 'products', + name: 'Products', + component: ProductListPage + }, + { + path: 'products/:id', + name: 'Products Details', + component: ProductDetailPage + } + ] } ] diff --git a/src/services/product.service.ts b/src/services/product.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/stores/product.store.ts b/src/stores/product.store.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/types/product.ts b/src/types/product.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/views/HomePage.vue b/src/views/home/HomePage.vue similarity index 100% rename from src/views/HomePage.vue rename to src/views/home/HomePage.vue diff --git a/src/views/product/ProductDetailPage.vue b/src/views/product/ProductDetailPage.vue new file mode 100644 index 0000000..b12ed6e --- /dev/null +++ b/src/views/product/ProductDetailPage.vue @@ -0,0 +1,59 @@ + + + + + + + Kembali + + + APM CLOPPY + + + + + + No Seri + {{ item.serial }} + + + + + + + Waktu Produksi: {{ item.production }} + Lokasi: {{ item.location }} + Installation: {{ item.installation }} + History: {{ item.history }} + + + + + + + + + \ No newline at end of file diff --git a/src/views/product/ProductListPage.vue b/src/views/product/ProductListPage.vue new file mode 100644 index 0000000..16bf811 --- /dev/null +++ b/src/views/product/ProductListPage.vue @@ -0,0 +1,34 @@ + + + + + DATA PRODUCT + + Karya Digital Manufacturing + + + + + + + + + + + + + + + \ No newline at end of file
No Seri
{{ item.serial }}
Waktu Produksi: {{ item.production }}
Lokasi: {{ item.location }}
Installation: {{ item.installation }}
History: {{ item.history }}
+ Karya Digital Manufacturing +