Skip to content

Commit 4a3aadb

Browse files
committed
Add Tauri frontend
Add Tauri as frontend and use Rust as backend. No need for an external shared library, as Rust can call ObjC code (in)directly.
1 parent 0703983 commit 4a3aadb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4898
-0
lines changed

.DS_Store

2 KB
Binary file not shown.

.gitignore

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# smoke-tests repo
9+
/smoke-tests
10+
11+
# Runtime data
12+
pids
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
23+
# nyc test coverage
24+
.nyc_output
25+
26+
# node-waf configuration
27+
.lock-wscript
28+
29+
# Compiled binary addons (http://nodejs.org/api/addons.html)
30+
build/Release
31+
32+
# Dependency directories
33+
node_modules/
34+
jspm_packages/
35+
36+
# Typescript v1 declaration files
37+
typings/
38+
39+
# Optional npm cache directory
40+
.npm
41+
42+
# Optional yarn cache directory
43+
.yarn
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
/.vs
61+
.DS_Store
62+
*.DS_Store
63+
.Thumbs.db
64+
*.sublime*
65+
.idea
66+
debug.log
67+
package-lock.json
68+
.vscode/settings.json
69+
*/.vscode/
70+
proptest-regressions/
71+
TODO.md
72+
73+
# rust compiled folders
74+
target
75+
76+
# lock for libs
77+
/Cargo.lock
78+
/tooling/bench/tests/Cargo.lock
79+
/yarn.lock
80+
81+
# ignore frida handlers
82+
__handlers__/
83+
84+
# benches
85+
gh-pages
86+
test_video.mp4
87+
88+
# old cli directories
89+
/tooling/cli.js
90+
/tooling/cli.rs
91+
92+
# dist folders
93+
dist/

WavyBackgroundsClient/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

WavyBackgroundsClient/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Tauri + Solid + Typescript
2+
3+
This template should help get you started developing with Tauri, Solid and Typescript in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)

WavyBackgroundsClient/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="theme-color" content="#000000" />
7+
<link rel="icon" type="image/svg+xml" href="/src/assets/logo.svg" />
8+
<title>Tauri + Solid + Typescript App</title>
9+
</head>
10+
11+
<body>
12+
<noscript>You need to enable JavaScript to run this app.</noscript>
13+
<div id="root"></div>
14+
15+
<script src="/src/index.tsx" type="module"></script>
16+
</body>
17+
</html>

WavyBackgroundsClient/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "WavyBackgroundsClient",
3+
"version": "0.0.0",
4+
"description": "",
5+
"scripts": {
6+
"start": "vite",
7+
"dev": "vite",
8+
"build": "vite build",
9+
"serve": "vite preview",
10+
"tauri": "tauri"
11+
},
12+
"license": "MIT",
13+
"dependencies": {
14+
"solid-js": "^1.7.8",
15+
"@tauri-apps/api": "^1.5.0"
16+
},
17+
"devDependencies": {
18+
"typescript": "^5.0.2",
19+
"vite": "^4.4.4",
20+
"vite-plugin-solid": "^2.7.0",
21+
"@tauri-apps/cli": "^1.5.0"
22+
}
23+
}
11.3 KB
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+

0 commit comments

Comments
 (0)