mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 13:45:59 +01:00
2 lines
2.2 KiB
JavaScript
Vendored
2 lines
2.2 KiB
JavaScript
Vendored
import{u as C,S as $,r as w,o as z,$ as G,e as c,f as l,k as b,p as u,h as a,t as s,m as t,j as _,i,g as m,F,G as R,n as V,U as N,l as h}from"./app-347ef106.js";import{u as E}from"./bus-2e7bf732.js";/*! 2FAuth version 5.0.3 - Copyright (c) 2023 Bubka - https://github.com/Bubka/2FAuth */const I={class:"title has-text-grey-dark"},L={class:"is-size-7-mobile"},W={class:"mt-3 mb-6"},A={key:0},S=["onClick","title"],T={class:"is-family-primary is-size-6 is-size-7-mobile has-text-grey"},M={class:"mt-2 is-size-7 is-pulled-right"},U={key:1,class:"has-text-centered"},j={class:"is-size-4"},J={__name:"Groups",setup(q){C();const o=$(),f=E(),p=w(!1);return z(async()=>{p.value=o.isEmpty,await o.fetch().finally(()=>{p.value=!1})}),G((e,g)=>{var n;e.name=="editGroup"&&(f.editedGroupName=(n=o.items.find(d=>d.id==e.params.groupId))==null?void 0:n.name)}),(e,g)=>{const n=c("FontAwesomeIcon"),d=c("RouterLink"),k=c("ButtonBackCloseCancel"),y=c("VueFooter"),v=c("ResponsiveWidthWrapper");return l(),b(v,null,{default:u(()=>[a("h1",I,s(e.$t("groups.groups")),1),a("div",L,s(e.$t("groups.manage_groups_legend")),1),a("div",W,[t(d,{class:"is-link mt-5",to:{name:"createGroup"}},{default:u(()=>[t(n,{icon:["fas","plus-circle"]}),_(" "+s(e.$t("groups.create_group")),1)]),_:1})]),i(o).isEmpty?h("",!0):(l(),m("div",A,[(l(!0),m(F,null,R(i(o).withoutTheAllGroup,r=>(l(),m("div",{key:r.id,class:"group-item is-size-5 is-size-6-mobile"},[_(s(r.name)+" ",1),t(i(N),null,{default:u(({mode:B})=>[a("button",{class:V(["button tag is-pulled-right",B=="dark"?"is-dark":"is-white"]),onClick:x=>i(o).delete(r.id),title:e.$t("commons.delete")},s(e.$t("commons.delete")),11,S)]),_:2},1024),t(d,{to:{name:"editGroup",params:{groupId:r.id}},class:"has-text-grey px-1",title:e.$t("commons.rename")},{default:u(()=>[t(n,{icon:["fas","pen-square"]})]),_:2},1032,["to","title"]),a("span",T,s(r.twofaccounts_count)+" "+s(e.$t("twofaccounts.accounts")),1)]))),128)),a("div",M,s(e.$t("groups.deleting_group_does_not_delete_accounts")),1)])),i(p)&&i(o).isEmpty?(l(),m("div",U,[a("span",j,[t(n,{icon:["fas","spinner"],spin:""})])])):h("",!0),t(y,{showButtons:!0},{default:u(()=>[t(k,{returnTo:{name:"accounts"},action:"close"})]),_:1})]),_:1})}}};export{J as default};
|