Files
BetterDesk/web-nodejs/views/layouts/base.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

57 lines
2.4 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="description" content="<%= appName %> - <%= appDescription %>">
<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 %>">
<link rel="stylesheet" href="/css/ui-polish.css?v=<%= cacheVersion %>">
<% if (typeof pageStyles !== 'undefined' && pageStyles.length) { %>
<% pageStyles.forEach(style => { %>
<link rel="stylesheet" href="/css/<%= style %>.css?v=<%= cacheVersion %>">
<% }); %>
<% } %>
<!-- Preload critical resources -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
</head>
<body class="<%= typeof bodyClass !== 'undefined' ? bodyClass : '' %>">
<%- body %>
<!-- Toast container -->
<div id="toast-container" class="toast-container"></div>
<!-- Scripts -->
<script nonce="<%= cspNonce %>">
// Global config
window.BetterDesk = {
lang: '<%= lang || "en" %>',
translations: <%- JSON.stringify(translations || {}) %>,
cacheVersion: '<%= cacheVersion %>',
csrfToken: '<%= typeof csrfToken !== 'undefined' ? csrfToken : '' %>',
branding: <%- JSON.stringify(branding || {}) %>
};
</script>
<script src="/js/utils.js?v=<%= cacheVersion %>"></script>
<script src="/js/i18n-client.js?v=<%= cacheVersion %>"></script>
<script src="/js/toast.js?v=<%= cacheVersion %>"></script>
<script src="/js/notifications.js?v=<%= cacheVersion %>"></script>
<script src="/js/app.js?v=<%= cacheVersion %>"></script>
<% if (typeof pageScripts !== 'undefined' && pageScripts.length) { %>
<% pageScripts.forEach(script => { %>
<script src="/js/<%= script %>.js?v=<%= cacheVersion %>"></script>
<% }); %>
<% } %>
</body>
</html>