[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 8600.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8600],{8600:(e,t,a)=>{a.r(t),a.d(t,{default:()=>D});var l=a(9726),s={class:"db-card db-tab-div active"},r={class:"db-card-header"},n={class:"db-card-title"},o={class:"mb-4 bg-red-100 p-2 pl-4"},i={class:"mb-1"},c={class:"db-card-body"},p={class:"form-row"},d={class:"form-col-12 sm:form-col-5"},m={for:"splash",class:"db-field-title required"},g={key:0,class:"db-field-alert"},h={class:"form-col-12 sm:form-col-5"},u={for:"icon",class:"db-field-title required"},f={key:0,class:"db-field-alert"},b={class:"form-col-2 sm:form-col-2 mt-6"},v={type:"submit",class:"db-btn text-white bg-primary"},E={class:"row mt-4"},N={class:"col-6 sm:col-3"},V={class:"text-lg font-medium capitalize mb-2 text-paragraph"},y=["src"],w={class:"col-6 sm:col-3"},S={class:"text-lg font-medium capitalize mb-2 text-paragraph"},$=["src"];var _=a(5475),k=a(9856);const C={name:"PWAComponent",components:{LoadingComponent:_.A},data:function(){return{loading:{isActive:!1},splash:"",icon:"",errors:{}}},mounted:function(){this.$store.dispatch("pwa/lists")},computed:{pwa:function(){return this.$store.getters["pwa/lists"]}},methods:{changeSplash:function(e){this.splash=e.target.files[0]},changeIcon:function(e){this.icon=e.target.files[0]},save:function(){var e=this;try{var t=new FormData;t.append("pwa_splash",this.splash),t.append("pwa_icon",this.icon),this.loading.isActive=!0,this.$store.dispatch("pwa/save",{form:t}).then(function(t){e.loading.isActive=!1,k.A.successFlip(1,e.$t("menu.progressive_web_app")),e.errors={},e.$refs.splashProperty.value=null,e.$refs.iconProperty.value=null}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,k.A.error(e)}}}};const D=(0,a(6262).A)(C,[["render",function(e,t,a,_,k,C){var D=(0,l.resolveComponent)("LoadingComponent");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(D,{props:k.loading},null,8,["props"]),(0,l.createElementVNode)("div",s,[(0,l.createElementVNode)("div",r,[(0,l.createElementVNode)("h3",n,(0,l.toDisplayString)(e.$t("menu.progressive_web_app")),1)]),(0,l.createElementVNode)("div",o,[(0,l.createElementVNode)("h2",i,(0,l.toDisplayString)(e.$t("label.reminder")),1),(0,l.createElementVNode)("p",null,(0,l.toDisplayString)(e.$t("message.pwa_image_remainder")),1)]),(0,l.createElementVNode)("div",c,[(0,l.createElementVNode)("form",{onSubmit:t[2]||(t[2]=(0,l.withModifiers)(function(){return C.save&&C.save.apply(C,arguments)},["prevent"]))},[(0,l.createElementVNode)("div",p,[(0,l.createElementVNode)("div",d,[(0,l.createElementVNode)("label",m,(0,l.toDisplayString)(e.$t("label.splash"))+" (2048px,2732px) ",1),(0,l.createElementVNode)("input",{onChange:t[0]||(t[0]=function(){return C.changeSplash&&C.changeSplash.apply(C,arguments)}),class:(0,l.normalizeClass)([k.errors.pwa_splash?"invalid":"","db-field-control"]),id:"splash",type:"file",ref:"splashProperty",accept:"image/png, image/jpeg, image/jpg"},null,34),k.errors.pwa_splash?((0,l.openBlock)(),(0,l.createElementBlock)("small",g,(0,l.toDisplayString)(k.errors.pwa_splash[0]),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",h,[(0,l.createElementVNode)("label",u,(0,l.toDisplayString)(e.$t("label.icon"))+" (512px,512px) ",1),(0,l.createElementVNode)("input",{onChange:t[1]||(t[1]=function(){return C.changeIcon&&C.changeIcon.apply(C,arguments)}),class:(0,l.normalizeClass)([k.errors.pwa_icon?"invalid":"","db-field-control"]),id:"icon",type:"file",ref:"iconProperty",accept:"image/png, image/jpeg, image/jpg"},null,34),k.errors.pwa_icon?((0,l.openBlock)(),(0,l.createElementBlock)("small",f,(0,l.toDisplayString)(k.errors.pwa_icon[0]),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",b,[(0,l.createElementVNode)("button",v,[t[3]||(t[3]=(0,l.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("button.save")),1)])])])],32),(0,l.createElementVNode)("div",E,[(0,l.createElementVNode)("div",N,[(0,l.createElementVNode)("h3",V,(0,l.toDisplayString)(e.$t("label.splash")),1),(0,l.createElementVNode)("img",{class:"db-image",alt:"splash",src:C.pwa.splash},null,8,y)]),(0,l.createElementVNode)("div",w,[(0,l.createElementVNode)("h3",S,(0,l.toDisplayString)(e.$t("label.icon")),1),(0,l.createElementVNode)("img",{class:"db-image",alt:"icon",src:C.pwa.icon},null,8,$)])])])])],64)}]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285