initial commit

This commit is contained in:
2023-12-12 19:31:35 -05:00
commit 964dbed416
15 changed files with 3426 additions and 0 deletions

16
client/pages/cancel.js Normal file
View File

@ -0,0 +1,16 @@
async function showPage({ rootEl, peertubeHelpers }) {
// Redirect to login page if not auth
if (!peertubeHelpers.isLoggedIn()) return (window.location.href = "/login");
const settings = await peertubeHelpers.getSettings();
const description = await peertubeHelpers.markdownRenderer.enhancedMarkdownToHTML(settings["sell-cancel-description"]);
rootEl.innerHTML = `
<div class="orion-content text-center mt-5">
<h1>${await peertubeHelpers.translate("Subscription canceled.")}</h1>
<p>${description}</p>
</div>
`;
}
export { showPage };