Skip to content

Commit 1073333

Browse files
committed
refactor: remove HTML comments from all components and pages
1 parent 401c80b commit 1073333

File tree

17 files changed

+111
-53
lines changed

17 files changed

+111
-53
lines changed

docs/app/components/paper/PUTabs.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
22
<div class="tabs relative font-patrick">
3-
<!-- Tabs Navigation -->
43
<div class="tabs-nav relative">
54
<div
65
v-for="(tab, index) in tabs"

docs/app/components/paper/ShowButton.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<CodeBlock v-if="type === 'all-variants'">
2727
<template #preview>
2828
<div class="flex flex-col gap-4">
29-
<!-- Flavors -->
3029
<div class="flex gap-2">
3130
<PUButton flavor="normal">
3231
Normal
@@ -39,7 +38,6 @@
3938
</PUButton>
4039
</div>
4140

42-
<!-- Sizes -->
4341
<div class="flex gap-2 items-center">
4442
<PUButton size="small">
4543
Small
@@ -52,7 +50,6 @@
5250
</PUButton>
5351
</div>
5452

55-
<!-- Shapes -->
5653
<div class="flex gap-2">
5754
<PUButton shape="rounded">
5855
Rounded

docs/app/components/paper/ShowGrid.vue

Lines changed: 87 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<template>
22
<div class="grid-demo">
3-
<CodeBlock v-if="type === 'basic'" :compare="false">
3+
<CodeBlock
4+
v-if="type === 'basic'"
5+
:compare="false"
6+
>
47
<template #preview>
5-
<PUGrid :cols="3" gap="medium">
8+
<PUGrid
9+
:cols="3"
10+
gap="medium"
11+
>
612
<PUGridItem>
713
Item 1
814
</PUGridItem>
@@ -19,10 +25,19 @@
1925
</template>
2026
</CodeBlock>
2127

22-
<CodeBlock v-if="type === 'responsive'" :compare="false">
28+
<CodeBlock
29+
v-if="type === 'responsive'"
30+
:compare="false"
31+
>
2332
<template #preview>
24-
<PUGrid :responsive="true" gap="large">
25-
<PUGridItem v-for="i in 4" :key="i">
33+
<PUGrid
34+
:responsive="true"
35+
gap="large"
36+
>
37+
<PUGridItem
38+
v-for="i in 4"
39+
:key="i"
40+
>
2641
Item {{ i }}
2742
</PUGridItem>
2843
</PUGrid>
@@ -32,9 +47,15 @@
3247
</template>
3348
</CodeBlock>
3449

35-
<CodeBlock v-if="type === 'span'" :compare="false">
50+
<CodeBlock
51+
v-if="type === 'span'"
52+
:compare="false"
53+
>
3654
<template #preview>
37-
<PUGrid :cols="4" gap="medium">
55+
<PUGrid
56+
:cols="4"
57+
gap="medium"
58+
>
3859
<PUGridItem :col-span="2">
3960
Large item (2 columns)
4061
</PUGridItem>
@@ -54,9 +75,17 @@
5475
</template>
5576
</CodeBlock>
5677

57-
<CodeBlock v-if="type === 'alignment'" :compare="false">
78+
<CodeBlock
79+
v-if="type === 'alignment'"
80+
:compare="false"
81+
>
5882
<template #preview>
59-
<PUGrid :cols="3" gap="medium" alignment="center" justify="space-between">
83+
<PUGrid
84+
:cols="3"
85+
gap="medium"
86+
alignment="center"
87+
justify="space-between"
88+
>
6089
<PUGridItem alignment="start">
6190
Top aligned
6291
</PUGridItem>
@@ -73,10 +102,20 @@
73102
</template>
74103
</CodeBlock>
75104

76-
<CodeBlock v-if="type === 'complex'" :compare="false">
105+
<CodeBlock
106+
v-if="type === 'complex'"
107+
:compare="false"
108+
>
77109
<template #preview>
78-
<PUGrid :cols="6" :rows="4" gap="large">
79-
<PUGridItem :col-span="2" :row-span="2">
110+
<PUGrid
111+
:cols="6"
112+
:rows="4"
113+
gap="large"
114+
>
115+
<PUGridItem
116+
:col-span="2"
117+
:row-span="2"
118+
>
80119
Header
81120
</PUGridItem>
82121
<PUGridItem :col-span="4">
@@ -101,9 +140,15 @@
101140
</template>
102141
</CodeBlock>
103142

104-
<CodeBlock v-if="type === 'masonry'" :compare="false">
143+
<CodeBlock
144+
v-if="type === 'masonry'"
145+
:compare="false"
146+
>
105147
<template #preview>
106-
<PUGrid cols="repeat(auto-fill, minmax(250px, 1fr))" gap="medium">
148+
<PUGrid
149+
cols="repeat(auto-fill, minmax(250px, 1fr))"
150+
gap="medium"
151+
>
107152
<PUGridItem
108153
v-for="i in 6"
109154
:key="i"
@@ -118,21 +163,42 @@
118163
</template>
119164
</CodeBlock>
120165

121-
<CodeBlock v-if="type === 'gaps'" :compare="false">
166+
<CodeBlock
167+
v-if="type === 'gaps'"
168+
:compare="false"
169+
>
122170
<template #preview>
123171
<div class="space-y-4">
124-
<PUGrid :cols="4" gap="small">
125-
<PUGridItem v-for="i in 4" :key="'small-' + i">
172+
<PUGrid
173+
:cols="4"
174+
gap="small"
175+
>
176+
<PUGridItem
177+
v-for="i in 4"
178+
:key="'small-' + i"
179+
>
126180
Item {{ i }}
127181
</PUGridItem>
128182
</PUGrid>
129-
<PUGrid :cols="4" gap="medium">
130-
<PUGridItem v-for="i in 4" :key="'medium-' + i">
183+
<PUGrid
184+
:cols="4"
185+
gap="medium"
186+
>
187+
<PUGridItem
188+
v-for="i in 4"
189+
:key="'medium-' + i"
190+
>
131191
Item {{ i }}
132192
</PUGridItem>
133193
</PUGrid>
134-
<PUGrid :cols="4" gap="large">
135-
<PUGridItem v-for="i in 4" :key="'large-' + i">
194+
<PUGrid
195+
:cols="4"
196+
gap="large"
197+
>
198+
<PUGridItem
199+
v-for="i in 4"
200+
:key="'large-' + i"
201+
>
136202
Item {{ i }}
137203
</PUGridItem>
138204
</PUGrid>

docs/app/components/paper/ShowLoading.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@
3535
:compare="false"
3636
>
3737
<template #preview>
38-
<PULoading
39-
type="skeleton"
40-
size="medium"
41-
/>
38+
<div class="w-20 h-10">
39+
<PULoading
40+
type="skeleton"
41+
size="medium"
42+
/>
43+
</div>
4244
</template>
4345
<template #code>
4446
<slot name="code" />

docs/app/components/paper/ShowRadio.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<CodeBlock v-if="type === 'all-variants'">
3333
<template #preview>
3434
<div class="flex flex-col gap-4">
35-
<!-- Flavors -->
3635
<div class="flex flex-col gap-2">
3736
<PURadio
3837
v-model="selectedValue"
@@ -54,7 +53,6 @@
5453
/>
5554
</div>
5655

57-
<!-- Disabled State -->
5856
<div class="flex flex-col gap-2">
5957
<PURadio
6058
v-model="selectedValue"

docs/app/components/paper/ShowTooltip.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
22
<div class="pu-tooltip-demo font-patrick">
3-
<!-- Top Variations -->
43
<CodeBlock v-if="type === 'top'">
54
<template #preview>
65
<PUTooltip :positions="['top']">
@@ -34,7 +33,6 @@
3433
</template>
3534
</CodeBlock>
3635

37-
<!-- Bottom Variations -->
3836
<CodeBlock v-if="type === 'bottom'">
3937
<template #preview>
4038
<PUTooltip :positions="['bottom']">
@@ -68,7 +66,6 @@
6866
</template>
6967
</CodeBlock>
7068

71-
<!-- Left Variations -->
7269
<CodeBlock v-if="type === 'left'">
7370
<template #preview>
7471
<PUTooltip :positions="['left']">
@@ -102,7 +99,6 @@
10299
</template>
103100
</CodeBlock>
104101

105-
<!-- Right Variations -->
106102
<CodeBlock v-if="type === 'right'">
107103
<template #preview>
108104
<PUTooltip :positions="['right']">

docs/app/layouts/default.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- eslint-disable vue/multi-word-component-names -->
21
<template>
32
<div
43
class="main h-screen flex justify-center"

docs/app/pages/[...slug].vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- eslint-disable vue/multi-word-component-names -->
21
<script setup lang="ts">
32
const route = useRoute()
43

docs/app/pages/docs/[...slug].vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- eslint-disable vue/multi-word-component-names -->
21
<script setup lang="ts">
32
const route = useRoute()
43

docs/app/pages/docs/components/[...slug].vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- eslint-disable vue/multi-word-component-names -->
21
<script setup lang="ts">
32
const route = useRoute()
43

0 commit comments

Comments
 (0)