Skip to content

Commit bc9383f

Browse files
committed
refactor: clean up whitespace and improve formatting across multiple components for better code readability
1 parent 501c0ca commit bc9383f

File tree

12 files changed

+8
-64
lines changed

12 files changed

+8
-64
lines changed

src/runtime/components/PUAccordion.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const toggle = (index: number) => {
9393
@apply border-t border-primary-light-500/10 dark:border-white/50 my-2;
9494
}
9595
96-
9796
.accordion-enter-active,
9897
.accordion-leave-active {
9998
@apply transition-all duration-300;

src/runtime/components/PUConfetti.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ onUnmounted(() => {
198198
@apply block;
199199
}
200200
201-
202201
.pu-confetti::before {
203202
content: '';
204203
@apply absolute inset-0 pointer-events-none;

src/runtime/components/PUCopyToClipboard.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ const copyToClipboard = async () => {
123123
@apply text-sm text-gray-700 dark:text-primary-light-50 font-medium;
124124
}
125125
126-
127126
.pu-copy--small .pu-copy__button {
128127
@apply px-2 py-1.5;
129128
}
@@ -160,7 +159,6 @@ const copyToClipboard = async () => {
160159
@apply text-base;
161160
}
162161
163-
164162
.pu-copy--disabled .pu-copy__button {
165163
@apply opacity-50 cursor-not-allowed;
166164
}
@@ -172,7 +170,6 @@ const copyToClipboard = async () => {
172170
0 1px 2px rgba(28, 28, 28, 0.05);
173171
}
174172
175-
176173
.pu-copy__button::before {
177174
content: '';
178175
@apply absolute inset-0 rounded-lg pointer-events-none;
@@ -191,7 +188,6 @@ const copyToClipboard = async () => {
191188
transparent 70%);
192189
}
193190
194-
195191
.pu-copy--copied .pu-copy__icon {
196192
animation: copySuccess 0.3s ease-out;
197193
}
@@ -210,7 +206,6 @@ const copyToClipboard = async () => {
210206
}
211207
}
212208
213-
214209
.dark .pu-copy__button {
215210
box-shadow:
216211
0 2px 4px rgba(0, 0, 0, 0.2),
@@ -223,7 +218,6 @@ const copyToClipboard = async () => {
223218
0 2px 4px rgba(0, 0, 0, 0.2);
224219
}
225220
226-
227221
@media (max-width: 640px) {
228222
.pu-copy--large .pu-copy__button {
229223
@apply px-3 py-2;

src/runtime/components/PUCounter.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ watch(() => props.modelValue, (newValue) => {
162162
@apply text-primary-light-500 dark:text-primary-light-50;
163163
}
164164
165-
166165
.pu-counter__button:disabled {
167166
@apply opacity-50 cursor-not-allowed;
168167
}
@@ -174,7 +173,6 @@ watch(() => props.modelValue, (newValue) => {
174173
0 1px 2px rgba(28, 28, 28, 0.05);
175174
}
176175
177-
178176
.pu-counter--small .pu-counter__value {
179177
@apply text-lg;
180178
}
@@ -223,7 +221,6 @@ watch(() => props.modelValue, (newValue) => {
223221
@apply w-5 h-5;
224222
}
225223
226-
227224
.pu-counter__button::before {
228225
content: '';
229226
@apply absolute inset-0 rounded-full pointer-events-none;
@@ -238,7 +235,6 @@ watch(() => props.modelValue, (newValue) => {
238235
radial-gradient(circle at 70% 70%, rgba(193, 193, 193, 0.05) 0%, transparent 50%);
239236
}
240237
241-
242238
.pu-counter__value {
243239
animation: counterUpdate 0.3s ease-out;
244240
}
@@ -254,7 +250,6 @@ watch(() => props.modelValue, (newValue) => {
254250
}
255251
}
256252
257-
258253
.dark .pu-counter__value {
259254
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
260255
}
@@ -271,7 +266,6 @@ watch(() => props.modelValue, (newValue) => {
271266
0 2px 4px rgba(0, 0, 0, 0.2);
272267
}
273268
274-
275269
@media (max-width: 640px) {
276270
.pu-counter--large .pu-counter__value {
277271
@apply text-2xl;

src/runtime/components/PUDivider.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ const dividerClass = computed(() => {
5959
@apply relative flex items-center;
6060
}
6161
62-
6362
.pu-divider--horizontal {
6463
@apply w-full my-4;
6564
}
@@ -76,7 +75,6 @@ const dividerClass = computed(() => {
7675
);
7776
}
7877
79-
8078
.pu-divider--vertical {
8179
@apply h-full mx-4 w-px;
8280
}
@@ -93,7 +91,6 @@ const dividerClass = computed(() => {
9391
);
9492
}
9593
96-
9794
.pu-divider--solid .pu-divider__line {
9895
background-image: none;
9996
}
@@ -132,7 +129,6 @@ const dividerClass = computed(() => {
132129
filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 2'%3E%3Cpath d='M0,1 Q2.5,0 5,1 T10,1' stroke='currentColor' fill='none' stroke-width='1'/%3E%3C/svg%3E");
133130
}
134131
135-
136132
.pu-divider--vertical.pu-divider--dashed .pu-divider__line {
137133
background-image:
138134
repeating-linear-gradient(
@@ -166,7 +162,6 @@ const dividerClass = computed(() => {
166162
);
167163
}
168164
169-
170165
.pu-divider__text {
171166
@apply px-4 text-sm text-gray-500 dark:text-primary-light-300 font-medium;
172167
background:
@@ -188,7 +183,6 @@ const dividerClass = computed(() => {
188183
@apply flex-1;
189184
}
190185
191-
192186
.pu-divider--small .pu-divider__line {
193187
height: 1px;
194188
}
@@ -216,7 +210,6 @@ const dividerClass = computed(() => {
216210
height: 100%;
217211
}
218212
219-
220213
.pu-divider__line {
221214
position: relative;
222215
}

src/runtime/components/PUDropdown.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ const menuStyle = computed(() => {
119119
let top: string
120120
if (shouldOpenAbove) {
121121
top = `${rect.top - 4}px`
122-
} else {
122+
}
123+
else {
123124
top = `${rect.bottom + 4}px`
124125
}
125126

src/runtime/components/PUGrid.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const gridStyles = computed(() => {
6868
<style lang="css" scoped>
6969
.pu-grid {
7070
@apply relative;
71-
71+
7272
background:
7373
radial-gradient(circle at 20% 20%, rgba(28, 28, 28, 0.05) 0%, transparent 50%),
7474
radial-gradient(circle at 80% 80%, rgba(28, 28, 28, 0.05) 0%, transparent 50%);
@@ -83,7 +83,6 @@ const gridStyles = computed(() => {
8383
z-index: -1;
8484
}
8585
86-
8786
.pu-grid--gap-none {
8887
gap: 0;
8988
}
@@ -100,7 +99,6 @@ const gridStyles = computed(() => {
10099
gap: 2rem;
101100
}
102101
103-
104102
.pu-grid--align-start {
105103
align-items: start;
106104
}
@@ -117,7 +115,6 @@ const gridStyles = computed(() => {
117115
align-items: stretch;
118116
}
119117
120-
121118
.pu-grid--justify-start {
122119
justify-items: start;
123120
}
@@ -142,18 +139,15 @@ const gridStyles = computed(() => {
142139
justify-content: space-evenly;
143140
}
144141
145-
146142
.pu-grid--responsive {
147143
@apply grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6;
148144
}
149145
150-
151146
.dark .pu-grid::before {
152147
background-image:
153148
url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none' stroke='%23464646' stroke-width='0.5' stroke-dasharray='2,2'/%3E%3C/svg%3E");
154149
}
155150
156-
157151
.pu-grid > * {
158152
@apply transition-all duration-200 ease-in-out;
159153
}
@@ -163,12 +157,10 @@ const gridStyles = computed(() => {
163157
filter: drop-shadow(0 4px 8px rgba(28, 28, 28, 0.1));
164158
}
165159
166-
167160
.dark .pu-grid > *:hover {
168161
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
169162
}
170163
171-
172164
.pu-grid > * {
173165
animation: gridItemEnter 0.3s ease-out;
174166
}
@@ -184,7 +176,6 @@ const gridStyles = computed(() => {
184176
}
185177
}
186178
187-
188179
.pu-grid > * {
189180
@apply relative;
190181
}

src/runtime/components/PUGridItem.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ const itemStyles = computed(() => {
7272
<style lang="css" scoped>
7373
.pu-grid-item {
7474
@apply relative p-4 bg-white dark:bg-primary-light-600 rounded-lg border border-gray-200 dark:border-primary-light-400;
75-
75+
7676
box-shadow:
7777
0 2px 4px rgba(28, 28, 28, 0.1),
7878
0 1px 2px rgba(28, 28, 28, 0.05);
7979
}
8080
81-
8281
.pu-grid-item::before {
8382
content: '';
8483
@apply absolute inset-0 pointer-events-none;
@@ -97,7 +96,6 @@ const itemStyles = computed(() => {
9796
mask-composite: xor;
9897
}
9998
100-
10199
.pu-grid-item::after {
102100
content: '';
103101
@apply absolute top-0 right-0 w-3 h-3 pointer-events-none;
@@ -106,7 +104,6 @@ const itemStyles = computed(() => {
106104
border-radius: 0 12px 0 0;
107105
}
108106
109-
110107
.pu-grid-item--align-start {
111108
align-self: start;
112109
}
@@ -123,7 +120,6 @@ const itemStyles = computed(() => {
123120
align-self: stretch;
124121
}
125122
126-
127123
.pu-grid-item--justify-start {
128124
justify-self: start;
129125
}
@@ -140,7 +136,6 @@ const itemStyles = computed(() => {
140136
justify-self: stretch;
141137
}
142138
143-
144139
.pu-grid-item:hover {
145140
@apply transform scale-[1.02] shadow-lg;
146141
box-shadow:
@@ -149,7 +144,6 @@ const itemStyles = computed(() => {
149144
filter: drop-shadow(0 4px 8px rgba(28, 28, 28, 0.1));
150145
}
151146
152-
153147
.pu-grid-item {
154148
animation: gridItemEnter 0.4s ease-out;
155149
}
@@ -165,7 +159,6 @@ const itemStyles = computed(() => {
165159
}
166160
}
167161
168-
169162
.dark .pu-grid-item {
170163
@apply bg-primary-light-600 border-primary-light-400;
171164
box-shadow:
@@ -185,7 +178,6 @@ const itemStyles = computed(() => {
185178
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
186179
}
187180
188-
189181
@media (max-width: 640px) {
190182
.pu-grid-item {
191183
@apply p-3;

src/runtime/components/PULoading.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ const loadingClass = computed(() => [
8787
@apply flex flex-col items-center justify-center;
8888
}
8989
90-
9190
.pu-loading__circular {
9291
@apply relative;
9392
}
@@ -122,7 +121,6 @@ const loadingClass = computed(() => [
122121
}
123122
}
124123
125-
126124
.pu-loading__dots {
127125
@apply flex gap-2;
128126
}
@@ -149,7 +147,6 @@ const loadingClass = computed(() => [
149147
}
150148
}
151149
152-
153150
.pu-loading__skeleton {
154151
@apply space-y-2 w-full;
155152
}
@@ -180,12 +177,10 @@ const loadingClass = computed(() => [
180177
}
181178
}
182179
183-
184180
.pu-loading__text {
185181
@apply mt-2 text-sm text-gray-600 dark:text-primary-light-300;
186182
}
187183
188-
189184
.pu-loading--small .pu-loading__spinner {
190185
@apply w-6 h-6;
191186
}
@@ -222,7 +217,6 @@ const loadingClass = computed(() => [
222217
@apply h-6;
223218
}
224219
225-
226220
.pu-loading__spinner {
227221
filter: drop-shadow(0 2px 4px rgba(28, 28, 28, 0.1));
228222
}

0 commit comments

Comments
 (0)