芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/erp.digitalhubbd.com/public/js/bundle/update_settings.8c074ad4fafc5fde.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9572],{68841:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(5947),o=a.n(s);const i={metaInfo:{title:"Update Settings"},data:function(){return{isLoading:!0,SubmitProcessing:!1,version:""}},methods:{Update_system:function(){var t=this,e=this;e.SubmitProcessing=!0,o().start(),o().set(.1),axios.get("/").then((function(a){e.SubmitProcessing=!1,o().done(),t.makeToast("success",t.$t("Successfully_Updated"),t.$t("Success")),Fire.$emit("Event_update")})).catch((function(a){e.SubmitProcessing=!1,o().done(),400==a.response.status?t.makeToast("danger",a.response.data.msg,t.$t("Failed")):t.makeToast("danger",t.$t("InvalidData"),t.$t("Failed"))}))},makeToast:function(t,e,a){this.$root.$bvToast.toast(e,{title:a,variant:t,solid:!0})},get_version_info:function(){var t=this;axios.get("get_version_info").then((function(e){t.version=e.data,t.isLoading=!1})).catch((function(e){setTimeout((function(){t.isLoading=!1}),500)}))}},created:function(){var t=this;this.get_version_info(),Fire.$on("Event_update",(function(){t.get_version_info()}))}};const n=(0,a(14486).A)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[e("breadcumb",{attrs:{page:t.$t("update_settings"),folder:t.$t("Settings")}}),t._v(" "),t.isLoading?e("div",{staticClass:"loading_page spinner spinner-primary mr-3"}):t._e(),t._v(" "),t.isLoading?t._e():e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-header"},[e("span",[t._v(t._s(t.$t("Update_Log")))])]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.$t("Note_update")))]),t._v(" "),""!=t.version?e("div",{staticClass:"alert alert-info"},[e("strong",[t._v(t._s(t.$t("Update_Available"))+"\n "),e("span",{staticClass:"badge badge-pill badge-info"},[t._v("\n "+t._s(t.version)+"\n ")])])]):e("div",{staticClass:"alert alert-info"},[e("strong",[t._v(t._s(t.$t("You_already_have_the_latest_version"))+" "),e("span",{staticClass:"badge badge-pill badge-info"})])]),t._v(" "),t._m(0),t._v(" "),t._m(1)])])])],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-12 mt-3"},[e("h5",[t._v("Please follow these steps, To Update your application")]),t._v(" "),e("div",{staticClass:"allert alert-danger"},[t._v("Note 1: If you have made any changes in the code manually then your changes will be lost.")]),t._v(" "),e("div",{staticClass:"allert alert-danger"},[t._v('Note 2: only admin or user who has permission "system_setting" he can upgrade the system')]),t._v(" "),e("ul",[e("li",[e("strong",[t._v("Step 1 : ")]),t._v("Take back up of your database, Go to "),e("a",{attrs:{href:"/app/settings/Backup"}},[t._v("Backup")]),t._v(" Click on Generate Backup ,\n You will find it in "),e("strong",[t._v("/storage/app/public/backup")]),t._v(" and save it to your pc To restore it if there is an error , \n or Go to your PhpMyAdmin and export your database then and save it to your pc To restore it if there is an error\n ")]),t._v(" "),e("li",[e("strong",[t._v("Step 2 : ")]),t._v(" Take back up of your files before updating.\n ")]),t._v(" "),e("li",[e("strong",[t._v("Step 3 : ")]),t._v(" Download the latest version from your codecanyon and Extract it .\n ")]),t._v(" "),e("li",[e("strong",[t._v("Step 4 : ")]),t._v(" Replace all the files and folders "),e("strong",[t._v("except")]),t._v(" the following :\n "),e("ul",[e("li",[t._v("file : "),e("strong",[t._v(".env")])]),t._v(" "),e("li",[t._v("Folder : "),e("strong",[t._v("storage")])]),t._v(" "),e("li",[t._v("Folder : "),e("strong",[t._v("Modules")]),t._v(" (If you have any Module installed)")]),t._v(" "),e("li",[t._v("file : "),e("strong",[t._v("modules_statuses.json")]),t._v(" (If you have any Module installed)")]),t._v(" "),e("li",[t._v("Folder : "),e("strong",[t._v("images folder in public : /public/images")])])])]),t._v(" "),e("li",[e("strong",[t._v("Step 5 : ")]),t._v("Visit http://your_app/update to update your database\n ")]),t._v(" "),e("li",[e("strong",[t._v("Step 6 : ")]),t._v(" Hard Clear your cache browser\n ")]),t._v(" "),e("li",[e("strong",[t._v("Step 7 : ")]),t._v(" You are done! Enjoy the updated application\n ")])]),t._v(" "),e("div",{staticClass:"allert alert-danger"},[t._v("Note: If any pages are not loading or blank, make sure you cleared your browser cache.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-12 mt-3"},[e("h4",{staticClass:"mb-3"},[t._v("This video showing you the steps on how to upgrade stocky")]),t._v(" "),e("iframe",{attrs:{width:"853",height:"480",src:"https://www.youtube.com/embed/VwfRtMkxS9U",title:"how to update Stocky step by step",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,null,null).exports}}]);