Skip to content

Commit e13c118

Browse files
committed
update paths
1 parent 7c4ae21 commit e13c118

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"copy-src": "shx cp dist/servicestack-vue.min.mjs ../ServiceStack/ServiceStack/src/ServiceStack/js/servicestack-vue.mjs && shx cp dist/servicestack-vue.mjs ../ServiceStack/ServiceStack/tests/NorthwindAuto/wwwroot/lib/mjs/",
2525
"copy-diffusion": "shx cp dist/servicestack-vue.m* ../../netcore/BlazorDiffusionVue/BlazorDiffusion/wwwroot/lib/mjs/ && shx cp dist/index.d.ts ../../netcore/BlazorDiffusionVue/BlazorDiffusion/wwwroot/lib/typings/@servicestack/vue/",
2626
"copy-creatorkit": "shx cp dist/servicestack-vue.m* ../../netcore/CreatorKit/CreatorKit/wwwroot/lib/mjs/ && shx cp dist/index.d.ts ../../netcore/CreatorKit/CreatorKit/wwwroot/lib/typings/@servicestack/vue/",
27-
"copy-aiserver": "shx cp dist/servicestack-vue.m* ../../mythz/ai-server/AiServer/wwwroot/js/ && shx cp dist/index.d.ts ../../mythz/ai-server/AiServer/wwwroot/lib/typings/@servicestack/vue/",
27+
"copy-aiserver": "shx cp dist/servicestack-vue.m* ../ai-server/AiServer/wwwroot/lib/mjs/ && shx cp dist/index.d.ts ../ai-server/AiServer/wwwroot/lib/typings/@servicestack/vue/",
2828
"preview": "vite preview",
2929
"build-only": "vite build -l error",
3030
"type-check": "vue-tsc --noEmit",

src/components/SlideOver.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="fixed inset-0 overflow-hidden">
55
<div @mousedown="close" class="absolute inset-0 overflow-hidden">
66
<div @mousedown.stop="" class="pointer-events-none fixed inset-y-0 right-0 flex pl-10">
7-
<div :class="['pointer-events-auto w-screen xl:max-w-3xl md:max-w-xl max-w-lg',transition1]">
7+
<div :class="['panel pointer-events-auto w-screen xl:max-w-3xl md:max-w-xl max-w-lg',transition1]">
88
<div class="flex h-full flex-col bg-white dark:bg-black shadow-xl">
99
<div class="flex min-h-0 flex-1 flex-col overflow-auto">
1010

@@ -13,6 +13,7 @@
1313
<div class="bg-gray-50 dark:bg-gray-900 px-4 py-6 sm:px-6">
1414
<div class="flex items-start justify-between space-x-3">
1515
<div class="space-y-1">
16+
<div v-if="$slots['title']"><slot name="title"></slot></div>
1617
<h2 v-if="title" class="text-lg font-medium text-gray-900 dark:text-gray-50" :id="id + '-title'">{{title}}</h2>
1718
<p v-if="$slots['subtitle']" class="text-sm text-gray-500">
1819
<slot name="subtitle"></slot>
@@ -31,7 +32,7 @@
3132
</div>
3233

3334
<!-- Action buttons -->
34-
<div class="flex-shrink-0 border-t border-gray-200 dark:border-gray-700 px-4 py-5 sm:px-6">
35+
<div v-if="$slots['footer']" class="flex-shrink-0 border-t border-gray-200 dark:border-gray-700 px-4 py-5 sm:px-6">
3536
<slot name="footer"></slot>
3637
</div>
3738

src/use/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ export function parseJson(json?:string|null) {
142142
export function pushState(args:Record<string,any>, clear?:boolean) {
143143
if (typeof history != 'undefined') {
144144
const url = clear
145-
? setQueryString(location.href, args)
146-
: appendQueryString(lastLeftPart(location.href,'?'), args)
145+
? appendQueryString(lastLeftPart(location.href,'?'), args)
146+
: setQueryString(location.href, args)
147147
history.pushState({}, '', url)
148148
}
149149
}

0 commit comments

Comments
 (0)