windly-ui 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -1
- package/app/app.vue +0 -10
- package/app/assets/css/tailwind.css +0 -3
- package/app/components/doc/component.vue +0 -34
- package/app/components/doc/megaSection.vue +0 -56
- package/app/components/doc/section.vue +0 -56
- package/app/pages/_docs.vue +0 -2420
- package/app/pages/index.vue +0 -137
- package/nuxt.config.ts +0 -19
- package/public/doc/avatar.avif +0 -0
- package/public/favicon.ico +0 -0
- package/public/robots.txt +0 -2
- package/tailwind.config.ts +0 -28
- package/tsconfig.json +0 -18
package/package.json
CHANGED
package/app/app.vue
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
const props = defineProps({
|
|
3
|
-
title: {
|
|
4
|
-
type: String
|
|
5
|
-
},
|
|
6
|
-
caption: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: ""
|
|
9
|
-
}
|
|
10
|
-
})
|
|
11
|
-
const sectionId = props.title.split(' ').join('-').toLocaleLowerCase()
|
|
12
|
-
const copySectionLink = async () => {
|
|
13
|
-
const url = `${window.location.origin}${window.location.pathname}#${sectionId}`
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
await navigator.clipboard.writeText(url)
|
|
17
|
-
console.log('Link copied:', url)
|
|
18
|
-
} catch (err) {
|
|
19
|
-
console.error('Failed to copy link', err)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
<template>
|
|
24
|
-
<div :id="sectionId" class="flex flex-col my-10">
|
|
25
|
-
<h4 class="text-3xl font-semibold text-gray-700 cursor-pointer" @click="copySectionLink"># {{title}}</h4>
|
|
26
|
-
<div v-if="caption" class="text-md font-light mt-2 text-gray-800 pl-7">{{caption}}</div>
|
|
27
|
-
<div class="my-6">
|
|
28
|
-
<UICodeBlock :title="title">
|
|
29
|
-
<slot />
|
|
30
|
-
</UICodeBlock>
|
|
31
|
-
</div>
|
|
32
|
-
<hr/>
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps({
|
|
5
|
-
title: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true
|
|
8
|
-
},
|
|
9
|
-
subTitle: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
caption: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
const sectionId = computed(() =>
|
|
20
|
-
props.title.split(' ').join('-').toLowerCase()
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
const copySectionLink = async (e) => {
|
|
24
|
-
e.stopPropagation()
|
|
25
|
-
|
|
26
|
-
const url = `${window.location.origin}${window.location.pathname}#${sectionId.value}`
|
|
27
|
-
|
|
28
|
-
try {
|
|
29
|
-
await navigator.clipboard.writeText(url)
|
|
30
|
-
console.log('Link copied:', url)
|
|
31
|
-
} catch (err) {
|
|
32
|
-
console.error('Failed to copy link', err)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
36
|
-
<template>
|
|
37
|
-
<section :id="sectionId">
|
|
38
|
-
<div class="flex flex-col my-10">
|
|
39
|
-
<UIAccordion class="!border-0" :default-open="true" :margin="false">
|
|
40
|
-
<template #header>
|
|
41
|
-
<h3 class="flex items-center gap-2 text-5xl font-semibold text-sky-500 group select-none">
|
|
42
|
-
{{ title }}
|
|
43
|
-
<span class="hidden group-hover:block text-xl hover:opacity-100" @click="copySectionLink">
|
|
44
|
-
#
|
|
45
|
-
</span>
|
|
46
|
-
</h3>
|
|
47
|
-
<div class="font-light text-gray-700">{{ subTitle }}</div>
|
|
48
|
-
</template>
|
|
49
|
-
<p v-if="caption" class="text-md font-light mt-2 text-gray-800 pl-7">
|
|
50
|
-
{{ caption }}
|
|
51
|
-
</p>
|
|
52
|
-
<slot />
|
|
53
|
-
</UIAccordion>
|
|
54
|
-
</div>
|
|
55
|
-
</section>
|
|
56
|
-
</template>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps({
|
|
5
|
-
title: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true
|
|
8
|
-
},
|
|
9
|
-
subTitle: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
caption: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
const sectionId = computed(() =>
|
|
20
|
-
props.title.split(' ').join('-').toLowerCase()
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
const copySectionLink = async (e) => {
|
|
24
|
-
e.stopPropagation()
|
|
25
|
-
|
|
26
|
-
const url = `${window.location.origin}${window.location.pathname}#${sectionId.value}`
|
|
27
|
-
|
|
28
|
-
try {
|
|
29
|
-
await navigator.clipboard.writeText(url)
|
|
30
|
-
console.log('Link copied:', url)
|
|
31
|
-
} catch (err) {
|
|
32
|
-
console.error('Failed to copy link', err)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
36
|
-
<template>
|
|
37
|
-
<section :id="sectionId">
|
|
38
|
-
<div class="flex flex-col my-10">
|
|
39
|
-
<UIAccordion :default-open="true">
|
|
40
|
-
<template #header>
|
|
41
|
-
<h3 class="flex items-center gap-2 text-5xl font-semibold text-sky-500 group select-none">
|
|
42
|
-
{{ title }}
|
|
43
|
-
<span class="hidden group-hover:block text-xl hover:opacity-100" @click="copySectionLink">
|
|
44
|
-
#
|
|
45
|
-
</span>
|
|
46
|
-
</h3>
|
|
47
|
-
<div class="font-light text-gray-700">{{ subTitle }}</div>
|
|
48
|
-
</template>
|
|
49
|
-
<p v-if="caption" class="text-md font-light mt-2 text-gray-800 pl-7">
|
|
50
|
-
{{ caption }}
|
|
51
|
-
</p>
|
|
52
|
-
<slot />
|
|
53
|
-
</UIAccordion>
|
|
54
|
-
</div>
|
|
55
|
-
</section>
|
|
56
|
-
</template>
|