-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputNumber.vue
More file actions
209 lines (196 loc) · 6.13 KB
/
Copy pathInputNumber.vue
File metadata and controls
209 lines (196 loc) · 6.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<script setup lang="ts">
const colors = ['primary', 'secondary', 'success', 'info', 'warning', 'error', 'neutral'] as const
const variants = ['outline', 'soft', 'subtle', 'ghost'] as const
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const
const concurrency = ref(4)
const retries = ref(3)
const timeout = ref(30)
const leaseSeconds = ref(60)
const replicas = ref(1)
const maxEvents = ref(1000)
const traceDepth = ref<number | null>(null)
</script>
<template>
<div class="flex flex-col gap-8">
<GallerySection title="Variants">
<div class="flex flex-wrap gap-4">
<UInputNumber
v-for="v in variants"
:key="v"
:variant="v"
:default-value="5"
:min="0"
:max="10"
:placeholder="v"
class="w-36"
/>
</div>
</GallerySection>
<GallerySection title="Colors">
<div class="flex flex-wrap gap-4">
<UInputNumber
v-for="c in colors"
:key="c"
:color="c"
variant="outline"
:default-value="1"
:min="0"
:max="100"
class="w-36"
/>
</div>
</GallerySection>
<GallerySection title="Sizes">
<div class="flex flex-wrap items-center gap-4">
<UInputNumber
v-for="s in sizes"
:key="s"
:size="s"
:default-value="8"
:min="0"
:max="64"
class="w-32"
/>
</div>
</GallerySection>
<GallerySection title="Orientation">
<div class="flex flex-wrap gap-6">
<div class="flex flex-col gap-1">
<span class="text-sm text-dimmed">Horizontal (default)</span>
<UInputNumber
v-model="concurrency"
orientation="horizontal"
:min="1"
:max="32"
class="w-40"
/>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm text-dimmed">Vertical</span>
<UInputNumber
v-model="replicas"
orientation="vertical"
:min="1"
:max="16"
class="w-40"
/>
</div>
</div>
</GallerySection>
<GallerySection title="States">
<div class="flex flex-wrap gap-4">
<UInputNumber :default-value="5" :min="0" :max="10" placeholder="Normal" class="w-36" />
<UInputNumber :default-value="5" :min="0" :max="10" highlight class="w-36" />
<UInputNumber :default-value="5" :min="0" :max="10" disabled class="w-36" />
<UInputNumber :default-value="5" :min="0" :max="10" readonly class="w-36" />
</div>
</GallerySection>
<GallerySection title="Custom icons">
<div class="flex flex-wrap gap-4">
<UInputNumber
:default-value="60"
:min="0"
:max="3600"
:step="15"
increment-icon="i-material-symbols-add-circle-outline"
decrement-icon="i-material-symbols-remove-circle-outline"
color="info"
class="w-40"
/>
<UInputNumber
:default-value="10"
:min="1"
:max="100"
increment-icon="i-material-symbols-keyboard-arrow-up"
decrement-icon="i-material-symbols-keyboard-arrow-down"
orientation="vertical"
color="secondary"
class="w-40"
/>
</div>
</GallerySection>
<GallerySection title="Realistic usage — Agent runtime config">
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Concurrency limit</span>
<UInputNumber
v-model="concurrency"
:min="1"
:max="32"
color="primary"
placeholder="Max parallel jobs"
class="w-full"
/>
<span class="text-xs text-dimmed">Jobs running in parallel per agent</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Max retries</span>
<UInputNumber
v-model="retries"
:min="0"
:max="10"
color="warning"
variant="soft"
placeholder="Retry count"
class="w-full"
/>
<span class="text-xs text-dimmed">Retry attempts before job failure</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Timeout (s)</span>
<UInputNumber
v-model="timeout"
:min="1"
:max="3600"
:step="5"
color="neutral"
variant="subtle"
placeholder="Seconds"
class="w-full"
/>
<span class="text-xs text-dimmed">Session execution timeout</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Lease duration (s)</span>
<UInputNumber
v-model="leaseSeconds"
:min="10"
:max="86400"
:step="10"
color="success"
placeholder="Lease seconds"
class="w-full"
/>
<span class="text-xs text-dimmed">Runtime lease renewal interval</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Max event buffer</span>
<UInputNumber
v-model="maxEvents"
:min="100"
:max="100000"
:step="100"
color="info"
variant="soft"
placeholder="Events"
class="w-full"
/>
<span class="text-xs text-dimmed">Trace event buffer capacity</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Trace depth</span>
<UInputNumber
v-model="traceDepth"
:min="1"
:max="50"
color="error"
variant="subtle"
placeholder="Unlimited"
class="w-full"
/>
<span class="text-xs text-dimmed">Max span nesting depth (empty = unlimited)</span>
</div>
</div>
</GallerySection>
</div>
</template>