Skip to content

Commit 2fa85d4

Browse files
authored
feat: tauri plugins setup (#97)
* feat: tauri plugins setup * fix: add editorconfig * fix: add missing biome json * fix: run formatter * feat: biometry homework * feat: add pin set logic * feat: add biometric enabling logic * fix: sec controller qol * feat: stub user controller * fix: run format && lint * fix: sort imports * fix: import statement sort * feat: user controller * feat: pin flow * feat: biometrics unavailable * fix: pin input not working * feat: make checks pass * fix: scan works * fix: actions * feat: format on save * fix: coderabbit suggestions * chore: run format lint check * fix: scan on decline too
1 parent 112dbcb commit 2fa85d4

File tree

118 files changed

+3884
-1863
lines changed

Some content is hidden

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

118 files changed

+3884
-1863
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
max_line_length = 80
11+
12+
[*.{js,jsx,ts,tsx,json,md,yml,svelte}]
13+
indent_size = 4
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.vscode/extensions.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"recommendations": [
3+
"biomejs.biome",
4+
"svelte.svelte-vscode",
5+
"naumovs.color-highlight",
6+
"fill-labs.dependi",
7+
"ms-azuretools.vscode-docker",
8+
"docker.docker",
9+
"EditorConfig.EditorConfig",
10+
"tamasfe.even-better-toml",
11+
"ctcuff.font-preview",
12+
"github.vscode-github-actions",
13+
"GitHub.copilot",
14+
"GitHub.copilot-chat",
15+
"kisstkondoros.vscode-gutter-preview",
16+
"oderwat.indent-rainbow",
17+
"inlang.vs-code-extension",
18+
"Vercel.turbo-vsc",
19+
"vitest.explorer",
20+
"ms-playwright.playwright",
21+
"tomoki1207.pdf",
22+
"streetsidesoftware.code-spell-checker",
23+
"1YiB.rust-bundle",
24+
"bradlc.vscode-tailwindcss",
25+
"tauri-apps.tauri-vscode"
26+
]
27+
}

.vscode/settings.json

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
11
{
2-
"eslint.workingDirectories": [
3-
{
4-
"mode": "auto"
5-
}
6-
]
2+
"svelte.enable-ts-plugin": true,
3+
"rust-analyzer.linkedProjects": [
4+
"infrastructure/eid-wallet/src-tauri/Cargo.toml"
5+
],
6+
"[rust]": {
7+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
8+
"editor.formatOnSave": true
9+
},
10+
"[javascript]": {
11+
"editor.defaultFormatter": "biomejs.biome",
12+
"editor.codeActionsOnSave": {
13+
"source.organizeImports.biome": "explicit",
14+
"source.fixAll.biome": "explicit"
15+
}
16+
},
17+
"[typescript]": {
18+
"editor.defaultFormatter": "biomejs.biome",
19+
"editor.codeActionsOnSave": {
20+
"source.organizeImports.biome": "explicit",
21+
"source.fixAll.biome": "explicit"
22+
}
23+
},
24+
"[svelte]": {
25+
"editor.defaultFormatter": "biomejs.biome",
26+
"editor.codeActionsOnSave": {
27+
"source.organizeImports.biome": "explicit",
28+
"source.fixAll.biome": "explicit"
29+
}
30+
}
731
}

.zed/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"lsp": {
3+
"rust-analyzer": {
4+
"initialization_options": {
5+
"linkedProjects": ["infrastructure/eid-wallet/src-tauri/Cargo.toml"]
6+
}
7+
}
8+
}
9+
}

biome.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"formatter": {
4+
"useEditorconfig": true
5+
},
6+
"overrides": [
7+
{
8+
"include": ["*.svelte", "*.astro", "*.vue"],
9+
"linter": {
10+
"rules": {
11+
"style": {
12+
"useConst": "off",
13+
"useImportType": "off"
14+
}
15+
}
16+
}
17+
}
18+
],
19+
"organizeImports": {
20+
"enabled": true
21+
}
22+
}
Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
{
2-
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"overrides": [
4-
{
5-
"include": ["*.svelte", "*.astro", "*.vue"],
6-
"linter": {
7-
"rules": {
8-
"style": {
9-
"useConst": "off",
10-
"useImportType": "off"
11-
}
12-
}
13-
}
14-
}
15-
]
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": ["../../biome.json"],
4+
"organizeImports": {
5+
"include": ["src/**/*.ts", "src/**/*.svelte"]
6+
}
167
}
Lines changed: 66 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,68 @@
11
{
2-
"name": "eid-wallet",
3-
"version": "0.1.0",
4-
"description": "",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite dev",
8-
"build": "vite build",
9-
"preview": "vite preview",
10-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && npx @biomejs/biome check ./src",
11-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12-
"format": "npx @biomejs/biome format --write ./src",
13-
"check-format": "npx @biomejs/biome format ./src",
14-
"lint": "npx @biomejs/biome lint --write ./src",
15-
"check-lint": "npx @biomejs/biome lint ./src",
16-
"tauri": "tauri",
17-
"storybook": "svelte-kit sync && storybook dev -p 6006",
18-
"build-storybook": "storybook build"
19-
},
20-
"license": "MIT",
21-
"dependencies": {
22-
"@biomejs/biome": "^1.9.4",
23-
"@hugeicons/core-free-icons": "^1.0.13",
24-
"@hugeicons/svelte": "^1.0.2",
25-
"@tailwindcss/container-queries": "^0.1.1",
26-
"@tauri-apps/api": "^2",
27-
"@tauri-apps/plugin-opener": "^2",
28-
"clsx": "^2.1.1",
29-
"flag-icons": "^7.3.2",
30-
"tailwind-merge": "^3.0.2"
31-
},
32-
"devDependencies": {
33-
"@chromatic-com/storybook": "^3",
34-
"@storybook/addon-essentials": "^8.6.7",
35-
"@storybook/addon-interactions": "^8.6.7",
36-
"@storybook/blocks": "^8.6.7",
37-
"@storybook/experimental-addon-test": "^8.6.7",
38-
"@storybook/svelte": "^8.6.7",
39-
"@storybook/sveltekit": "^8.6.7",
40-
"@storybook/test": "^8.6.7",
41-
"@storybook/testing-library": "^0.2.2",
42-
"@sveltejs/adapter-static": "^3.0.6",
43-
"@sveltejs/kit": "^2.9.0",
44-
"@sveltejs/vite-plugin-svelte": "^5.0.0",
45-
"@tailwindcss/forms": "^0.5.10",
46-
"@tailwindcss/typography": "^0.5.16",
47-
"@tailwindcss/vite": "^4.0.14",
48-
"@tauri-apps/cli": "^2",
49-
"@types/node": "^22.13.10",
50-
"@vitest/browser": "^3.0.9",
51-
"@vitest/coverage-v8": "^3.0.9",
52-
"autoprefixer": "^10.4.21",
53-
"cupertino-pane": "^1.4.22",
54-
"playwright": "^1.51.1",
55-
"postcss": "^8.5.3",
56-
"storybook": "^8.6.7",
57-
"svelte": "^5.0.0",
58-
"svelte-check": "^4.0.0",
59-
"svelte-gestures": "^5.1.3",
60-
"tailwindcss": "^4.0.14",
61-
"typescript": "~5.6.2",
62-
"vite": "^6.0.3",
63-
"vitest": "^3.0.9"
64-
}
2+
"name": "eid-wallet",
3+
"version": "0.1.0",
4+
"description": "",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite dev",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && npx @biomejs/biome check ./src",
11+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12+
"format": "npx @biomejs/biome format --write ./src",
13+
"check-format": "npx @biomejs/biome format ./src",
14+
"lint": "npx @biomejs/biome lint --write ./src",
15+
"check-lint": "npx @biomejs/biome lint ./src",
16+
"tauri": "tauri",
17+
"storybook": "svelte-kit sync && storybook dev -p 6006",
18+
"build-storybook": "storybook build"
19+
},
20+
"license": "MIT",
21+
"dependencies": {
22+
"@hugeicons/core-free-icons": "^1.0.13",
23+
"@hugeicons/svelte": "^1.0.2",
24+
"@tailwindcss/container-queries": "^0.1.1",
25+
"@tauri-apps/api": "^2",
26+
"@tauri-apps/plugin-barcode-scanner": "^2.2.0",
27+
"@tauri-apps/plugin-biometric": "^2.2.0",
28+
"@tauri-apps/plugin-opener": "^2",
29+
"@tauri-apps/plugin-store": "^2.2.0",
30+
"clsx": "^2.1.1",
31+
"flag-icons": "^7.3.2",
32+
"tailwind-merge": "^3.0.2"
33+
},
34+
"devDependencies": {
35+
"@biomejs/biome": "^1.9.4",
36+
"@chromatic-com/storybook": "^3",
37+
"@storybook/addon-essentials": "^8.6.7",
38+
"@storybook/addon-interactions": "^8.6.7",
39+
"@storybook/blocks": "^8.6.7",
40+
"@storybook/experimental-addon-test": "^8.6.7",
41+
"@storybook/svelte": "^8.6.7",
42+
"@storybook/sveltekit": "^8.6.7",
43+
"@storybook/test": "^8.6.7",
44+
"@storybook/testing-library": "^0.2.2",
45+
"@sveltejs/adapter-static": "^3.0.6",
46+
"@sveltejs/kit": "^2.9.0",
47+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
48+
"@tailwindcss/forms": "^0.5.10",
49+
"@tailwindcss/typography": "^0.5.16",
50+
"@tailwindcss/vite": "^4.0.14",
51+
"@tauri-apps/cli": "^2",
52+
"@types/node": "^22.13.10",
53+
"@vitest/browser": "^3.0.9",
54+
"@vitest/coverage-v8": "^3.0.9",
55+
"autoprefixer": "^10.4.21",
56+
"cupertino-pane": "^1.4.22",
57+
"playwright": "^1.51.1",
58+
"postcss": "^8.5.3",
59+
"storybook": "^8.6.7",
60+
"svelte": "^5.0.0",
61+
"svelte-check": "^4.0.0",
62+
"svelte-gestures": "^5.1.3",
63+
"tailwindcss": "^4.0.14",
64+
"typescript": "~5.6.2",
65+
"vite": "^6.0.3",
66+
"vitest": "^3.0.9"
67+
}
6568
}

0 commit comments

Comments
 (0)