-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afb022d
commit 78ac596
Showing
12 changed files
with
80 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Database } from "./client.js"; | ||
|
||
export async function getShowInfo(podcastDomain) { | ||
return Database.collection('shows').findOne({ domains: podcastDomain }); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Android story podcast</title> | ||
<title>{{showName}}</title> | ||
<link href="/public/styles.css" rel="stylesheet"> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
<div class="flex justify-center"> | ||
<div id="tabs" hx-target="#tab-contents" role="tablist"> | ||
<button role="tab" aria-controls="tab-contents" aria-selected="true" hx-get="/tab-podcast-list" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none selected"> | ||
Podcasts | ||
</button> | ||
<button role="tab" aria-controls="tab-contents" aria-selected="false" hx-get="/tab-about" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none"> | ||
About | ||
</button> | ||
</div> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
document.getElementById('tabs').addEventListener('click', function (event) { | ||
if (event.target.tagName !== 'BUTTON') return | ||
let currentTab = document.querySelector('[aria-selected=true]'); | ||
currentTab.setAttribute('aria-selected', 'false') | ||
currentTab.classList.remove('selected') | ||
let newTab = event.target | ||
newTab.setAttribute('aria-selected', 'true') | ||
newTab.classList.add('selected') | ||
}) | ||
<div id="tabs" hx-target="#tab-contents" role="tablist"> | ||
<button role="tab" aria-controls="tab-contents" aria-selected="true" hx-get="/tab-podcast-list" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none selected"> | ||
Podcasts | ||
</button> | ||
<button role="tab" aria-controls="tab-contents" aria-selected="false" hx-get="/tab-about" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none"> | ||
About | ||
</button> | ||
</div> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
document.getElementById('tabs').addEventListener('click', function (event) { | ||
if (event.target.tagName !== 'BUTTON') return | ||
let currentTab = document.querySelector('[aria-selected=true]'); | ||
currentTab.setAttribute('aria-selected', 'false') | ||
currentTab.classList.remove('selected') | ||
let newTab = event.target | ||
newTab.setAttribute('aria-selected', 'true') | ||
newTab.classList.add('selected') | ||
}) | ||
</script> | ||
}) | ||
</script> | ||
</div> | ||
<div id="tab-contents" role="tabpanel" hx-get="/tab-podcast-list" hx-trigger="load" | ||
class="p-4"> | ||
<div id="tab-contents" role="tabpanel" hx-get="/tab-podcast-list" hx-trigger="load" class="p-4"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<button hx-swap="outerHTML" hx-post="/admin/podcast/{{slug}}/update-files" | ||
class="common-button w-full px-4 py-2 my-2 transition-all duration-300 ease-in-out" {{#if | ||
isAudioBuildInProgress}}disabled{{/if}}> | ||
Build audio files | ||
</button> | ||
<button hx-swap="outerHTML" hx-post="/admin/podcast/{{slug}}/update-files" | ||
class="common-button w-full px-4 py-2 my-2 transition-all duration-300 ease-in-out" {{#if | ||
isAudioBuildInProgress}}disabled{{/if}}> | ||
Build audio files | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div id="tab-content" role="tabpanel" class="tab-content"> | ||
<p class="text-xl">{{about}}</p> | ||
</div> |