Skip to content

Commit f96261f

Browse files
Rotzbuapeterthomassen
authored andcommitted
fix(webapp): transform asset url for v-img
1 parent 09955a6 commit f96261f

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

www/webapp/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<v-app-bar app class="white">
3030
<v-toolbar-title><router-link :to="{name: 'home'}">
3131
<v-img
32-
:src="require('./assets/logo.svg')"
32+
src="./assets/logo.svg"
3333
alt="deSEC Logo"
3434
eager
3535
contain

www/webapp/src/views/AboutPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<v-card outline tile class="pa-md-12 pa-8 elevation-4" style="overflow: hidden">
44
<div class="d-md-block logo-bg pt-4">
55
<v-img
6-
:src="require('../assets/logo.notext.svg')"
6+
src="../assets/logo.notext.svg"
77
alt="deSEC Logo"
88
contain
99
height="90%"

www/webapp/src/views/DonatePage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
you can use one of the other methods, that would be appreciated!
114114
</p>
115115
<v-layout class="justify-center">
116-
<v-img :src="require('../assets/paypal-qrcode.png')" alt="PayPal QR Code" style="max-width: 256px"></v-img>
116+
<v-img src="../assets/paypal-qrcode.png" alt="PayPal QR Code" style="max-width: 256px"></v-img>
117117
</v-layout>
118118
</v-expansion-panel-content>
119119
</v-expansion-panel>

www/webapp/src/views/HomePage.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<v-row align="center" class="py-2" justify="center">
8181
<v-col class="col-12 col-lg-3 py-4">
8282
<v-layout class="justify-center">
83-
<img loading="lazy" :src="require('../assets/non-free/sse.logo.png')" alt="SSE Logo" class="mr-6" style="max-width: 160px; width: 100%"/>
83+
<img loading="lazy" src="../assets/non-free/sse.logo.png" alt="SSE Logo" class="mr-6" style="max-width: 160px; width: 100%"/>
8484
</v-layout>
8585
</v-col>
8686
<v-col class="col-12 col-sm-10 col-lg-9 py-4 text-center">
@@ -92,7 +92,7 @@
9292
<v-row align="center" class="py-2" justify="center">
9393
<v-col class="col-12 col-lg-3 py-4">
9494
<v-layout class="justify-center">
95-
<img loading="lazy" :src="require('../assets/non-free/nlnet.logo.svg')" alt="NLnet Foundation Logo" class="mr-6" style="max-width: 180px; width: 100%"/>
95+
<img loading="lazy" src="../assets/non-free/nlnet.logo.svg" alt="NLnet Foundation Logo" class="mr-6" style="max-width: 180px; width: 100%"/>
9696
</v-layout>
9797
</v-col>
9898
<v-col class="col-12 col-sm-10 col-lg-9 py-4 text-center">
@@ -106,7 +106,7 @@
106106
<v-row align="center" class="py-2" justify="center">
107107
<v-col class="col-12 col-lg-3 py-4">
108108
<v-layout class="justify-center">
109-
<img loading="lazy" :src="require('../assets/non-free/ripe-ncc.logo.svg')" alt="RIPE NCC Logo" class="mr-6" style="margin-bottom: -7%; margin-top: -7%; max-width: 240px; width: 100%"/>
109+
<img loading="lazy" src="../assets/non-free/ripe-ncc.logo.svg" alt="RIPE NCC Logo" class="mr-6" style="margin-bottom: -7%; margin-top: -7%; max-width: 240px; width: 100%"/>
110110
</v-layout>
111111
</v-col>
112112
<v-col class="col-12 col-sm-10 col-lg-9 py-4 text-center">
@@ -118,7 +118,7 @@
118118
<v-row align="center" class="py-2" justify="center">
119119
<v-col class="col-12 col-lg-3 py-4">
120120
<v-layout class="justify-center">
121-
<img loading="lazy" :src="require('../assets/non-free/sox.logo.svg')" alt="SOX Logo" class="mr-6" style="max-width: 170px; width: 100%"/>
121+
<img loading="lazy" src="../assets/non-free/sox.logo.svg" alt="SOX Logo" class="mr-6" style="max-width: 170px; width: 100%"/>
122122
</v-layout>
123123
</v-col>
124124
<v-col class="col-12 col-sm-10 col-lg-9 py-4 text-center">
@@ -137,8 +137,8 @@
137137
</v-row>
138138
<v-row justify="center">
139139
<v-col class="py-4 text-center">
140-
<a href="https://nextcloud.com/"><img loading="lazy" :src="require('../assets/non-free/nextcloud-logo-inverted.svg')" alt="Nextcloud Logo" class="mx-6 my-2" style="display: inline-block; max-height: 113px; max-width: 160px; width: 100%"/></a>
141-
<a href="https://www.hanssonit.se/"><img loading="lazy" :src="require('../assets/non-free/hanssonit.logo.png')" alt="Hansson IT Logo" class="mx-6 my-2" style="display: inline-block; max-height: 113px; max-width: 160px; width: 100%"/></a>
140+
<a href="https://nextcloud.com/"><img loading="lazy" src="../assets/non-free/nextcloud-logo-inverted.svg" alt="Nextcloud Logo" class="mx-6 my-2" style="display: inline-block; max-height: 113px; max-width: 160px; width: 100%"/></a>
141+
<a href="https://www.hanssonit.se/"><img loading="lazy" src="../assets/non-free/hanssonit.logo.png" alt="Hansson IT Logo" class="mx-6 my-2" style="display: inline-block; max-height: 113px; max-width: 160px; width: 100%"/></a>
142142
</v-col>
143143
</v-row>
144144
</v-container>
@@ -167,15 +167,15 @@
167167
</div>
168168
</v-card-text>
169169
<v-img
170-
:src="require('../assets/anycast.worldmap.svg')" alt="World Map of Anycast POPs" contain
170+
src="../assets/anycast.worldmap.svg" alt="World Map of Anycast POPs" contain
171171
class="justify-center"
172172
style="display: block; width: 100%; aspect-ratio: 2/1"
173173
>
174174
<v-tooltip bottom v-for="f in frontends" :key="f.host">
175175
<template #activator="{ on }">
176176
<v-img
177177
v-on="on"
178-
:src="require('../assets/mapmarker.svg')" alt="Anycast POP" height="2em" width="2em"
178+
src="../assets/mapmarker.svg" alt="Anycast POP" height="2em" width="2em"
179179
:style="{left: f.left, top: f.top}"
180180
style="transform: translate(-50%, -100%); position: absolute; overflow: visible;" contain
181181
>

www/webapp/vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ export default defineConfig({
1111
'process.env.BUILD': '"web"' // fix for [email protected]
1212
},
1313
plugins: [
14-
vue(),
14+
vue({
15+
template: {
16+
transformAssetUrls: {
17+
'v-img': ['src'],
18+
},
19+
},
20+
}),
1521
Components({
1622
resolvers: [VuetifyResolver()],
1723
}),

0 commit comments

Comments
 (0)