@duonghieu0712z/create-tauri-vue-template 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/assets/vscode-settings.json +16 -0
  4. package/dist/bin/index.js +83 -0
  5. package/dist/cli/color.js +25 -0
  6. package/dist/cli/files.js +18 -0
  7. package/dist/cli/project.js +48 -0
  8. package/dist/cli/prompts.js +44 -0
  9. package/dist/cli/release-workflow.js +13 -0
  10. package/dist/cli/scaffold.js +30 -0
  11. package/dist/cli/text.js +24 -0
  12. package/dist/cli/types.js +1 -0
  13. package/dist/scripts/prepare-template.js +67 -0
  14. package/package.json +39 -0
  15. package/template/.editorconfig +8 -0
  16. package/template/.gitattributes +5 -0
  17. package/template/.github/dependabot.yml +38 -0
  18. package/template/.github/workflows/code-quality.yml +70 -0
  19. package/template/.github/workflows/release.yml +112 -0
  20. package/template/.husky/pre-commit +7 -0
  21. package/template/.oxfmtrc.json +36 -0
  22. package/template/.oxlintrc.json +24 -0
  23. package/template/.vscode/extensions.json +11 -0
  24. package/template/CHANGELOG.md +12 -0
  25. package/template/LICENSE +21 -0
  26. package/template/README.md +126 -0
  27. package/template/components.json +24 -0
  28. package/template/eslint.config.ts +32 -0
  29. package/template/index.html +14 -0
  30. package/template/package.json +74 -0
  31. package/template/pnpm-lock.yaml +3953 -0
  32. package/template/pnpm-workspace.yaml +3 -0
  33. package/template/public/favicon.ico +0 -0
  34. package/template/rust-toolchain.toml +2 -0
  35. package/template/scripts/bump-version.js +42 -0
  36. package/template/scripts/rename-app.js +137 -0
  37. package/template/scripts/utils.js +59 -0
  38. package/template/src/App.vue +71 -0
  39. package/template/src/assets/fonts/Geist/Geist-Italic[wght].woff2 +0 -0
  40. package/template/src/assets/fonts/Geist/Geist[wght].woff2 +0 -0
  41. package/template/src/assets/images/tauri.svg +6 -0
  42. package/template/src/assets/images/vite.svg +1 -0
  43. package/template/src/assets/images/vue.svg +1 -0
  44. package/template/src/generated/auto-import.d.ts +139 -0
  45. package/template/src/generated/bindings.ts +9 -0
  46. package/template/src/lib/utils.ts +8 -0
  47. package/template/src/main.ts +9 -0
  48. package/template/src/styles/fonts.css +15 -0
  49. package/template/src/styles/globals.css +130 -0
  50. package/template/src/vite-env.d.ts +7 -0
  51. package/template/src-tauri/Cargo.lock +6328 -0
  52. package/template/src-tauri/Cargo.toml +41 -0
  53. package/template/src-tauri/build.rs +3 -0
  54. package/template/src-tauri/capabilities/default.json +7 -0
  55. package/template/src-tauri/icons/128x128.png +0 -0
  56. package/template/src-tauri/icons/128x128@2x.png +0 -0
  57. package/template/src-tauri/icons/32x32.png +0 -0
  58. package/template/src-tauri/icons/Square107x107Logo.png +0 -0
  59. package/template/src-tauri/icons/Square142x142Logo.png +0 -0
  60. package/template/src-tauri/icons/Square150x150Logo.png +0 -0
  61. package/template/src-tauri/icons/Square284x284Logo.png +0 -0
  62. package/template/src-tauri/icons/Square30x30Logo.png +0 -0
  63. package/template/src-tauri/icons/Square310x310Logo.png +0 -0
  64. package/template/src-tauri/icons/Square44x44Logo.png +0 -0
  65. package/template/src-tauri/icons/Square71x71Logo.png +0 -0
  66. package/template/src-tauri/icons/Square89x89Logo.png +0 -0
  67. package/template/src-tauri/icons/StoreLogo.png +0 -0
  68. package/template/src-tauri/icons/icon.icns +0 -0
  69. package/template/src-tauri/icons/icon.ico +0 -0
  70. package/template/src-tauri/icons/icon.png +0 -0
  71. package/template/src-tauri/src/command/mod.rs +13 -0
  72. package/template/src-tauri/src/lib.rs +54 -0
  73. package/template/src-tauri/src/main.rs +6 -0
  74. package/template/src-tauri/tauri.conf.json +37 -0
  75. package/template/tsconfig.app.json +11 -0
  76. package/template/tsconfig.json +11 -0
  77. package/template/tsconfig.node.json +11 -0
  78. package/template/vite.config.ts +42 -0
@@ -0,0 +1,3 @@
1
+ allowBuilds:
2
+ esbuild: true
3
+ vue-demi: true
Binary file
@@ -0,0 +1,2 @@
1
+ [toolchain]
2
+ channel = "stable"
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { parsePositionals, readJson, updateFile } from './utils.js';
4
+
5
+ function parseArgs() {
6
+ const args = parsePositionals(process.argv.slice(2));
7
+ if (args.length !== 1 || args[0].startsWith('--')) {
8
+ throw new Error('Usage: node scripts/bump-version.js VERSION');
9
+ }
10
+
11
+ return {
12
+ version: args[0],
13
+ };
14
+ }
15
+
16
+ async function readCurrent() {
17
+ const packageJson = await readJson('package.json');
18
+
19
+ return {
20
+ version: packageJson.version,
21
+ };
22
+ }
23
+
24
+ async function main() {
25
+ const options = parseArgs();
26
+ await readCurrent();
27
+
28
+ await updateFile('package.json', [[/^(\s*"version":\s*")[^"]+(")/m, `$1${options.version}$2`]]);
29
+ await updateFile('src-tauri/tauri.conf.json', [
30
+ [/^(\s*"version":\s*")[^"]+(")/m, `$1${options.version}$2`],
31
+ ]);
32
+ await updateFile('src-tauri/Cargo.toml', [
33
+ [/^version = "[^"]+"/m, `version = "${options.version}"`],
34
+ ]);
35
+ }
36
+
37
+ try {
38
+ await main();
39
+ } catch (error) {
40
+ console.error(error.message);
41
+ process.exit(1);
42
+ }
@@ -0,0 +1,137 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { readFile } from 'node:fs/promises';
4
+
5
+ import { parseOptions, readJson, updateFile, writeJson, writeText } from './utils.js';
6
+
7
+ function parseArgs() {
8
+ const options = parseOptions(process.argv.slice(2));
9
+
10
+ if (!options.name || !options.id) {
11
+ throw new Error(
12
+ 'Usage: node scripts/rename-app.js --name "App Name" --id "com.example.app" [--author "Author Name"]',
13
+ );
14
+ }
15
+
16
+ return options;
17
+ }
18
+
19
+ function toKebabCase(value) {
20
+ return value
21
+ .trim()
22
+ .replace(/['"]/g, '')
23
+ .replace(/[^a-zA-Z0-9]+/g, '-')
24
+ .replace(/^-+|-+$/g, '')
25
+ .toLowerCase();
26
+ }
27
+
28
+ function toSnakeCase(value) {
29
+ return toKebabCase(value).replaceAll('-', '_');
30
+ }
31
+
32
+ function replaceOne(content, pattern, replacement, description) {
33
+ if (!pattern.test(content)) {
34
+ throw new Error(`Could not update ${description}`);
35
+ }
36
+
37
+ return content.replace(pattern, replacement);
38
+ }
39
+
40
+ async function readCurrent() {
41
+ const packageJson = await readJson('package.json');
42
+ const tauriConfig = await readJson('src-tauri/tauri.conf.json');
43
+ const cargoToml = await readFile('src-tauri/Cargo.toml', 'utf8');
44
+
45
+ const crateName = cargoToml.match(/^name = "([^"]+)"/m)?.[1];
46
+ const crateLibName = cargoToml.match(/^\[lib\]\s+[\s\S]*?^name = "([^"]+)"/m)?.[1];
47
+ const author = cargoToml.match(/^authors = \["([^"]+)"\]/m)?.[1];
48
+
49
+ if (
50
+ !packageJson.name ||
51
+ !tauriConfig.productName ||
52
+ !tauriConfig.identifier ||
53
+ !crateName ||
54
+ !crateLibName ||
55
+ !author
56
+ ) {
57
+ throw new Error('Could not read current project identity');
58
+ }
59
+ }
60
+
61
+ async function main() {
62
+ const options = parseArgs();
63
+ await readCurrent();
64
+ const appName = options.name.trim();
65
+ const appId = options.id.trim();
66
+ const author = options.author?.trim();
67
+ const packageName = options.package?.trim() || toKebabCase(appName);
68
+ const crateName = toKebabCase(packageName);
69
+ const crateLibName = `${toSnakeCase(crateName)}_lib`;
70
+
71
+ const packageJson = await readJson('package.json');
72
+ packageJson.name = packageName;
73
+ if (author) {
74
+ packageJson.author = author;
75
+ }
76
+
77
+ await writeJson('package.json', packageJson);
78
+
79
+ await updateFile('index.html', [[/<title>.*<\/title>/, `<title>${appName}</title>`]]);
80
+
81
+ const tauriConfig = await readJson('src-tauri/tauri.conf.json');
82
+ tauriConfig.productName = appName;
83
+ tauriConfig.identifier = appId;
84
+ tauriConfig.app.windows = tauriConfig.app.windows.map((window) => ({
85
+ ...window,
86
+ title: window.title ? appName : window.title,
87
+ }));
88
+ if (author) {
89
+ tauriConfig.bundle.publisher = author;
90
+ }
91
+
92
+ await writeJson('src-tauri/tauri.conf.json', tauriConfig);
93
+
94
+ let cargoToml = await readFile('src-tauri/Cargo.toml', 'utf8');
95
+ cargoToml = replaceOne(
96
+ cargoToml,
97
+ /^name = "([^"]+)"/m,
98
+ `name = "${crateName}"`,
99
+ 'Cargo package name',
100
+ );
101
+ cargoToml = replaceOne(
102
+ cargoToml,
103
+ /^description = "([^"]+)"/m,
104
+ `description = "${appName}"`,
105
+ 'Cargo description',
106
+ );
107
+ if (author) {
108
+ cargoToml = replaceOne(
109
+ cargoToml,
110
+ /^authors = \[[^\]]*\]/m,
111
+ `authors = ["${author}"]`,
112
+ 'Cargo authors',
113
+ );
114
+ }
115
+ cargoToml = replaceOne(
116
+ cargoToml,
117
+ /^(\[lib\]\s+[\s\S]*?^name = )"([^"]+)"/m,
118
+ `$1"${crateLibName}"`,
119
+ 'Cargo lib name',
120
+ );
121
+ await writeText('src-tauri/Cargo.toml', cargoToml);
122
+
123
+ await updateFile('src-tauri/src/main.rs', [
124
+ [/^[a-zA-Z0-9_]+_lib::run\(\);$/m, `${crateLibName}::run();`],
125
+ ]);
126
+
127
+ await updateFile('.github/workflows/release.yml', [
128
+ [/^(\s*releaseName:\s*).*$/m, `$1${appName} v__VERSION__`],
129
+ ]);
130
+ }
131
+
132
+ try {
133
+ await main();
134
+ } catch (error) {
135
+ console.error(error.message);
136
+ process.exit(1);
137
+ }
@@ -0,0 +1,59 @@
1
+ import { readFile, writeFile } from 'node:fs/promises';
2
+
3
+ export function parseOptions(args) {
4
+ const options = {};
5
+ const normalizedArgs = args.filter((arg) => arg !== '--');
6
+
7
+ for (let index = 0; index < normalizedArgs.length; index += 1) {
8
+ const arg = normalizedArgs[index];
9
+ if (!arg.startsWith('--')) {
10
+ throw new Error(`Unexpected argument: ${arg}`);
11
+ }
12
+
13
+ const key = arg.slice(2);
14
+ const value = normalizedArgs[index + 1];
15
+ if (!value || value.startsWith('--')) {
16
+ throw new Error(`Missing value for --${key}`);
17
+ }
18
+
19
+ options[key] = value;
20
+ index += 1;
21
+ }
22
+
23
+ return options;
24
+ }
25
+
26
+ export function parsePositionals(args) {
27
+ return args.filter((arg) => arg !== '--');
28
+ }
29
+
30
+ export function replaceAll(content, replacements) {
31
+ return replacements.reduce((updatedContent, [search, replacement]) => {
32
+ if (search instanceof RegExp) {
33
+ return updatedContent.replace(search, replacement);
34
+ }
35
+
36
+ return updatedContent.replaceAll(search, replacement);
37
+ }, content);
38
+ }
39
+
40
+ export async function readJson(path) {
41
+ return JSON.parse(await readFile(path, 'utf8'));
42
+ }
43
+
44
+ export async function writeJson(path, value) {
45
+ await writeFile(path, `${JSON.stringify(value, null, 4)}\n`);
46
+ console.log(`Updated ${path}`);
47
+ }
48
+
49
+ export async function writeText(path, value) {
50
+ await writeFile(path, value);
51
+ console.log(`Updated ${path}`);
52
+ }
53
+
54
+ export async function updateFile(path, replacements) {
55
+ const content = await readFile(path, 'utf8');
56
+ const updatedContent = replaceAll(content, replacements);
57
+ await writeFile(path, updatedContent);
58
+ console.log(`Updated ${path}`);
59
+ }
@@ -0,0 +1,71 @@
1
+ <script setup lang="ts">
2
+ import { commands } from '@/generated/bindings';
3
+
4
+ const name = ref('');
5
+ const message = ref('');
6
+
7
+ async function greet() {
8
+ message.value = await commands.greet(name.value);
9
+ }
10
+ </script>
11
+
12
+ <template>
13
+ <div class="h-screen w-screen overflow-hidden bg-[#2f2f2f] text-base text-[#f6f6f6]">
14
+ <div class="flex h-full flex-col items-center justify-center">
15
+ <h1 class="my-5.5 text-3xl font-semibold">Welcome to Tauri + Vue</h1>
16
+
17
+ <div class="flex justify-center">
18
+ <a
19
+ class="text-[#646cff] hover:text-[#24c8db]"
20
+ href="https://vite.dev"
21
+ target="_blank"
22
+ >
23
+ <img
24
+ alt="Vite logo"
25
+ class="box-content h-24 p-6 duration-750 will-change-[filter] hover:drop-shadow-[0_0_2rem_#747bff]"
26
+ src="@/assets/images/vite.svg"
27
+ />
28
+ </a>
29
+ <a
30
+ class="text-[#646cff] hover:text-[#24c8db]"
31
+ href="https://tauri.app"
32
+ target="_blank"
33
+ >
34
+ <img
35
+ alt="Tauri logo"
36
+ class="box-content h-24 p-6 duration-750 will-change-[filter] hover:drop-shadow-[0_0_2rem_#24c8db]"
37
+ src="@/assets/images/tauri.svg"
38
+ />
39
+ </a>
40
+ <a
41
+ class="text-[#646cff] hover:text-[#24c8db]"
42
+ href="https://vuejs.org/"
43
+ target="_blank"
44
+ >
45
+ <img
46
+ alt="Vue logo"
47
+ class="box-content h-24 p-6 duration-750 will-change-[filter] hover:drop-shadow-[0_0_2rem_#249b73]"
48
+ src="@/assets/images/vue.svg"
49
+ />
50
+ </a>
51
+ </div>
52
+ <p class="my-4">Click on the Tauri, Vite, and Vue logos to learn more.</p>
53
+
54
+ <form class="flex justify-center" @submit.prevent="greet">
55
+ <input
56
+ id="greet-input"
57
+ v-model="name"
58
+ class="mr-1.25 rounded-lg border border-transparent bg-[#0f0f0f98] px-[1.2rem] py-[0.6rem] text-white shadow-[0_2px_2px_rgba(0,0,0,0.2)] transition-[border-color] duration-250 outline-none placeholder:text-[#a9a9a9]"
59
+ placeholder="Enter a name..."
60
+ />
61
+ <button
62
+ class="rounded-lg border border-transparent bg-[#0f0f0f98] px-[1.2rem] py-[0.6rem] text-white shadow-[0_2px_2px_rgba(0,0,0,0.2)] transition-[border-color] duration-250 outline-none hover:border-[#396cd8] active:border-[#396cd8] active:bg-[#0f0f0f69]"
63
+ type="submit"
64
+ >
65
+ Greet
66
+ </button>
67
+ </form>
68
+ <p class="my-4 h-6">{{ message }}</p>
69
+ </div>
70
+ </div>
71
+ </template>
@@ -0,0 +1,6 @@
1
+ <svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>
3
+ <ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>
6
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
@@ -0,0 +1,139 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // noinspection JSUnusedGlobalSymbols
5
+ // Generated by unplugin-auto-import
6
+ // biome-ignore lint: disable
7
+ export {}
8
+ declare global {
9
+ const EffectScope: typeof import('vue').EffectScope
10
+ const computed: typeof import('vue').computed
11
+ const createApp: typeof import('vue').createApp
12
+ const customRef: typeof import('vue').customRef
13
+ const defineAsyncComponent: typeof import('vue').defineAsyncComponent
14
+ const defineComponent: typeof import('vue').defineComponent
15
+ const effectScope: typeof import('vue').effectScope
16
+ const getCurrentInstance: typeof import('vue').getCurrentInstance
17
+ const getCurrentScope: typeof import('vue').getCurrentScope
18
+ const getCurrentWatcher: typeof import('vue').getCurrentWatcher
19
+ const h: typeof import('vue').h
20
+ const inject: typeof import('vue').inject
21
+ const isProxy: typeof import('vue').isProxy
22
+ const isReactive: typeof import('vue').isReactive
23
+ const isReadonly: typeof import('vue').isReadonly
24
+ const isRef: typeof import('vue').isRef
25
+ const isShallow: typeof import('vue').isShallow
26
+ const markRaw: typeof import('vue').markRaw
27
+ const nextTick: typeof import('vue').nextTick
28
+ const onActivated: typeof import('vue').onActivated
29
+ const onBeforeMount: typeof import('vue').onBeforeMount
30
+ const onBeforeUnmount: typeof import('vue').onBeforeUnmount
31
+ const onBeforeUpdate: typeof import('vue').onBeforeUpdate
32
+ const onDeactivated: typeof import('vue').onDeactivated
33
+ const onErrorCaptured: typeof import('vue').onErrorCaptured
34
+ const onMounted: typeof import('vue').onMounted
35
+ const onRenderTracked: typeof import('vue').onRenderTracked
36
+ const onRenderTriggered: typeof import('vue').onRenderTriggered
37
+ const onScopeDispose: typeof import('vue').onScopeDispose
38
+ const onServerPrefetch: typeof import('vue').onServerPrefetch
39
+ const onUnmounted: typeof import('vue').onUnmounted
40
+ const onUpdated: typeof import('vue').onUpdated
41
+ const onWatcherCleanup: typeof import('vue').onWatcherCleanup
42
+ const provide: typeof import('vue').provide
43
+ const reactive: typeof import('vue').reactive
44
+ const readonly: typeof import('vue').readonly
45
+ const ref: typeof import('vue').ref
46
+ const resolveComponent: typeof import('vue').resolveComponent
47
+ const shallowReactive: typeof import('vue').shallowReactive
48
+ const shallowReadonly: typeof import('vue').shallowReadonly
49
+ const shallowRef: typeof import('vue').shallowRef
50
+ const toRaw: typeof import('vue').toRaw
51
+ const toRef: typeof import('vue').toRef
52
+ const toRefs: typeof import('vue').toRefs
53
+ const toValue: typeof import('vue').toValue
54
+ const triggerRef: typeof import('vue').triggerRef
55
+ const unref: typeof import('vue').unref
56
+ const useAttrs: typeof import('vue').useAttrs
57
+ const useCssModule: typeof import('vue').useCssModule
58
+ const useCssVars: typeof import('vue').useCssVars
59
+ const useId: typeof import('vue').useId
60
+ const useModel: typeof import('vue').useModel
61
+ const useSlots: typeof import('vue').useSlots
62
+ const useTemplateRef: typeof import('vue').useTemplateRef
63
+ const watch: typeof import('vue').watch
64
+ const watchEffect: typeof import('vue').watchEffect
65
+ const watchPostEffect: typeof import('vue').watchPostEffect
66
+ const watchSyncEffect: typeof import('vue').watchSyncEffect
67
+ }
68
+ // for type re-export
69
+ declare global {
70
+ // @ts-ignore
71
+ export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
72
+ import('vue')
73
+ }
74
+
75
+ // for vue template auto import
76
+ import { UnwrapRef } from 'vue'
77
+ declare module 'vue' {
78
+ interface GlobalComponents {}
79
+ interface ComponentCustomProperties {
80
+ readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
81
+ readonly computed: UnwrapRef<typeof import('vue')['computed']>
82
+ readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
83
+ readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
84
+ readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
85
+ readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
86
+ readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
87
+ readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
88
+ readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
89
+ readonly getCurrentWatcher: UnwrapRef<typeof import('vue')['getCurrentWatcher']>
90
+ readonly h: UnwrapRef<typeof import('vue')['h']>
91
+ readonly inject: UnwrapRef<typeof import('vue')['inject']>
92
+ readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
93
+ readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
94
+ readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
95
+ readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
96
+ readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
97
+ readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
98
+ readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
99
+ readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
100
+ readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
101
+ readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
102
+ readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
103
+ readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
104
+ readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
105
+ readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
106
+ readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
107
+ readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
108
+ readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
109
+ readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
110
+ readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
111
+ readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
112
+ readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
113
+ readonly provide: UnwrapRef<typeof import('vue')['provide']>
114
+ readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
115
+ readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
116
+ readonly ref: UnwrapRef<typeof import('vue')['ref']>
117
+ readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
118
+ readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
119
+ readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
120
+ readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
121
+ readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
122
+ readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
123
+ readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
124
+ readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
125
+ readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
126
+ readonly unref: UnwrapRef<typeof import('vue')['unref']>
127
+ readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
128
+ readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
129
+ readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
130
+ readonly useId: UnwrapRef<typeof import('vue')['useId']>
131
+ readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
132
+ readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
133
+ readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
134
+ readonly watch: UnwrapRef<typeof import('vue')['watch']>
135
+ readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
136
+ readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
137
+ readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
138
+ }
139
+ }
@@ -0,0 +1,9 @@
1
+ // This file has been generated by Tauri Specta. Do not edit this file manually.
2
+
3
+ import { invoke as __TAURI_INVOKE } from "@tauri-apps/api/core";
4
+
5
+ /** Commands */
6
+ export const commands = {
7
+ greet: (name: string) => __TAURI_INVOKE<string>("greet", { name }),
8
+ };
9
+
@@ -0,0 +1,8 @@
1
+ import type { ClassValue } from 'clsx';
2
+
3
+ import { clsx } from 'clsx';
4
+ import { twMerge } from 'tailwind-merge';
5
+
6
+ export function cn(...inputs: ClassValue[]) {
7
+ return twMerge(clsx(inputs));
8
+ }
@@ -0,0 +1,9 @@
1
+ import { createApp } from 'vue';
2
+
3
+ import App from '@/App.vue';
4
+
5
+ import '@/styles/globals.css';
6
+
7
+ const app = createApp(App);
8
+
9
+ app.mount('#app');
@@ -0,0 +1,15 @@
1
+ @font-face {
2
+ font-family: 'Geist';
3
+ src: url('@/assets/fonts/Geist/Geist[wght].woff2') format('woff2');
4
+ font-weight: 100 900;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ @font-face {
10
+ font-family: 'Geist';
11
+ src: url('@/assets/fonts/Geist/Geist-Italic[wght].woff2') format('woff2');
12
+ font-weight: 100 900;
13
+ font-style: italic;
14
+ font-display: swap;
15
+ }
@@ -0,0 +1,130 @@
1
+ @import 'tailwindcss';
2
+ @import 'tw-animate-css';
3
+
4
+ @import '@/styles/fonts.css';
5
+
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ @theme {
9
+ --font-ui: 'Geist', ui-sans-serif, system-ui, sans-serif;
10
+ }
11
+
12
+ @layer base {
13
+ * {
14
+ @apply border-border outline-ring/50 select-none;
15
+ }
16
+ body {
17
+ @apply bg-background text-foreground font-ui cursor-default;
18
+ }
19
+ button:not(:disabled),
20
+ [role='button']:not(:disabled) {
21
+ cursor: pointer;
22
+ }
23
+ }
24
+
25
+ @theme inline {
26
+ --color-sidebar-ring: var(--sidebar-ring);
27
+ --color-sidebar-border: var(--sidebar-border);
28
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
29
+ --color-sidebar-accent: var(--sidebar-accent);
30
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
31
+ --color-sidebar-primary: var(--sidebar-primary);
32
+ --color-sidebar-foreground: var(--sidebar-foreground);
33
+ --color-sidebar: var(--sidebar);
34
+ --color-chart-5: var(--chart-5);
35
+ --color-chart-4: var(--chart-4);
36
+ --color-chart-3: var(--chart-3);
37
+ --color-chart-2: var(--chart-2);
38
+ --color-chart-1: var(--chart-1);
39
+ --color-ring: var(--ring);
40
+ --color-input: var(--input);
41
+ --color-border: var(--border);
42
+ --color-destructive: var(--destructive);
43
+ --color-accent-foreground: var(--accent-foreground);
44
+ --color-accent: var(--accent);
45
+ --color-muted-foreground: var(--muted-foreground);
46
+ --color-muted: var(--muted);
47
+ --color-secondary-foreground: var(--secondary-foreground);
48
+ --color-secondary: var(--secondary);
49
+ --color-primary-foreground: var(--primary-foreground);
50
+ --color-primary: var(--primary);
51
+ --color-popover-foreground: var(--popover-foreground);
52
+ --color-popover: var(--popover);
53
+ --color-card-foreground: var(--card-foreground);
54
+ --color-card: var(--card);
55
+ --color-foreground: var(--foreground);
56
+ --color-background: var(--background);
57
+ --radius-sm: calc(var(--radius) - 4px);
58
+ --radius-md: calc(var(--radius) - 2px);
59
+ --radius-lg: var(--radius);
60
+ --radius-xl: calc(var(--radius) + 4px);
61
+ }
62
+
63
+ :root {
64
+ --radius: 0.625rem;
65
+ --background: oklch(1 0 0);
66
+ --foreground: oklch(0.145 0 0);
67
+ --card: oklch(1 0 0);
68
+ --card-foreground: oklch(0.145 0 0);
69
+ --popover: oklch(1 0 0);
70
+ --popover-foreground: oklch(0.145 0 0);
71
+ --primary: oklch(0.205 0 0);
72
+ --primary-foreground: oklch(0.985 0 0);
73
+ --secondary: oklch(0.97 0 0);
74
+ --secondary-foreground: oklch(0.205 0 0);
75
+ --muted: oklch(0.97 0 0);
76
+ --muted-foreground: oklch(0.556 0 0);
77
+ --accent: oklch(0.97 0 0);
78
+ --accent-foreground: oklch(0.205 0 0);
79
+ --destructive: oklch(0.577 0.245 27.325);
80
+ --border: oklch(0.922 0 0);
81
+ --input: oklch(0.922 0 0);
82
+ --ring: oklch(0.708 0 0);
83
+ --chart-1: oklch(0.646 0.222 41.116);
84
+ --chart-2: oklch(0.6 0.118 184.704);
85
+ --chart-3: oklch(0.398 0.07 227.392);
86
+ --chart-4: oklch(0.828 0.189 84.429);
87
+ --chart-5: oklch(0.769 0.188 70.08);
88
+ --sidebar: oklch(0.985 0 0);
89
+ --sidebar-foreground: oklch(0.145 0 0);
90
+ --sidebar-primary: oklch(0.205 0 0);
91
+ --sidebar-primary-foreground: oklch(0.985 0 0);
92
+ --sidebar-accent: oklch(0.97 0 0);
93
+ --sidebar-accent-foreground: oklch(0.205 0 0);
94
+ --sidebar-border: oklch(0.922 0 0);
95
+ --sidebar-ring: oklch(0.708 0 0);
96
+ }
97
+
98
+ .dark {
99
+ --background: oklch(0.145 0 0);
100
+ --foreground: oklch(0.985 0 0);
101
+ --card: oklch(0.205 0 0);
102
+ --card-foreground: oklch(0.985 0 0);
103
+ --popover: oklch(0.205 0 0);
104
+ --popover-foreground: oklch(0.985 0 0);
105
+ --primary: oklch(0.922 0 0);
106
+ --primary-foreground: oklch(0.205 0 0);
107
+ --secondary: oklch(0.269 0 0);
108
+ --secondary-foreground: oklch(0.985 0 0);
109
+ --muted: oklch(0.269 0 0);
110
+ --muted-foreground: oklch(0.708 0 0);
111
+ --accent: oklch(0.269 0 0);
112
+ --accent-foreground: oklch(0.985 0 0);
113
+ --destructive: oklch(0.704 0.191 22.216);
114
+ --border: oklch(1 0 0 / 10%);
115
+ --input: oklch(1 0 0 / 15%);
116
+ --ring: oklch(0.556 0 0);
117
+ --chart-1: oklch(0.488 0.243 264.376);
118
+ --chart-2: oklch(0.696 0.17 162.48);
119
+ --chart-3: oklch(0.769 0.188 70.08);
120
+ --chart-4: oklch(0.627 0.265 303.9);
121
+ --chart-5: oklch(0.645 0.246 16.439);
122
+ --sidebar: oklch(0.205 0 0);
123
+ --sidebar-foreground: oklch(0.985 0 0);
124
+ --sidebar-primary: oklch(0.488 0.243 264.376);
125
+ --sidebar-primary-foreground: oklch(0.985 0 0);
126
+ --sidebar-accent: oklch(0.269 0 0);
127
+ --sidebar-accent-foreground: oklch(0.985 0 0);
128
+ --sidebar-border: oklch(1 0 0 / 10%);
129
+ --sidebar-ring: oklch(0.556 0 0);
130
+ }