-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
2,458 additions
and
2,869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Lighthouse Report Cron | ||
on: | ||
schedule: | ||
- cron: '0 6 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: 'Environment to run LHCI against' | ||
required: false | ||
default: 'prod' | ||
type: choice | ||
options: | ||
- stage | ||
- prod | ||
jobs: | ||
lhci: | ||
name: Lighthouse Report - ${{ inputs.environment != null && inputs.environment || 'prod' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 20.9.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.9.x | ||
- name: Run Lighthouse CI | ||
run: | | ||
npm install -g @lhci/[email protected] | ||
npm run lighthouse | ||
env: | ||
LIGHTHOUSE_COLLECT_URL: ${{ secrets.LIGHTHOUSE_COLLECT_URL }} | ||
- name: Report results | ||
run: npm run cron:report-lighthouse-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,6 @@ next-env.d.ts | |
# Glean | ||
.venv | ||
/src/telemetry/generated/ | ||
|
||
# Lighthouse CI | ||
.lighthouseci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
const pages = ["/", "/breaches", "/breach-details/InternetArchive"]; | ||
|
||
const collectBaseUrl = | ||
process.env.LIGHTHOUSE_COLLECT_URL ?? "http://localhost:3000"; | ||
const isLocalhost = new URL(collectBaseUrl).hostname === "localhost"; | ||
|
||
const lighthouseConfig = { | ||
ci: { | ||
collect: { | ||
startServerCommand: isLocalhost && "npm run start", | ||
url: pages.map((pathname) => `${collectBaseUrl}${pathname}`), | ||
numberOfRuns: 3, | ||
}, | ||
upload: { | ||
target: "filesystem", | ||
outputDir: ".lighthouseci", | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = lighthouseConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,17 @@ | |
### Dialog window that allows a user to add a new email address to be monitored | ||
|
||
add-email-add-another-heading = הוספת כתובת דוא״ל נוספת | ||
# $total is the number of emails a user is allowed to add | ||
add-email-your-account-includes = | ||
{ $total -> | ||
[one] החשבון שלך כולל ניטור של כתובת דוא״ל אחת. כדאי להוסיף כתובת דוא״ל חדשה כדי לבדוק אם היא הייתה מעורבת בדליפה. | ||
*[other] החשבון שלך כולל ניטור של עד { $total } כתובות דוא״ל. כדאי להוסיף כתובת דוא״ל חדשה כדי לבדוק אם היא הייתה מעורבת בדליפה. | ||
} | ||
add-email-address-input-label = כתובת דוא״ל | ||
add-email-send-verification-button = שליחת קישור לאימות | ||
# $email is the newly added email address. $settings-href is the URL for the Settings page. HTML tags should not be translated, e.g. `<a>` | ||
# This string will be deprecated when the new Plus plan is live. | ||
add-email-verify-the-link = נא לאמת את הקישור שנשלח אל הכתובת { $email } כדי להוסיף אותה אל { -brand-fx-monitor }. ניתן לנהל את כל כתובות הדוא״ל ב<a { $settings-href }>הגדרות</a>. | ||
# Variables: | ||
# $email (string) - An email address submitted by the user for monitoring, e.g. `[email protected]` | ||
add-email-verify-the-link-2 = נא לאמת את הקישור שנשלח לכתובת <b>{ $email }</b> כדי להוסיף אותה אל { -brand-mozilla-monitor }. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.