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

mozilla / blurts-server / #13193

pending completion
#13193

push

circleci

toufali
refactor GA analytics to use import module

282 of 1631 branches covered (17.29%)

Branch coverage included in aggregate %.

14 of 14 new or added lines in 1 file covered. (100.0%)

959 of 4393 relevant lines covered (21.83%)

1.82 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
const guestLayout = data => `
×
10
<!doctype html>
11
<html lang=${getLocale()}>
12
  <head>
13
    <title>${getMessage('brand-fx-monitor')}</title>
14
    <style>html {display: none;}</style>
15

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

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

42
    <script src='/js/index.js' type='module'></script>
43
  </head>
44
  <body>
45
    <header>
46
      <a href='/'>
47
        <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')}'>
48
      </a>
49
      <menu>
50
        <li><a href='/user/breaches' data-cta-id='sign-in-1' class='button secondary'>${getMessage('sign-in')}</a></li>
51
      </menu>
52
    </header>
53
    <main data-partial='${data.partial.name}'>
54
      ${data.partial(data)}
55
    </main>
56
    <footer>
57
      <a href='https://www.mozilla.org' target='_blank'>
58
        <img src='/images/moz-logo-1color-white-rgb-01.svg' width='100' height='29' loading='lazy' alt='${getMessage('mozilla')}'>
59
      </a>
60
      <menu>
61
        <li><a href='/breaches'>${getMessage('footer-nav-all-breaches')}</a></li>
62
        <li><a href='https://support.mozilla.org/kb/firefox-monitor-faq' target='_blank'>FAQ</a></li>
63
        <li><a href='https://www.mozilla.org/privacy/firefox-monitor' target='_blank'>${getMessage('terms-and-privacy')}</a></li>
64
        <li><a href='https://github.com/mozilla/blurts-server' target='_blank'>${getMessage('github')}</a></li>
65
      </menu>
66
    </footer>
67
  </body>
68
</html>
69
`
70

71
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