Skip to content

Commit 0fc30fe

Browse files
committed
Fix lint errors
1 parent 82a4958 commit 0fc30fe

File tree

1 file changed

+14
-53
lines changed

1 file changed

+14
-53
lines changed

src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue

Lines changed: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,15 @@ const { qrcode, text, encryption } = useWifiQRCode({
3535
3636
const { download } = useDownloadFileFromBase64({ source: qrcode, filename: 'qr-code.png' });
3737
const { copy } = useCopy({ source: text, text: 'Copied to the clipboard' });
38-
3938
</script>
4039

4140
<template>
4241
<c-card>
4342
<div grid grid-cols-1 gap-12>
4443
<div>
4544
<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="[
5447
{
5548
label: 'No password',
5649
value: 'nopass',
@@ -71,68 +64,36 @@ const { copy } = useCopy({ source: text, text: 'Copied to the clipboard' });
7164
/>
7265
<div class="mb-6 flex flex-row items-center gap-2">
7366
<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
8369
/>
8470
<n-checkbox v-model:checked="isHiddenSSID">
8571
Hidden SSID
8672
</n-checkbox>
8773
</div>
8874
<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..."
9977
mb-6
10078
/>
10179
<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
11083
/>
11184
<div v-if="encryption === 'WPA2-EAP'" class="mb-6 flex flex-row items-center gap-2">
11285
<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
12288
/>
12389
<n-checkbox v-model:checked="eapAnonymous">
12490
Anonymous?
12591
</n-checkbox>
12692
</div>
12793
<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
13697
/>
13798
<n-form label-width="130" label-placement="left">
13899
<n-form-item label="Foreground color:">

0 commit comments

Comments
 (0)