Skip to content

Commit 781c8a7

Browse files
committed
refactor: move all assets to subfolder due to name collisions with v1 app
This change is necessary, since `v1 app` and `v2 (this) app` are running on the same `url`. So the traffic originating from the browser to request a specific resource of this app has to be routed to the `v2 app instance` on the server. That's why we use a `generic prefix`(/assets-2usdf) for `publicly served assets`.This will prevent name collisions.
1 parent b8b626a commit 781c8a7

37 files changed

+17
-11500
lines changed

frontend/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const { locale } = useTranslation()
55
useHead(
66
{
77
htmlAttrs: { lang: locale.value },
8+
link: [ {
9+
href: '/assets-2usdf/favicon.ico',
10+
rel: 'icon',
11+
type: 'image/x-icon',
12+
} ],
813
},
914
)
1015
useBcToastProvider()

frontend/assets/css/fonts.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
@font-face {
22
font-family: "Montserrat";
33
font-weight: 400 500 600 700;
4-
src: url("/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
4+
src: url("/assets-2usdf/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
55
}
66

77
@font-face {
88
font-family: "Montserrat";
99
font-weight: 400 500 600 700;
1010
font-style: italic;
11-
src: url("/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
11+
src: url("/assets-2usdf/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
1212
}
1313

1414
@font-face {
1515
font-family: "Roboto";
1616
font-weight: 300;
17-
src: url("/fonts/Roboto-Light.ttf") format("truetype");
17+
src: url("/assets-2usdf/fonts/Roboto-Light.ttf") format("truetype");
1818
}
1919

2020
@font-face {
2121
font-family: "Roboto";
2222
font-weight: 300;
2323
font-style: italic;
24-
src: url("/fonts/Roboto-LightItalic.ttf") format("truetype");
24+
src: url("/assets-2usdf/fonts/Roboto-LightItalic.ttf") format("truetype");
2525
}
2626

2727
@font-face {
2828
font-family: "Roboto";
2929
font-weight: 400;
30-
src: url("/fonts/Roboto-Regular.ttf") format("truetype");
30+
src: url("/assets-2usdf/fonts/Roboto-Regular.ttf") format("truetype");
3131
}
3232

3333
@font-face {
3434
font-family: "Roboto";
3535
font-weight: 400;
3636
font-style: italic;
37-
src: url("/fonts/Roboto-Italic.ttf") format("truetype");
37+
src: url("/assets-2usdf/fonts/Roboto-Italic.ttf") format("truetype");
3838
}
3939

4040
@font-face {
4141
font-family: "Roboto";
4242
font-weight: 500;
43-
src: url("/fonts/Roboto-Medium.ttf") format("truetype");
43+
src: url("/assets-2usdf/fonts/Roboto-Medium.ttf") format("truetype");
4444
}
4545

4646
@font-face {
4747
font-family: "Roboto";
4848
font-weight: 500;
4949
font-style: italic;
50-
src: url("/fonts/Roboto-MediumItalic.ttf") format("truetype");
50+
src: url("/assets-2usdf/fonts/Roboto-MediumItalic.ttf") format("truetype");
5151
}
5252

5353
@font-face {
5454
font-family: "Roboto";
5555
font-weight: 700;
56-
src: url("/fonts/Roboto-Bold.ttf") format("truetype");
56+
src: url("/assets-2usdf/fonts/Roboto-Bold.ttf") format("truetype");
5757
}
5858

5959
@font-face {
6060
font-family: "Roboto";
6161
font-weight: 700;
6262
font-style: italic;
63-
src: url("/fonts/Roboto-BoldItalic.ttf") format("truetype");
63+
src: url("/assets-2usdf/fonts/Roboto-BoldItalic.ttf") format("truetype");
6464
}
6565

6666
@font-face {
6767
font-family: "Inter";
6868
font-weight: 300 500;
69-
src: url("/fonts/Inter-VariableFont_slnt,wght.ttf") format("truetype");
69+
src: url("/assets-2usdf/fonts/Inter-VariableFont_slnt,wght.ttf") format("truetype");
7070
}
7171

7272
:root {

frontend/composables/useBcSeo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function useBcSeo(
1212
const year = new Date().getFullYear()
1313

1414
const url = 'https://beaconcha.in'
15-
const logo = `${url}/img/logo.png`
15+
const logo = `${url}/assets-2usdf/img/logo.png`
1616
const ogUrl = () => {
1717
const value
1818
= removeDynamicUrlValue
File renamed without changes.

0 commit comments

Comments
 (0)