Skip to content

Commit a3fca40

Browse files
committed
style: apply eslint --fix and prettier formatting
1 parent 3a5fa53 commit a3fca40

40 files changed

Lines changed: 2035 additions & 1788 deletions

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
}
3636
,
3737
"lint-staged": {
38-
"src/**/*.{js,css}": [
38+
"src/**/*.js": [
3939
"npm run lint:fix",
40+
"git add"
41+
],
42+
"src/**/*.{js,css}": [
4043
"npm run format",
4144
"git add"
4245
]

src/css/animations.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,28 @@
3535
}
3636

3737
@keyframes shake {
38-
0%, 100% {
38+
0%,
39+
100% {
3940
transform: translateX(0);
4041
}
41-
10%, 30%, 50%, 70%, 90% {
42+
10%,
43+
30%,
44+
50%,
45+
70%,
46+
90% {
4247
transform: translateX(-5px);
4348
}
44-
20%, 40%, 60%, 80% {
49+
20%,
50+
40%,
51+
60%,
52+
80% {
4553
transform: translateX(5px);
4654
}
4755
}
4856

4957
@keyframes pulse {
50-
0%, 100% {
58+
0%,
59+
100% {
5160
opacity: 1;
5261
}
5362
50% {

src/css/base.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ body {
3434
}
3535

3636
/* Headings */
37-
h1, h2, h3, h4, h5, h6 {
37+
h1,
38+
h2,
39+
h3,
40+
h4,
41+
h5,
42+
h6 {
3843
margin: 0;
3944
font-weight: var(--font-weight-bold);
4045
line-height: var(--line-height-tight);

src/css/components.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ form label {
8484
}
8585

8686
.tooltip-content::after {
87-
content: '';
87+
content: "";
8888
position: absolute;
8989
top: 100%;
9090
left: 50%;
@@ -152,12 +152,12 @@ form input.input-invalid {
152152
}
153153

154154
.input-valid + .validation-icon::before {
155-
content: '✓';
155+
content: "✓";
156156
color: var(--color-success);
157157
}
158158

159159
.input-invalid + .validation-icon::before {
160-
content: '✕';
160+
content: "✕";
161161
color: var(--color-error);
162162
}
163163

@@ -195,11 +195,7 @@ form input::placeholder {
195195
form button {
196196
width: 100%;
197197
padding: 14px 24px;
198-
background: linear-gradient(
199-
135deg,
200-
var(--color-primary) 0%,
201-
var(--color-primary-dark) 100%
202-
);
198+
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
203199
color: var(--color-text-light);
204200
border: none;
205201
border-radius: var(--border-radius-md);
@@ -214,7 +210,7 @@ form button {
214210
}
215211

216212
form button::before {
217-
content: '';
213+
content: "";
218214
position: absolute;
219215
top: 50%;
220216
left: 50%;
@@ -223,7 +219,9 @@ form button::before {
223219
border-radius: 50%;
224220
background: rgba(255, 255, 255, 0.3);
225221
transform: translate(-50%, -50%);
226-
transition: width 0.6s, height 0.6s;
222+
transition:
223+
width 0.6s,
224+
height 0.6s;
227225
}
228226

229227
form button:hover::before {
@@ -474,12 +472,12 @@ form button:focus {
474472
.actions-buttons {
475473
flex-direction: column;
476474
}
477-
475+
478476
.action-btn {
479477
width: 100%;
480478
min-width: auto;
481479
}
482-
480+
483481
.toast {
484482
right: 10px;
485483
left: 10px;
@@ -536,7 +534,7 @@ form button:focus {
536534
padding: 8px 12px;
537535
font-size: var(--font-size-xs);
538536
}
539-
537+
540538
.theme-toggle-text {
541539
display: none;
542540
}
@@ -729,7 +727,9 @@ form button:focus {
729727
z-index: 150;
730728
opacity: 0;
731729
visibility: hidden;
732-
transition: opacity 0.3s ease, visibility 0.3s ease;
730+
transition:
731+
opacity 0.3s ease,
732+
visibility 0.3s ease;
733733
}
734734

735735
.history-overlay.active {
@@ -744,7 +744,7 @@ form button:focus {
744744
padding: 8px 12px;
745745
font-size: var(--font-size-xs);
746746
}
747-
747+
748748
.history-panel {
749749
width: 100%;
750750
right: -100%;

src/css/dashboard.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
display: flex;
1919
flex-direction: column;
2020
border-right: 1px solid #334155;
21-
box-shadow: 4px 0 24px rgba(0,0,0,0.2);
21+
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
2222
z-index: 10;
2323
}
2424

@@ -80,7 +80,7 @@
8080
}
8181

8282
.nav-item:hover {
83-
background-color: rgba(255,255,255,0.05);
83+
background-color: rgba(255, 255, 255, 0.05);
8484
color: #fff;
8585
}
8686

src/css/layout.css

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
body {
44
background-color: var(--color-bg-body);
55
color: var(--color-text-main);
6-
background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 20%),
7-
radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 20%);
6+
background-image:
7+
radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 20%),
8+
radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 20%);
89
background-attachment: fixed;
910
}
1011

@@ -48,37 +49,52 @@ body {
4849
background-color: var(--color-bg-card);
4950
border: 1px solid var(--border-color);
5051
border-radius: var(--radius-lg);
51-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
52-
transition: transform 0.2s, box-shadow 0.2s;
52+
box-shadow:
53+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
54+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
55+
transition:
56+
transform 0.2s,
57+
box-shadow 0.2s;
5358
}
5459

5560
.card-hover:hover {
5661
transform: translateY(-4px);
57-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
62+
box-shadow:
63+
0 10px 15px -3px rgba(0, 0, 0, 0.1),
64+
0 4px 6px -2px rgba(0, 0, 0, 0.05);
5865
border-color: var(--color-primary);
5966
}
6067

6168
/* === Typography & Headers === */
62-
h1, h2, h3, h4, h5, h6 {
69+
h1,
70+
h2,
71+
h3,
72+
h4,
73+
h5,
74+
h6 {
6375
color: var(--color-text-main);
6476
font-weight: 700;
6577
letter-spacing: -0.025em;
6678
}
6779

68-
.text-secondary, .text-muted, .form-text {
80+
.text-secondary,
81+
.text-muted,
82+
.form-text {
6983
color: var(--color-text-muted) !important;
7084
}
7185

7286
/* === Inputs & Forms === */
73-
.form-control, .form-select {
87+
.form-control,
88+
.form-select {
7489
background-color: rgba(255, 255, 255, 0.03);
7590
border: 1px solid var(--border-color);
7691
color: var(--color-text-main);
7792
border-radius: var(--radius-md);
7893
padding: 0.75rem 1rem;
7994
}
8095

81-
.form-control:focus, .form-select:focus {
96+
.form-control:focus,
97+
.form-select:focus {
8298
background-color: rgba(255, 255, 255, 0.05);
8399
border-color: var(--color-primary);
84100
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
@@ -111,8 +127,14 @@ h1, h2, h3, h4, h5, h6 {
111127
}
112128

113129
@keyframes fadeIn {
114-
from { opacity: 0; transform: translateY(10px); }
115-
to { opacity: 1; transform: translateY(0); }
130+
from {
131+
opacity: 0;
132+
transform: translateY(10px);
133+
}
134+
to {
135+
opacity: 1;
136+
transform: translateY(0);
137+
}
116138
}
117139

118140
/* Scrollbar */

0 commit comments

Comments
 (0)