Brozy123 commited on
Commit
e4e2d9d
·
verified ·
1 Parent(s): 7758df0

Update dashboard.html

Browse files
Files changed (1) hide show
  1. dashboard.html +123 -1
dashboard.html CHANGED
@@ -585,6 +585,128 @@ input:checked + .slider:before {
585
  <p>Give your server the ultimate match management experience with lineup boards, formations, match tracking, and more.</p>
586
  <a class="invite-btn" id="invite-link" href="#" target="_blank">
587
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
588
  <span class="slider"></span>
589
  </label>
590
  <span style="font-size:14px; color:var(--text-mid)">Enabled</span>
@@ -713,7 +835,7 @@ function showDashboard() {
713
  console.log("Tab focused, refreshing dashboard data...");
714
  refreshAll();
715
  });
716
-
717
  document.addEventListener('visibilitychange', () => {
718
  if (document.visibilityState === 'visible') {
719
  refreshAll();
 
585
  <p>Give your server the ultimate match management experience with lineup boards, formations, match tracking, and more.</p>
586
  <a class="invite-btn" id="invite-link" href="#" target="_blank">
587
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></svg>
588
+ Invite to Discord
589
+ </a>
590
+ </div>
591
+ <div class="panel">
592
+ <div class="panel-header"><h3>🔒 Required Permissions</h3></div>
593
+ <div class="actions-grid">
594
+ <div class="action-card" style="cursor:default">
595
+ <div class="action-icon">💬</div>
596
+ <h4>Send Messages</h4>
597
+ <p>Post lineup boards, match polls, and announcements.</p>
598
+ </div>
599
+ <div class="action-card" style="cursor:default">
600
+ <div class="action-icon">👤</div>
601
+ <h4>Manage Roles</h4>
602
+ <p>Assign and manage staff whitelist roles.</p>
603
+ </div>
604
+ <div class="action-card" style="cursor:default">
605
+ <div class="action-icon">📌</div>
606
+ <h4>Manage Messages</h4>
607
+ <p>Clear messages, pin important updates, bulk delete.</p>
608
+ </div>
609
+ <div class="action-card" style="cursor:default">
610
+ <div class="action-icon">🔒</div>
611
+ <h4>Manage Channels</h4>
612
+ <p>Lock/unlock channels during matches or events.</p>
613
+ </div>
614
+ </div>
615
+ </div>
616
+ </div>
617
+
618
+ <!-- ===== LEAGUE PAGE ===== -->
619
+ <div class="page" id="page-league">
620
+ <div class="topbar"><h2>League Center</h2></div>
621
+ <div class="invite-box" style="background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);">
622
+ <h3 style="color: #000;">Join the Official League</h3>
623
+ <p style="color: rgba(0,0,0,0.8);">Compete against the best teams and players. Winner receives exclusive premium features for FriendlyBot!</p>
624
+ <a class="invite-btn" href="https://discord.gg/vpHd4Xfm" target="_blank" style="color: #FFA500;">
625
+ <svg viewBox="0 0 24 24" fill="currentColor" style="width:20px; height:20px;"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"/></svg>
626
+ Join Discord League
627
+ </a>
628
+ </div>
629
+ <div class="panel">
630
+ <div class="panel-header"><h3>🏆 League Info</h3></div>
631
+ <div class="panel-body" style="padding: 24px;">
632
+ <p style="margin-bottom: 20px; color: var(--text-mid); line-height: 1.6;">The FriendlyBot League is the premier competition for teams using our bot. Showcase your skills, climb the rankings, and earn special rewards.</p>
633
+
634
+ <div class="actions-grid" style="padding: 0; margin-bottom: 30px;">
635
+ <div class="action-card" style="cursor:default">
636
+ <div class="action-icon">💎</div>
637
+ <h4>Premium Features</h4>
638
+ <p>Winners gain access to exclusive bot features, custom themes, and advanced analytics.</p>
639
+ </div>
640
+ <div class="action-card" style="cursor:default">
641
+ <div class="action-icon">📅</div>
642
+ <h4>Weekly Matches</h4>
643
+ <p>Scheduled matches every weekend with full stat tracking and automated lineups.</p>
644
+ </div>
645
+ </div>
646
+
647
+ <div style="text-align: center; padding: 20px; border-top: 1px solid var(--border);">
648
+ <a href="/league" class="invite-btn" style="background: var(--accent); color: white;">
649
+ Visit Full League Website
650
+ </a>
651
+ <p style="font-size: 12px; color: var(--text-dim); margin-top: 12px;">View teams, rosters, and full standings on the official league page.</p>
652
+ </div>
653
+ </div>
654
+ </div>
655
+ </div>
656
+
657
+ <!-- ===== SERVER SETTINGS PAGE ===== -->
658
+ <div class="page" id="page-server-settings">
659
+ <div class="topbar">
660
+ <h2 id="settings-guild-name">Server Settings</h2>
661
+ <button class="invite-btn" onclick="showPage('servers')" style="padding:8px 16px; font-size:13px">Back to List</button>
662
+ </div>
663
+
664
+ <div class="panel">
665
+ <div class="panel-header"><h3>⚙️ General Configuration</h3></div>
666
+ <div class="panel-body" style="padding: 24px;">
667
+ <div style="margin-bottom: 32px;">
668
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Command Prefix</label>
669
+ <div style="display:flex; gap:10px">
670
+ <input type="text" id="config-prefix" placeholder="!" style="width:100px; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:white; font-size:16px; outline:none">
671
+ </div>
672
+ <p style="font-size:12px; color:var(--text-dim); margin-top:10px">The prefix used to trigger message-based commands (e.g. ! or . or ?)</p>
673
+ </div>
674
+
675
+ <div style="border-top:1px solid var(--border); padding-top:32px; margin-bottom: 32px;">
676
+ <h4 style="margin-bottom:16px; font-size:15px; color:var(--accent)">🤖 Auto Friendly System</h4>
677
+ <div style="display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:24px">
678
+ <div>
679
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Feature Status</label>
680
+ <div style="display:flex; align-items:center; gap:12px">
681
+ <label class="switch">
682
+ <input type="checkbox" id="config-auto-enabled">
683
+ <span class="slider"></span>
684
+ </label>
685
+ <span style="font-size:14px; color:var(--text-mid)">Enabled</span>
686
+ </div>
687
+ </div>
688
+ <div>
689
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Interval (Minutes)</label>
690
+ <input type="number" id="config-auto-interval" placeholder="40" style="width:100%; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:white; outline:none">
691
+ </div>
692
+ <div>
693
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Target Channel</label>
694
+ <select id="config-auto-channel" style="width:100%; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:white; outline:none">
695
+ <option value="">Select a channel...</option>
696
+ </select>
697
+ </div>
698
+ </div>
699
+ <p style="font-size:12px; color:var(--text-dim); margin-top:16px">When enabled, the bot will automatically post a friendly match poll in the selected channel at the specified interval.</p>
700
+ </div>
701
+
702
+ <div style="border-top:1px solid var(--border); padding-top:32px; margin-bottom: 32px;">
703
+ <h4 style="margin-bottom:16px; font-size:15px; color:var(--accent)">📢 Broadcast & Announcements</h4>
704
+ <div style="display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:24px">
705
+ <div>
706
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Receive Broadcasts</label>
707
+ <div style="display:flex; align-items:center; gap:12px">
708
+ <label class="switch">
709
+ <input type="checkbox" id="config-post-enabled">
710
  <span class="slider"></span>
711
  </label>
712
  <span style="font-size:14px; color:var(--text-mid)">Enabled</span>
 
835
  console.log("Tab focused, refreshing dashboard data...");
836
  refreshAll();
837
  });
838
+
839
  document.addEventListener('visibilitychange', () => {
840
  if (document.visibilityState === 'visible') {
841
  refreshAll();