mirror of
https://github.com/svemagie/indiekit-endpoint-youtube.git
synced 2026-04-02 15:54:59 +02:00
feat: add API endpoints reference to bottom of YouTube dashboard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -301,6 +301,30 @@
|
||||
margin-block-start: var(--space-m);
|
||||
}
|
||||
|
||||
/* API endpoints list */
|
||||
.youtube-api-list {
|
||||
font-size: var(--step--1);
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.youtube-api-list li {
|
||||
border-block-end: 1px solid var(--color-border);
|
||||
padding: var(--space-2xs) 0;
|
||||
}
|
||||
|
||||
.youtube-api-list li:last-child {
|
||||
border-block-end: none;
|
||||
}
|
||||
|
||||
.youtube-api-list code {
|
||||
background: var(--color-offset);
|
||||
border-radius: var(--radius-s);
|
||||
font-size: var(--step--2);
|
||||
padding: var(--space-3xs) var(--space-2xs);
|
||||
}
|
||||
|
||||
/* Public link banner */
|
||||
.youtube-public-link {
|
||||
align-items: center;
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
"description": "Vollständigen Kanal auf YouTube anzeigen",
|
||||
"view": "YouTube-Kanal öffnen"
|
||||
},
|
||||
"api": {
|
||||
"title": "API-Endpunkte",
|
||||
"videos": "Neueste Videos (JSON)",
|
||||
"channel": "Kanalinfo (JSON)",
|
||||
"live": "Live-Status (JSON)",
|
||||
"likes": "Synchronisierte Likes (JSON)",
|
||||
"likesDashboard": "Likes-Dashboard"
|
||||
},
|
||||
"likes": {
|
||||
"title": "YouTube Likes",
|
||||
"description": "Verbinde dein YouTube-Konto, um deine gelikten Videos als Like-Beiträge auf deinem Blog zu synchronisieren. Nur neue Likes (nach dem Verbinden) erzeugen Beiträge.",
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
"description": "View full channel on YouTube",
|
||||
"view": "Open YouTube Channel"
|
||||
},
|
||||
"api": {
|
||||
"title": "API Endpoints",
|
||||
"videos": "Latest videos (JSON)",
|
||||
"channel": "Channel info (JSON)",
|
||||
"live": "Live status (JSON)",
|
||||
"likes": "Synced likes (JSON)",
|
||||
"likesDashboard": "Likes dashboard"
|
||||
},
|
||||
"likes": {
|
||||
"title": "YouTube Likes",
|
||||
"description": "Connect your YouTube account to sync your liked videos as like posts on your blog. Only new likes (added after connecting) will create posts.",
|
||||
|
||||
@@ -209,4 +209,15 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{# ── API Endpoints reference ── #}
|
||||
{% call section({ title: __("youtube.api.title") }) %}
|
||||
<ul class="youtube-api-list">
|
||||
<li><a href="{{ mountPath }}/api/videos"><code>{{ mountPath }}/api/videos</code></a> — {{ __("youtube.api.videos") }}</li>
|
||||
<li><a href="{{ mountPath }}/api/channel"><code>{{ mountPath }}/api/channel</code></a> — {{ __("youtube.api.channel") }}</li>
|
||||
<li><a href="{{ mountPath }}/api/live"><code>{{ mountPath }}/api/live</code></a> — {{ __("youtube.api.live") }}</li>
|
||||
<li><a href="{{ mountPath }}/api/likes"><code>{{ mountPath }}/api/likes</code></a> — {{ __("youtube.api.likes") }}</li>
|
||||
<li><a href="{{ mountPath }}/likes"><code>{{ mountPath }}/likes</code></a> — {{ __("youtube.api.likesDashboard") }}</li>
|
||||
</ul>
|
||||
{% endcall %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user