docus 5.11.0 → 5.12.0
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/app/app.config.ts +3 -0
- package/app/app.vue +22 -27
- package/app/components/app/AppSearch.vue +54 -0
- package/app/components/docs/DocsAsideRight.vue +1 -2
- package/app/components/docs/DocsAsideRightBottom.vue +2 -2
- package/app/components/docs/DocsPageHeaderLinks.vue +4 -4
- package/app/composables/useDocusShortcuts.ts +24 -0
- package/app/composables/useUIConfig.ts +1 -1
- package/app/error.vue +1 -10
- package/app/pages/[[lang]]/[...slug].vue +6 -5
- package/app/types/index.d.ts +22 -0
- package/i18n/locales/pl.json +2 -2
- package/modules/assistant/index.ts +9 -3
- package/modules/assistant/runtime/components/AssistantChat.vue +5 -2
- package/modules/assistant/runtime/components/AssistantComark.ts +9 -0
- package/modules/assistant/runtime/components/AssistantFloatingInput.vue +9 -10
- package/modules/assistant/runtime/components/AssistantIndicator.vue +116 -0
- package/modules/assistant/runtime/components/AssistantPanel.vue +268 -258
- package/modules/assistant/runtime/components/AssistantPreStream.vue +1 -1
- package/modules/assistant/runtime/composables/useAssistant.ts +34 -38
- package/modules/assistant/runtime/server/api/search.ts +22 -42
- package/modules/css.ts +8 -0
- package/nuxt.schema.ts +28 -0
- package/package.json +46 -28
- package/server/mcp/tools/get-page.ts +11 -5
- package/server/mcp/tools/list-pages.ts +5 -4
- package/server/routes/sitemap.xml.ts +7 -4
- package/server/utils/content.ts +4 -0
- package/modules/assistant/runtime/components/AssistantLoading.vue +0 -164
- package/modules/assistant/runtime/components/AssistantMatrix.vue +0 -92
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
interface Props {
|
|
3
|
-
size?: number
|
|
4
|
-
dotSize?: number
|
|
5
|
-
gap?: number
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
9
|
-
size: 4,
|
|
10
|
-
dotSize: 2,
|
|
11
|
-
gap: 2,
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
const totalDots = computed(() => props.size * props.size)
|
|
15
|
-
const activeDots = ref<Set<number>>(new Set())
|
|
16
|
-
|
|
17
|
-
// Patterns for 4x4 grid (indices 0-15)
|
|
18
|
-
// Grid layout:
|
|
19
|
-
// 0 1 2 3
|
|
20
|
-
// 4 5 6 7
|
|
21
|
-
// 8 9 10 11
|
|
22
|
-
// 12 13 14 15
|
|
23
|
-
const patterns = [
|
|
24
|
-
// Spiral inward
|
|
25
|
-
[[0], [1], [2], [3], [7], [11], [15], [14], [13], [12], [8], [4], [5], [6], [10], [9]],
|
|
26
|
-
// Wave horizontal
|
|
27
|
-
[[0, 4, 8, 12], [1, 5, 9, 13], [2, 6, 10, 14], [3, 7, 11, 15]],
|
|
28
|
-
// Diamond pulse
|
|
29
|
-
[[5, 6, 9, 10], [1, 4, 7, 8, 11, 14], [0, 3, 12, 15], [1, 4, 7, 8, 11, 14], [5, 6, 9, 10]],
|
|
30
|
-
// Loading bar
|
|
31
|
-
[[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]],
|
|
32
|
-
// Corners rotate
|
|
33
|
-
[[0], [3], [15], [12]],
|
|
34
|
-
// Cross pulse
|
|
35
|
-
[[5, 6, 9, 10], [1, 2, 4, 7, 8, 11, 13, 14], [0, 3, 12, 15]],
|
|
36
|
-
// Snake
|
|
37
|
-
[[0], [1], [2], [3], [7], [6], [5], [4], [8], [9], [10], [11], [15], [14], [13], [12]],
|
|
38
|
-
// Diagonal wave
|
|
39
|
-
[[0], [1, 4], [2, 5, 8], [3, 6, 9, 12], [7, 10, 13], [11, 14], [15]],
|
|
40
|
-
]
|
|
41
|
-
|
|
42
|
-
let patternIndex = 0
|
|
43
|
-
let stepIndex = 0
|
|
44
|
-
let interval: ReturnType<typeof setInterval> | null = null
|
|
45
|
-
|
|
46
|
-
function nextStep() {
|
|
47
|
-
const pattern = patterns[patternIndex]
|
|
48
|
-
if (!pattern) return
|
|
49
|
-
|
|
50
|
-
activeDots.value = new Set(pattern[stepIndex])
|
|
51
|
-
stepIndex++
|
|
52
|
-
|
|
53
|
-
if (stepIndex >= pattern.length) {
|
|
54
|
-
stepIndex = 0
|
|
55
|
-
patternIndex = (patternIndex + 1) % patterns.length
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const gridStyle = computed(() => ({
|
|
60
|
-
display: 'grid',
|
|
61
|
-
gridTemplateColumns: `repeat(${props.size}, 1fr)`,
|
|
62
|
-
gap: `${props.gap}px`,
|
|
63
|
-
width: `${props.size * props.dotSize + (props.size - 1) * props.gap}px`,
|
|
64
|
-
height: `${props.size * props.dotSize + (props.size - 1) * props.gap}px`,
|
|
65
|
-
}))
|
|
66
|
-
|
|
67
|
-
const dotStyle = computed(() => ({
|
|
68
|
-
width: `${props.dotSize}px`,
|
|
69
|
-
height: `${props.dotSize}px`,
|
|
70
|
-
}))
|
|
71
|
-
|
|
72
|
-
onMounted(() => {
|
|
73
|
-
interval = setInterval(nextStep, 120)
|
|
74
|
-
nextStep()
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
onUnmounted(() => {
|
|
78
|
-
if (interval) clearInterval(interval)
|
|
79
|
-
})
|
|
80
|
-
</script>
|
|
81
|
-
|
|
82
|
-
<template>
|
|
83
|
-
<div :style="gridStyle">
|
|
84
|
-
<span
|
|
85
|
-
v-for="i in totalDots"
|
|
86
|
-
:key="i"
|
|
87
|
-
class="rounded-[0.5px] bg-current transition-opacity duration-100"
|
|
88
|
-
:class="activeDots.has(i - 1) ? 'opacity-100' : 'opacity-20'"
|
|
89
|
-
:style="dotStyle"
|
|
90
|
-
/>
|
|
91
|
-
</div>
|
|
92
|
-
</template>
|