@@ -35,22 +35,15 @@ const { qrcode, text, encryption } = useWifiQRCode({
35
35
36
36
const { download } = useDownloadFileFromBase64 ({ source: qrcode , filename: ' qr-code.png' });
37
37
const { copy } = useCopy ({ source: text , text: ' Copied to the clipboard' });
38
-
39
38
</script >
40
39
41
40
<template >
42
41
<c-card >
43
42
<div grid grid-cols-1 gap-12 >
44
43
<div >
45
44
<c-select
46
- v-model:value =" encryption"
47
- mb-4
48
- label =" Encryption method"
49
- default-value =" WPA"
50
- label-position =" left"
51
- label-width =" 130px"
52
- label-align =" right"
53
- :options =" [
45
+ v-model:value =" encryption" mb-4 label =" Encryption method" default-value =" WPA" label-position =" left"
46
+ label-width =" 130px" label-align =" right" :options =" [
54
47
{
55
48
label: 'No password',
56
49
value: 'nopass',
@@ -71,68 +64,36 @@ const { copy } = useCopy({ source: text, text: 'Copied to the clipboard' });
71
64
/>
72
65
<div class =" mb-6 flex flex-row items-center gap-2" >
73
66
<c-input-text
74
- v-model:value =" ssid"
75
- label-position =" left"
76
- label-width =" 130px"
77
- label-align =" right"
78
- label =" SSID:"
79
- rows =" 1"
80
- autosize
81
- placeholder =" Your WiFi SSID..."
82
- mb-6
67
+ v-model:value =" ssid" label-position =" left" label-width =" 130px" label-align =" right" label =" SSID:"
68
+ rows =" 1" autosize placeholder =" Your WiFi SSID..." mb-6
83
69
/>
84
70
<n-checkbox v-model:checked =" isHiddenSSID" >
85
71
Hidden SSID
86
72
</n-checkbox >
87
73
</div >
88
74
<c-input-text
89
- v-if =" encryption !== 'nopass'"
90
- v-model:value =" password"
91
- label-position =" left"
92
- label-width =" 130px"
93
- label-align =" right"
94
- label =" Password:"
95
- rows =" 1"
96
- autosize
97
- type =" password"
98
- placeholder =" Your WiFi Password..."
75
+ v-if =" encryption !== 'nopass'" v-model:value =" password" label-position =" left" label-width =" 130px"
76
+ label-align =" right" label =" Password:" rows =" 1" autosize type =" password" placeholder =" Your WiFi Password..."
99
77
mb-6
100
78
/>
101
79
<c-select
102
- v-if =" encryption === 'WPA2-EAP'"
103
- v-model:value =" eapMethod"
104
- label =" EAP method"
105
- label-position =" left"
106
- label-width =" 130px"
107
- label-align =" right"
108
- :options =" EAPMethods.map((method) => ({ label: method, value: method }))"
109
- searchable mb-4
80
+ v-if =" encryption === 'WPA2-EAP'" v-model:value =" eapMethod" label =" EAP method" label-position =" left"
81
+ label-width =" 130px" label-align =" right"
82
+ :options =" EAPMethods.map((method) => ({ label: method, value: method }))" searchable mb-4
110
83
/>
111
84
<div v-if =" encryption === 'WPA2-EAP'" class =" mb-6 flex flex-row items-center gap-2" >
112
85
<c-input-text
113
- v-model:value =" eapIdentity"
114
- label-position =" left"
115
- label-width =" 130px"
116
- label-align =" right"
117
- label =" Identity:"
118
- rows =" 1"
119
- autosize
120
- placeholder =" Your EAP Identity..."
121
- mb-6
86
+ v-model:value =" eapIdentity" label-position =" left" label-width =" 130px" label-align =" right"
87
+ label =" Identity:" rows =" 1" autosize placeholder =" Your EAP Identity..." mb-6
122
88
/>
123
89
<n-checkbox v-model:checked =" eapAnonymous" >
124
90
Anonymous?
125
91
</n-checkbox >
126
92
</div >
127
93
<c-select
128
- v-if =" encryption === 'WPA2-EAP'"
129
- v-model:value =" eapPhase2Method"
130
- label =" EAP Phase 2 method"
131
- label-position =" left"
132
- label-width =" 130px"
133
- label-align =" right"
134
- :options =" EAPPhase2Methods.map((method) => ({ label: method, value: method }))"
135
- searchable mb-4
94
+ v-if =" encryption === 'WPA2-EAP'" v-model:value =" eapPhase2Method" label =" EAP Phase 2 method"
95
+ label-position =" left" label-width =" 130px" label-align =" right"
96
+ :options =" EAPPhase2Methods.map((method) => ({ label: method, value: method }))" searchable mb-4
136
97
/>
137
98
<n-form label-width =" 130" label-placement =" left" >
138
99
<n-form-item label =" Foreground color:" >
0 commit comments