Files
intotheeast-com-content/plugins/admin2/app/_app/immutable/chunks/18iuIwwJ.js
T

2 lines
2.1 KiB
JavaScript

import{b as t}from"./Cu5ilWky.js";import{e as g}from"./92N1comP.js";import{r as c}from"./CMqN2HxG.js";async function o(){return t.get("/gpm/plugins")}async function p(e){return t.get(`/gpm/plugins/${e}`)}async function m(e,n){await t.patch(`/config/plugins/${e}`,{enabled:n})}async function l(e){return(await t.get(`/gpm/plugins/${e}/readme`)).content}async function f(e){return(await t.get(`/gpm/plugins/${e}/changelog`)).content}async function h(e){const{data:n,meta:a,headers:s}=await t.requestRaw("GET",`/config/plugins/${e}`);return{data:n,etag:g(s),...c(a)}}async function y(e,n,a){const s={};a&&(s["If-Match"]=`"${a}"`),await t.requestRaw("PATCH",`/config/plugins/${e}`,{body:n,headers:s})}async function d(){return t.get("/gpm/repository/plugins",{per_page:"500"})}async function w(e){return t.post("/gpm/install",{package:e,type:"plugin"})}async function P(e){await t.post("/gpm/remove",{package:e})}async function T(e=!0){return t.get("/gpm/updates",{flush:e?"true":"false"})}async function $(e){return t.post("/gpm/update",{package:e})}async function v(){return t.post("/gpm/update-all",{})}async function k(){return t.post("/gpm/upgrade",{})}async function C(){return t.get("/gpm/themes")}async function R(e){return t.get(`/gpm/themes/${e}`)}async function b(e){await t.patch("/config/system",{pages:{theme:e}})}async function q(e){return(await t.get(`/gpm/themes/${e}/readme`)).content}async function A(e){return(await t.get(`/gpm/themes/${e}/changelog`)).content}async function E(e){const{data:n,meta:a,headers:s}=await t.requestRaw("GET",`/config/themes/${e}`);return{data:n,etag:g(s),...c(a)}}async function I(e,n,a){const s={};a&&(s["If-Match"]=`"${a}"`),await t.requestRaw("PATCH",`/config/themes/${e}`,{body:n,headers:s})}async function x(){return t.get("/gpm/repository/themes",{per_page:"500"})}async function G(e){return t.post("/gpm/install",{package:e,type:"theme"})}async function M(e){await t.post("/gpm/remove",{package:e})}export{h as a,d as b,m as c,l as d,f as e,R as f,p as g,E as h,x as i,I as j,M as k,q as l,A as m,b as n,w as o,o as p,T as q,P as r,y as s,v as t,$ as u,G as v,C as w,k as x};