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

mozilla / blurts-server / #13051

pending completion
#13051

push

circleci

Vinnl
Add a bunch of initial type annotations

282 of 1619 branches covered (17.42%)

Branch coverage included in aggregate %.

34 of 34 new or added lines in 6 files covered. (100.0%)

959 of 4334 relevant lines covered (22.13%)

1.84 hits per line

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

0.0
/src/views/partials/add-email.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 { getMessage } from '../../utils/fluent.js'
6

7
/**
8
 * @typedef {object} PartialData
9
 * @property {string} csrfToken
10
 * @property {number} emailLimit
11
 */
12

13
/**
14
 * @param {PartialData} data
15
 * @returns string
16
 */
17
export const addEmail = data => `
×
18
<header>
19
  <button class='close'></button>
20
  <img src='/images/dialog-email-clouds.svg'>
21
  <h2>${getMessage('add-email-add-another-heading')}</h2>
22
</header>
23
<form>
24
  <p>${getMessage('add-email-your-account-includes', { total: data.emailLimit })}</p>
25
  <input type='hidden' name='csrf-token' value='${data.csrfToken}'>
26
  <label class='text-field'>
27
    <span>${getMessage('add-email-address-input-label')}</span>
28
    <input type='email' name='email-address' required>
29
  </label>
30
  <button class='primary' type='submit' name='email-submit'>${getMessage('add-email-send-verification-button')}</button>
31
</form>
32
<template data-success>
33
  <p class='add-email-success'>${getMessage('add-email-verify-the-link', {
34
     email: '<b class="current-email"></b>',
35
     'settings-href': 'href="/user/settings"'
36
    })}</p>
37
</template>
38
`
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