• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / #13209

pending completion
#13209

push

circleci

toufali
Merge branch 'main' into MNTOR-1509-fix-broken-ga

282 of 1659 branches covered (17.0%)

Branch coverage included in aggregate %.

107 of 107 new or added lines in 9 files covered. (100.0%)

959 of 4499 relevant lines covered (21.32%)

1.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/views/guestLayout.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import AppConstants from '../app-constants.js'
6

7
import { getMessage, getLocale } from '../utils/fluent.js'
8

9
/**
10
 * @template {object} PartialParameters
11
 * @param {ViewPartialData<PartialParameters>} data
12
 * @returns {string}
13
 */
14
const guestLayout = data => `
×
15
<!doctype html>
16
<html lang=${getLocale()}>
17
  <head>
18
    <title>${getMessage('brand-fx-monitor')}</title>
19
    <style>html {display: none;}</style>
20

21
    <meta charset='utf-8'>
22
    <meta name='viewport' content='width=320, initial-scale=1'>
23
    <meta name='description' content='${getMessage('meta-desc')}'>
24
    <meta name='twitter:card' content='summary_large_image'>
25
    <meta name='twitter:title' content='${getMessage('brand-fx-monitor')}'>
26
    <meta name='twitter:description' content='${getMessage('meta-desc')}'>
27
    <meta name='twitter:image' content='${AppConstants.SERVER_URL}/images/og-image.webp'>
28
    <meta property='og:title' content='${getMessage('brand-fx-monitor')}'>
29
    <meta property='og:description' content='${getMessage('meta-desc')}'>
30
    <meta property='og:site_name' content='${getMessage('brand-fx-monitor')}'>
31
    <meta property='og:type' content='website'>
32
    <meta property='og:url' content='${AppConstants.SERVER_URL}'>
33
    <meta property='og:image' content='${AppConstants.SERVER_URL}/images/og-image.webp'>
34

35
    <link rel='preload' href='/fonts/Metropolis-Bold.woff2' as='font' type='font/woff2' crossorigin>
36
    <link rel='preload' href='/fonts/Inter-Regular-latin.woff2' as='font' type='font/woff2' crossorigin>
37
    <link rel='stylesheet' href='/css/index.css' type='text/css'>
38
    <link rel='stylesheet' href='/css/partials/${data.partial.name}.css' type='text/css'>
39
    <link rel='icon' href='/images/favicon-16.webp' sizes='16x16'>
40
    <link rel='icon' href='/images/favicon-32.webp' sizes='32x32'>
41
    <link rel='icon' href='/images/favicon-48.webp' sizes='48x48'>
42
    <link rel='icon' href='/images/favicon-96.webp' sizes='96x96'>
43
    <link rel='icon' href='/images/favicon-144.webp' sizes='144x144'>
44
    <link rel='icon' href='/images/favicon-256.webp' sizes='256x256'>
45
    <link rel='apple-touch-icon' href='/images/apple-touch-icon.webp' sizes='180x180'>
46

47
    <script src='/js/index.js' type='module'></script>
48
  </head>
49
  <body>
50
    <header>
51
      <a href='/'>
52
        <img class='monitor-logo' srcset='/images/monitor-logo-transparent.webp 213w, /images/monitor-logo-transparent@2x.webp 425w' width='213' height='33' alt='${getMessage('brand-fx-monitor')}'>
53
      </a>
54
      <menu>
55
        <li><a href='/user/breaches' data-cta-id='sign-in-1' class='button secondary'>${getMessage('sign-in')}</a></li>
56
      </menu>
57
    </header>
58
    <main data-partial='${data.partial.name}'>
59
      ${data.partial(data)}
60
    </main>
61
    <footer class='site-footer'>
62
      <a href='https://www.mozilla.org' target='_blank'>
63
        <img src='/images/moz-logo-1color-white-rgb-01.svg' width='100' height='29' loading='lazy' alt='${getMessage('mozilla')}'>
64
      </a>
65
      <menu>
66
        <li><a href='/breaches'>${getMessage('footer-nav-all-breaches')}</a></li>
67
        <li><a href='https://support.mozilla.org/kb/firefox-monitor-faq' target='_blank'>FAQ</a></li>
68
        <li><a href='https://www.mozilla.org/privacy/firefox-monitor' target='_blank'>${getMessage('terms-and-privacy')}</a></li>
69
        <li><a href='https://github.com/mozilla/blurts-server' target='_blank'>${getMessage('github')}</a></li>
70
      </menu>
71
    </footer>
72
  </body>
73
</html>
74
`
75

76
export { guestLayout }
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc