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

mozilla / blurts-server / #13275

pending completion
#13275

push

circleci

rhelmer
MNTOR-1452 - use UPDATE FOR to lock table and prevent race condition when adding email

282 of 1679 branches covered (16.8%)

Branch coverage included in aggregate %.

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

959 of 4548 relevant lines covered (21.09%)

1.76 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 '../appConstants.js'
6
import { getMessage, getLocale } from '../utils/fluent.js'
7

8
/**
9
 * @type {ViewPartial<GuestViewPartialData<any>>}
10
 */
11
const guestLayout = data => `
×
12
<!doctype html>
13
<html lang=${getLocale()}>
14
  <head>
15
    <title>${getMessage('brand-fx-monitor')}</title>
16
    <style>html {display: none;}</style>
17

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

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

44
    <script src='/js/index.js' type='module'></script>
45

46
    <noscript>
47
      <style>
48
        :root {
49
          --enter-transition-opacity: 1;
50
          --enter-transition-y: 0;
51
        }
52
      </style>
53
    </noscript>
54
    ${data.skipPartialModule ? '' : `<script src='/js/partials/${data.partial.name}.js' type='module'></script>`}
×
55
  </head>
56
  <body>
57
    <header>
58
      <a href='/'>
59
        <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')}'>
60
      </a>
61
      <menu>
62
        <li><a href='/user/breaches' data-cta-id='sign-in-1' class='button secondary'>${getMessage('sign-in')}</a></li>
63
      </menu>
64
    </header>
65
    <main data-partial='${data.partial.name}'>
66
      ${data.partial(data)}
67
    </main>
68
    <footer class='site-footer'>
69
      <a href='https://www.mozilla.org' target='_blank'>
70
        <img src='/images/moz-logo-1color-white-rgb-01.svg' width='100' height='29' loading='lazy' alt='${getMessage('mozilla')}'>
71
      </a>
72
      <menu>
73
        <li><a href='/breaches'>${getMessage('footer-nav-all-breaches')}</a></li>
74
        <li><a href='https://support.mozilla.org/kb/firefox-monitor-faq' target='_blank'>FAQ</a></li>
75
        <li><a href='https://www.mozilla.org/privacy/firefox-monitor' target='_blank'>${getMessage('terms-and-privacy')}</a></li>
76
        <li><a href='https://github.com/mozilla/blurts-server' target='_blank'>${getMessage('github')}</a></li>
77
      </menu>
78
    </footer>
79
  </body>
80
</html>
81
`
82

83
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