Skip to content

Commit 218eb05

Browse files
committed
chore: ran linter on whole project
1 parent 7c6dcf7 commit 218eb05

17 files changed

+47
-300
lines changed

components/buttons/copyLink.vue

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,7 @@
33
<button
44
id="copyLinkButton"
55
type="button"
6-
class="
7-
inline-flex
8-
items-center
9-
justify-center
10-
gap-1
11-
p-2
12-
text-sm
13-
transition-transform
14-
transform
15-
rounded-md
16-
shadow
17-
justify-self-end
18-
focus-visible:ring-4
19-
active:scale-y-75
20-
hover:scale-105 hover:shadow-lg
21-
copy-uri-button
22-
"
6+
class="inline-flex items-center justify-center gap-1 p-2 text-sm transition-transform transform rounded-md shadow justify-self-end focus-visible:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg copy-uri-button"
237
aria-label="Click here to copy url to clipboard"
248
:class="{
259
'bg-blue-500 text-white': !copied,

components/buttons/nextDiff.vue

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,7 @@
22
<div id="nextDiffSection" class="inline-flex items-center gap-1">
33
<button
44
id="nextDiff"
5-
class="
6-
inline-flex
7-
items-center
8-
justify-center
9-
px-1
10-
py-1
11-
text-sm text-gray-600
12-
transition-transform
13-
transform
14-
bg-gray-300
15-
border border-gray-800
16-
rounded-sm
17-
dark:border-gray-400 dark:text-white dark:bg-gray-800
18-
align-center
19-
focus-visible:ring-4
20-
active:scale-y-75
21-
hover:scale-105 hover:shadow-lg
22-
"
5+
class="inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center focus-visible:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg"
236
aria-label="Go to next diff"
247
type="button"
258
@click="clickHandler"

components/buttons/prevDiff.vue

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,7 @@
22
<div id="prevDiffSection" class="inline-flex items-center gap-1">
33
<button
44
id="prevDiff"
5-
class="
6-
inline-flex
7-
items-center
8-
justify-center
9-
px-1
10-
py-1
11-
text-sm text-gray-600
12-
transition-transform
13-
transform
14-
bg-gray-300
15-
border border-gray-800
16-
rounded-sm
17-
focus-visible:ring-4
18-
dark:border-gray-400 dark:text-white dark:bg-gray-800
19-
align-center
20-
active:scale-y-75
21-
hover:scale-105 hover:shadow-lg
22-
"
5+
class="inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm focus-visible:ring-4 dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center active:scale-y-75 hover:scale-105 hover:shadow-lg"
236
aria-label="Go to previous diff"
247
type="button"
258
@click="clickHandler"

components/buttons/stickyCopy.vue

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
<template>
22
<div class="sticky top-0 text-right z-1">
33
<button
4-
class="
5-
absolute
6-
top-0
7-
right-0
8-
p-2
9-
text-gray-800
10-
transition-all
11-
transform
12-
rounded-full
13-
shadow
14-
dark:text-gray-50
15-
z-1
16-
hover:shadow-lg hover:scale-110 hover:rotate-12
17-
"
4+
class="absolute top-0 right-0 p-2 text-gray-800 transition-all transform rounded-full shadow dark:text-gray-50 z-1 hover:shadow-lg hover:scale-110 hover:rotate-12"
185
:class="{
196
'bg-gray-100 dark:bg-gray-600': !copied,
207
'bg-green-500': copied,

components/buttons/toggleInSync.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<div id="toggleScrollInSyncSection" class="inline-flex items-center gap-1">
33
<label
4+
id="toggleScrollInSyncLabel"
45
for="toggleScrollInSync"
56
class="text-gray-800 select-none dark:text-gray-50"
6-
id="toggleScrollInSyncLabel"
77
aria-controls="toggleScrollInSync"
88
>
99
Scroll in sync
1010
</label>
1111
<input
12-
aria-labelledby="toggleScrollInSyncLabel"
1312
id="toggleScrollInSync"
13+
aria-labelledby="toggleScrollInSyncLabel"
1414
type="checkbox"
1515
:checked="isEnabled"
1616
class="form-checkbox"

components/buttons/toggleInlineDiffView.vue

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,7 @@
33
<button
44
id="toggleInlineDiffView"
55
type="button"
6-
class="
7-
inline-flex
8-
items-center
9-
justify-center
10-
px-1
11-
py-1
12-
text-sm text-gray-600
13-
transition-transform
14-
transform
15-
bg-gray-300
16-
border border-gray-800
17-
rounded-sm
18-
outline-none
19-
dark:border-gray-400 dark:text-white dark:bg-gray-800
20-
align-center
21-
focus:ring-4
22-
active:scale-y-75
23-
hover:scale-105 hover:shadow-lg
24-
"
6+
class="inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm outline-none dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center focus:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg"
257
@click="toggleInlineDiffView"
268
>
279
<svg

components/diffActionBar.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
<template>
22
<section
3-
class="flex items-center justify-between px-4 py-2 mb-4 sticky top-[70px] dark:bg-gray-700 bg-gray-300 dark:bg-opacity-50 bg-opacity-50 backdrop-blur-sm rounded-md shadow-lg border border-gray-500 w-full z-10"
3+
class="
4+
flex
5+
items-center
6+
justify-between
7+
px-4
8+
py-2
9+
mb-4
10+
sticky
11+
top-[70px]
12+
dark:bg-gray-700
13+
bg-gray-300
14+
dark:bg-opacity-50
15+
bg-opacity-50
16+
backdrop-blur-sm
17+
rounded-md
18+
shadow-lg
19+
border border-gray-500
20+
w-full
21+
z-10
22+
"
423
>
524
<div class="flex gap-4">
625
<ToggleInSync />

components/footer.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
<template>
22
<footer
3-
class="
4-
sticky
5-
py-4
6-
mt-4
7-
text-center text-gray-800
8-
top-full
9-
bg-inherit
10-
dark:text-gray-50
11-
min-h-max
12-
"
3+
class="sticky py-4 mt-4 text-center text-gray-800 top-full bg-inherit dark:text-gray-50 min-h-max"
134
>
145
Made with &hearts; using
156
<a

components/navbar.vue

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
<template>
22
<nav
3-
class="
4-
sticky
5-
top-0
6-
left-0
7-
right-0
8-
z-10
9-
text-gray-800
10-
shadow-lg
11-
dark:shadow-dark
12-
bg-gray-50
13-
dark:bg-gray-900 dark:text-gray-50
14-
"
3+
class="sticky top-0 left-0 right-0 z-10 text-gray-800 shadow-lg dark:shadow-dark bg-gray-50 dark:bg-gray-900 dark:text-gray-50"
154
>
165
<div class="container flex items-center py-4 m-auto">
176
<div
@@ -46,20 +35,7 @@
4635
<slot name="right" />
4736
<button
4837
type="button"
49-
class="
50-
inline-flex
51-
items-center
52-
justify-center
53-
ml-4
54-
bg-transparent
55-
border-2 border-gray-700
56-
rounded-full
57-
shadow-lg
58-
w-9
59-
h-9
60-
active:scale-y-75
61-
hover:scale-105 hover:shadow-lg
62-
"
38+
class="inline-flex items-center justify-center ml-4 bg-transparent border-2 border-gray-700 rounded-full shadow-lg w-9 h-9 active:scale-y-75 hover:scale-105 hover:shadow-lg"
6339
aria-label="Toggle Dark Mode"
6440
@click="toggleDarkMode"
6541
>

components/singleDiff.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</p>
66
<div
77
:id="id"
8-
class="relative flex-1 px-4 py-2 border-2 rounded-md dark:border-gray-500 line-number-gutter min-h-80"
8+
class="relative flex-1 px-4 py-2 border-2 rounded-md dark:border-gray-500 line-number-gutter min-h-80"
99
:class="{
1010
'overflow-y-auto max-h-screen--nav': !isSrollInSyncEnabled,
1111
}"

0 commit comments

Comments
 (0)