File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<v-card variant =" flat" color =" transparent" >
3
3
<v-card-text >
4
- <v-list-item class =" px-0" :prepend-avatar =" 'https://avatars.githubusercontent.com/u/' + props.userid + '?s=80'" >
4
+ <v-list-item class =" px-0" :prepend-avatar =" !xs ? UserImageLink : undefined" >
5
+ <v-list-item-media v-if =" xs" >
6
+ <v-icon >
7
+ <v-img :src =" UserImageLink" ></v-img >
8
+ </v-icon >
9
+ </v-list-item-media >
5
10
<v-list-item-title class =" text-body-2 text-white" >
6
- <a :href =" 'https://github.com/' + props.user" class =" text-decoration-none" >{{ props.name }} <span class =" d-none d-lg-inline" >( @{{ props.user }})</span ></a >
11
+ <a :href =" 'https://github.com/' + props.user" class =" text-decoration-none" ><span class =" d-none d-lg-inline" >{{ props.name }} (</ span > @{{ props.user }}< span class = " d-none d-lg-inline " > )</span ></a >
7
12
</v-list-item-title >
8
13
<v-list-item-subtitle >
9
14
{{ props.role }}
17
22
</template >
18
23
19
24
<script setup lang="ts">
20
- const props = defineProps ([' user' , ' userid' , ' name' , ' role' ])
25
+ import { useDisplay } from ' vuetify' ;
26
+ import { computed } from ' vue' ;
27
+
28
+ const props = defineProps ([' user' , ' userid' , ' name' , ' role' ]);
29
+ const { xs } = useDisplay ();
30
+
31
+ const UserImageLink = computed (() => {
32
+ return ' https://avatars.githubusercontent.com/u/' + props .userid + ' ?s=80' ;
33
+ });
21
34
</script >
22
35
23
36
<style >
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ term.onData(e => {
333
333
</script >
334
334
335
335
<script setup lang="ts">
336
- import { onMounted , onUnmounted } from ' vue' ;
336
+ import { onMounted } from ' vue' ;
337
337
import { useDisplay } from ' vuetify' ;
338
338
339
339
const { smAndDown } = useDisplay ();
Original file line number Diff line number Diff line change 5
5
<default-view />
6
6
7
7
<v-footer class =" text-center d-flex flex-column" >
8
- <v-breadcrumbs divider =" ●" >
8
+ <v-breadcrumbs divider =" ●" class = " text-no-wrap " >
9
9
<v-breadcrumbs-item >Scapy community</v-breadcrumbs-item >
10
10
<v-breadcrumbs-divider />
11
11
<v-breadcrumbs-item >2008-{{ currentYear }}</v-breadcrumbs-item >
12
12
<v-breadcrumbs-divider />
13
13
<v-breadcrumbs-item ><a href =" https://scapy.net" >scapy.net</a ></v-breadcrumbs-item >
14
14
</v-breadcrumbs >
15
15
<p >
16
- This website is published under <a href =" https://creativecommons.org/licenses/by-sa/4.0/" >CC-BY-SA-2.5</a >
16
+ This website is published under <a href =" https://creativecommons.org/licenses/by-sa/4.0/" >CC-BY-SA-2.5</a > and was developped by < a href = " https://github.com/gpotter2 " >gpotter2</ a >.
17
17
</p >
18
18
</v-footer >
19
19
</v-app >
Original file line number Diff line number Diff line change 83
83
<v-col cols =" 12" lg =" 5" >
84
84
<TerminalFrame style =" position : relative ;" >
85
85
<XTerm :static =" DEMO_CODE" class =" scapy-term" />
86
- <div style =" position : absolute ; right : 5 px ; bottom : 5 px ;" >
86
+ <div style =" position : absolute ; right : 20 px ; bottom : 20 px ;" >
87
87
<v-tooltip text =" Try Scapy" location =" start" >
88
88
<template v-slot :activator =" { props } " >
89
- <v-btn v-bind =" props" class =" px-0" min-width =" 36px" color =" yellow" @click =" setTryScapy(true)" >
89
+ <v-btn v-bind =" props" class =" px-0 text-center " min-width =" 36px" color =" yellow" @click =" setTryScapy(true)" >
90
90
<span class =" font-weight-bold" >>_</span >
91
91
</v-btn >
92
92
</template >
You can’t perform that action at this time.
0 commit comments