Notification-Bot: Discord-Benachrichtigungen für Streams
- Neues Notification-Plugin mit eigenem Discord-Bot - Admin-Modal im Streaming-Tab für Channel-Konfiguration - Automatische Benachrichtigungen bei Stream-Start/Ende - Stream-Links mit Passwort-Hinweis in Discord-Embeds - Konfigurierbare Events pro Channel (stream_start, stream_end) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b25ae7990b
commit
1cf79ef917
5 changed files with 672 additions and 0 deletions
|
|
@ -471,3 +471,171 @@
|
|||
color: var(--text-normal);
|
||||
border-color: var(--text-faint);
|
||||
}
|
||||
|
||||
/* ── Admin Button ── */
|
||||
.stream-admin-btn {
|
||||
margin-left: auto;
|
||||
padding: 8px;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
line-height: 1;
|
||||
}
|
||||
.stream-admin-btn:hover { color: var(--text-normal); background: var(--bg-tertiary); }
|
||||
|
||||
/* ── Admin Overlay ── */
|
||||
.stream-admin-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, .6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 999;
|
||||
animation: fadeIn .15s ease;
|
||||
}
|
||||
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
|
||||
|
||||
.stream-admin-panel {
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 12px;
|
||||
width: 560px;
|
||||
max-width: 95vw;
|
||||
max-height: 80vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.stream-admin-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--bg-tertiary);
|
||||
}
|
||||
.stream-admin-header h3 { margin: 0; font-size: 16px; color: var(--text-normal); }
|
||||
.stream-admin-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
padding: 4px 8px;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.stream-admin-close:hover { color: var(--text-normal); background: var(--bg-tertiary); }
|
||||
|
||||
/* ── Admin Login ── */
|
||||
.stream-admin-login { padding: 24px 20px; }
|
||||
.stream-admin-login p { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }
|
||||
.stream-admin-login-row { display: flex; gap: 8px; }
|
||||
.stream-admin-login-row .stream-input { flex: 1; }
|
||||
.stream-admin-error { color: #ed4245; font-size: 13px; margin-top: 8px; }
|
||||
|
||||
/* ── Admin Content ── */
|
||||
.stream-admin-content { padding: 16px 20px; overflow-y: auto; }
|
||||
|
||||
.stream-admin-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--bg-tertiary);
|
||||
}
|
||||
.stream-admin-status { font-size: 13px; color: var(--text-muted); }
|
||||
.stream-admin-status b { color: var(--text-normal); }
|
||||
.stream-admin-logout {
|
||||
padding: 4px 12px;
|
||||
border: 1px solid var(--bg-tertiary);
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.stream-admin-logout:hover { color: #ed4245; border-color: #ed4245; }
|
||||
|
||||
.stream-admin-loading, .stream-admin-empty {
|
||||
text-align: center;
|
||||
padding: 32px 16px;
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
.stream-admin-hint { margin: 0 0 12px; color: var(--text-muted); font-size: 13px; }
|
||||
|
||||
/* ── Channel List ── */
|
||||
.stream-admin-channel-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-height: 45vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.stream-admin-channel {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 14px;
|
||||
background: var(--bg-deep);
|
||||
border-radius: var(--radius);
|
||||
gap: 12px;
|
||||
}
|
||||
.stream-admin-channel-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
.stream-admin-channel-name {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-normal);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.stream-admin-channel-guild {
|
||||
font-size: 11px;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
.stream-admin-channel-events {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.stream-admin-event-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 14px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-secondary);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.stream-admin-event-toggle input { display: none; }
|
||||
.stream-admin-event-toggle:hover { color: var(--text-normal); }
|
||||
.stream-admin-event-toggle.active {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ── Actions ── */
|
||||
.stream-admin-actions {
|
||||
margin-top: 16px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.stream-admin-save {
|
||||
padding: 8px 24px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue