Skip to content

Commit c3760e5

Browse files
committed
feat(v1): it works
0 parents  commit c3760e5

File tree

100 files changed

+7334
-0
lines changed

Some content is hidden

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

100 files changed

+7334
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"tauri-apps.tauri-vscode",
5+
"rust-lang.rust-analyzer"
6+
]
7+
}

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Tauri + Vue 3 + TypeScript
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
8+
9+
## Type Support For `.vue` Imports in TS
10+
11+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
12+
13+
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
14+
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
15+
16+
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<link rel="preconnect" href="https://fonts.googleapis.com">
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=Hind+Madurai&family=Montserrat:wght@300;400;500;600;700&display=swap"
11+
rel="stylesheet">
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
13+
<title>Tauri + Vue + TS</title>
14+
15+
</head>
16+
17+
<body>
18+
<div id="app"></div>
19+
<script type="module" src="/src/main.ts"></script>
20+
</body>
21+
22+
</html>

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "parrot",
3+
"private": true,
4+
"version": "1.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc --noEmit && vite build",
9+
"preview": "vite preview",
10+
"tauri": "tauri"
11+
},
12+
"dependencies": {
13+
"@iconify/json": "^2.2.44",
14+
"@tauri-apps/api": "^2.0.0-alpha.1",
15+
"@vueuse/integrations": "^9.13.0",
16+
"fuse.js": "^6.6.2",
17+
"unplugin-icons": "^0.16.1",
18+
"vue": "^3.2.45",
19+
"vue-router": "4",
20+
"vue-virtual-scroller": "^2.0.0-beta.8"
21+
},
22+
"devDependencies": {
23+
"@tauri-apps/cli": "^2.0.0-alpha.5",
24+
"@types/node": "^18.7.10",
25+
"@vitejs/plugin-vue": "^4.0.0",
26+
"typescript": "^4.6.4",
27+
"vite": "^4.0.0",
28+
"vite-plugin-windicss": "^1.8.10",
29+
"vue-tsc": "^1.0.11",
30+
"windicss": "^3.5.6"
31+
}
32+
}

public/parrot.png

17.2 KB
Loading

public/tauri.svg

Lines changed: 6 additions & 0 deletions
Loading

public/vite.svg

Lines changed: 1 addition & 0 deletions
Loading

src-tauri/.gitignore

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)