Файловый менеджер - Редактировать - /var/www/vhosts/aviointeriors.dev1.mndrn.cloud/admin/11-07-24/assets/notifications-yC4tWxaU.js
Назад
import{_ as b}from"./notification-card-ullRvfJI.js";import{G as k,J as C,R as c,M as s,S as _,i as t,N as o,F as u,P as a,U as f,a2 as g,W as N,Q as m}from"./index-_I3m5PCz.js";import{_ as S,p as y,i as A,o as v,V as d,j as $,k as w}from"./index-6LwHBIDn.js";import{V as L}from"./VContainer-i2o5uFIt.js";import{V as l}from"./VRow-2KIxcIM5.js";import{V}from"./VBtn-k4a6PVcH.js";const R={setup(){const i=k();return i.fetchNotifications(),{authStore:i}},data:()=>({loading:!1}),created(){},methods:{toggleAllNotifications(i){var e="";i==!0?e="mark as read all notifications?":e="mark as unread all notifications?",confirm("Do you want to "+e)==!0&&C.post("/notifications/mark-all",{type:i}).then(r=>{r.status!=200||this.$router.go()}).catch(r=>{}).finally(()=>{})}}},B=m("h2",null,"Unread",-1),T=m("p",null,"No unread notifications.",-1),D=m("h2",null," Read ",-1);function E(i,e,r,M,U,p){const h=b;return a(),c(u,null,[this.loading?(a(),s(w,{key:0,indeterminate:"",color:"primary","bg-color":"blue"})):_("",!0),t(y,null,{default:o(()=>[t(L,null,{default:o(()=>[t(A,{flat:""},{default:o(()=>[t(v,{class:"d-flex align-center pe-2"},{default:o(()=>[t(d,{icon:"mdi-bell",color:"primary"}),f(" Notifications ")]),_:1}),t($,null,{default:o(()=>[t(l,{class:"px-4 mt-4 text-body-1"},{default:o(()=>[B]),_:1}),this.authStore.unreadNotifications.length?_("",!0):(a(),s(l,{key:0,class:"px-4 mt-8 mb-16 text-body-1"},{default:o(()=>[T]),_:1})),t(l,{class:"px-1"},{default:o(()=>[t(V,{onClick:e[0]||(e[0]=g(n=>{p.toggleAllNotifications(!0)},["prevent"])),class:"mt-2 mb-2 ml-2"},{default:o(()=>[t(d,{class:"",icon:"mdi-toggle-switch"}),f(" READ ALL ")]),_:1}),t(V,{onClick:e[1]||(e[1]=g(n=>{p.toggleAllNotifications(!1)},["prevent"])),class:"mt-2 mb-2 ml-2"},{default:o(()=>[t(d,{class:"",icon:"mdi-toggle-switch-off"}),f(" MARK ALL UNREAD ")]),_:1})]),_:1}),(a(!0),c(u,null,N(this.authStore.unreadNotifications,n=>(a(),s(h,{notification:n,onStatusChanged:e[2]||(e[2]=x=>this.authStore.sortNotifications())},null,8,["notification"]))),256)),t(l,{class:"px-4 mt-12 text-body-1"},{default:o(()=>[D]),_:1}),(a(!0),c(u,null,N(this.authStore.readNotifications,n=>(a(),s(h,{class:"bg-light-blue-lighten-5",notification:n,onStatusChanged:e[3]||(e[3]=x=>this.authStore.sortNotifications())},null,8,["notification"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})],64)}const K=S(R,[["render",E]]);export{K as default};
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка