Adds media libraries management view

This commit is contained in:
BinaryAlley committed 2025-01-11 23:11:33 +02:00
1 parent b593cbce93
commit d7c8478101
162 files changed
+3741 -171

No files matched your search

@@ -104,7 +104,6 @@
.dialog-message {
overflow-wrap: break-word;
word-break: break-word;
hyphens: auto;
white-space: pre-wrap;
}
@@ -332,6 +332,7 @@
@media only screen and (max-width: 768px) {
.menubar {
visibility: hidden;
max-height: 0px;
}
#hamburger-menu {
@@ -71,6 +71,11 @@ main {
bottom: calc(100% - 22px); /* full height minus menu height */
}
.cotton-candy {
min-height: 100%;
background-image: radial-gradient(ellipse at 10% 90%, #3c2d83 0%, transparent 55%), radial-gradient(ellipse at 90% 90%, #c33c65 0%, transparent 55%), radial-gradient(ellipse at 90% 10%, #4a74dc 0%, transparent 55%), radial-gradient(ellipse at 10% 10%, #35244f 0%, transparent 55%);
}
.audio-player-container {
position: fixed;
bottom: 0;
@@ -149,6 +154,34 @@ main {
padding: 10px;
}
.media-panel {
border-radius: 5px;
background-color: #00000033;
width: 300px;
height: 200px;
display: flex;
flex-direction: column;
gap: 0.2rem;
cursor: pointer;
user-select: none;
}
.media-panel:hover {
background-color: #00000066;
}
.media-panel img {
width: 100%;
flex-grow: 1;
}
.media-panel span {
height: 26px;
display: flex;
align-items: center;
justify-content: center;
}
#audio-player-full-height-toggle, #audio-player-close {
cursor: pointer;
}
@@ -187,6 +220,13 @@ main {
text-decoration: none !important;
}
.cards-container {
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 0.5rem;
}
.form-container {
display: flex;
flex-direction: column;
@@ -247,13 +287,7 @@ main {
.form-description {
margin-left: 25px;
}
/*
.text-center {
display: flex;
justify-content: center;
width: 100%;
}
*/
.invalid-feedback {
flex: 0 0 100%;
}
@@ -296,7 +330,6 @@ main {
width: 100%;
display: flex;
align-items: center;
/*justify-content: space-between;*/
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-bottom: 1px solid var(--border-color-dark);
@@ -1397,6 +1430,18 @@ main {
text-align: center;
}
.justify-start {
justify-content: flex-start;
}
.justify-center {
justify-content: center;
}
.justify-end {
justify-content: flex-end;
}
.v-align-t {
vertical-align: top;
}
@@ -1424,6 +1469,9 @@ main {
/* For phones */
@media only screen and (max-width: 768px) {
main {
top: 0px;
}
#app {
max-width: 100%;
width: 99.5%;
+11 -3
View File
@@ -252,7 +252,10 @@ function bindNavigationLinks() {
*/
async function handleNavigationAsync(e) {
e.preventDefault();
const url = e.target.href;
const anchor = e.target.closest('a');
if (!anchor)
return;
const url = anchor.href;
await updateContentAsync(url, true);
}
@@ -372,13 +375,16 @@ async function updateContentAsync(url, addToHistory) {
} else {
// wrap inline scripts in a safety check
newScript.textContent = `
(function() {
(async function() {
const safeGetElement = (id) => document.getElementById(id);
const safeAddEventListener = (element, e, handler) => {
if (element)
element.addEventListener(e, handler);
};
${script.textContent}
// call Initialize function, if defined in this script's scope
if (typeof InitializeAsync === 'function')
await InitializeAsync();
})();
`;
}
@@ -401,7 +407,9 @@ async function updateContentAsync(url, addToHistory) {
}
}
// Update language switcher links with the current URL
/**
* Update language switcher links with the current URL
*/
function updateLanguageUrls() {
document.querySelectorAll('a.lang-set').forEach(link => {
const url = new URL(link.href);