2 lines
778 B
JavaScript
2 lines
778 B
JavaScript
import{b as a}from"./Cu5ilWky.js";async function n(t=!1){const s=await a.get(`/dashboard/notifications${t?"?force=true":""}`);return[...s.notifications?.dashboard??[],...s.notifications?.feed??[]]}async function o(t=!1){return(await a.get(`/dashboard/notifications${t?"?force=true":""}`)).notifications?.top??[]}async function i(){return a.get("/dashboard/stats")}async function r(){return a.get("/dashboard/popularity")}async function c(t=!1){return a.get(`/dashboard/feed${t?"?force=true":""}`)}async function f(){const t=await a.get("/system/backups");return Array.isArray(t)?t:t.backups??[]}async function u(t=!1){return a.get("/gpm/updates",t?{flush:"true"}:void 0)}async function d(){return a.get("/systeminfo")}export{n as a,r as b,c,f as d,u as e,d as f,i as g,o as h};
|