From d6160177187c11397e4cf51dbb970eaa4b2ad385 Mon Sep 17 00:00:00 2001 From: jon r Date: Thu, 3 Apr 2025 13:13:56 +0200 Subject: [PATCH] chore(front): fmt:html --- front/index.html | 179 ++++---- front/public/embed.html | 925 ++++++++++++++++++++-------------------- 2 files changed, 547 insertions(+), 557 deletions(-) diff --git a/front/index.html b/front/index.html index 59ccbe663..092ef0c79 100644 --- a/front/index.html +++ b/front/index.html @@ -1,100 +1,99 @@ - + - - - - - - - Funkwhale - - - - - - - - - - - - + #fake-sidebar.loaded, #fake-content.loaded { + display: none; + } + #orange-square { + width: 56px; + height: 56px; + background-color: #f2711c; + } + #fake-content { + height: 100vh; + flex-grow: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + #fake-content h1 { + margin-bottom: 2em; + } + #fake-content .placeholder { + width: 20em; + max-width: 95%; + } + @media only screen and (max-width: 768px) { + #fake-app { + flex-direction: column; + } + #fake-sidebar { + width: 100%; + height: 56px; + } + } + + - -
-
-
-
-
- -

Loading Funkwhale…

-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
+
+
+
+ +

Loading Funkwhale…

+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- - +
+ + diff --git a/front/public/embed.html b/front/public/embed.html index 484838ce1..f109f21cb 100644 --- a/front/public/embed.html +++ b/front/public/embed.html @@ -1,517 +1,508 @@ - + + + + + + - - - - - + - + Funkwhale Widget - Funkwhale Widget + - + - + const formatDuration = (duration) => { + if (duration === 0) return - + const time = intl.format(new Date(ZERO_DATE + duration * 1e3)) + return time.replace(/^00:/, '') + } - + // Logo component + const Logo = () => ({ $template: '#logo-template' }) - - + // Icon component + const Icon = ({ icon }) => ({ $template: '#icon-template', icon }) -
-
- {{ error.value }} -
-
+ // Media Session + const initializeMediaSession = () => { + if ('mediaSession' in navigator) { + navigator.mediaSession.setActionHandler('play', () => { + player.playing = true + audio.element.play() + }) - +
+