Merged in fix/add-years-to-get-days-until-text-util (pull request #3281)
fix: add years to getDaysUntilText + confirmation number in upcoming stay card * fix: add years to getDaysUntilText + confirmation number in upcoming stay card Approved-by: Erik Tiekstra Approved-by: Matilda Landström
This commit is contained in:
@@ -204,6 +204,7 @@ const icons = [
|
||||
"sports_tennis",
|
||||
"stairs",
|
||||
"star",
|
||||
"sticky_note_2",
|
||||
"straighten",
|
||||
"styler",
|
||||
"support_agent",
|
||||
@@ -306,7 +307,7 @@ async function cleanFontDirs() {
|
||||
await writeFile(
|
||||
join(FONT_DIR, ".auto-generated"),
|
||||
`Auto-generated, do not edit. Use scripts/material-symbols-update.mts to update.\nhash=${hash}\ncreated=${new Date().toISOString()}\n`,
|
||||
{ encoding: "utf-8" }
|
||||
{ encoding: "utf-8" },
|
||||
);
|
||||
}
|
||||
|
||||
@@ -321,11 +322,11 @@ async function updateFontCSS() {
|
||||
file,
|
||||
css.replace(
|
||||
/url\(\/_static\/shared\/fonts\/material-symbols\/rounded[^)]+\)/,
|
||||
`url(/_static/shared/fonts/material-symbols/rounded-${hash}.woff2)`
|
||||
`url(/_static/shared/fonts/material-symbols/rounded-${hash}.woff2)`,
|
||||
),
|
||||
{
|
||||
encoding: "utf-8",
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -345,7 +346,7 @@ async function main() {
|
||||
process.exit(0);
|
||||
} else {
|
||||
console.error(
|
||||
`Unable to find the icon font src URL in CSS response from Google Fonts at ${fontUrl}`
|
||||
`Unable to find the icon font src URL in CSS response from Google Fonts at ${fontUrl}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user