File tree Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 5
5
"dependencies" : {
6
6
"@fortawesome/fontawesome-svg-core" : " ^6.5.1" ,
7
7
"@fortawesome/free-solid-svg-icons" : " ^6.5.1" ,
8
- "@fortawesome/vue-fontawesome" : " ^3.0.3 " ,
8
+ "@fortawesome/vue-fontawesome" : " ^3.0.6 " ,
9
9
"@kyvg/vue3-notification" : " ^2.9.1" ,
10
10
"@mdi/font" : " ^7.4.47" ,
11
11
"@wwtelescope/engine-pinia" : " ^0.9.0" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div id =" logo-credits" >
2
+ <div id =" logo-credits" :style = " cssVars " >
3
3
<div id =" icons-container" >
4
4
<a href =" https://www.cosmicds.cfa.harvard.edu/" target =" _blank" rel =" noopener noreferrer"
5
5
><img alt =" CosmicDS Logo" src =" https://raw.githubusercontent.com/cosmicds/minids/main/assets/cosmicds_logo_for_dark_backgrounds.png"
17
17
</div >
18
18
</template >
19
19
20
-
21
20
<script lang="ts">
22
- import { defineComponent , } from " vue" ;
21
+ import { defineComponent } from " vue" ;
23
22
24
23
export default defineComponent ({
25
24
26
-
27
25
props: {
28
26
visible: {
29
27
type: Boolean ,
30
28
default: true
31
29
},
32
- },
33
-
34
- data() {
35
- return { };
36
- },
37
-
38
- created() {
39
- return ;
40
- },
41
-
42
- methods: {
43
-
30
+ logoSize: {
31
+ type: String ,
32
+ default: " 5vmin"
33
+ }
44
34
},
45
35
46
36
computed: {
47
-
48
37
isMobile() {
49
38
return (/ Android| webOS| iPhone| iPad| iPod| BlackBerry| IEMobile| Opera Mini/ i .test (navigator .userAgent ));
50
39
},
40
+ cssVars() {
41
+ return {
42
+ " --logo-size" : this .logoSize ,
43
+ };
44
+ }
51
45
},
52
46
53
- watch: {
54
- }
55
47
});
56
- </script >
48
+ </script >
49
+
50
+ <style >
51
+ #logo-credits img {
52
+ height : var (--logo-size );
53
+ }
54
+ </style >
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ import { defineComponent } from "vue";
45
45
import { VTooltip } from " vuetify/components/VTooltip" ;
46
46
import { VIcon } from " vuetify/components/VIcon" ;
47
47
import { FontAwesomeIcon } from " @fortawesome/vue-fontawesome" ;
48
- import type { FontAwesomeIconProps } from " @fortawesome/vue-fontawesome/" ;
48
+
49
+ // We need to do this because FontAwesome doesn't export the prop types
50
+ type FontAwesomeIconProps = InstanceType <typeof FontAwesomeIcon >[" $props" ];
49
51
50
52
type SizeType = Extract <FontAwesomeIconProps , ' size' >;
51
53
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ __metadata:
264
264
dependencies :
265
265
" @fortawesome/fontawesome-svg-core " : ^6.5.1
266
266
" @fortawesome/free-solid-svg-icons " : ^6.5.1
267
- " @fortawesome/vue-fontawesome " : ^3.0.3
267
+ " @fortawesome/vue-fontawesome " : ^3.0.6
268
268
" @kyvg/vue3-notification " : ^2.9.1
269
269
" @mdi/font " : ^7.4.47
270
270
" @types/leaflet " : ^1.9.3
@@ -364,13 +364,13 @@ __metadata:
364
364
languageName : node
365
365
linkType : hard
366
366
367
- " @fortawesome/vue-fontawesome@npm:^3.0.3 " :
368
- version : 3.0.5
369
- resolution : " @fortawesome/vue-fontawesome@npm:3.0.5 "
367
+ " @fortawesome/vue-fontawesome@npm:^3.0.6 " :
368
+ version : 3.0.6
369
+ resolution : " @fortawesome/vue-fontawesome@npm:3.0.6 "
370
370
peerDependencies :
371
371
" @fortawesome/fontawesome-svg-core " : ~1 || ~6
372
372
vue : " >= 3.0.0 < 4"
373
- checksum : 741222a35bd189e4e7957ad77ee0e557cb3281c99f6e7b379713c2a4bb2f65f0945c4ae60fdcc8d49721cc5f1a8d874bf6e1b58a3688002c3170e4376b94db02
373
+ checksum : 0ae311ed998660ae7b460ec03e5fd5f64268dd841ac000bb67172211fa3f36b2df46d6ffb95de608f716664ebc07048a17d5da8b4f93f2ccddc8a054b410bcaf
374
374
languageName : node
375
375
linkType : hard
376
376
You can’t perform that action at this time.
0 commit comments