Spaces:
Sleeping
Sleeping
Nathan commited on
Commit ·
7c32afc
1
Parent(s): 129ae24
Official: Set Tiers (Free=1, Pro=2, Ultra=Unlimited)
Browse filesFiles changed (2)
- dashboard/index.html+1-1
- server.js+1-1
423 unmodified lines424425426427428429430423 unmodified linesdocument.getElementById('stat-subs').innerText = totalS.toLocaleString();// Show "Add Another" button if limit not reachedconst limit = (userPlan === 'ultra') ? 999 : (userPlan === 'premium' ? 5 : 2);if (yt.count < limit) {const addBtn = document.createElement('button');addBtn.className = "btn-primary btn-full";423 unmodified lines424425426427428429430423 unmodified linesdocument.getElementById('stat-subs').innerText = totalS.toLocaleString();// Show "Add Another" button if limit not reachedconst limit = (userPlan === 'ultra') ? 999 : (userPlan === 'premium' ? 2 : 1);if (yt.count < limit) {const addBtn = document.createElement('button');addBtn.className = "btn-primary btn-full";
499 unmodified lines500501502503504505506499 unmodified linesconst isAdmin = user?.role === 'admin' || user?.plan === 'ultra';const isPremium = user?.plan === 'premium';const limit = isAdmin ? 999 : (isPremium ? 5 : 2);// 5. Check if this specific channel is already connected to this userconst hasThisChannel = existingChannels?.find(c => c.channel_id === channel.id);499 unmodified lines500501502503504505506499 unmodified linesconst isAdmin = user?.role === 'admin' || user?.plan === 'ultra';const isPremium = user?.plan === 'premium';const limit = isAdmin ? 999 : (isPremium ? 2 : 1);// 5. Check if this specific channel is already connected to this userconst hasThisChannel = existingChannels?.find(c => c.channel_id === channel.id);
dashboard/index.html+1-1
server.js+1-1