Skip to content

Commit

Permalink
fix: examples deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Mar 5, 2024
1 parent b41b324 commit 81c671a
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions examples/apfel/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
optimizeDeps: {
include: ['@react-three/uikit-lucide', '@react-three/uikit'],
},
base: '/uikit/examples/apfel/',
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, '../../packages/kits/apfel') },
Expand Down
4 changes: 2 additions & 2 deletions examples/card/src/components/Simulation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useMemo, useRef } from 'react'

// Shapes by https://app.spline.design/library/a4eeaee4-be03-4df8-ab05-5a073eda2eb4
export function Floating(props) {
const { nodes, materials } = useGLTF('/smileys-transformed.glb')
const { nodes, materials } = useGLTF('/uikit/examples/card/smileys-transformed.glb')
return (
<group {...props} dispose={null}>
<Float>
Expand Down Expand Up @@ -54,7 +54,7 @@ export function Floating(props) {
}

export function Physical() {
const { nodes, materials } = useGLTF('/smileys-transformed.glb')
const { nodes, materials } = useGLTF('/uikit/examples/card/smileys-transformed.glb')
const meshes = useMemo(() => Object.values(nodes).filter((node) => node.isMesh), [nodes])
return (
<Physics gravity={[0, 0, 0]}>
Expand Down
1 change: 1 addition & 0 deletions examples/card/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
optimizeDeps: {
include: ['@react-three/uikit-lucide', '@react-three/uikit'],
},
base: '/uikit/examples/card/',
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, '../../packages/kits/default') },
Expand Down
18 changes: 13 additions & 5 deletions examples/dashboard/src/components/RecentSales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function RecentSales() {
return (
<Container gap={32}>
<Container flexDirection="row" alignItems="center">
<Avatar height={36} width={36} src="/01.png" />
<Avatar height={36} width={36} src="/uikit/examples/dashboard/01.png" />
<Container marginLeft={16} gap={4}>
<Text fontSize={14} lineHeight={1} fontWeight="medium">
Olivia Martin
Expand All @@ -20,7 +20,15 @@ export function RecentSales() {
</Text>
</Container>
<Container flexDirection="row" alignItems="center">
<Avatar height={36} width={36} alignItems="center" justifyContent="center" border={1} gap={0} src="/02.png" />
<Avatar
height={36}
width={36}
alignItems="center"
justifyContent="center"
border={1}
gap={0}
src="/uikit/examples/dashboard/02.png"
/>
<Container marginLeft={16} gap={4}>
<Text fontSize={14} lineHeight={1} fontWeight="medium">
Jackson Lee
Expand All @@ -34,7 +42,7 @@ export function RecentSales() {
</Text>
</Container>
<Container flexDirection="row" alignItems="center">
<Avatar width={36} height={36} src="/03.png" />
<Avatar width={36} height={36} src="/uikit/examples/dashboard/03.png" />
<Container marginLeft={16} gap={4}>
<Text fontSize={14} lineHeight={1} fontWeight="medium">
Isabella Nguyen
Expand All @@ -48,7 +56,7 @@ export function RecentSales() {
</Text>
</Container>
<Container flexDirection="row" alignItems="center">
<Avatar width={36} height={36} src="/04.png" />
<Avatar width={36} height={36} src="/uikit/examples/dashboard/04.png" />
<Container marginLeft={16} gap={4}>
<Text fontSize={14} lineHeight={1} fontWeight="medium">
William Kim
Expand All @@ -62,7 +70,7 @@ export function RecentSales() {
</Text>
</Container>
<Container flexDirection="row" alignItems="center">
<Avatar width={36} height={36} src="/05.png" />
<Avatar width={36} height={36} src="/uikit/examples/dashboard/05.png" />
<Container marginLeft={16} gap={4}>
<Text fontSize={14} lineHeight={1} fontWeight="medium">
Sofia Davis
Expand Down
2 changes: 1 addition & 1 deletion examples/dashboard/src/components/TeamSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function TeamSwitcher(props: Omit<ComponentPropsWithoutRef<typeof Button>
const selectedTeam = groups[0].teams[0]
return (
<Button variant="outline" width={200} justifyContent="space-between" {...props}>
<Avatar marginRight={8} height={20} width={20} src={`/${selectedTeam.value}.png`} />
<Avatar marginRight={8} height={20} width={20} src={`/uikit/examples/dashboard/${selectedTeam.value}.png`} />
<Text>{selectedTeam.label}</Text>
<ChevronDown marginLeft="auto" height={20} width={20} flexShrink={0} opacity={0.5} />
</Button>
Expand Down
2 changes: 1 addition & 1 deletion examples/dashboard/src/components/UserNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function UserNav({ open, setOpen }: { open: boolean; setOpen: (open: bool
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger>
<Avatar cursor="pointer" src="/01.png" height={32} width={32} />
<Avatar cursor="pointer" src="/uikit/examples/dashboard/01.png" height={32} width={32} />
</DialogTrigger>
<DialogContent positionType="relative" transformTranslateZ={200} sm={{ maxWidth: 425 }}>
<CustomContainer transformTranslateZ={-1} positionType="absolute" inset={0}>
Expand Down
1 change: 1 addition & 0 deletions examples/dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
optimizeDeps: {
include: ['@react-three/uikit-lucide', '@react-three/uikit'],
},
base: '/uikit/examples/dashboard/',
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, '../../packages/kits/default') },
Expand Down
1 change: 1 addition & 0 deletions examples/default/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
optimizeDeps: {
include: ['@react-three/uikit-lucide', '@react-three/uikit'],
},
base: '/uikit/examples/default/',
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, '../../packages/kits/default') },
Expand Down
1 change: 1 addition & 0 deletions examples/lucide/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
optimizeDeps: {
include: ['@react-three/uikit-lucide', '@react-three/uikit'],
},
base: '/uikit/examples/lucide/',
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, '../../packages/kits/default') },
Expand Down
1 change: 1 addition & 0 deletions examples/market/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
optimizeDeps: {
include: ['@react-three/uikit-lucide', '@react-three/uikit'],
},
base: '/uikit/examples/market/',
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, '../../packages/kits/default') },
Expand Down

0 comments on commit 81c671a

Please sign in to comment.