Files
BetterDesk/web-nodejs/views/layouts/studio.ejs
T
UNITRONIX b9f60752b1 feat: enhance branding and appearance settings
- Added a modular studio layout with a live preview panel, autosave, server-side appearance profiles, and a built-in theme gallery.
- Expanded Google Fonts picker and enabled custom font uploads (woff2/ttf).
- Updated the appearance tab for real-time changes without full page reloads and introduced a read-only mode for users without edit permissions.
- Improved localization by updating language files with new strings for branding and appearance features.
2026-06-14 10:47:15 +02:00

51 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="<%= lang || 'en' %>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title><%= typeof title !== 'undefined' ? title + ' - ' : '' %><%= appName %></title>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="/branding/favicon.svg">
<!-- Stylesheets -->
<link rel="stylesheet" href="/css/main.css?v=<%= cacheVersion %>">
<link rel="stylesheet" href="/css/theme.css?v=<%= cacheVersion %>">
<link rel="stylesheet" href="/css/branding.css?v=<%= typeof brandingRevision !== 'undefined' ? brandingRevision : cacheVersion %>">
<% if (typeof pageStyles !== 'undefined' && pageStyles.length) { %>
<% pageStyles.forEach(style => { %>
<link rel="stylesheet" href="/css/<%= style %>.css?v=<%= cacheVersion %>">
<% }); %>
<% } %>
<style>
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
.studio-fullpage { display: flex; flex-direction: column; height: 100vh; }
</style>
</head>
<body>
<div class="studio-fullpage">
<%- body %>
</div>
<!-- Scripts -->
<script nonce="<%= cspNonce %>">
window.BetterDesk = {
lang: '<%= lang || "en" %>',
translations: <%- JSON.stringify(translations || {}) %>,
cacheVersion: '<%= cacheVersion %>',
csrfToken: '<%= typeof csrfToken !== "undefined" ? csrfToken : "" %>',
user: <%- JSON.stringify(user || null) %>,
branding: <%- JSON.stringify(branding || {}) %>
};
</script>
<script src="/js/i18n-client.js?v=<%= cacheVersion %>"></script>
<script src="/js/toast.js?v=<%= cacheVersion %>"></script>
<% if (typeof pageScripts !== 'undefined' && pageScripts.length) { %>
<% pageScripts.forEach(script => { %>
<script src="/js/<%= script %>.js?v=<%= cacheVersion %>"></script>
<% }); %>
<% } %>
</body>
</html>