mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 16:08:46 +00:00
* Move inline web scripts to files and enforce the nginx page policy * Render CSP_* through the nginx image entrypoint and allow blob: in connect-src * Allow CSP_IMG_SRC and document nginx add_header inheritance and connect-src ports * Keep a read-only logo mount from stopping nginx and add optional CSP_REPORT_URI * fix: start nginx when the root or a logo mount is read-only * docs: document the web CSP variables and upgrade steps --------- Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
85 lines
4.4 KiB
HTML
85 lines
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!--
|
|
If you are serving your web app in a path other than the root, change the
|
|
href value below to reflect the base path you are serving from.
|
|
|
|
The path provided below has to start and end with a slash "/" in order for
|
|
it to work correctly.
|
|
|
|
For more details:
|
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
|
|
|
|
This is a placeholder for base href that will be replaced by the value of
|
|
the `--base-href` argument provided to `flutter build`.
|
|
-->
|
|
<base href="$FLUTTER_BASE_HREF">
|
|
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
<meta name="description" content="Twake Mail">
|
|
|
|
<!-- iOS meta tags & icons -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="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="Twake Mail">
|
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/svg" href="favicon.svg"/>
|
|
|
|
<title>Twake Mail</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
<link rel="stylesheet" type="text/css" href="splash/style.css">
|
|
<link rel="stylesheet" type="text/css" href="worker_service/style.css">
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
|
|
|
|
<script type="application/javascript" src="assets/packages/flutter_inappwebview_web/assets/web/web_support.js" defer></script>
|
|
<script type="application/javascript" src="assets/packages/flutter_charset_detector_web/assets/web/jschardet.min.js" defer></script>
|
|
<script src="worker_service/worker_service.js"></script>
|
|
<script src="i18n/translater.js"></script>
|
|
<script src="js/vendor/dotlottie-player/dotlottie-player.mjs" type="module"></script>
|
|
<!-- Load self-hosted Sentry SDK first, then the interceptor that blocks any subsequent
|
|
CDN injection attempted by sentry_flutter at runtime. Order matters: interceptor
|
|
must activate after the SDK bundle so window.Sentry is already populated. -->
|
|
<script src="js/sentry-tracing.min.js?v=1.0.0"></script>
|
|
<script src="js/sentry-interceptor.js?v=1.0.2"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<dotlottie-player class="center" src="/splash/lottie-tmail.json" background="transparent" speed="1" style="width: 176px; height: 176px" direction="1" playmode="forward" autoplay=""></dotlottie-player>
|
|
<img src="splash/img/icon_twp.png" alt="Twake Workplace logo" class="bottom-image">
|
|
|
|
<div class="smart-banner">
|
|
<button class="button close">
|
|
<picture class="close-icon">
|
|
<source srcset="worker_service/img/ic-close-1x.png 1x, worker_service/img/ic-close-2x.png 2x, worker_service/img/ic-close-3x.png 3x, worker_service/img/ic-close-4x.png 4x" media="(prefers-color-scheme: light)">
|
|
<source srcset="worker_service/img/ic-close-1x.png 1x, worker_service/img/ic-close-2x.png 2x, worker_service/img/ic-close-3x.png 3x, worker_service/img/ic-close-4x.png 4x" media="(prefers-color-scheme: dark)">
|
|
<img aria-hidden="true" src="worker_service/img/ic-close-1x.png" alt="">
|
|
</picture>
|
|
</button>
|
|
<div class="banner-content">
|
|
<picture class="twake-mail-icon">
|
|
<source srcset="worker_service/img/tmail-1x.png 1x, worker_service/img/tmail-2x.png 2x, worker_service/img/tmail-3x.png 3x, worker_service/img/tmail-4x.png 4x" media="(prefers-color-scheme: light)">
|
|
<source srcset="worker_service/img/tmail-1x.png 1x, worker_service/img/tmail-2x.png 2x, worker_service/img/tmail-3x.png 3x, worker_service/img/tmail-4x.png 4x" media="(prefers-color-scheme: dark)">
|
|
<img aria-hidden="true" src="worker_service/img/tmail-1x.png" alt="">
|
|
</picture>
|
|
<span>
|
|
<div class="banner-title" id="banner-title-id"></div>
|
|
<div class="banner-description" id="banner-description-id"></div>
|
|
</span>
|
|
<span style="flex: 1"></span>
|
|
<span class="open-button" id="open-button-id"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- This script installs service_worker.js to provide PWA functionality to
|
|
application. For more information, see:
|
|
https://developers.google.com/web/fundamentals/primers/service-workers -->
|
|
<script src="flutter_bootstrap.js"></script>
|
|
<script src="js/vendor/pica.min.js"></script>
|
|
</body>
|
|
</html>
|