@scalar/api-client 2.0.30 → 2.0.31
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/CHANGELOG.md +8 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +62 -47
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +9 -1
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeDropdownWidget.js +62 -51
- package/dist/components/CodeInput/codeVariableWidget.d.ts +10 -1
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +63 -56
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +65 -34
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/layouts/App/create-api-client-app.d.ts +2966 -0
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -0
- package/dist/layouts/App/create-api-client-app.js +18 -0
- package/dist/layouts/App/index.d.ts +1 -1
- package/dist/layouts/App/index.d.ts.map +1 -1
- package/dist/layouts/App/index.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -17
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -24
- package/dist/layouts/Modal/api-client-modal.d.ts +5905 -57
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.js +27 -129
- package/dist/libs/create-client.d.ts +3025 -0
- package/dist/libs/create-client.d.ts.map +1 -0
- package/dist/libs/create-client.js +147 -0
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +11 -9
- package/dist/router.d.ts +4 -20
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +28 -44
- package/dist/store/index.d.ts +2 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +5 -0
- package/dist/store/workspace.d.ts +3028 -603
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +454 -432
- package/dist/style.css +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +8 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +24 -23
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +26 -20
- package/package.json +10 -6
- package/dist/layouts/App/createApiClientApp.d.ts +0 -16
- package/dist/layouts/App/createApiClientApp.d.ts.map +0 -1
- package/dist/layouts/App/createApiClientApp.js +0 -62
- package/dist/store/topNav.d.ts +0 -445
- package/dist/store/topNav.d.ts.map +0 -1
- package/dist/store/topNav.js +0 -53
package/dist/store/topNav.d.ts
DELETED
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
import type { Icon } from '@scalar/components';
|
|
2
|
-
/**
|
|
3
|
-
* adding a nav item sets the new index and nav item
|
|
4
|
-
* based on the route
|
|
5
|
-
*/
|
|
6
|
-
declare function addNavItem(): void;
|
|
7
|
-
declare function setNavItemIdx(idx: number): void;
|
|
8
|
-
declare function removeNavItem(idx: number): void;
|
|
9
|
-
/**
|
|
10
|
-
* ## TopNav
|
|
11
|
-
* Access and updaters for the top nav list
|
|
12
|
-
*/
|
|
13
|
-
export declare function useTopNav(): {
|
|
14
|
-
topNavItems: {
|
|
15
|
-
readonly [x: number]: {
|
|
16
|
-
readonly label: string;
|
|
17
|
-
readonly path: string;
|
|
18
|
-
readonly icon: Icon;
|
|
19
|
-
};
|
|
20
|
-
readonly length: number;
|
|
21
|
-
readonly toString: () => string;
|
|
22
|
-
readonly toLocaleString: {
|
|
23
|
-
(): string;
|
|
24
|
-
(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
25
|
-
};
|
|
26
|
-
readonly pop: () => {
|
|
27
|
-
label: string;
|
|
28
|
-
path: string;
|
|
29
|
-
icon: Icon;
|
|
30
|
-
} | undefined;
|
|
31
|
-
readonly push: (...items: {
|
|
32
|
-
label: string;
|
|
33
|
-
path: string;
|
|
34
|
-
icon: Icon;
|
|
35
|
-
}[]) => number;
|
|
36
|
-
readonly concat: {
|
|
37
|
-
(...items: ConcatArray<{
|
|
38
|
-
label: string;
|
|
39
|
-
path: string;
|
|
40
|
-
icon: Icon;
|
|
41
|
-
}>[]): {
|
|
42
|
-
label: string;
|
|
43
|
-
path: string;
|
|
44
|
-
icon: Icon;
|
|
45
|
-
}[];
|
|
46
|
-
(...items: ({
|
|
47
|
-
label: string;
|
|
48
|
-
path: string;
|
|
49
|
-
icon: Icon;
|
|
50
|
-
} | ConcatArray<{
|
|
51
|
-
label: string;
|
|
52
|
-
path: string;
|
|
53
|
-
icon: Icon;
|
|
54
|
-
}>)[]): {
|
|
55
|
-
label: string;
|
|
56
|
-
path: string;
|
|
57
|
-
icon: Icon;
|
|
58
|
-
}[];
|
|
59
|
-
};
|
|
60
|
-
readonly join: (separator?: string) => string;
|
|
61
|
-
readonly reverse: () => {
|
|
62
|
-
label: string;
|
|
63
|
-
path: string;
|
|
64
|
-
icon: Icon;
|
|
65
|
-
}[];
|
|
66
|
-
readonly shift: () => {
|
|
67
|
-
label: string;
|
|
68
|
-
path: string;
|
|
69
|
-
icon: Icon;
|
|
70
|
-
} | undefined;
|
|
71
|
-
readonly slice: (start?: number, end?: number) => {
|
|
72
|
-
label: string;
|
|
73
|
-
path: string;
|
|
74
|
-
icon: Icon;
|
|
75
|
-
}[];
|
|
76
|
-
readonly sort: (compareFn?: ((a: {
|
|
77
|
-
label: string;
|
|
78
|
-
path: string;
|
|
79
|
-
icon: Icon;
|
|
80
|
-
}, b: {
|
|
81
|
-
label: string;
|
|
82
|
-
path: string;
|
|
83
|
-
icon: Icon;
|
|
84
|
-
}) => number) | undefined) => import("vue").Reactive<{
|
|
85
|
-
label: string;
|
|
86
|
-
path: string;
|
|
87
|
-
icon: Icon;
|
|
88
|
-
}[]>;
|
|
89
|
-
readonly splice: {
|
|
90
|
-
(start: number, deleteCount?: number): {
|
|
91
|
-
label: string;
|
|
92
|
-
path: string;
|
|
93
|
-
icon: Icon;
|
|
94
|
-
}[];
|
|
95
|
-
(start: number, deleteCount: number, ...items: {
|
|
96
|
-
label: string;
|
|
97
|
-
path: string;
|
|
98
|
-
icon: Icon;
|
|
99
|
-
}[]): {
|
|
100
|
-
label: string;
|
|
101
|
-
path: string;
|
|
102
|
-
icon: Icon;
|
|
103
|
-
}[];
|
|
104
|
-
};
|
|
105
|
-
readonly unshift: (...items: {
|
|
106
|
-
label: string;
|
|
107
|
-
path: string;
|
|
108
|
-
icon: Icon;
|
|
109
|
-
}[]) => number;
|
|
110
|
-
readonly indexOf: (searchElement: {
|
|
111
|
-
label: string;
|
|
112
|
-
path: string;
|
|
113
|
-
icon: Icon;
|
|
114
|
-
}, fromIndex?: number) => number;
|
|
115
|
-
readonly lastIndexOf: (searchElement: {
|
|
116
|
-
label: string;
|
|
117
|
-
path: string;
|
|
118
|
-
icon: Icon;
|
|
119
|
-
}, fromIndex?: number) => number;
|
|
120
|
-
readonly every: {
|
|
121
|
-
<S extends {
|
|
122
|
-
label: string;
|
|
123
|
-
path: string;
|
|
124
|
-
icon: Icon;
|
|
125
|
-
}>(predicate: (value: {
|
|
126
|
-
label: string;
|
|
127
|
-
path: string;
|
|
128
|
-
icon: Icon;
|
|
129
|
-
}, index: number, array: {
|
|
130
|
-
label: string;
|
|
131
|
-
path: string;
|
|
132
|
-
icon: Icon;
|
|
133
|
-
}[]) => value is S, thisArg?: any): this is S[];
|
|
134
|
-
(predicate: (value: {
|
|
135
|
-
label: string;
|
|
136
|
-
path: string;
|
|
137
|
-
icon: Icon;
|
|
138
|
-
}, index: number, array: {
|
|
139
|
-
label: string;
|
|
140
|
-
path: string;
|
|
141
|
-
icon: Icon;
|
|
142
|
-
}[]) => unknown, thisArg?: any): boolean;
|
|
143
|
-
};
|
|
144
|
-
readonly some: (predicate: (value: {
|
|
145
|
-
label: string;
|
|
146
|
-
path: string;
|
|
147
|
-
icon: Icon;
|
|
148
|
-
}, index: number, array: {
|
|
149
|
-
label: string;
|
|
150
|
-
path: string;
|
|
151
|
-
icon: Icon;
|
|
152
|
-
}[]) => unknown, thisArg?: any) => boolean;
|
|
153
|
-
readonly forEach: (callbackfn: (value: {
|
|
154
|
-
label: string;
|
|
155
|
-
path: string;
|
|
156
|
-
icon: Icon;
|
|
157
|
-
}, index: number, array: {
|
|
158
|
-
label: string;
|
|
159
|
-
path: string;
|
|
160
|
-
icon: Icon;
|
|
161
|
-
}[]) => void, thisArg?: any) => void;
|
|
162
|
-
readonly map: <U>(callbackfn: (value: {
|
|
163
|
-
label: string;
|
|
164
|
-
path: string;
|
|
165
|
-
icon: Icon;
|
|
166
|
-
}, index: number, array: {
|
|
167
|
-
label: string;
|
|
168
|
-
path: string;
|
|
169
|
-
icon: Icon;
|
|
170
|
-
}[]) => U, thisArg?: any) => U[];
|
|
171
|
-
readonly filter: {
|
|
172
|
-
<S extends {
|
|
173
|
-
label: string;
|
|
174
|
-
path: string;
|
|
175
|
-
icon: Icon;
|
|
176
|
-
}>(predicate: (value: {
|
|
177
|
-
label: string;
|
|
178
|
-
path: string;
|
|
179
|
-
icon: Icon;
|
|
180
|
-
}, index: number, array: {
|
|
181
|
-
label: string;
|
|
182
|
-
path: string;
|
|
183
|
-
icon: Icon;
|
|
184
|
-
}[]) => value is S, thisArg?: any): S[];
|
|
185
|
-
(predicate: (value: {
|
|
186
|
-
label: string;
|
|
187
|
-
path: string;
|
|
188
|
-
icon: Icon;
|
|
189
|
-
}, index: number, array: {
|
|
190
|
-
label: string;
|
|
191
|
-
path: string;
|
|
192
|
-
icon: Icon;
|
|
193
|
-
}[]) => unknown, thisArg?: any): {
|
|
194
|
-
label: string;
|
|
195
|
-
path: string;
|
|
196
|
-
icon: Icon;
|
|
197
|
-
}[];
|
|
198
|
-
};
|
|
199
|
-
readonly reduce: {
|
|
200
|
-
(callbackfn: (previousValue: {
|
|
201
|
-
label: string;
|
|
202
|
-
path: string;
|
|
203
|
-
icon: Icon;
|
|
204
|
-
}, currentValue: {
|
|
205
|
-
label: string;
|
|
206
|
-
path: string;
|
|
207
|
-
icon: Icon;
|
|
208
|
-
}, currentIndex: number, array: {
|
|
209
|
-
label: string;
|
|
210
|
-
path: string;
|
|
211
|
-
icon: Icon;
|
|
212
|
-
}[]) => {
|
|
213
|
-
label: string;
|
|
214
|
-
path: string;
|
|
215
|
-
icon: Icon;
|
|
216
|
-
}): {
|
|
217
|
-
label: string;
|
|
218
|
-
path: string;
|
|
219
|
-
icon: Icon;
|
|
220
|
-
};
|
|
221
|
-
(callbackfn: (previousValue: {
|
|
222
|
-
label: string;
|
|
223
|
-
path: string;
|
|
224
|
-
icon: Icon;
|
|
225
|
-
}, currentValue: {
|
|
226
|
-
label: string;
|
|
227
|
-
path: string;
|
|
228
|
-
icon: Icon;
|
|
229
|
-
}, currentIndex: number, array: {
|
|
230
|
-
label: string;
|
|
231
|
-
path: string;
|
|
232
|
-
icon: Icon;
|
|
233
|
-
}[]) => {
|
|
234
|
-
label: string;
|
|
235
|
-
path: string;
|
|
236
|
-
icon: Icon;
|
|
237
|
-
}, initialValue: {
|
|
238
|
-
label: string;
|
|
239
|
-
path: string;
|
|
240
|
-
icon: Icon;
|
|
241
|
-
}): {
|
|
242
|
-
label: string;
|
|
243
|
-
path: string;
|
|
244
|
-
icon: Icon;
|
|
245
|
-
};
|
|
246
|
-
<U>(callbackfn: (previousValue: U, currentValue: {
|
|
247
|
-
label: string;
|
|
248
|
-
path: string;
|
|
249
|
-
icon: Icon;
|
|
250
|
-
}, currentIndex: number, array: {
|
|
251
|
-
label: string;
|
|
252
|
-
path: string;
|
|
253
|
-
icon: Icon;
|
|
254
|
-
}[]) => U, initialValue: U): U;
|
|
255
|
-
};
|
|
256
|
-
readonly reduceRight: {
|
|
257
|
-
(callbackfn: (previousValue: {
|
|
258
|
-
label: string;
|
|
259
|
-
path: string;
|
|
260
|
-
icon: Icon;
|
|
261
|
-
}, currentValue: {
|
|
262
|
-
label: string;
|
|
263
|
-
path: string;
|
|
264
|
-
icon: Icon;
|
|
265
|
-
}, currentIndex: number, array: {
|
|
266
|
-
label: string;
|
|
267
|
-
path: string;
|
|
268
|
-
icon: Icon;
|
|
269
|
-
}[]) => {
|
|
270
|
-
label: string;
|
|
271
|
-
path: string;
|
|
272
|
-
icon: Icon;
|
|
273
|
-
}): {
|
|
274
|
-
label: string;
|
|
275
|
-
path: string;
|
|
276
|
-
icon: Icon;
|
|
277
|
-
};
|
|
278
|
-
(callbackfn: (previousValue: {
|
|
279
|
-
label: string;
|
|
280
|
-
path: string;
|
|
281
|
-
icon: Icon;
|
|
282
|
-
}, currentValue: {
|
|
283
|
-
label: string;
|
|
284
|
-
path: string;
|
|
285
|
-
icon: Icon;
|
|
286
|
-
}, currentIndex: number, array: {
|
|
287
|
-
label: string;
|
|
288
|
-
path: string;
|
|
289
|
-
icon: Icon;
|
|
290
|
-
}[]) => {
|
|
291
|
-
label: string;
|
|
292
|
-
path: string;
|
|
293
|
-
icon: Icon;
|
|
294
|
-
}, initialValue: {
|
|
295
|
-
label: string;
|
|
296
|
-
path: string;
|
|
297
|
-
icon: Icon;
|
|
298
|
-
}): {
|
|
299
|
-
label: string;
|
|
300
|
-
path: string;
|
|
301
|
-
icon: Icon;
|
|
302
|
-
};
|
|
303
|
-
<U>(callbackfn: (previousValue: U, currentValue: {
|
|
304
|
-
label: string;
|
|
305
|
-
path: string;
|
|
306
|
-
icon: Icon;
|
|
307
|
-
}, currentIndex: number, array: {
|
|
308
|
-
label: string;
|
|
309
|
-
path: string;
|
|
310
|
-
icon: Icon;
|
|
311
|
-
}[]) => U, initialValue: U): U;
|
|
312
|
-
};
|
|
313
|
-
readonly find: {
|
|
314
|
-
<S extends {
|
|
315
|
-
label: string;
|
|
316
|
-
path: string;
|
|
317
|
-
icon: Icon;
|
|
318
|
-
}>(predicate: (value: {
|
|
319
|
-
label: string;
|
|
320
|
-
path: string;
|
|
321
|
-
icon: Icon;
|
|
322
|
-
}, index: number, obj: {
|
|
323
|
-
label: string;
|
|
324
|
-
path: string;
|
|
325
|
-
icon: Icon;
|
|
326
|
-
}[]) => value is S, thisArg?: any): S | undefined;
|
|
327
|
-
(predicate: (value: {
|
|
328
|
-
label: string;
|
|
329
|
-
path: string;
|
|
330
|
-
icon: Icon;
|
|
331
|
-
}, index: number, obj: {
|
|
332
|
-
label: string;
|
|
333
|
-
path: string;
|
|
334
|
-
icon: Icon;
|
|
335
|
-
}[]) => unknown, thisArg?: any): {
|
|
336
|
-
label: string;
|
|
337
|
-
path: string;
|
|
338
|
-
icon: Icon;
|
|
339
|
-
} | undefined;
|
|
340
|
-
};
|
|
341
|
-
readonly findIndex: (predicate: (value: {
|
|
342
|
-
label: string;
|
|
343
|
-
path: string;
|
|
344
|
-
icon: Icon;
|
|
345
|
-
}, index: number, obj: {
|
|
346
|
-
label: string;
|
|
347
|
-
path: string;
|
|
348
|
-
icon: Icon;
|
|
349
|
-
}[]) => unknown, thisArg?: any) => number;
|
|
350
|
-
readonly fill: (value: {
|
|
351
|
-
label: string;
|
|
352
|
-
path: string;
|
|
353
|
-
icon: Icon;
|
|
354
|
-
}, start?: number, end?: number) => import("vue").Reactive<{
|
|
355
|
-
label: string;
|
|
356
|
-
path: string;
|
|
357
|
-
icon: Icon;
|
|
358
|
-
}[]>;
|
|
359
|
-
readonly copyWithin: (target: number, start: number, end?: number) => import("vue").Reactive<{
|
|
360
|
-
label: string;
|
|
361
|
-
path: string;
|
|
362
|
-
icon: Icon;
|
|
363
|
-
}[]>;
|
|
364
|
-
readonly entries: () => IterableIterator<[number, {
|
|
365
|
-
label: string;
|
|
366
|
-
path: string;
|
|
367
|
-
icon: Icon;
|
|
368
|
-
}]>;
|
|
369
|
-
readonly keys: () => IterableIterator<number>;
|
|
370
|
-
readonly values: () => IterableIterator<{
|
|
371
|
-
label: string;
|
|
372
|
-
path: string;
|
|
373
|
-
icon: Icon;
|
|
374
|
-
}>;
|
|
375
|
-
readonly includes: (searchElement: {
|
|
376
|
-
label: string;
|
|
377
|
-
path: string;
|
|
378
|
-
icon: Icon;
|
|
379
|
-
}, fromIndex?: number) => boolean;
|
|
380
|
-
readonly flatMap: <U, This = undefined>(callback: (this: This, value: {
|
|
381
|
-
label: string;
|
|
382
|
-
path: string;
|
|
383
|
-
icon: Icon;
|
|
384
|
-
}, index: number, array: {
|
|
385
|
-
label: string;
|
|
386
|
-
path: string;
|
|
387
|
-
icon: Icon;
|
|
388
|
-
}[]) => U | ReadonlyArray<U>, thisArg?: This | undefined) => U[];
|
|
389
|
-
readonly flat: <A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[];
|
|
390
|
-
readonly at: (index: number) => {
|
|
391
|
-
label: string;
|
|
392
|
-
path: string;
|
|
393
|
-
icon: Icon;
|
|
394
|
-
} | undefined;
|
|
395
|
-
readonly [Symbol.iterator]: () => IterableIterator<{
|
|
396
|
-
label: string;
|
|
397
|
-
path: string;
|
|
398
|
-
icon: Icon;
|
|
399
|
-
}>;
|
|
400
|
-
readonly [Symbol.unscopables]: {
|
|
401
|
-
readonly [x: number]: boolean | undefined;
|
|
402
|
-
readonly length?: boolean | undefined;
|
|
403
|
-
readonly toString?: boolean | undefined;
|
|
404
|
-
readonly toLocaleString?: boolean | undefined;
|
|
405
|
-
readonly pop?: boolean | undefined;
|
|
406
|
-
readonly push?: boolean | undefined;
|
|
407
|
-
readonly concat?: boolean | undefined;
|
|
408
|
-
readonly join?: boolean | undefined;
|
|
409
|
-
readonly reverse?: boolean | undefined;
|
|
410
|
-
readonly shift?: boolean | undefined;
|
|
411
|
-
readonly slice?: boolean | undefined;
|
|
412
|
-
readonly sort?: boolean | undefined;
|
|
413
|
-
readonly splice?: boolean | undefined;
|
|
414
|
-
readonly unshift?: boolean | undefined;
|
|
415
|
-
readonly indexOf?: boolean | undefined;
|
|
416
|
-
readonly lastIndexOf?: boolean | undefined;
|
|
417
|
-
readonly every?: boolean | undefined;
|
|
418
|
-
readonly some?: boolean | undefined;
|
|
419
|
-
readonly forEach?: boolean | undefined;
|
|
420
|
-
readonly map?: boolean | undefined;
|
|
421
|
-
readonly filter?: boolean | undefined;
|
|
422
|
-
readonly reduce?: boolean | undefined;
|
|
423
|
-
readonly reduceRight?: boolean | undefined;
|
|
424
|
-
readonly find?: boolean | undefined;
|
|
425
|
-
readonly findIndex?: boolean | undefined;
|
|
426
|
-
readonly fill?: boolean | undefined;
|
|
427
|
-
readonly copyWithin?: boolean | undefined;
|
|
428
|
-
readonly entries?: boolean | undefined;
|
|
429
|
-
readonly keys?: boolean | undefined;
|
|
430
|
-
readonly values?: boolean | undefined;
|
|
431
|
-
readonly includes?: boolean | undefined;
|
|
432
|
-
readonly flatMap?: boolean | undefined;
|
|
433
|
-
readonly flat?: boolean | undefined;
|
|
434
|
-
readonly at?: boolean | undefined;
|
|
435
|
-
readonly [Symbol.iterator]?: boolean | undefined;
|
|
436
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
437
|
-
};
|
|
438
|
-
};
|
|
439
|
-
activeNavItemIdx: Readonly<import("vue").Ref<number>>;
|
|
440
|
-
addNavItem: typeof addNavItem;
|
|
441
|
-
setNavItemIdx: typeof setNavItemIdx;
|
|
442
|
-
removeNavItem: typeof removeNavItem;
|
|
443
|
-
};
|
|
444
|
-
export {};
|
|
445
|
-
//# sourceMappingURL=topNav.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"topNav.d.ts","sourceRoot":"","sources":["../../src/store/topNav.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAgD9C;;;GAGG;AACH,iBAAS,UAAU,SAIlB;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,MAAM,QAGjC;AAWD,iBAAS,aAAa,CAAC,GAAG,EAAE,MAAM,QAOjC;AAED;;;GAGG;AACH,wBAAgB,SAAS;;;;;2BAzE2C,IAAI;;;;;;mDAkFigC,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;kBAlF3jC,IAAI;;;;;kBAAJ,IAAI;;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;sBAAJ,IAAI;;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;kBAAJ,IAAI;;;;;;kBAAJ,IAAI;;;;;kBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFvE"}
|
package/dist/store/topNav.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ROUTES as m } from "../constants.js";
|
|
2
|
-
import { router as n } from "../router.js";
|
|
3
|
-
import { capitalize as c } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import { reactive as v, ref as p, watch as s, readonly as u } from "vue";
|
|
5
|
-
import { useWorkspace as d } from "./workspace.js";
|
|
6
|
-
const { activeRequest: h } = d(), t = v([{ label: "", path: "", icon: "Add" }]), a = p(0);
|
|
7
|
-
function r() {
|
|
8
|
-
var o;
|
|
9
|
-
const e = m.find((i) => n.currentRoute.value.name == i.name);
|
|
10
|
-
e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
|
|
11
|
-
label: ((o = h.value) == null ? void 0 : o.summary) || "",
|
|
12
|
-
path: n.currentRoute.value.path,
|
|
13
|
-
icon: e.icon
|
|
14
|
-
} : t[a.value] = {
|
|
15
|
-
label: c(e == null ? void 0 : e.name) || "",
|
|
16
|
-
path: n.currentRoute.value.path,
|
|
17
|
-
icon: e.icon
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function l() {
|
|
21
|
-
n.push(t[a.value].path);
|
|
22
|
-
}
|
|
23
|
-
function f() {
|
|
24
|
-
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, r();
|
|
25
|
-
}
|
|
26
|
-
function I(e) {
|
|
27
|
-
a.value = e, l();
|
|
28
|
-
}
|
|
29
|
-
s(
|
|
30
|
-
() => n.currentRoute.value.path,
|
|
31
|
-
() => {
|
|
32
|
-
r();
|
|
33
|
-
},
|
|
34
|
-
{ immediate: !0 }
|
|
35
|
-
);
|
|
36
|
-
function N(e) {
|
|
37
|
-
t.splice(e, 1), a.value = Math.min(
|
|
38
|
-
a.value,
|
|
39
|
-
t.length - 1
|
|
40
|
-
), l();
|
|
41
|
-
}
|
|
42
|
-
function q() {
|
|
43
|
-
return {
|
|
44
|
-
topNavItems: u(t),
|
|
45
|
-
activeNavItemIdx: u(a),
|
|
46
|
-
addNavItem: f,
|
|
47
|
-
setNavItemIdx: I,
|
|
48
|
-
removeNavItem: N
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
q as useTopNav
|
|
53
|
-
};
|