-
Notifications
You must be signed in to change notification settings - Fork 4
feat: tauri plugins setup #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f3b38f1
feat: tauri plugins setup
sosweetham 0474a88
Merge branch 'main' into feat/tauri-plugins-setup
sosweetham f55163d
fix: add editorconfig
sosweetham 49c54b7
fix: add missing biome json
sosweetham 2132fd1
fix: run formatter
sosweetham ae981d9
feat: biometry homework
sosweetham b92694d
feat: add pin set logic
sosweetham ea8bc8e
feat: add biometric enabling logic
sosweetham 6e0327e
fix: sec controller qol
sosweetham af31ef0
feat: stub user controller
sosweetham 5a02693
fix: run format && lint
sosweetham 2630f9f
fix: sort imports
sosweetham 324b3b5
fix: import statement sort
sosweetham 779b799
feat: user controller
sosweetham a0edb9e
feat: pin flow
sosweetham 2d364ad
feat: biometrics unavailable
sosweetham e52a40e
fix: pin input not working
sosweetham d5c6ac2
feat: make checks pass
sosweetham c7cae8e
fix: scan works
sosweetham 20a6219
merge: main
sosweetham 6da07bc
fix: actions
sosweetham 3a6f04a
feat: format on save
sosweetham 14e726b
merge: main
sosweetham 2149ab2
fix: coderabbit suggestions
sosweetham dbfafbd
chore: run format lint check
sosweetham 0eedfb6
fix: scan on decline too
sosweetham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 80 | ||
|
||
[*.{js,jsx,ts,tsx,json,md,yml,svelte}] | ||
indent_size = 4 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"recommendations": [ | ||
"biomejs.biome", | ||
"svelte.svelte-vscode", | ||
"naumovs.color-highlight", | ||
"fill-labs.dependi", | ||
"ms-azuretools.vscode-docker", | ||
"docker.docker", | ||
"EditorConfig.EditorConfig", | ||
"tamasfe.even-better-toml", | ||
"ctcuff.font-preview", | ||
"github.vscode-github-actions", | ||
"GitHub.copilot", | ||
"GitHub.copilot-chat", | ||
"kisstkondoros.vscode-gutter-preview", | ||
"oderwat.indent-rainbow", | ||
"inlang.vs-code-extension", | ||
"Vercel.turbo-vsc", | ||
"vitest.explorer", | ||
"ms-playwright.playwright", | ||
"tomoki1207.pdf", | ||
"streetsidesoftware.code-spell-checker", | ||
"1YiB.rust-bundle", | ||
"bradlc.vscode-tailwindcss", | ||
"tauri-apps.tauri-vscode" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
{ | ||
"eslint.workingDirectories": [ | ||
{ | ||
"mode": "auto" | ||
} | ||
] | ||
"svelte.enable-ts-plugin": true, | ||
"rust-analyzer.linkedProjects": [ | ||
"infrastructure/eid-wallet/src-tauri/Cargo.toml" | ||
], | ||
"[rust]": { | ||
"editor.defaultFormatter": "rust-lang.rust-analyzer", | ||
"editor.formatOnSave": true | ||
}, | ||
"[js,ts,svelte]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports.biome": "explicit", | ||
"source.fixAll.biome": "explicit" | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"lsp": { | ||
"rust-analyzer": { | ||
"initialization_options": { | ||
"linkedProjects": ["infrastructure/eid-wallet/src-tauri/Cargo.toml"] | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"formatter": { | ||
"useEditorconfig": true | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["*.svelte", "*.astro", "*.vue"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"useConst": "off", | ||
"useImportType": "off" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"organizeImports": { | ||
"enabled": true | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"overrides": [ | ||
{ | ||
"include": ["*.svelte", "*.astro", "*.vue"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"useConst": "off", | ||
"useImportType": "off" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"extends": ["../../biome.json"], | ||
"organizeImports": { | ||
"include": ["src/**/*.ts", "src/**/*.svelte"] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,68 @@ | ||
{ | ||
"name": "eid-wallet", | ||
"version": "0.1.0", | ||
"description": "", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && npx @biomejs/biome check ./src", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "npx @biomejs/biome format --write ./src", | ||
"check-format": "npx @biomejs/biome format ./src", | ||
"lint": "npx @biomejs/biome lint --write ./src", | ||
"check-lint": "npx @biomejs/biome lint ./src", | ||
"tauri": "tauri", | ||
"storybook": "svelte-kit sync && storybook dev -p 6006", | ||
"build-storybook": "storybook build" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@biomejs/biome": "^1.9.4", | ||
"@hugeicons/core-free-icons": "^1.0.13", | ||
"@hugeicons/svelte": "^1.0.2", | ||
"@tailwindcss/container-queries": "^0.1.1", | ||
"@tauri-apps/api": "^2", | ||
"@tauri-apps/plugin-opener": "^2", | ||
"clsx": "^2.1.1", | ||
"flag-icons": "^7.3.2", | ||
"tailwind-merge": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@chromatic-com/storybook": "^3", | ||
"@storybook/addon-essentials": "^8.6.7", | ||
"@storybook/addon-interactions": "^8.6.7", | ||
"@storybook/blocks": "^8.6.7", | ||
"@storybook/experimental-addon-test": "^8.6.7", | ||
"@storybook/svelte": "^8.6.7", | ||
"@storybook/sveltekit": "^8.6.7", | ||
"@storybook/test": "^8.6.7", | ||
"@storybook/testing-library": "^0.2.2", | ||
"@sveltejs/adapter-static": "^3.0.6", | ||
"@sveltejs/kit": "^2.9.0", | ||
"@sveltejs/vite-plugin-svelte": "^5.0.0", | ||
"@tailwindcss/forms": "^0.5.10", | ||
"@tailwindcss/typography": "^0.5.16", | ||
"@tailwindcss/vite": "^4.0.14", | ||
"@tauri-apps/cli": "^2", | ||
"@types/node": "^22.13.10", | ||
"@vitest/browser": "^3.0.9", | ||
"@vitest/coverage-v8": "^3.0.9", | ||
"autoprefixer": "^10.4.21", | ||
"cupertino-pane": "^1.4.22", | ||
"playwright": "^1.51.1", | ||
"postcss": "^8.5.3", | ||
"storybook": "^8.6.7", | ||
"svelte": "^5.0.0", | ||
"svelte-check": "^4.0.0", | ||
"svelte-gestures": "^5.1.3", | ||
"tailwindcss": "^4.0.14", | ||
"typescript": "~5.6.2", | ||
"vite": "^6.0.3", | ||
"vitest": "^3.0.9" | ||
} | ||
"name": "eid-wallet", | ||
"version": "0.1.0", | ||
"description": "", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && npx @biomejs/biome check ./src", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "npx @biomejs/biome format --write ./src", | ||
"check-format": "npx @biomejs/biome format ./src", | ||
"lint": "npx @biomejs/biome lint --write ./src", | ||
"check-lint": "npx @biomejs/biome lint ./src", | ||
"tauri": "tauri", | ||
"storybook": "svelte-kit sync && storybook dev -p 6006", | ||
"build-storybook": "storybook build" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@hugeicons/core-free-icons": "^1.0.13", | ||
"@hugeicons/svelte": "^1.0.2", | ||
"@tailwindcss/container-queries": "^0.1.1", | ||
"@tauri-apps/api": "^2", | ||
"@tauri-apps/plugin-barcode-scanner": "^2.2.0", | ||
"@tauri-apps/plugin-biometric": "^2.2.0", | ||
"@tauri-apps/plugin-opener": "^2", | ||
"@tauri-apps/plugin-store": "^2.2.0", | ||
"clsx": "^2.1.1", | ||
"flag-icons": "^7.3.2", | ||
"tailwind-merge": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.9.4", | ||
"@chromatic-com/storybook": "^3", | ||
"@storybook/addon-essentials": "^8.6.7", | ||
"@storybook/addon-interactions": "^8.6.7", | ||
"@storybook/blocks": "^8.6.7", | ||
"@storybook/experimental-addon-test": "^8.6.7", | ||
"@storybook/svelte": "^8.6.7", | ||
"@storybook/sveltekit": "^8.6.7", | ||
"@storybook/test": "^8.6.7", | ||
"@storybook/testing-library": "^0.2.2", | ||
"@sveltejs/adapter-static": "^3.0.6", | ||
"@sveltejs/kit": "^2.9.0", | ||
"@sveltejs/vite-plugin-svelte": "^5.0.0", | ||
"@tailwindcss/forms": "^0.5.10", | ||
"@tailwindcss/typography": "^0.5.16", | ||
"@tailwindcss/vite": "^4.0.14", | ||
"@tauri-apps/cli": "^2", | ||
"@types/node": "^22.13.10", | ||
"@vitest/browser": "^3.0.9", | ||
"@vitest/coverage-v8": "^3.0.9", | ||
"autoprefixer": "^10.4.21", | ||
"cupertino-pane": "^1.4.22", | ||
"playwright": "^1.51.1", | ||
"postcss": "^8.5.3", | ||
"storybook": "^8.6.7", | ||
"svelte": "^5.0.0", | ||
"svelte-check": "^4.0.0", | ||
"svelte-gestures": "^5.1.3", | ||
"tailwindcss": "^4.0.14", | ||
"typescript": "~5.6.2", | ||
"vite": "^6.0.3", | ||
"vitest": "^3.0.9" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.