fix price and modular 3

This commit is contained in:
2026-02-01 20:38:20 +03:30
parent aded156f04
commit 5ae1b4c40a
287 changed files with 1820 additions and 1722 deletions
+6
View File
@@ -0,0 +1,6 @@
import{M as s,aq as r}from"./B8kXh5Zt.js";const i=async e=>(await s.from("collections").select("*").select("*").order("created_at",{ascending:!1})).data,o=async e=>{const{data:t,error:a}=await s.from("collections").select(`
id, title, parentId:parent_id, created_at,
children:collections!parent_id(
id, title, parentId:parent_id, created_at
)
`).is("parent_id",null);return t},d=async e=>{await r.fetch("collections","insert",{data:e})},l=async e=>{const{data:t,error:a}=await s.rpc("get_collection_descendants",{start_id:e});if(a)throw a;return t.map(c=>c.id)},u=async(e,t)=>r.fetch("collections","update",{data:t,field:"id",value:e}),p=async e=>r.fetch("collections","delete",{field:"id",value:e});export{l as a,o as b,d as c,p as d,i as g,u};