PageSourceSearch

https://shiphub.ai/build/assets/Token.28438402.js

js shiphub.ai collected 2026-09-28 06:16:02 UTC 1,930 bytes, 1 lines download raw bytes

1import{a as u,A as h,h as v,c as s,f as e,t as d,F as c,b as m,l as f,w as g,g as p,o,p as y}from"./vendor.4b8c47ab.js";const x={components:{},props:{user_data:null,tokens:{type:Array,default:[]}},setup(n){const{user_data:a,tokens:r}=h(n),t=v(null);return{user_data:a,tokens:r,generate_token:()=>{window.axios.post(route("admin.users.token.generate",{user:a.value.id})).then(l=>{t.value=l.data.token})},token:t}}},b=e("div",{class:"page-header"},null,-1),w={class:"modal"},C={class:"modal_inner"},A={class:"h2"},N={class:"modal_form w-form"},P={key:0},B={class:"bg-gray-100 px-4 py-2 rounded-lg mb-2"},F={class:"flex items-start justify-between"},I={class:"font-bold"},L={class:"flex items-start justify-end"},T=["onClick"],V={key:1},j={key:0},D=e("div",{class:"text-red-500"}," Please copy this token as it will not be displayed again. ",-1),E={class:"bg-gray-100 px-6 py-4 text-base font-mono"},R={key:1},S=e("div",{class:"py-6 text-center italic"},"No current API token",-1),q={class:"w-layout-grid modal_buttons"};function z(n,a,r,t,_,l){const k=p("Link");return o(),s(c,null,[b,e("div",w,[e("div",C,[e("div",null,[e("h2",A,"API Token For "+d(t.user_data.email),1),e("div",N,[t.tokens.length?(o(),s("div",P,[(o(!0),s(c,null,m(t.tokens,i=>(o(),s("div",B,[e("div",F,[e("div",I,d(i.name),1),e("div",null,"Created on "+d(i.date),1)]),e("div",L,[e("div",{class:"text-main-orange cursor-pointer",onClick:G=>n.$inertia.delete(n.route("admin.users.token.revoke",{user:t.user_data.id,token:i.id}))},"revoke",8,T)])]))),256))])):(o(),s("div",V,[t.token?(o(),s("div",j,[D,e("div",E,d(t.token),1)])):(o(),s("div",R,[S,e("div",{onClick:a[0]||(a[0]=(...i)=>t.generate_token&&t.generate_token(...i)),class:"button"}," Click to generate a new API token. ")]))])),e("div",q,[f(k,{href:n.route("admin.users.index"),as:"a",class:""},{default:g(()=>[y(" Done ")]),_:1},8,["href"])])])])])])],64)}const J=u(x,[["render",z]]);export{J as default};

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.