From 7d32c63625ad2e8e7f262cd2dcabd26821910d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20de=20Vasconcelos?= Date: Wed, 3 Apr 2024 15:53:55 +0100 Subject: [PATCH] Move fonts to public --- .../(frontend)/alerts/[alert_id]/opengraph-image.js | 6 +++--- .../app/[locale]/(frontend)/encm/opengraph-image.js | 6 +++--- .../(frontend)/faq/[faq_id]/opengraph-image.js | 6 +++--- .../(frontend)/lines/[line_id]/opengraph-image.js | 6 +++--- .../(frontend)/pip/[pip_id]/opengraph-image.js | 6 +++--- .../[locale]/(frontend)/planner/opengraph-image.js | 6 +++--- .../[locale]/(frontend)/profile/opengraph-image.js | 6 +++--- .../(frontend)/stops/[stop_id]/opengraph-image.js | 6 +++--- .../vehicles/[vehicle_id]/opengraph-image.js | 6 +++--- nextjs/app/[locale]/opengraph-image.js | 6 +++--- nextjs/{assets => public}/fonts/Inter-Black.ttf | Bin nextjs/{assets => public}/fonts/Inter-Bold.ttf | Bin nextjs/{assets => public}/fonts/Inter-ExtraBold.ttf | Bin .../{assets => public}/fonts/Inter-ExtraLight.ttf | Bin nextjs/{assets => public}/fonts/Inter-Light.ttf | Bin nextjs/{assets => public}/fonts/Inter-Medium.ttf | Bin nextjs/{assets => public}/fonts/Inter-Regular.ttf | Bin nextjs/{assets => public}/fonts/Inter-SemiBold.ttf | Bin nextjs/{assets => public}/fonts/Inter-Thin.ttf | Bin 19 files changed, 30 insertions(+), 30 deletions(-) rename nextjs/{assets => public}/fonts/Inter-Black.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-Bold.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-ExtraBold.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-ExtraLight.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-Light.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-Medium.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-Regular.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-SemiBold.ttf (100%) rename nextjs/{assets => public}/fonts/Inter-Thin.ttf (100%) diff --git a/nextjs/app/[locale]/(frontend)/alerts/[alert_id]/opengraph-image.js b/nextjs/app/[locale]/(frontend)/alerts/[alert_id]/opengraph-image.js index cfce8674..d5877baf 100644 --- a/nextjs/app/[locale]/(frontend)/alerts/[alert_id]/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/alerts/[alert_id]/opengraph-image.js @@ -20,9 +20,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/encm/opengraph-image.js b/nextjs/app/[locale]/(frontend)/encm/opengraph-image.js index a449553f..938185ff 100644 --- a/nextjs/app/[locale]/(frontend)/encm/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/encm/opengraph-image.js @@ -19,9 +19,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/faq/[faq_id]/opengraph-image.js b/nextjs/app/[locale]/(frontend)/faq/[faq_id]/opengraph-image.js index 7e09804f..c98ce150 100644 --- a/nextjs/app/[locale]/(frontend)/faq/[faq_id]/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/faq/[faq_id]/opengraph-image.js @@ -21,9 +21,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/lines/[line_id]/opengraph-image.js b/nextjs/app/[locale]/(frontend)/lines/[line_id]/opengraph-image.js index 91abe7cf..ab7cca6d 100644 --- a/nextjs/app/[locale]/(frontend)/lines/[line_id]/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/lines/[line_id]/opengraph-image.js @@ -20,9 +20,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/pip/[pip_id]/opengraph-image.js b/nextjs/app/[locale]/(frontend)/pip/[pip_id]/opengraph-image.js index ae1504c7..37375c2f 100644 --- a/nextjs/app/[locale]/(frontend)/pip/[pip_id]/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/pip/[pip_id]/opengraph-image.js @@ -19,9 +19,9 @@ export default async function Image() { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/planner/opengraph-image.js b/nextjs/app/[locale]/(frontend)/planner/opengraph-image.js index 7e09804f..c98ce150 100644 --- a/nextjs/app/[locale]/(frontend)/planner/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/planner/opengraph-image.js @@ -21,9 +21,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/profile/opengraph-image.js b/nextjs/app/[locale]/(frontend)/profile/opengraph-image.js index b58c86c5..0f69ab2a 100644 --- a/nextjs/app/[locale]/(frontend)/profile/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/profile/opengraph-image.js @@ -20,9 +20,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/stops/[stop_id]/opengraph-image.js b/nextjs/app/[locale]/(frontend)/stops/[stop_id]/opengraph-image.js index 02994dc7..5ee27dd5 100644 --- a/nextjs/app/[locale]/(frontend)/stops/[stop_id]/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/stops/[stop_id]/opengraph-image.js @@ -20,9 +20,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/(frontend)/vehicles/[vehicle_id]/opengraph-image.js b/nextjs/app/[locale]/(frontend)/vehicles/[vehicle_id]/opengraph-image.js index 703bcd5a..1dc21525 100644 --- a/nextjs/app/[locale]/(frontend)/vehicles/[vehicle_id]/opengraph-image.js +++ b/nextjs/app/[locale]/(frontend)/vehicles/[vehicle_id]/opengraph-image.js @@ -20,9 +20,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/app/[locale]/opengraph-image.js b/nextjs/app/[locale]/opengraph-image.js index 8ff48e02..6fce9dbb 100644 --- a/nextjs/app/[locale]/opengraph-image.js +++ b/nextjs/app/[locale]/opengraph-image.js @@ -19,9 +19,9 @@ export default async function Image({ params }) { // A. Setup fonts const customFonts = [ - { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer }, - { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer }, + { name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer }, ]; // diff --git a/nextjs/assets/fonts/Inter-Black.ttf b/nextjs/public/fonts/Inter-Black.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-Black.ttf rename to nextjs/public/fonts/Inter-Black.ttf diff --git a/nextjs/assets/fonts/Inter-Bold.ttf b/nextjs/public/fonts/Inter-Bold.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-Bold.ttf rename to nextjs/public/fonts/Inter-Bold.ttf diff --git a/nextjs/assets/fonts/Inter-ExtraBold.ttf b/nextjs/public/fonts/Inter-ExtraBold.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-ExtraBold.ttf rename to nextjs/public/fonts/Inter-ExtraBold.ttf diff --git a/nextjs/assets/fonts/Inter-ExtraLight.ttf b/nextjs/public/fonts/Inter-ExtraLight.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-ExtraLight.ttf rename to nextjs/public/fonts/Inter-ExtraLight.ttf diff --git a/nextjs/assets/fonts/Inter-Light.ttf b/nextjs/public/fonts/Inter-Light.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-Light.ttf rename to nextjs/public/fonts/Inter-Light.ttf diff --git a/nextjs/assets/fonts/Inter-Medium.ttf b/nextjs/public/fonts/Inter-Medium.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-Medium.ttf rename to nextjs/public/fonts/Inter-Medium.ttf diff --git a/nextjs/assets/fonts/Inter-Regular.ttf b/nextjs/public/fonts/Inter-Regular.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-Regular.ttf rename to nextjs/public/fonts/Inter-Regular.ttf diff --git a/nextjs/assets/fonts/Inter-SemiBold.ttf b/nextjs/public/fonts/Inter-SemiBold.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-SemiBold.ttf rename to nextjs/public/fonts/Inter-SemiBold.ttf diff --git a/nextjs/assets/fonts/Inter-Thin.ttf b/nextjs/public/fonts/Inter-Thin.ttf similarity index 100% rename from nextjs/assets/fonts/Inter-Thin.ttf rename to nextjs/public/fonts/Inter-Thin.ttf