mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-19 19:28:02 -05:00
53 lines
2.1 KiB
HTML
53 lines
2.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Cleanuparr</title>
|
|
<script>
|
|
(function() {
|
|
// Check if we're running with a custom base path
|
|
// This should be injected by the server when serving the index.html
|
|
// For now, we'll detect if we're at root level or have a configured base path
|
|
|
|
let basePath = '/';
|
|
|
|
// If the server has injected a base path, use it
|
|
if (window['_server_base_path']) {
|
|
basePath = window['_server_base_path'];
|
|
} else {
|
|
// For development or when no base path is configured, always use root
|
|
// Don't try to extract base path from current URL as that breaks SPA routing
|
|
basePath = '/';
|
|
}
|
|
|
|
// Store for Angular to use
|
|
window['_app_base'] = basePath;
|
|
|
|
// Dynamically set base href for static assets (JS chunks, CSS, etc.)
|
|
const baseTag = document.createElement('base');
|
|
baseTag.href = basePath === '/' ? '/' : basePath + '/';
|
|
document.head.appendChild(baseTag);
|
|
})();
|
|
</script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="icon" type="image/x-icon" href="icons/128.png">
|
|
<link rel="manifest" href="manifest.webmanifest">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
|
<meta name="theme-color" content="#1976d2">
|
|
<link rel="manifest" href="manifest.webmanifest">
|
|
<meta name="theme-color" content="#1976d2">
|
|
|
|
<!-- iOS support -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="Cleanuparr">
|
|
<link rel="apple-touch-icon" href="icons/apple-touch-icon.png">
|
|
</head>
|
|
<body>
|
|
<app-root></app-root>
|
|
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
|
</body>
|
|
</html>
|