From 54442bfa8d0807a5b516027ac3b08025c05b725c Mon Sep 17 00:00:00 2001 From: thuongtruong1009 Date: Wed, 4 May 2022 00:21:32 +0700 Subject: [PATCH 01/10] init new product layout --- public/img/product/new.svg | 1 + src/components.d.ts | 2 +- src/components/icons/seller/ISNew.vue | 3 +++ src/components/seller/SLMenu.vue | 6 ++--- .../seller/{prod => product}/LSProdAdd.vue | 0 .../seller/{prod => product}/LSProdAll.vue | 0 src/layouts/seller/product/LSProdNew.vue | 8 ++++++ src/pages/seller/{prods => product}/all.vue | 2 +- .../{prods/add.vue => product/category.vue} | 10 +++++--- src/pages/seller/product/new.vue | 25 +++++++++++++++++++ 10 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 public/img/product/new.svg create mode 100644 src/components/icons/seller/ISNew.vue rename src/layouts/seller/{prod => product}/LSProdAdd.vue (100%) rename src/layouts/seller/{prod => product}/LSProdAll.vue (100%) create mode 100644 src/layouts/seller/product/LSProdNew.vue rename src/pages/seller/{prods => product}/all.vue (99%) rename src/pages/seller/{prods/add.vue => product/category.vue} (94%) create mode 100644 src/pages/seller/product/new.vue diff --git a/public/img/product/new.svg b/public/img/product/new.svg new file mode 100644 index 0000000..040357b --- /dev/null +++ b/public/img/product/new.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components.d.ts b/src/components.d.ts index 3916d99..d24ba42 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -10,7 +10,6 @@ declare module 'vue' { CarbonLanguage: typeof import('~icons/carbon/language')['default'] CarbonMoon: typeof import('~icons/carbon/moon')['default'] CarbonSun: typeof import('~icons/carbon/sun')['default'] - CarbonWarning: typeof import('~icons/carbon/warning')['default'] CASellerList: typeof import('./components/admin/CASellerList.vue')['default'] CBAccount: typeof import('./components/buyer/CBAccount.vue')['default'] CBBanner: typeof import('./components/buyer/CBBanner.vue')['default'] @@ -123,6 +122,7 @@ declare module 'vue' { IShakeHand: typeof import('./components/icons/about/IShakeHand.vue')['default'] IShop: typeof import('./components/icons/IShop.vue')['default'] IShopee: typeof import('./components/icons/IShopee.vue')['default'] + ISNew: typeof import('./components/icons/seller/ISNew.vue')['default'] IStar: typeof import('./components/icons/IStar.vue')['default'] IStars: typeof import('./components/icons/IStars.vue')['default'] IStatus: typeof import('./components/icons/IStatus.vue')['default'] diff --git a/src/components/icons/seller/ISNew.vue b/src/components/icons/seller/ISNew.vue new file mode 100644 index 0000000..9698597 --- /dev/null +++ b/src/components/icons/seller/ISNew.vue @@ -0,0 +1,3 @@ + diff --git a/src/components/seller/SLMenu.vue b/src/components/seller/SLMenu.vue index b7d22c3..7c80d01 100644 --- a/src/components/seller/SLMenu.vue +++ b/src/components/seller/SLMenu.vue @@ -49,7 +49,7 @@ const onClick = (index) => {
- + All order @@ -65,10 +65,10 @@ const onClick = (index) => {
- + All products - + Add products
diff --git a/src/layouts/seller/prod/LSProdAdd.vue b/src/layouts/seller/product/LSProdAdd.vue similarity index 100% rename from src/layouts/seller/prod/LSProdAdd.vue rename to src/layouts/seller/product/LSProdAdd.vue diff --git a/src/layouts/seller/prod/LSProdAll.vue b/src/layouts/seller/product/LSProdAll.vue similarity index 100% rename from src/layouts/seller/prod/LSProdAll.vue rename to src/layouts/seller/product/LSProdAll.vue diff --git a/src/layouts/seller/product/LSProdNew.vue b/src/layouts/seller/product/LSProdNew.vue new file mode 100644 index 0000000..6b55c17 --- /dev/null +++ b/src/layouts/seller/product/LSProdNew.vue @@ -0,0 +1,8 @@ + diff --git a/src/pages/seller/prods/all.vue b/src/pages/seller/product/all.vue similarity index 99% rename from src/pages/seller/prods/all.vue rename to src/pages/seller/product/all.vue index 830b15c..7839e6a 100644 --- a/src/pages/seller/prods/all.vue +++ b/src/pages/seller/product/all.vue @@ -1,6 +1,6 @@ meta: - layout: seller/prod/LSProdAll + layout: seller/product/LSProdAll +