File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
docs/.vitepress/theme/components/legacy Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ const getMyIpaddress = computed(() => {
2020 return ipAddress .value ? ipAddress .value : null
2121})
2222
23+ const isNtnuVpn = computed (() => {
24+ return ipAddress .value && ipAddress .value .startsWith (" 10.24." )
25+ })
26+
27+ const isEduroam = computed (() => {
28+ return ipAddress .value && ipAddress .value .startsWith (" 10.20." )
29+ })
30+
2331const show = computed (() => {
2432 return ipAddress .value && ipAddress .value .length > 3 ? true : false
2533})
@@ -55,6 +63,27 @@ onMounted(() => {
5563 <div class =" vuewidget vuewrapper" data-vuetify >
5664 <v-app :id =" id" >
5765 <CopyTextField :model-value =" getMyIpaddress" :prefix =" hidePrefix ? `` : `Your IP address:`" :loading =" loading" />
66+ <v-alert
67+ v-if =" isNtnuVpn"
68+ border =" start"
69+ border-color =" warning"
70+ class =" mt-1"
71+ elevation =" 2"
72+ >
73+ It seems like you are connected to NTNU VPN.
74+ You should be able to connect to HUNT Cloud VPN.
75+ If you still experience issues send us a request to add you to NTNU VPN group.
76+ </v-alert >
77+ <v-alert
78+ v-if =" isEduroam"
79+ border =" start"
80+ border-color =" warning"
81+ class =" mt-1"
82+ elevation =" 2"
83+ >
84+ It seems like you are connected to NTNU / Eduroam network.
85+ You should be able to connect to HUNT Cloud VPN.
86+ </v-alert >
5887 </v-app >
5988 </div >
6089</template >
You can’t perform that action at this time.
0 commit comments