From 3a6f726a2d607788f017c7561a13254f0c181268 Mon Sep 17 00:00:00 2001 From: VietManh4112 Date: Mon, 20 May 2024 16:59:03 +0700 Subject: [PATCH] Updates --- 200.html | 6 +++--- about/index.html | 4 ++-- assets/{03f7dec.js => 3b65110.js} | 2 +- assets/ad30433.js | 1 + assets/content/{db-8e53d969.json => db-52363698.json} | 2 +- assets/f8539c1.js | 1 - error/index.html | 4 ++-- ethnic/ba na/index.html | 4 ++-- ethnic/bo y/index.html | 4 ++-- ethnic/brau/index.html | 4 ++-- ethnic/bru-van kieu/index.html | 4 ++-- ethnic/cham/index.html | 4 ++-- ethnic/cho-ro/index.html | 4 ++-- ethnic/chu-ru/index.html | 4 ++-- ethnic/chut/index.html | 4 ++-- ethnic/co lao/index.html | 4 ++-- ethnic/co-ho/index.html | 4 ++-- ethnic/co-tu/index.html | 4 ++-- ethnic/co/index.html | 4 ++-- ethnic/cong/index.html | 4 ++-- ethnic/dao/index.html | 4 ++-- "ethnic/e-\304\221e/index.html" | 4 ++-- ethnic/gia-rai/index.html | 4 ++-- ethnic/giay/index.html | 4 ++-- ethnic/gie-trieng/index.html | 4 ++-- ethnic/ha nhi/index.html | 4 ++-- ethnic/hoa/index.html | 4 ++-- ethnic/hre/index.html | 4 ++-- ethnic/khang/index.html | 4 ++-- ethnic/khmer/index.html | 4 ++-- ethnic/kho mu/index.html | 4 ++-- ethnic/kinh/index.html | 4 ++-- ethnic/la chi/index.html | 4 ++-- ethnic/la ha/index.html | 4 ++-- ethnic/la hu/index.html | 4 ++-- ethnic/lao/index.html | 4 ++-- ethnic/lo lo/index.html | 4 ++-- ethnic/lu/index.html | 4 ++-- ethnic/ma/index.html | 4 ++-- ethnic/mang/index.html | 4 ++-- ethnic/mnong/index.html | 4 ++-- ethnic/mong/index.html | 4 ++-- ethnic/muong/index.html | 4 ++-- ethnic/ngai/index.html | 4 ++-- ethnic/nung/index.html | 4 ++-- "ethnic/o-\304\221u/index.html" | 4 ++-- ethnic/pa then/index.html | 4 ++-- ethnic/phu la/index.html | 4 ++-- ethnic/pu peo/index.html | 4 ++-- ethnic/ra glai/index.html | 4 ++-- ethnic/ro-mam/index.html | 4 ++-- ethnic/san chay/index.html | 4 ++-- ethnic/san diu/index.html | 4 ++-- ethnic/si la/index.html | 4 ++-- ethnic/ta-oi/index.html | 4 ++-- ethnic/tay/index.html | 4 ++-- ethnic/thai/index.html | 4 ++-- ethnic/tho/index.html | 4 ++-- ethnic/x'tieng/index.html | 4 ++-- ethnic/xinh-mun/index.html | 4 ++-- "ethnic/xo-\304\221ang/index.html" | 4 ++-- index.html | 4 ++-- inspire/index.html | 4 ++-- login/index.html | 4 ++-- project/index.html | 4 ++-- register/index.html | 4 ++-- repository/index.html | 4 ++-- sw.js | 2 +- viewOrder/index.html | 4 ++-- viewUserOrder/index.html | 4 ++-- viewWareHouse/index.html | 4 ++-- 71 files changed, 137 insertions(+), 137 deletions(-) rename assets/{03f7dec.js => 3b65110.js} (97%) create mode 100644 assets/ad30433.js rename assets/content/{db-8e53d969.json => db-52363698.json} (99%) delete mode 100644 assets/f8539c1.js diff --git a/200.html b/200.html index c1ab257..f65b280 100644 --- a/200.html +++ b/200.html @@ -1,9 +1,9 @@ - NoticeCostume - Trang phục 54 dân tộc + NoticeCostume - Trang phục 54 dân tộc -
Loading...
- +
Loading...
+ diff --git a/about/index.html b/about/index.html index 26e47d5..df420e1 100644 --- a/about/index.html +++ b/about/index.html @@ -1,13 +1,13 @@ - 404 Not Found - Trang phục 54 dân tộc -
+
diff --git a/assets/03f7dec.js b/assets/3b65110.js similarity index 97% rename from assets/03f7dec.js rename to assets/3b65110.js index 07cfcc6..e0749a1 100644 --- a/assets/03f7dec.js +++ b/assets/3b65110.js @@ -1 +1 @@ -!function(e){function r(data){for(var r,n,f=data[0],l=data[1],d=data[2],i=0,h=[];i1&&this.amount--},subtractionEdit:function(){this.quantityEdit>1&&this.quantityEdit--},addition:function(){this.amount++},additionEdit:function(){this.quantityEdit++},login:function(){this.$router.push("/login")},register:function(){this.$router.push("/register")},handleBodyClick:function(t){this.hideModalContinue&&(this.$refs.modalContinue.contains(t.target)||this.$emit("hide-modal__continue",!1));this.hideModalBuy&&(this.$refs.modalBuy.contains(t.target)||this.$emit("hide-modal__buy",!1))},addInvetery:function(){var t=this;this.$refs.observerAdd&&this.$refs.observerAdd.validate().then((function(e){if(e){var data={costumeId:t.productId,size:t.selectedSize,quantity:t.amount},n=localStorage.getItem("token");Object(l.b)(n),l.a.post("/api/add-inventory",data).then((function(t){window.location.reload()})).catch((function(e){t.visibleToastFail=!0,t.isEnglish?t.message="Failure":t.message="Thất bại",t.$emit("toastStatus",t.visibleToastFail,t.message)}))}}))},closeModalDetail:function(){window.location.reload()},editInvetery:function(){var t=this,data={costumeId:this.costumeIdEdit,size:this.sizeEdit,quantity:Number(this.quantityEdit)},e=localStorage.getItem("token");Object(l.b)(e),l.a.post("/api/remove-inventory",data).then((function(t){window.location.reload()})).catch((function(e){t.visibleToastFail=!0,t.isEnglish?t.message="Failure":t.message="Thất bại",t.$emit("toastStatus",t.visibleToastFail,t.message)}))}}},m=(n(756),n(47)),component=Object(m.a)(h,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal"},["modal-buy"===t.type?e("div",{ref:"modalBuy",staticClass:"modal-content__buy"},[e("ValidationObserver",{ref:"observer"},[e("ValidationProvider",{attrs:{name:"Name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Recipient's name:")]):e("p",[t._v("Tên người nhận:")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,1613395978)}),t._v(" "),e("ValidationProvider",{attrs:{name:"Phone",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Phone:")]):e("p",[t._v("Số điện thoại:")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,1079395829)}),t._v(" "),e("ValidationProvider",{attrs:{name:"Address",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Address:")]):e("p",[t._v("Địa chỉ:")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.adress,callback:function(e){t.adress=e},expression:"adress"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,4011525889)})],1),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Price:")]):e("p",[t._v("Giá tiền:")]),t._v(" "),e("p",[t._v(t._s(t.priceCostume.toLocaleString("en-US"))+" "+t._s(t.currencyCostume))])]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Size:")]):e("p",[t._v("Kích cỡ:")]),t._v(" "),t._l(t.sizes,(function(n,o){return e("span",{key:o,staticStyle:{"margin-right":"20px"}},[e("Button",{class:{active:t.selectedSize===n},attrs:{type:"normal"},on:{click:function(e){return t.selectSize(n)}}},[t._v(t._s(n))])],1)}))],2),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("div",{staticStyle:{margin:"24px 0"}},[e("Button",{staticStyle:{"margin-right":"-4.7px"},attrs:{type:"normal"},on:{click:t.subtraction}},[t._v("-")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],staticClass:"modal-input",attrs:{type:"text"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),t._v(" "),e("Button",{staticStyle:{"margin-left":"-5px"},attrs:{type:"normal"},on:{click:t.addition}},[t._v("+")])],1)]),t._v(" "),e("Button",{attrs:{type:"nav"},on:{click:t.buyCostume}},[t.isEnglish?e("span",[t._v("Order")]):e("span",[t._v("Đặt mua")])])],1):t._e(),t._v(" "),"modal-detail"===t.type?e("div",{staticClass:"modal-content__buy"},[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Product code:")]):e("p",[t._v("Mã sản phẩm:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.costumeIdDetail,expression:"costumeIdDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.costumeIdDetail},on:{input:function(e){e.target.composing||(t.costumeIdDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.quantityDetail,expression:"quantityDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.quantityDetail},on:{input:function(e){e.target.composing||(t.quantityDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Price:")]):e("p",[t._v("Giá:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.priceDetail,expression:"priceDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.priceDetail},on:{input:function(e){e.target.composing||(t.priceDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Size:")]):e("p",[t._v("Kích thước:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sizeDetail,expression:"sizeDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.sizeDetail},on:{input:function(e){e.target.composing||(t.sizeDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Recipient's name:")]):e("p",[t._v("Tên khách hàng:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.nameDetail,expression:"nameDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.nameDetail},on:{input:function(e){e.target.composing||(t.nameDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Phone:")]):e("p",[t._v("Số điện thoại:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneNumberDetail,expression:"phoneNumberDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.phoneNumberDetail},on:{input:function(e){e.target.composing||(t.phoneNumberDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Address:")]):e("p",[t._v("Địa chỉ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.addressDetail,expression:"addressDetail"}],staticClass:"modal-input input-detail",staticStyle:{"margin-bottom":"10px"},attrs:{type:"text"},domProps:{value:t.addressDetail},on:{input:function(e){e.target.composing||(t.addressDetail=e.target.value)}}})]),t._v(" "),e("Button",{staticStyle:{margin:"20px 0"},attrs:{type:"nav"},on:{click:t.closeModalDetail}},[t.isEnglish?e("span",[t._v("Close")]):e("span",[t._v("Đóng")])])],1):t._e(),t._v(" "),"modal-add"===t.type?e("div",{staticClass:"modal-content__buy"},[e("ValidationObserver",{ref:"observerAdd"},[e("ValidationProvider",{attrs:{name:"Product's name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Product's name:")]):e("p",[t._v("Mã sản phẩm")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.productId,callback:function(e){t.productId=e},expression:"productId"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,1970486517)})],1),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Size:")]):e("p",[t._v("Kích cỡ:")]),t._v(" "),t._l(t.sizes,(function(n,o){return e("span",{key:o,staticStyle:{"margin-right":"20px"}},[e("Button",{class:{active:t.selectedSize===n},attrs:{type:"normal"},on:{click:function(e){return t.selectSize(n)}}},[t._v(t._s(n))])],1)}))],2),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("div",{staticStyle:{margin:"24px 0"}},[e("Button",{staticStyle:{"margin-right":"-4.7px"},attrs:{type:"normal"},on:{click:t.subtraction}},[t._v("-")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],staticClass:"modal-input",attrs:{type:"text"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),t._v(" "),e("Button",{staticStyle:{"margin-left":"-5px"},attrs:{type:"normal"},on:{click:t.addition}},[t._v("+")])],1)]),t._v(" "),e("Button",{attrs:{type:"nav"},on:{click:t.addInvetery}},[t.isEnglish?e("span",[t._v("Ok")]):e("span",[t._v("Xác nhận")])])],1):t._e(),t._v(" "),"modal-edit"===t.type?e("div",{staticClass:"modal-content__buy"},[e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[t.isEnglish?e("p",[t._v("Enter the amount you want to reduce")]):e("p",[t._v("Nhập số lượng bạn muốn bớt")])]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("div",{staticStyle:{margin:"24px 0"}},[e("Button",{staticStyle:{"margin-right":"-4.7px"},attrs:{type:"normal"},on:{click:t.subtractionEdit}},[t._v("-")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.quantityEdit,expression:"quantityEdit"}],staticClass:"modal-input",attrs:{type:"text"},domProps:{value:t.quantityEdit},on:{input:function(e){e.target.composing||(t.quantityEdit=e.target.value)}}}),t._v(" "),e("Button",{staticStyle:{"margin-left":"-5px"},attrs:{type:"normal"},on:{click:t.additionEdit}},[t._v("+")])],1)]),t._v(" "),e("Button",{attrs:{type:"nav"},on:{click:t.editInvetery}},[t.isEnglish?e("span",[t._v("Ok")]):e("span",[t._v("Xác nhận")])])],1):"modal-continue"===t.type?e("div",{ref:"modalContinue",staticClass:"modal-content__continue"},[e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[t.isEnglish?t._e():e("p",[t._v("Bạn cần đăng nhập để tiếp tục!")]),t._v(" "),t.isEnglish?e("p",[t._v("You need to log in to continue!")]):t._e()]),t._v(" "),e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[e("Button",{attrs:{type:"register"},on:{click:t.register}},[t._v(t._s(t.registerBtn))]),t._v(" "),e("Button",{attrs:{type:"login"},on:{click:t.login}},[t._v(t._s(t.loginBtn))])],1)]):t._e()])])}),[],!1,null,"4583dbe2",null);e.default=component.exports;installComponents(component,{TextField:n(205).default,Button:n(79).default})},754:function(t,e,n){"use strict";n(750)},755:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&display=swap);"]),o.push([t.i,".toast-creat-order{animation:toast-slide-in 1s forwards;border-radius:1px;bottom:40px;display:flex;height:40px;justify-items:center;line-height:40px;position:fixed;right:-300px;text-align:center;width:500px;z-index:999}@keyframes toast-slide-in{0%{right:-300px}to{right:0}}.toast-description{color:#fff;text-align:center}.success{background:#6fec61}.fail{background:#f44336;color:#e82d1f;top:530px}.svg-error,.svg-success{margin-left:15px;margin-right:15px;margin-top:10px;transform:scale(1.5)}",""]),o.locals={},t.exports=o},756:function(t,e,n){"use strict";n(751)},757:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&display=swap);"]),o.push([t.i,".modal[data-v-4583dbe2]{background-color:rgba(0,0,0,.5);height:100%;left:0;overflow:auto;position:fixed;top:0;width:100%;z-index:1}.modal-content__buy[data-v-4583dbe2],.modal-content__continue[data-v-4583dbe2]{background-color:#f9f2e0;border-radius:20px;box-shadow:9px 9px 16px rgba(0,0,0,.44);color:#000;margin:8% auto;padding:20px;position:relative;text-align:center;transform:scale(1);transform-origin:center center;transition:transform 1s;width:50%}.modal-content__continue[data-v-4583dbe2]{margin:15% auto;width:25%}.modal-input[data-v-4583dbe2]{border:1px solid rgba(0,0,0,.09);height:40px;text-align:center;width:55px}.flex[data-v-4583dbe2]{align-items:center;display:flex;position:relative}.modal p[data-v-4583dbe2]{margin-bottom:24px}.modal a[data-v-4583dbe2],.modal p[data-v-4583dbe2]{width:250px}.input-detail[data-v-4583dbe2]{width:300px}.active[data-v-4583dbe2]{border:1px solid red;color:red}.validateInput[data-v-4583dbe2]{color:red;font-size:12px;left:250px;position:absolute;top:50px}",""]),o.locals={},t.exports=o},786:function(t,e,n){var content=n(811);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("6f59d772",content,!0,{sourceMap:!1})},810:function(t,e,n){"use strict";n(786)},811:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&display=swap);"]),o.push([t.i,".table{width:100%}table{border-collapse:collapse;margin:50px auto;padding:0;transform:translateX(150px);width:80%}thead{background:#f9dcc8}td,th{border:.5px solid #eaa88a;border-collapse:collapse;padding:1px 10px;text-align:center}tr:hover{background:#f4efef}.icon-edit{cursor:pointer;margin-right:5px;margin-top:10px}",""]),o.locals={},t.exports=o}}]); \ No newline at end of file diff --git a/assets/content/db-8e53d969.json b/assets/content/db-52363698.json similarity index 99% rename from assets/content/db-8e53d969.json rename to assets/content/db-52363698.json index 27beff2..539bbb5 100644 --- a/assets/content/db-8e53d969.json +++ b/assets/content/db-52363698.json @@ -1 +1 @@ -{"_env":"NODEJS","_serializationMethod":"normal","_autosave":false,"_autosaveInterval":5000,"_collections":[{"name":"items","unindexedSortComparator":"js","defaultLokiOperatorPackage":"js","_dynamicViews":[],"uniqueNames":[],"transforms":{},"rangedIndexes":{},"_data":[{"slug":"hello","description":"Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.","title":"Getting started","toc":[{"id":"writing-content","depth":2,"text":"Writing content"},{"id":"fetching-content","depth":2,"text":"Fetching content"},{"id":"displaying-content","depth":2,"text":"Displaying content"}],"body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Empower your NuxtJS application with "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"@nuxtjs/content"}]},{"type":"text","value":" module: write in a "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"content/"}]},{"type":"text","value":" directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a "},{"type":"element","tag":"strong","props":{},"children":[{"type":"text","value":"Git-based Headless CMS"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tag":"h2","props":{"id":"writing-content"},"children":[{"type":"element","tag":"a","props":{"href":"#writing-content","ariaHidden":"true","tabIndex":-1},"children":[{"type":"element","tag":"span","props":{"className":["icon","icon-link"]},"children":[]}]},{"type":"text","value":"Writing content"}]},{"type":"text","value":"\n"},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn how to write your "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"content/"}]},{"type":"text","value":", supporting Markdown, YAML, CSV and JSON: "},{"type":"element","tag":"a","props":{"href":"https://content.nuxtjs.org/writing","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://content.nuxtjs.org/writing"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tag":"h2","props":{"id":"fetching-content"},"children":[{"type":"element","tag":"a","props":{"href":"#fetching-content","ariaHidden":"true","tabIndex":-1},"children":[{"type":"element","tag":"span","props":{"className":["icon","icon-link"]},"children":[]}]},{"type":"text","value":"Fetching content"}]},{"type":"text","value":"\n"},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn how to fetch your content with "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"$content"}]},{"type":"text","value":": "},{"type":"element","tag":"a","props":{"href":"https://content.nuxtjs.org/fetching","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://content.nuxtjs.org/fetching"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tag":"h2","props":{"id":"displaying-content"},"children":[{"type":"element","tag":"a","props":{"href":"#displaying-content","ariaHidden":"true","tabIndex":-1},"children":[{"type":"element","tag":"span","props":{"className":["icon","icon-link"]},"children":[]}]},{"type":"text","value":"Displaying content"}]},{"type":"text","value":"\n"},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn how to display your Markdown content with the "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":""}]},{"type":"text","value":" component directly in your template: "},{"type":"element","tag":"a","props":{"href":"https://content.nuxtjs.org/displaying","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://content.nuxtjs.org/displaying"}]},{"type":"text","value":"."}]}]},"text":"\r\nEmpower your NuxtJS application with `@nuxtjs/content` module: write in a `content/` directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a **Git-based Headless CMS**.\r\n\r\n## Writing content\r\n\r\nLearn how to write your `content/`, supporting Markdown, YAML, CSV and JSON: https://content.nuxtjs.org/writing.\r\n\r\n## Fetching content\r\n\r\nLearn how to fetch your content with `$content`: https://content.nuxtjs.org/fetching.\r\n\r\n## Displaying content\r\n\r\nLearn how to display your Markdown content with the `` component directly in your template: https://content.nuxtjs.org/displaying.\r\n","dir":"/","path":"/hello","extension":".md","createdAt":"2024-05-01T06:59:49.683Z","updatedAt":"2024-05-01T06:59:49.683Z","meta":{"version":0,"revision":0,"created":1716198863794},"$loki":1}],"idIndex":[1],"maxId":1,"_dirty":true,"_nestedProperties":[],"transactional":false,"asyncListeners":false,"disableMeta":false,"disableChangesApi":true,"disableDeltaChangesApi":true,"cloneObjects":false,"cloneMethod":"deep","changes":[],"_fullTextSearch":{"ii":{"title":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":2}]],"totalFieldLength":2,"root":{"k":[103,115],"v":[{"k":[101],"v":[{"k":[116],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[116],"v":[{"k":[97],"v":[{"k":[114],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[100],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}},"description":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":32}]],"totalFieldLength":32,"root":{"k":[101,121,110,97,119,64,109,105,99,100,102,106,116,108,103,104],"v":[{"k":[109],"v":[{"k":[112],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[101],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[117],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,2]]}}]}]},{"k":[109],"v":[{"k":[108],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"d":{"df":1,"dc":[[0,3]]},"k":[112,110,99,115],"v":[{"k":[112,105],"v":[{"k":[108],"v":[{"k":[105],"v":[{"k":[99],"v":[{"k":[97],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[111],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[100],"v":[{"d":{"df":1,"dc":[[0,2]]}}]},{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[105,114],"v":[{"k":[116],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[105],"v":[{"k":[116],"v":[{"k":[101],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[47],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[100,110],"v":[{"k":[117],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[103],"v":[{"k":[111],"v":[{"k":[100],"v":[{"k":[98],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"k":[114],"v":[{"k":[107],"v":[{"k":[100],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[110],"v":[{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[111,115,109],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[47],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[118],"v":[{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[115],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[105],"v":[{"k":[114],"v":[{"k":[101],"v":[{"k":[99],"v":[{"k":[116],"v":[{"k":[111],"v":[{"k":[114],"v":[{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[101,105],"v":[{"k":[116],"v":[{"k":[99],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[115],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[104],"v":[{"k":[114],"v":[{"k":[111],"v":[{"k":[117],"v":[{"k":[103],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[105],"v":[{"k":[107],"v":[{"k":[101],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[105],"v":[{"k":[116],"v":[{"k":[45],"v":[{"k":[98],"v":[{"k":[97],"v":[{"k":[115],"v":[{"k":[101],"v":[{"k":[100],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[101],"v":[{"k":[97],"v":[{"k":[100],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}},"slug":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":1}]],"totalFieldLength":1,"root":{"k":[104],"v":[{"k":[101],"v":[{"k":[108],"v":[{"k":[108],"v":[{"k":[111],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}},"text":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":79}]],"totalFieldLength":79,"root":{"k":[101,121,110,97,119,96,109,105,100,102,106,99,116,108,42,104,35,115],"v":[{"k":[109],"v":[{"k":[112],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[101],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[117],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,6]]}}]}]},{"k":[109],"v":[{"k":[108],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"d":{"df":1,"dc":[[0,3]]},"k":[112,110,99,115],"v":[{"k":[112,105],"v":[{"k":[108],"v":[{"k":[105],"v":[{"k":[99],"v":[{"k":[97],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[111],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[100],"v":[{"d":{"df":1,"dc":[[0,3]]}}]},{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[105,114],"v":[{"k":[116],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,3]]}}]}]},{"k":[105],"v":[{"k":[116],"v":[{"k":[101,105],"v":[{"d":{"df":1,"dc":[[0,2]]}},{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[64,99,36,60],"v":[{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"k":[47],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[96],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[47],"v":[{"k":[96],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]},{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[96],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]},{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[45],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[62],"v":[{"k":[96],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[100,110],"v":[{"k":[117],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[103],"v":[{"k":[111],"v":[{"k":[100],"v":[{"k":[98],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"k":[114],"v":[{"k":[107],"v":[{"k":[100],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[44],"v":[{"d":{"df":1,"dc":[[0,2]]}}]}]}]}]}]}]}]}]},{"k":[110],"v":[{"d":{"df":1,"dc":[[0,2]]}}]},{"k":[105],"v":[{"k":[114,115],"v":[{"k":[101],"v":[{"k":[99],"v":[{"k":[116],"v":[{"k":[111,108],"v":[{"k":[114],"v":[{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"k":[112],"v":[{"k":[108],"v":[{"k":[97],"v":[{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]},{"k":[101,105],"v":[{"k":[116],"v":[{"k":[99],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,2]]},"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[115],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[44,58],"v":[{"d":{"df":1,"dc":[[0,1]]}},{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[115,109,111],"v":[{"k":[118],"v":[{"d":{"df":1,"dc":[[0,2]]}}]},{"k":[115],"v":[{"k":[42],"v":[{"k":[42],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[110,109],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"d":{"df":1,"dc":[[0,5]]}}]}]}]}]},{"k":[112],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[104,111,101],"v":[{"k":[114,101],"v":[{"k":[111],"v":[{"k":[117],"v":[{"k":[103],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"d":{"df":1,"dc":[[0,1]]}}]},{"d":{"df":1,"dc":[[0,3]]}},{"k":[109],"v":[{"k":[112],"v":[{"k":[108],"v":[{"k":[97],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[105,101],"v":[{"k":[107],"v":[{"k":[101],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[97],"v":[{"k":[114],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,3]]}}]}]}]}]},{"k":[42],"v":[{"k":[103],"v":[{"k":[105],"v":[{"k":[116],"v":[{"k":[45],"v":[{"k":[98],"v":[{"k":[97],"v":[{"k":[115],"v":[{"k":[101],"v":[{"k":[100],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]},{"k":[101,111,116],"v":[{"k":[97],"v":[{"k":[100],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[119],"v":[{"d":{"df":1,"dc":[[0,3]]}}]},{"k":[116],"v":[{"k":[112],"v":[{"k":[115],"v":[{"k":[58],"v":[{"k":[47],"v":[{"k":[47],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[46],"v":[{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"k":[46],"v":[{"k":[111],"v":[{"k":[114],"v":[{"k":[103],"v":[{"k":[47],"v":[{"k":[119,102,100],"v":[{"k":[114],"v":[{"k":[105],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]},{"k":[101],"v":[{"k":[116],"v":[{"k":[99],"v":[{"k":[104],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[105],"v":[{"k":[115],"v":[{"k":[112],"v":[{"k":[108],"v":[{"k":[97],"v":[{"k":[121],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[35],"v":[{"d":{"df":1,"dc":[[0,3]]}}]},{"k":[117],"v":[{"k":[112],"v":[{"k":[112],"v":[{"k":[111],"v":[{"k":[114],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}}}}}],"databaseVersion":1.5,"engineVersion":1.5,"filename":"content.db","_persistenceAdapter":null,"_persistenceMethod":null,"_throttledSaves":true} \ No newline at end of file +{"_env":"NODEJS","_serializationMethod":"normal","_autosave":false,"_autosaveInterval":5000,"_collections":[{"name":"items","unindexedSortComparator":"js","defaultLokiOperatorPackage":"js","_dynamicViews":[],"uniqueNames":[],"transforms":{},"rangedIndexes":{},"_data":[{"slug":"hello","description":"Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.","title":"Getting started","toc":[{"id":"writing-content","depth":2,"text":"Writing content"},{"id":"fetching-content","depth":2,"text":"Fetching content"},{"id":"displaying-content","depth":2,"text":"Displaying content"}],"body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Empower your NuxtJS application with "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"@nuxtjs/content"}]},{"type":"text","value":" module: write in a "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"content/"}]},{"type":"text","value":" directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a "},{"type":"element","tag":"strong","props":{},"children":[{"type":"text","value":"Git-based Headless CMS"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tag":"h2","props":{"id":"writing-content"},"children":[{"type":"element","tag":"a","props":{"href":"#writing-content","ariaHidden":"true","tabIndex":-1},"children":[{"type":"element","tag":"span","props":{"className":["icon","icon-link"]},"children":[]}]},{"type":"text","value":"Writing content"}]},{"type":"text","value":"\n"},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn how to write your "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"content/"}]},{"type":"text","value":", supporting Markdown, YAML, CSV and JSON: "},{"type":"element","tag":"a","props":{"href":"https://content.nuxtjs.org/writing","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://content.nuxtjs.org/writing"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tag":"h2","props":{"id":"fetching-content"},"children":[{"type":"element","tag":"a","props":{"href":"#fetching-content","ariaHidden":"true","tabIndex":-1},"children":[{"type":"element","tag":"span","props":{"className":["icon","icon-link"]},"children":[]}]},{"type":"text","value":"Fetching content"}]},{"type":"text","value":"\n"},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn how to fetch your content with "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":"$content"}]},{"type":"text","value":": "},{"type":"element","tag":"a","props":{"href":"https://content.nuxtjs.org/fetching","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://content.nuxtjs.org/fetching"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tag":"h2","props":{"id":"displaying-content"},"children":[{"type":"element","tag":"a","props":{"href":"#displaying-content","ariaHidden":"true","tabIndex":-1},"children":[{"type":"element","tag":"span","props":{"className":["icon","icon-link"]},"children":[]}]},{"type":"text","value":"Displaying content"}]},{"type":"text","value":"\n"},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn how to display your Markdown content with the "},{"type":"element","tag":"code","props":{},"children":[{"type":"text","value":""}]},{"type":"text","value":" component directly in your template: "},{"type":"element","tag":"a","props":{"href":"https://content.nuxtjs.org/displaying","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://content.nuxtjs.org/displaying"}]},{"type":"text","value":"."}]}]},"text":"\r\nEmpower your NuxtJS application with `@nuxtjs/content` module: write in a `content/` directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a **Git-based Headless CMS**.\r\n\r\n## Writing content\r\n\r\nLearn how to write your `content/`, supporting Markdown, YAML, CSV and JSON: https://content.nuxtjs.org/writing.\r\n\r\n## Fetching content\r\n\r\nLearn how to fetch your content with `$content`: https://content.nuxtjs.org/fetching.\r\n\r\n## Displaying content\r\n\r\nLearn how to display your Markdown content with the `` component directly in your template: https://content.nuxtjs.org/displaying.\r\n","dir":"/","path":"/hello","extension":".md","createdAt":"2024-05-01T06:59:49.683Z","updatedAt":"2024-05-01T06:59:49.683Z","meta":{"version":0,"revision":0,"created":1716199104203},"$loki":1}],"idIndex":[1],"maxId":1,"_dirty":true,"_nestedProperties":[],"transactional":false,"asyncListeners":false,"disableMeta":false,"disableChangesApi":true,"disableDeltaChangesApi":true,"cloneObjects":false,"cloneMethod":"deep","changes":[],"_fullTextSearch":{"ii":{"title":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":2}]],"totalFieldLength":2,"root":{"k":[103,115],"v":[{"k":[101],"v":[{"k":[116],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[116],"v":[{"k":[97],"v":[{"k":[114],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[100],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}},"description":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":32}]],"totalFieldLength":32,"root":{"k":[101,121,110,97,119,64,109,105,99,100,102,106,116,108,103,104],"v":[{"k":[109],"v":[{"k":[112],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[101],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[117],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,2]]}}]}]},{"k":[109],"v":[{"k":[108],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"d":{"df":1,"dc":[[0,3]]},"k":[112,110,99,115],"v":[{"k":[112,105],"v":[{"k":[108],"v":[{"k":[105],"v":[{"k":[99],"v":[{"k":[97],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[111],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[100],"v":[{"d":{"df":1,"dc":[[0,2]]}}]},{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[105,114],"v":[{"k":[116],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[105],"v":[{"k":[116],"v":[{"k":[101],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[47],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[100,110],"v":[{"k":[117],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[103],"v":[{"k":[111],"v":[{"k":[100],"v":[{"k":[98],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"k":[114],"v":[{"k":[107],"v":[{"k":[100],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[110],"v":[{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[111,115,109],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[47],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[118],"v":[{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[115],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[105],"v":[{"k":[114],"v":[{"k":[101],"v":[{"k":[99],"v":[{"k":[116],"v":[{"k":[111],"v":[{"k":[114],"v":[{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[101,105],"v":[{"k":[116],"v":[{"k":[99],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[115],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[104],"v":[{"k":[114],"v":[{"k":[111],"v":[{"k":[117],"v":[{"k":[103],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[105],"v":[{"k":[107],"v":[{"k":[101],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]},{"k":[105],"v":[{"k":[116],"v":[{"k":[45],"v":[{"k":[98],"v":[{"k":[97],"v":[{"k":[115],"v":[{"k":[101],"v":[{"k":[100],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[101],"v":[{"k":[97],"v":[{"k":[100],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}},"slug":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":1}]],"totalFieldLength":1,"root":{"k":[104],"v":[{"k":[101],"v":[{"k":[108],"v":[{"k":[108],"v":[{"k":[111],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}},"text":{"_store":true,"_optimizeChanges":true,"docCount":1,"docStore":[[0,{"fieldLength":79}]],"totalFieldLength":79,"root":{"k":[101,121,110,97,119,96,109,105,100,102,106,99,116,108,42,104,35,115],"v":[{"k":[109],"v":[{"k":[112],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[101],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[117],"v":[{"k":[114],"v":[{"d":{"df":1,"dc":[[0,6]]}}]}]},{"k":[109],"v":[{"k":[108],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"d":{"df":1,"dc":[[0,3]]},"k":[112,110,99,115],"v":[{"k":[112,105],"v":[{"k":[108],"v":[{"k":[105],"v":[{"k":[99],"v":[{"k":[97],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[111],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[100],"v":[{"d":{"df":1,"dc":[[0,3]]}}]},{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"d":{"df":1,"dc":[[0,1]]}}]},{"k":[105,114],"v":[{"k":[116],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,3]]}}]}]},{"k":[105],"v":[{"k":[116],"v":[{"k":[101,105],"v":[{"d":{"df":1,"dc":[[0,2]]}},{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[64,99,36,60],"v":[{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"k":[47],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[96],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[47],"v":[{"k":[96],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[44],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]},{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[96],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]},{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[45],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[62],"v":[{"k":[96],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[111,97],"v":[{"k":[100,110],"v":[{"k":[117],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[103],"v":[{"k":[111],"v":[{"k":[100],"v":[{"k":[98],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"k":[114],"v":[{"k":[107],"v":[{"k":[100],"v":[{"k":[111],"v":[{"k":[119],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[44],"v":[{"d":{"df":1,"dc":[[0,2]]}}]}]}]}]}]}]}]}]},{"k":[110],"v":[{"d":{"df":1,"dc":[[0,2]]}}]},{"k":[105],"v":[{"k":[114,115],"v":[{"k":[101],"v":[{"k":[99],"v":[{"k":[116],"v":[{"k":[111,108],"v":[{"k":[114],"v":[{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]},{"k":[112],"v":[{"k":[108],"v":[{"k":[97],"v":[{"k":[121],"v":[{"d":{"df":1,"dc":[[0,1]]},"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]},{"k":[101,105],"v":[{"k":[116],"v":[{"k":[99],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,2]]},"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[115],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[44,58],"v":[{"d":{"df":1,"dc":[[0,1]]}},{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[115,109,111],"v":[{"k":[118],"v":[{"d":{"df":1,"dc":[[0,2]]}}]},{"k":[115],"v":[{"k":[42],"v":[{"k":[42],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"k":[110,109],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"d":{"df":1,"dc":[[0,5]]}}]}]}]}]},{"k":[112],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[104,111,101],"v":[{"k":[114,101],"v":[{"k":[111],"v":[{"k":[117],"v":[{"k":[103],"v":[{"k":[104],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]},{"d":{"df":1,"dc":[[0,1]]}}]},{"d":{"df":1,"dc":[[0,3]]}},{"k":[109],"v":[{"k":[112],"v":[{"k":[108],"v":[{"k":[97],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[58],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[105,101],"v":[{"k":[107],"v":[{"k":[101],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]},{"k":[97],"v":[{"k":[114],"v":[{"k":[110],"v":[{"d":{"df":1,"dc":[[0,3]]}}]}]}]}]},{"k":[42],"v":[{"k":[103],"v":[{"k":[105],"v":[{"k":[116],"v":[{"k":[45],"v":[{"k":[98],"v":[{"k":[97],"v":[{"k":[115],"v":[{"k":[101],"v":[{"k":[100],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]},{"k":[101,111,116],"v":[{"k":[97],"v":[{"k":[100],"v":[{"k":[108],"v":[{"k":[101],"v":[{"k":[115],"v":[{"k":[115],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]},{"k":[119],"v":[{"d":{"df":1,"dc":[[0,3]]}}]},{"k":[116],"v":[{"k":[112],"v":[{"k":[115],"v":[{"k":[58],"v":[{"k":[47],"v":[{"k":[47],"v":[{"k":[99],"v":[{"k":[111],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[101],"v":[{"k":[110],"v":[{"k":[116],"v":[{"k":[46],"v":[{"k":[110],"v":[{"k":[117],"v":[{"k":[120],"v":[{"k":[116],"v":[{"k":[106],"v":[{"k":[115],"v":[{"k":[46],"v":[{"k":[111],"v":[{"k":[114],"v":[{"k":[103],"v":[{"k":[47],"v":[{"k":[119,102,100],"v":[{"k":[114],"v":[{"k":[105],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]},{"k":[101],"v":[{"k":[116],"v":[{"k":[99],"v":[{"k":[104],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]},{"k":[105],"v":[{"k":[115],"v":[{"k":[112],"v":[{"k":[108],"v":[{"k":[97],"v":[{"k":[121],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"k":[46],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{"k":[35],"v":[{"d":{"df":1,"dc":[[0,3]]}}]},{"k":[117],"v":[{"k":[112],"v":[{"k":[112],"v":[{"k":[111],"v":[{"k":[114],"v":[{"k":[116],"v":[{"k":[105],"v":[{"k":[110],"v":[{"k":[103],"v":[{"d":{"df":1,"dc":[[0,1]]}}]}]}]}]}]}]}]}]}]}]}}}}}],"databaseVersion":1.5,"engineVersion":1.5,"filename":"content.db","_persistenceAdapter":null,"_persistenceMethod":null,"_throttledSaves":true} \ No newline at end of file diff --git a/assets/f8539c1.js b/assets/f8539c1.js deleted file mode 100644 index 0798ac6..0000000 --- a/assets/f8539c1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0,5,8],{748:function(t,e,n){"use strict";n.r(e);var o={name:"Toast",props:{type:String,messageFail:String,messageSuccess:String}},l=(n(754),n(47)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"toast"},["toastSuccess"===t.type?e("div",{staticClass:"toast-creat-order success"},[e("svg",{staticClass:"svg-success",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","aria-hidden":"true",fill:"none"}},[e("path",{attrs:{fill:"#FFF",d:"M19.5 8.08a1 1 0 0 0-1.42 0l-6.93 6.93-2.12-2.12a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 1.42 0l7.5-7.5a1 1 0 0 0 0-1.42z"}})]),t._v(" "),e("p",{staticClass:"toast-description"},[t._v(t._s(t.messageSuccess))])]):t._e(),t._v(" "),"toastFail"===t.type?e("div",{staticClass:"toast-creat-order fail"},[e("svg",{staticClass:"svg-error",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","aria-hidden":"true",fill:"none"}},[e("path",{attrs:{fill:"#FFF",d:"M12 4a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm1 13h-2v-2h2zm0-4h-2v-6h2z"}})]),t._v(" "),e("p",{staticClass:"toast-description"},[t._v(t._s(t.messageFail))])]):t._e()])])}),[],!1,null,null,null);e.default=component.exports},750:function(t,e,n){var content=n(755);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("3bd835e2",content,!0,{sourceMap:!1})},751:function(t,e,n){var content=n(757);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("90f3ef22",content,!0,{sourceMap:!1})},752:function(t,e,n){"use strict";n.r(e);n(33),n(5),n(41),n(73),n(274),n(64);var o=n(204),l=n(748),r=(n(436),{name:"Table",components:{Toast:l.default},props:{type:String},computed:{isEnglish:function(){return this.$store.state.isEnglish}},data:function(){return{cartItems:[],cartItemsOrder:[],cartItemsUserOrder:[],hideModalEdit:!1,hideModalDetail:!1,costumeIdDetail:"",quantityDetail:"",priceDetail:"",sizeDetail:"",nameDetail:"",phoneNumberDetail:"",addressDetail:"",messageFail:"",visibleToastFail:!1}},mounted:function(){var t=n(272),e=localStorage.getItem("token"),o=t.decode(e);o&&(this.sub=o.sub,this.url=o.url),e&&""!==e.trim()&&(this.hide=!0),e&&(this.authority=t.decode(localStorage.getItem("token")).role[0].authority),"admin"===this.authority&&(this.fetchCartItems(),this.loadAdminCheckOrder()),"user"===this.authority&&this.loadUserCheckOrder()},methods:{fetchCartItems:function(){var t=this,e=localStorage.getItem("token");Object(o.b)(e),o.a.post("/api/get-all-inventories").then((function(e){e.data?(t.cartItems=e.data,t.populateCartTable()):console.error("Lỗi khi gọi API: Không nhận được dữ liệu JSON")})).catch((function(t){console.error("Lỗi khi gọi API:",t)}))},populateCartTable:function(){},loadAdminCheckOrder:function(){var t=this,e=localStorage.getItem("token");Object(o.b)(e),o.a.get("/api/get-all-orders").then((function(e){e.data?(t.cartItemsOrder=e.data,t.populateCartTable()):console.error("Lỗi khi gọi API: Không nhận được dữ liệu JSON")})).catch((function(t){console.error("Lỗi khi gọi API:",t)}))},loadUserCheckOrder:function(){var t=this,e=localStorage.getItem("token");Object(o.b)(e),o.a.get("/api/get-order").then((function(e){e.data?(t.cartItemsUserOrder=e.data,t.populateCartTable()):console.error("Lỗi khi gọi API: Không nhận được dữ liệu JSON")})).catch((function(t){console.error("Lỗi khi gọi API:",t)}))},deleteItem:function(t){var e=this,n={id:this.cartItems[t].id},l=localStorage.getItem("token");Object(o.b)(l),o.a.post("/api/delete-inventory",n).then((function(t){window.location.reload()})).catch((function(t){e.visibleToastFail=!0,e.isEnglish?e.messageFail="Failure":e.messageFail="Thất bại",setTimeout((function(){e.visibleToastFail=!1}),3e3)}))},openModalEdit:function(t,e,n){this.$emit("hidemodaledit",t,e,n)},openModalDetail:function(t){var e=this,n=t;this.hideModalDetail=!0;var l=localStorage.getItem("token");Object(o.b)(l),o.a.get("/api/get-order/"+n).then((function(t){t.data?(e.costumeIdDetail=t.data[0].costumeId.toString(),e.quantityDetail=t.data[0].quantity.toString(),e.priceDetail=t.data[0].price.toString(),e.sizeDetail=t.data[0].size,e.nameDetail=t.data[0].name,e.phoneNumberDetail=t.data[0].phoneNumber,e.addressDetail=t.data[0].address):console.error("Lỗi khi gọi API: Không nhận được dữ liệu JSON")})).catch((function(t){console.error("Lỗi khi gọi API:",t)}))},cancelOrder:function(t){var e=this,n=t,l=localStorage.getItem("token");Object(o.b)(l),o.a.post("/api/cancel-order/"+n).then((function(t){window.location.reload()})).catch((function(t){e.visibleToastFail=!0,e.isEnglish?e.messageFail="Failure":e.messageFail="Thất bại",setTimeout((function(){e.visibleToastFail=!1}),3e3)}))}}}),c=(n(810),n(47)),component=Object(c.a)(r,(function(){var t=this,e=t._self._c;return t.visibleToastFail?e("Toast",{attrs:{type:"toastFail",messageFail:t.messageFail}}):t._e()}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Toast:n(748).default,Table:n(752).default,Modal:n(753).default})},753:function(t,e,n){"use strict";n.r(e);n(33);var o=n(2),l=(n(40),n(5),n(41),n(64),n(204)),r=n(83),c=n(205),d=n(79),m=n(62),v={name:"Modal",components:{ValidationObserver:r.a,ValidationProvider:r.b,TextField:c.default,Button:d.default},props:{type:String,hideModalBuy:Boolean,hideModalContinue:Boolean,quantityEdit:Number,costumeIdEdit:Number,sizeEdit:String,costumeId:Number,costumeIdDetail:String,quantityDetail:String,priceDetail:String,sizeDetail:String,nameDetail:String,phoneNumberDetail:String,addressDetail:String,priceCostume:Number,currencyCostume:String},mounted:function(){var t=this;this.bodyClickListenerSet||setTimeout((function(){document.body.addEventListener("click",t.handleBodyClick),t.bodyClickListenerSet=!0}),500)},destroyed:function(){document.body.removeEventListener("click",this.handleBodyClick)},computed:{isEnglish:function(){return this.$store.state.isEnglish},loginBtn:function(){return this.isEnglish?m.a.loginBtn.en:m.a.loginBtn.vi},registerBtn:function(){return this.isEnglish?m.a.registerBtn.en:m.a.registerBtn.vi}},data:function(){return Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({sizes:["M","L","XL","XXL"],selectedSize:"M",amount:1,price:20,bodyClickListenerSet:!1,productId:"",phone:"",name:"",adress:""},"price",""),"hideModalDetail",!0),"toastSuccess","toastSuccess"),"toastFail","toastFail"),"message",""),"visibleToastSuccess",!0),"visibleToastFail",!1),"statusToast",!1)},methods:{selectSize:function(t){this.selectedSize=t},buyCostume:function(){var t=this;this.$refs.observer&&this.$refs.observer.validate().then((function(e){if(e){var data={costumeId:t.costumeId,size:t.selectedSize,quantity:t.amount,price:t.price,name:t.name,phoneNumber:t.phone.toString(),address:t.adress},n=localStorage.getItem("token");Object(l.b)(n),l.a.post("/api/create-order",data).then((function(e){t.visibleToastSuccess=!0,t.isEnglish?t.message="You have placed your order successfully":t.message="Bạn đã đặt hàng thành công",t.statusToast=!0,t.$emit("hide-modal__buy",!1,t.visibleToastSuccess,t.message,t.statusToast)})).catch((function(e){t.visibleToastFail=!0,t.statusToast=!1,500===e.response.status&&"Inventory costume not found."===e.response.data.message?(t.isEnglish?t.message="Order not successful: Warehouse is out of stock":t.message="Đặt hàng k thành công : Kho đã hết hàng",t.$emit("hide-modal__buy",!1,t.visibleToastFail,t.message,t.statusToast)):(t.isEnglish?t.message="Order not successful: Product not found":t.message="Đặt hàng k thành công : Không tìm thấy sản phẩm",t.$emit("hide-modal__buy",!1,t.visibleToastFail,t.message,t.statusToast))}))}}))},subtraction:function(){this.amount>1&&this.amount--},subtractionEdit:function(){this.quantityEdit>1&&this.quantityEdit--},addition:function(){this.amount++},additionEdit:function(){this.quantityEdit++},login:function(){this.$router.push("/login")},register:function(){this.$router.push("/register")},handleBodyClick:function(t){this.hideModalContinue&&(this.$refs.modalContinue.contains(t.target)||this.$emit("hide-modal__continue",!1));this.hideModalBuy&&(this.$refs.modalBuy.contains(t.target)||this.$emit("hide-modal__buy",!1))},addInvetery:function(){var t=this;this.$refs.observerAdd&&this.$refs.observerAdd.validate().then((function(e){if(e){var data={costumeId:t.productId,size:t.selectedSize,quantity:t.amount},n=localStorage.getItem("token");Object(l.b)(n),l.a.post("/api/add-inventory",data).then((function(t){window.location.reload()})).catch((function(e){t.visibleToastFail=!0,t.isEnglish?t.message="Failure":t.message="Thất bại",t.$emit("toastStatus",t.visibleToastFail,t.message)}))}}))},closeModalDetail:function(){window.location.reload()},editInvetery:function(){var t=this,data={costumeId:this.costumeIdEdit,size:this.sizeEdit,quantity:Number(this.quantityEdit)},e=localStorage.getItem("token");Object(l.b)(e),l.a.post("/api/remove-inventory",data).then((function(t){window.location.reload()})).catch((function(e){t.visibleToastFail=!0,t.isEnglish?t.message="Failure":t.message="Thất bại",t.$emit("toastStatus",t.visibleToastFail,t.message)}))}}},h=(n(756),n(47)),component=Object(h.a)(v,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal"},["modal-buy"===t.type?e("div",{ref:"modalBuy",staticClass:"modal-content__buy"},[e("ValidationObserver",{ref:"observer"},[e("ValidationProvider",{attrs:{name:"Name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Recipient's name:")]):e("p",[t._v("Tên người nhận:")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,1613395978)}),t._v(" "),e("ValidationProvider",{attrs:{name:"Phone",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Phone:")]):e("p",[t._v("Số điện thoại:")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,1079395829)}),t._v(" "),e("ValidationProvider",{attrs:{name:"Address",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Address:")]):e("p",[t._v("Địa chỉ:")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.adress,callback:function(e){t.adress=e},expression:"adress"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,4011525889)})],1),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Price:")]):e("p",[t._v("Giá tiền:")]),t._v(" "),e("p",[t._v(t._s(t.priceCostume.toLocaleString("en-US"))+" "+t._s(t.currencyCostume))])]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Size:")]):e("p",[t._v("Kích cỡ:")]),t._v(" "),t._l(t.sizes,(function(n,o){return e("span",{key:o,staticStyle:{"margin-right":"20px"}},[e("Button",{class:{active:t.selectedSize===n},attrs:{type:"normal"},on:{click:function(e){return t.selectSize(n)}}},[t._v(t._s(n))])],1)}))],2),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("div",{staticStyle:{margin:"24px 0"}},[e("Button",{staticStyle:{"margin-right":"-4.7px"},attrs:{type:"normal"},on:{click:t.subtraction}},[t._v("-")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],staticClass:"modal-input",attrs:{type:"text"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),t._v(" "),e("Button",{staticStyle:{"margin-left":"-5px"},attrs:{type:"normal"},on:{click:t.addition}},[t._v("+")])],1)]),t._v(" "),e("Button",{attrs:{type:"nav"},on:{click:t.buyCostume}},[t.isEnglish?e("span",[t._v("Order")]):e("span",[t._v("Đặt mua")])])],1):t._e(),t._v(" "),"modal-detail"===t.type?e("div",{staticClass:"modal-content__buy"},[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Product code:")]):e("p",[t._v("Mã sản phẩm:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.costumeIdDetail,expression:"costumeIdDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.costumeIdDetail},on:{input:function(e){e.target.composing||(t.costumeIdDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.quantityDetail,expression:"quantityDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.quantityDetail},on:{input:function(e){e.target.composing||(t.quantityDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Price:")]):e("p",[t._v("Giá:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.priceDetail,expression:"priceDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.priceDetail},on:{input:function(e){e.target.composing||(t.priceDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Size:")]):e("p",[t._v("Kích thước:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sizeDetail,expression:"sizeDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.sizeDetail},on:{input:function(e){e.target.composing||(t.sizeDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Recipient's name:")]):e("p",[t._v("Tên khách hàng:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.nameDetail,expression:"nameDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.nameDetail},on:{input:function(e){e.target.composing||(t.nameDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Phone:")]):e("p",[t._v("Số điện thoại:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneNumberDetail,expression:"phoneNumberDetail"}],staticClass:"modal-input input-detail",attrs:{type:"text"},domProps:{value:t.phoneNumberDetail},on:{input:function(e){e.target.composing||(t.phoneNumberDetail=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Address:")]):e("p",[t._v("Địa chỉ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.addressDetail,expression:"addressDetail"}],staticClass:"modal-input input-detail",staticStyle:{"margin-bottom":"10px"},attrs:{type:"text"},domProps:{value:t.addressDetail},on:{input:function(e){e.target.composing||(t.addressDetail=e.target.value)}}})]),t._v(" "),e("Button",{staticStyle:{margin:"20px 0"},attrs:{type:"nav"},on:{click:t.closeModalDetail}},[t.isEnglish?e("span",[t._v("Close")]):e("span",[t._v("Đóng")])])],1):t._e(),t._v(" "),"modal-add"===t.type?e("div",{staticClass:"modal-content__buy"},[e("ValidationObserver",{ref:"observerAdd"},[e("ValidationProvider",{attrs:{name:"Product's name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.errors;return[e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Product's name:")]):e("p",[t._v("Mã sản phẩm")]),t._v(" "),e("TextField",{attrs:{type:"form-text"},model:{value:t.productId,callback:function(e){t.productId=e},expression:"productId"}}),t._v(" "),o.length?e("span",{staticClass:"validateInput"},[t._v(t._s(o[0]))]):t._e()],1)]}}],null,!1,1970486517)})],1),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Size:")]):e("p",[t._v("Kích cỡ:")]),t._v(" "),t._l(t.sizes,(function(n,o){return e("span",{key:o,staticStyle:{"margin-right":"20px"}},[e("Button",{class:{active:t.selectedSize===n},attrs:{type:"normal"},on:{click:function(e){return t.selectSize(n)}}},[t._v(t._s(n))])],1)}))],2),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("div",{staticStyle:{margin:"24px 0"}},[e("Button",{staticStyle:{"margin-right":"-4.7px"},attrs:{type:"normal"},on:{click:t.subtraction}},[t._v("-")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],staticClass:"modal-input",attrs:{type:"text"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),t._v(" "),e("Button",{staticStyle:{"margin-left":"-5px"},attrs:{type:"normal"},on:{click:t.addition}},[t._v("+")])],1)]),t._v(" "),e("Button",{attrs:{type:"nav"},on:{click:t.addInvetery}},[t.isEnglish?e("span",[t._v("Ok")]):e("span",[t._v("Xác nhận")])])],1):t._e(),t._v(" "),"modal-edit"===t.type?e("div",{staticClass:"modal-content__buy"},[e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[t.isEnglish?e("p",[t._v("Enter the amount you want to reduce")]):e("p",[t._v("Nhập số lượng bạn muốn bớt")])]),t._v(" "),e("div",{staticClass:"flex"},[t.isEnglish?e("p",[t._v("Amount:")]):e("p",[t._v("Số lượng:")]),t._v(" "),e("div",{staticStyle:{margin:"24px 0"}},[e("Button",{staticStyle:{"margin-right":"-4.7px"},attrs:{type:"normal"},on:{click:t.subtractionEdit}},[t._v("-")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.quantityEdit,expression:"quantityEdit"}],staticClass:"modal-input",attrs:{type:"text"},domProps:{value:t.quantityEdit},on:{input:function(e){e.target.composing||(t.quantityEdit=e.target.value)}}}),t._v(" "),e("Button",{staticStyle:{"margin-left":"-5px"},attrs:{type:"normal"},on:{click:t.additionEdit}},[t._v("+")])],1)]),t._v(" "),e("Button",{attrs:{type:"nav"},on:{click:t.editInvetery}},[t.isEnglish?e("span",[t._v("Ok")]):e("span",[t._v("Xác nhận")])])],1):"modal-continue"===t.type?e("div",{ref:"modalContinue",staticClass:"modal-content__continue"},[e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[t.isEnglish?t._e():e("p",[t._v("Bạn cần đăng nhập để tiếp tục!")]),t._v(" "),t.isEnglish?e("p",[t._v("You need to log in to continue!")]):t._e()]),t._v(" "),e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[e("Button",{attrs:{type:"register"},on:{click:t.register}},[t._v(t._s(t.registerBtn))]),t._v(" "),e("Button",{attrs:{type:"login"},on:{click:t.login}},[t._v(t._s(t.loginBtn))])],1)]):t._e()])])}),[],!1,null,"4583dbe2",null);e.default=component.exports;installComponents(component,{TextField:n(205).default,Button:n(79).default})},754:function(t,e,n){"use strict";n(750)},755:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&display=swap);"]),o.push([t.i,".toast-creat-order{animation:toast-slide-in 1s forwards;border-radius:1px;bottom:40px;display:flex;height:40px;justify-items:center;line-height:40px;position:fixed;right:-300px;text-align:center;width:500px;z-index:999}@keyframes toast-slide-in{0%{right:-300px}to{right:0}}.toast-description{color:#fff;text-align:center}.success{background:#6fec61}.fail{background:#f44336;color:#e82d1f;top:530px}.svg-error,.svg-success{margin-left:15px;margin-right:15px;margin-top:10px;transform:scale(1.5)}",""]),o.locals={},t.exports=o},756:function(t,e,n){"use strict";n(751)},757:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&display=swap);"]),o.push([t.i,".modal[data-v-4583dbe2]{background-color:rgba(0,0,0,.5);height:100%;left:0;overflow:auto;position:fixed;top:0;width:100%;z-index:1}.modal-content__buy[data-v-4583dbe2],.modal-content__continue[data-v-4583dbe2]{background-color:#f9f2e0;border-radius:20px;box-shadow:9px 9px 16px rgba(0,0,0,.44);color:#000;margin:8% auto;padding:20px;position:relative;text-align:center;transform:scale(1);transform-origin:center center;transition:transform 1s;width:50%}.modal-content__continue[data-v-4583dbe2]{margin:15% auto;width:25%}.modal-input[data-v-4583dbe2]{border:1px solid rgba(0,0,0,.09);height:40px;text-align:center;width:55px}.flex[data-v-4583dbe2]{align-items:center;display:flex;position:relative}.modal p[data-v-4583dbe2]{margin-bottom:24px}.modal a[data-v-4583dbe2],.modal p[data-v-4583dbe2]{width:250px}.input-detail[data-v-4583dbe2]{width:300px}.active[data-v-4583dbe2]{border:1px solid red;color:red}.validateInput[data-v-4583dbe2]{color:red;font-size:12px;left:250px;position:absolute;top:50px}",""]),o.locals={},t.exports=o},786:function(t,e,n){var content=n(811);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("610de005",content,!0,{sourceMap:!1})},810:function(t,e,n){"use strict";n(786)},811:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&display=swap);"]),o.push([t.i,".table{width:100%}table{border-collapse:collapse;margin:50px auto;padding:0;transform:translateX(150px);width:80%}thead{background:#f9dcc8}td,th{border:.5px solid #eaa88a;border-collapse:collapse;padding:1px 10px;text-align:center}tr:hover{background:#f4efef}.icon-edit{cursor:pointer;margin-right:5px;margin-top:10px}",""]),o.locals={},t.exports=o}}]); \ No newline at end of file diff --git a/error/index.html b/error/index.html index 6daef74..cd17b4c 100644 --- a/error/index.html +++ b/error/index.html @@ -1,7 +1,7 @@ - NoticeCostume - Trang phục 54 dân tộc