PageSourceSearch

https://evangelisches.online/assets/ApplicationEdit-a2b0f631.js

js evangelisches.online collected 2026-10-03 01:06:03 UTC 2,969 bytes, 2 lines download raw bytes

1import{l as D,b as h,c as B,K as m,H as N,I as T,B as i,C as n,O as t,F as V,v as l,M as I,G as s,u as _,D as v,R as F,E as f}from"./vue-router-dc26212d.js";import{a as y}from"./axios-3a517bc4.js";import{_ as H}from"./ApplicationForm.vue_vue_type_script_setup_true_lang-da7b81f1.js";import{h as M,a as W,j as k}from"./index-53eff6ae.js";import"./useScopes-7e5fccf8.js";import"./lodash-620d3e5c.js";import"./standardized-audio-context-65f94bf5.js";import"./moment-fbc5633a.js";import"./jquery-9960ef08.js";import"./dompurify-9d2bf633.js";const j={class:"main pusher"},G={class:"ui vertical stripe segment"},K={class:"ui text container"},L={key:0,class:"ui inverted active dimmer"},O=t("div",{class:"ui loader"},null,-1),R=[O],U={class:"ui header"},q={class:"ui form"},z={class:"field"},J={for:"copy-id"},P={key:0,class:"field"},Q={class:"ui small warning message"},X={class:"header"},Y={for:"copy-secret"},Z={key:1,class:"field"},x={for:"copy-secret"},ee=t("i",{class:"refresh icon"},null,-1),te={class:"ui header"},ue=D({__name:"ApplicationEdit",props:{id:null},setup(E){const p=E,{t:A}=M(),o=h(),g=B(()=>({title:A("components.auth.ApplicationEdit.title")})),a=h(!1),$=async()=>{a.value=!0;try{const e=await y.get(`oauth/apps/${p.id}/`);o.value=e.data}catch(e){k(e)}a.value=!1},b=async()=>{a.value=!0;try{const e=await y.post(`oauth/apps/${p.id}/refresh-token`);o.value=e.data}catch(e){k(e)}a.value=!1};$();const r=W(),d=r.state.auth.applicationSecret;return r.state.auth.applicationSecret=void 0,(e,u)=>{const S=m("router-link"),c=m("copy-input"),w=N("title");return T((i(),n("main",j,[t("div",G,[t("section",K,[a.value?(i(),n("div",L,R)):(i(),n(V,{key:1},[l(S,{to:{name:"settings"}},{default:I(()=>[f(s(e.$t("components.auth.ApplicationEdit.link.settings")),1)]),_:1}),t("h2",U,s(e.$t("components.auth.ApplicationEdit.header.appDetails")),1),t("div",q,[t("p",null,s(e.$t("components.auth.ApplicationEdit.help.appDetails")),1),t("div",z,[t("label",J,s(e.$t("components.auth.ApplicationEdit.label.appId")),1),l(c,{id:"copy-id",value:o.value.client_id},null,8,["value"])]),_(d)?(i(),n("div",P,[t("div",Q,[t("h3",X,s(e.$t("components.auth.ApplicationEdit.header.appSecretWarning")),1),t("p",null,s(e.$t("components.auth.ApplicationEdit.message.appSecretWarning")),1)]),t("label",Y,s(e.$t("components.auth.ApplicationEdit.label.appSecret")),1),l(c,{id:"copy-secret",value:_(d)},null,8,["value"])])):v("",!0),o.value.token!=null?(i(),n("div",Z,[t("label",x,s(e.$t("components.auth.ApplicationEdit.label.accessToken")),1),l(c,{id:"copy-secret",value:o.value.token},null,8,["value"]),t("a",{href:"",onClick:F(b,["prevent"])},[ee,f(" "+s(e.$t("components.auth.ApplicationEdit.button.regenerateToken")),1)])])):v("",!0)]),t("h2",te,s(e.$t("components.auth.ApplicationEdit.header.editApp")),1),l(H,{app:o.value,onUpdated:u[0]||(u[0]=C=>o.value=C)},null,8,["app"])],64))])])])),[[w,g.value.title]])}}});export{ue as default};
2//# sourceMappingURL=ApplicationEdit-a2b0f631.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.