PageSourceSearch

https://faptap.net/assets/Badtag.a0391174.js

js faptap.net collected 2026-09-25 22:11:28 UTC 2,863 bytes, 1 lines download raw bytes

1import{d as b,u as l,b as p,K as y,f as n,i as a,m as u,j as r,z as k,n as g,_ as x,k as w,t as m,l as v,h as _,F as T,N as B,v as i,a as z,ar as V,e as N}from"./index.16ba4ea0.js";import{_ as U}from"./Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js";import"./vendor-highcharts.9b480a8e.js";import"https://cdn.jsdelivr.net/npm/[email protected]/dist/buttplug-wasm.mjs";const A={class:"mx-auto max-w-2xl px-4 py-6"},C={key:0,class:"text-md text-center text-green-600 mb-4"},$={key:1,class:"text-md text-center text-red-600 mb-4"},S={key:2,class:"bg-zinc-800 rounded-lg divide-y divide-zinc-700 shadow"},j={class:"p-4 grid grid-cols-1 sm:grid-cols-6 items-center gap-2"},F={class:"sm:col-span-2"},M={class:"font-medium text-zinc-100 truncate"},D={class:"text-sm text-zinc-400 truncate"},q={class:"sm:col-span-4 flex items-center justify-start sm:justify-end gap-2 text-sm font-medium text-zinc-300"},E={key:3,class:"bg-zinc-800 rounded-lg divide-y divide-zinc-700 shadow"},G=b({__name:"Badtag",setup(H){const{getUpdateBadTags:h}=l(),d=p(""),t=p("");function f(c,e){const s=c.trim();if(!c){t.value="please refresh the page and try again";return}z.admin.addRemoveBadTag(s,e).then(async o=>{t.value=o,l().badTags=await h()}).catch(o=>t.value=o).finally(()=>{setTimeout(()=>{t.value=""},2e3),d.value=""})}return y(()=>{V("Admin Area - Manage bad-tags"),N({meta:[{name:"description",content:"Internal administrative panel for managing bad-tags."}],link:[{rel:"canonical",href:"https://faptap.net/admin"}]})}),(c,e)=>(i(),n("div",A,[e[4]||(e[4]=a("h1",{class:"text-2xl font-semibold text-center text-white mb-1"},[u(" Manage Bad Tags "),a("small",{class:"block text-sm text-zinc-400 font-normal"},"Admin access only")],-1)),a("form",{class:"flex flex-col sm:flex-row items-start sm:items-center gap-3 my-4",onSubmit:e[1]||(e[1]=w(s=>f(d.value,!1),["prevent"]))},[r(k,{autofocus:"",required:"",placeholder:"add tag here",type:"text",class:"flex-1 w-full",modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=s=>d.value=s)},null,8,["modelValue"]),r(x,{type:"submit",theme:"blue",class:"shrink-0 w-full sm:w-auto"},{default:g(()=>[...e[2]||(e[2]=[u("Add",-1)])]),_:1})],32),t.value=="Tags Updated"?(i(),n("p",C,m(t.value),1)):v("",!0),t.value&&t.value!="Tags Updated"?(i(),n("p",$,m(t.value),1)):v("",!0),e[5]||(e[5]=a("h1",{class:"text-xl font-semibold text-white mb-1"},"BadTags list",-1)),_(l)().badTags?(i(),n("div",S,[(i(!0),n(T,null,B(_(l)().badTags,s=>(i(),n("div",j,[a("div",F,[a("div",M,m(s.name),1),a("div",D,m(s.id),1)]),a("div",q,[r(x,{onClick:o=>f(s.id,!0),theme:"red",class:"shrink-0"},{default:g(()=>[...e[3]||(e[3]=[u("Delete",-1)])]),_:1},8,["onClick"])])]))),256))])):(i(),n("div",E,[r(U,{title:"Badtags Not Found",message:"Sorry, the badtags you are looking for doesnot seem to exist or may have been removed."})]))]))}});export{G 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.