mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 13:45:59 +01:00
2 lines
5.5 KiB
JavaScript
Vendored
2 lines
5.5 KiB
JavaScript
Vendored
import{P as E,u as N,b as U,R as D,r as h,o as M,e as g,f as n,k as R,p as k,h as s,t as o,m as l,n as m,j as r,i as a,U as S,g as i,D as v,F as C,G as $,l as p,I as W}from"./app-347ef106.js";import{s as j}from"./systemService-c3f13e84.js";/*! 2FAuth version 5.0.3 - Copyright (c) 2023 Bubka - https://github.com/Bubka/2FAuth */const G={class:"title has-text-grey-dark"},O={class:"block"},Y=s("span",{class:"is-size-5"},"2FAuth",-1),q=s("br",null,null,-1),H=s("img",{class:"about-logo",src:"logo.svg",alt:"2FAuth logo"},null,-1),J=s("p",{class:"block"},[r(" ©Bubka "),s("a",{class:"is-size-7",href:"https://github.com/Bubka/2FAuth/blob/master/LICENSE"},"AGPL-3.0 license")],-1),K={class:"title is-5 has-text-grey-light"},Q={class:"buttons"},X={class:"icon is-small"},Z=s("span",null,"Github",-1),ss={class:"icon is-small"},ts=s("span",null,"Docs",-1),es={class:"icon is-small"},os=s("span",null,"Demo",-1),as={class:"icon is-small"},ns=s("span",null,"API",-1),is={class:"title is-5 has-text-grey-light"},ls={class:"block"},rs=s("a",{href:"https://docs.2fauth.app/credits/"},"Laravel, Bulma CSS, Vue.js and more",-1),cs=s("a",{href:"https://fontawesome.com/"},"Font Awesome",-1),us=s("a",{class:"is-size-7",href:"https://fontawesome.com/license/free"},"(CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)",-1),ds=s("a",{href:"https://2fa.directory/"},"2FA Directory",-1),hs=s("a",{class:"is-size-7",href:"https://github.com/2factorauth/twofactorauth/blob/master/LICENSE.md"},"(MIT License)",-1),_s={class:"title is-5 has-text-grey-light"},ms={key:0,class:"about-debug box is-family-monospace is-size-7"},ps=["aria-label"],fs=["value"],bs={key:1,class:"about-debug box is-family-monospace is-size-7 has-text-warning-dark"},gs={key:2,class:"title is-5 has-text-grey-light"},ks={key:3,class:"about-debug box is-family-monospace is-size-7"},ys=["aria-label"],vs=["value"],Cs={key:4,class:"title is-5 has-text-grey-light"},$s={key:5,class:"about-debug box is-family-monospace is-size-7"},As=["aria-label"],Bs=["value"],Is={__name:"About",setup(Fs){const x=E("2fauth"),I=N(),w=U(),{copy:T}=D({legacy:!0}),z=I.options.history.state.back,_=h(),A=h(null),f=h(!1),B=h(null),b=h(!1),F=h(null);M(()=>{j.getSystemInfos({returnError:!0}).then(t=>{_.value=t.data.common,t.data.admin_settings&&(b.value=t.data.admin_settings),t.data.user_preferences&&(f.value=t.data.user_preferences)}).catch(()=>{_.value=null})});function y(t){T(t),w.success({text:W("commons.copied_to_clipboard")})}return(t,d)=>{const u=g("FontAwesomeIcon"),L=g("ButtonBackCloseCancel"),P=g("VueFooter"),V=g("ResponsiveWidthWrapper");return n(),R(V,null,{default:k(()=>[s("h1",G,o(t.$t("commons.about")),1),s("p",O,[l(a(S),null,{default:k(({mode:e})=>[s("span",{class:m(e=="dark"?"has-text-white":"has-text-black")},[Y,r(" v"+o(a(x).version),1)],2)]),_:1}),q,r(" "+o(t.$t("commons.2fauth_teaser")),1)]),H,J,s("h2",K,o(t.$t("commons.resources")),1),s("div",Q,[l(a(S),null,{default:k(({mode:e})=>[s("a",{class:m(["button",{"is-dark":e=="dark"}]),href:"https://github.com/Bubka/2FAuth",target:"_blank"},[s("span",X,[l(u,{icon:["fab","github-alt"]})]),Z],2),s("a",{class:m(["button",{"is-dark":e=="dark"}]),href:"https://docs.2fauth.app/",target:"_blank"},[s("span",ss,[l(u,{icon:["fas","book"]})]),ts],2),s("a",{class:m(["button",{"is-dark":e=="dark"}]),href:"https://demo.2fauth.app/",target:"_blank"},[s("span",es,[l(u,{icon:["fas","flask"]})]),os],2),s("a",{class:m(["button",{"is-dark":e=="dark"}]),href:"https://docs.2fauth.app/resources/rapidoc.html",target:"_blank"},[s("span",as,[l(u,{icon:["fas","code"]})]),ns],2)]),_:1})]),s("h2",is,o(t.$t("commons.credits")),1),s("p",ls,[s("ul",null,[s("li",null,[r(o(t.$t("commons.made_with"))+" ",1),rs]),s("li",null,[r(o(t.$t("commons.ui_icons_by"))+" ",1),cs,r(" "),us]),s("li",null,[r(o(t.$t("commons.logos_by"))+" ",1),ds,r(" "),hs])])]),s("h2",_s,o(t.$t("commons.environment")),1),a(_)?(n(),i("div",ms,[s("button",{id:"btnCopyEnvVars","aria-label":t.$t("commons.copy_to_clipboard"),class:"button is-like-text is-pulled-right is-small is-text",onClick:d[0]||(d[0]=v(e=>y(a(A).innerText),["stop"]))},[l(u,{icon:["fas","copy"]})],8,ps),s("ul",{ref_key:"listInfos",ref:A,id:"listInfos"},[(n(!0),i(C,null,$(a(_),(e,c)=>(n(),i("li",{value:e,key:c},[s("b",null,o(c),1),r(": "+o(e),1)],8,fs))),128))],512)])):a(_)===null?(n(),i("div",bs,o(t.$t("errors.error_during_data_fetching")),1)):p("",!0),a(b)?(n(),i("h2",gs,o(t.$t("settings.admin_settings")),1)):p("",!0),a(b)?(n(),i("div",ks,[s("button",{id:"btnCopyAdminSettings","aria-label":t.$t("commons.copy_to_clipboard"),class:"button is-like-text is-pulled-right is-small is-text",onClick:d[1]||(d[1]=v(e=>y(a(F).innerText),["stop"]))},[l(u,{icon:["fas","copy"]})],8,ys),s("ul",{ref_key:"listAdminSettings",ref:F,id:"listAdminSettings"},[(n(!0),i(C,null,$(a(b),(e,c)=>(n(),i("li",{value:e,key:c},[s("b",null,o(c),1),r(": "+o(e),1)],8,vs))),128))],512)])):p("",!0),a(f)?(n(),i("h2",Cs,o(t.$t("settings.user_preferences")),1)):p("",!0),a(f)?(n(),i("div",$s,[s("button",{id:"btnCopyUserPreferences","aria-label":t.$t("commons.copy_to_clipboard"),class:"button is-like-text is-pulled-right is-small is-text",onClick:d[2]||(d[2]=v(e=>y(a(B).innerText),["stop"]))},[l(u,{icon:["fas","copy"]})],8,As),s("ul",{ref_key:"listUserPreferences",ref:B,id:"listUserPreferences"},[(n(!0),i(C,null,$(a(f),(e,c)=>(n(),i("li",{value:e,key:c},[s("b",null,o(c),1),r(": "+o(e),1)],8,Bs))),128))],512)])):p("",!0),l(P,{showButtons:!0},{default:k(()=>[l(L,{returnTo:{path:a(z)},action:"back"},null,8,["returnTo"])]),_:1})]),_:1})}}};export{Is as default};
|