Skip to content

Commit

Permalink
fix: fix deploy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Oct 8, 2024
1 parent b8d4818 commit 83cf2b7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,34 @@ function handleClick() {
</script>

<template>
<div b="1 solid gray-500/20" flex="~ col" items-center pt2 rounded>
<LeaferApp :width="672" :height="340" type="draw">
<Leafer type="draw" @tap="changeColor">
<template
v-for="row in 34"
:key="row"
>
<Star
v-for="col in 17"
:key="col"
around="center"
:rotation="rotation"
:x="(row - 1) * 20" :y="(col - 1) * 20"
:width="15" :height="15"
:fill="fill"
:draggable="true"
/>
</template>
</Leafer>
</LeaferApp>
<div b-t="1 solid gray-500/20" p2 flex justify-end w-full>
<div
i-file-icons:test-generic
cursor-pointer hover="c-#66A659"
@click="handleClick"
/>
<ClientOnly>
<div b="1 solid gray-500/20" flex="~ col" items-center pt2 rounded>
<LeaferApp :width="672" :height="340" type="draw">
<Leafer type="draw" @tap="changeColor">
<template
v-for="row in 34"
:key="row"
>
<Star
v-for="col in 17"
:key="col"
around="center"
:rotation="rotation"
:x="(row - 1) * 20" :y="(col - 1) * 20"
:width="15" :height="15"
:fill="fill"
:draggable="true"
/>
</template>
</Leafer>
</LeaferApp>
<div b-t="1 solid gray-500/20" p2 flex justify-end w-full>
<div
i-file-icons:test-generic
cursor-pointer hover="c-#66A659"
@click="handleClick"
/>
</div>
</div>
</div>
</ClientOnly>
</template>
2 changes: 2 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default {
if (!import.meta.env.SSR) {
const Repl = (await import('./components/repl/index.vue')).default
app.component('Repl', Repl)
const MoreStarts = (await import('./components/MoreStarts.vue')).default
app.component('MoreStart', MoreStarts)
}
},
}
2 changes: 1 addition & 1 deletion docs/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare module 'vue' {
export interface GlobalComponents {
ApiTyping: typeof import('./.vitepress/theme/components/ApiTyping/index.vue')['default']
HomePage: typeof import('./.vitepress/theme/components/HomePage.vue')['default']
MoreStart: typeof import('./.vitepress/theme/components/MoreStart.vue')['default']
MoreStarts: typeof import('./.vitepress/theme/components/MoreStarts.vue')['default']
Repl: typeof import('./.vitepress/theme/components/repl/index.vue')['default']
}
}

0 comments on commit 83cf2b7

Please sign in to comment.