Skip to content

Commit ec53e0b

Browse files
committed
Update deployment.
1 parent d922a15 commit ec53e0b

File tree

7 files changed

+60
-9
lines changed

7 files changed

+60
-9
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: 'Create Release'
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- release
77
workflow_dispatch:
88

99
jobs:

bun.lockb

8.49 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@blueprintjs/core": "^5.13.0",
1616
"@blueprintjs/select": "^5.2.4",
1717
"@monaco-editor/react": "^4.6.0",
18+
"@react-three/fiber": "^8.17.9",
1819
"@tanstack/react-query": "^5.56.2",
1920
"@tanstack/react-query-devtools": "^5.56.2",
2021
"@tanstack/react-router": "^1.58.3",
@@ -24,6 +25,7 @@
2425
"@xyflow/react": "^12.3.0",
2526
"clsx": "^2.1.1",
2627
"date-fns": "^4.1.0",
28+
"framer-motion": "^11.11.1",
2729
"jotai": "^2.10.0",
2830
"mobx": "^6.13.2",
2931
"mobx-react": "^9.1.1",
@@ -35,6 +37,7 @@
3537
"react-use": "^17.5.1",
3638
"react-virtualized-auto-sizer": "^1.0.24",
3739
"sql-formatter": "^15.4.2",
40+
"three": "^0.169.0",
3841
"zod": "^3.23.8"
3942
},
4043
"devDependencies": {
@@ -45,6 +48,7 @@
4548
"@types/bun": "^1.1.10",
4649
"@types/react": "^18.2.15",
4750
"@types/react-dom": "^18.2.7",
51+
"@types/three": "^0.169.0",
4852
"@vitejs/plugin-react": "^4.2.1",
4953
"autoprefixer": "^10.4.20",
5054
"browserslist": "^4.24.0",

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"productName": "database-browser",
2121
"mainBinaryName": "database-browser",
22-
"version": "0.0.3",
22+
"version": "0.0.4",
2323
"identifier": "com.database-browser.app",
2424
"plugins": {},
2525
"app": {

src/routes/index.lazy.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
import { SplashScreen } from "@/views/splashscreen";
12
import { createLazyFileRoute } from "@tanstack/react-router";
23
import { observer } from "mobx-react";
34

45
export const Route = createLazyFileRoute("/")({
56
component: observer(() => {
6-
return (
7-
<>
8-
<div>Select a connection!</div>
9-
</>
10-
);
7+
return <SplashScreen />;
118
}),
129
});

src/views/ConnectionInfoView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface ConnectionInfoViewProps {
88

99
export const ConnectionInfoView = observer(({ connection }: ConnectionInfoViewProps) => {
1010
return (
11-
<div className="flex flex-col gap-2 p-2">
11+
<div className="flex flex-col gap-2 p-2 h-full">
1212
<H3>
1313
<Label>Name</Label>
1414
<EditableText

src/views/SplashScreen.tsx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import { Canvas, useFrame } from "@react-three/fiber";
2+
import { observer } from "mobx-react";
3+
import { useRef, useState } from "react";
4+
import type { Group } from "three";
5+
6+
function Box() {
7+
// This reference gives us direct access to the THREE.Mesh object
8+
const ref = useRef<Group>();
9+
// Hold state for hovered and clicked events
10+
const [hovered, hover] = useState(false);
11+
const [clicked, click] = useState(false);
12+
// Subscribe this component to the render-loop, rotate the mesh every frame
13+
useFrame((state, delta) => {
14+
ref.current!.rotation.x += delta * state.pointer.x * 10;
15+
ref.current!.rotation.z += delta * state.pointer.y * 10;
16+
});
17+
// Return the view, these are regular Threejs elements expressed in JSX
18+
const plateSize = 0.5;
19+
const gap = plateSize + 0.1;
20+
return (
21+
<group ref={ref as any}>
22+
<mesh position={[0, gap, 0]}>
23+
<cylinderGeometry args={[1, 1, plateSize]} />
24+
<meshStandardMaterial color="lime" />
25+
</mesh>
26+
<mesh position={[0, 0, 0]}>
27+
<cylinderGeometry args={[1, 1, plateSize]} />
28+
<meshStandardMaterial color="green" />
29+
</mesh>
30+
<mesh position={[0, -gap, 0]}>
31+
<cylinderGeometry args={[1, 1, plateSize]} />
32+
<meshStandardMaterial color="rgb(70, 31, 4)" />
33+
</mesh>
34+
</group>
35+
);
36+
}
37+
38+
export const SplashScreen = observer(() => {
39+
return (
40+
<div className="h-full">
41+
<Canvas>
42+
<ambientLight intensity={Math.PI / 2} />
43+
<spotLight position={[10, 10, 10]} angle={0.15} penumbra={1} decay={0} intensity={Math.PI} />
44+
<pointLight position={[-10, -10, -10]} decay={0} intensity={Math.PI} />
45+
46+
<Box />
47+
</Canvas>
48+
</div>
49+
);
50+
});

0 commit comments

Comments
 (0)