veza/apps/web/dist_verification/assets/playlistService-Ibr1CVA5.js
senke 04c25aa24f Phase 2 stabilisation: code mort, Modal→Dialog, feature flags, tests, router split, Rust legacy
Bloc A - Code mort:
- Suppression Studio (components, views, features)
- Suppression gamification + services mock (projectService, storageService, gamificationService)
- Mise à jour Sidebar, Navbar, locales

Bloc B - Frontend:
- Suppression modal.tsx deprecated, Modal.stories (doublon Dialog)
- Feature flags: PLAYLIST_SEARCH, PLAYLIST_RECOMMENDATIONS, ROLE_MANAGEMENT = true
- Suppression 19 tests orphelins, retrait exclusions vitest.config

Bloc C - Backend:
- Extraction routes_auth.go depuis router.go

Bloc D - Rust:
- Suppression security_legacy.rs (code mort, patterns déjà dans security/)
2026-02-14 17:23:32 +01:00

1 line
1.9 KiB
JavaScript

import{g as t}from"./index-CYK_b1Uz.js";import{r as l}from"./features-DItyhINc.js";async function w(s){return(await t.post("/playlists",s)).data.playlist}async function c(s){return(await t.get(`/playlists/${s}`)).data.playlist}async function m(s,a){return(await t.put(`/playlists/${s}`,a)).data.playlist}async function P(s){await t.delete(`/playlists/${s}`)}const g=p;async function $(s=1,a=20,o,n,r){const i=Math.max(a,1),e={page:Math.max(s,1),limit:i};return o&&(e.user_id=o),n&&(e.sort_by=n),r&&(e.sort_order=r),(await t.get("/playlists",{params:e})).data}async function _(s,a){return(await t.post(`/playlists/${s}/collaborators`,a)).data}async function b(s,a){await t.delete(`/playlists/${s}/collaborators/${a}`)}async function k(s,a,o){await t.put(`/playlists/${s}/collaborators/${a}`,o)}async function T(s){return l("PLAYLIST_SEARCH"),(await t.get("/playlists/search",{params:s})).data}async function h(s){return l("PLAYLIST_SHARE"),(await t.post(`/playlists/${s}/share`)).data.share_link}async function L(s,a){await t.put(`/playlists/${s}/tracks/reorder`,a)}async function S(s,a){await t.delete(`/playlists/${s}/tracks/${a}`)}async function C(s){return l("PLAYLIST_RECOMMENDATIONS"),Promise.resolve({recommendations:[]})}async function A(s){return(await t.get(`/playlists/${s}/collaborators`)).data.collaborators||[]}async function p(s,a){await t.post(`/playlists/${s}/tracks`,{track_id:a})}async function E(s){return{message:(await t.post(`/playlists/${s}/follow`)).data.message||"Playlist followed",is_following:!0}}async function M(s){return{message:(await t.delete(`/playlists/${s}/follow`)).data.message||"Playlist unfollowed",is_following:!1}}async function R(s){const a=await c(s);return{is_following:a.is_following??!1,follower_count:a.follower_count??0}}export{C as a,R as b,h as c,k as d,_ as e,E as f,A as g,L as h,S as i,p as j,P as k,$ as l,m,c as n,w as o,g as p,b as r,T as s,M as u};