Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
}
32 changes: 16 additions & 16 deletions infrastructure/eid-wallet/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import type { StorybookConfig } from '@storybook/sveltekit'
import { join, dirname } from 'path'
import type { StorybookConfig } from "@storybook/sveltekit";
import { join, dirname } from "path";

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')))
return dirname(require.resolve(join(value, "package.json")));
}

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|ts)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/experimental-addon-test'),
],
framework: {
name: '@storybook/sveltekit',
options: {},
},
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|ts)"],
addons: [
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@chromatic-com/storybook"),
getAbsolutePath("@storybook/experimental-addon-test"),
],
framework: {
name: "@storybook/sveltekit",
options: {},
},

staticDirs: ['../static'],
}
export default config
staticDirs: ["../static"],
};
export default config;
2 changes: 1 addition & 1 deletion infrastructure/eid-wallet/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const preview: Preview = {
},
};

export default preview;
export default preview;
8 changes: 4 additions & 4 deletions infrastructure/eid-wallet/.storybook/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { beforeAll } from 'vitest';
import { setProjectAnnotations } from '@storybook/sveltekit';
import * as projectAnnotations from './preview';
import { beforeAll } from "vitest";
import { setProjectAnnotations } from "@storybook/sveltekit";
import * as projectAnnotations from "./preview";

// This is an important step to apply the right configuration when testing your stories.
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
const project = setProjectAnnotations([projectAnnotations]);

beforeAll(project.beforeAll);
beforeAll(project.beforeAll);
10 changes: 5 additions & 5 deletions infrastructure/eid-wallet/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"svelte.svelte-vscode",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
]
"recommendations": [
"svelte.svelte-vscode",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
]
}
2 changes: 1 addition & 1 deletion infrastructure/eid-wallet/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"svelte.enable-ts-plugin": true
"svelte.enable-ts-plugin": true
}
28 changes: 14 additions & 14 deletions infrastructure/eid-wallet/biome.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$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",
"overrides": [
{
"include": ["*.svelte", "*.astro", "*.vue"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
}
}
}
}
]
}
128 changes: 64 additions & 64 deletions infrastructure/eid-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"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",
"daisyui": "^5.0.6",
"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": {
"@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",
"daisyui": "^5.0.6",
"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"
}
}
13 changes: 5 additions & 8 deletions infrastructure/eid-wallet/src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:default",
"opener:default"
]
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": ["core:default", "opener:default"]
}
Original file line number Diff line number Diff line change
@@ -1 +1,101 @@
{"$schema":"https://schema.tauri.app/config/2","productName":"eid-wallet","version":"0.1.0","identifier":"com.eid-wallet.app","app":{"windows":[{"label":"main","create":true,"url":"index.html","dragDropEnabled":true,"center":false,"width":800.0,"height":600.0,"resizable":true,"maximizable":true,"minimizable":true,"closable":true,"title":"eid-wallet","fullscreen":false,"focus":true,"transparent":false,"maximized":false,"visible":true,"decorations":true,"alwaysOnBottom":false,"alwaysOnTop":false,"visibleOnAllWorkspaces":false,"contentProtected":false,"skipTaskbar":false,"titleBarStyle":"Visible","hiddenTitle":false,"acceptFirstMouse":false,"shadow":true,"incognito":false,"zoomHotkeysEnabled":false,"browserExtensionsEnabled":false,"useHttpsScheme":false}],"security":{"freezePrototype":false,"dangerousDisableAssetCspModification":false,"assetProtocol":{"scope":[],"enable":false},"pattern":{"use":"brownfield"},"capabilities":[]},"macOSPrivateApi":false,"withGlobalTauri":false,"enableGTKAppId":false},"build":{"devUrl":"http://192.168.35.49:1420/","frontendDist":"../build","beforeDevCommand":"pnpm dev","beforeBuildCommand":"pnpm build"},"bundle":{"active":true,"targets":"all","createUpdaterArtifacts":false,"icon":["icons/32x32.png","icons/128x128.png","icons/[email protected]","icons/icon.icns","icons/icon.ico"],"useLocalToolsDir":false,"windows":{"digestAlgorithm":null,"certificateThumbprint":null,"timestampUrl":null,"tsp":false,"webviewInstallMode":{"type":"downloadBootstrapper","silent":true},"allowDowngrades":true,"wix":null,"nsis":null,"signCommand":null},"linux":{"appimage":{"bundleMediaFramework":false,"files":{}},"deb":{"files":{}},"rpm":{"release":"1","epoch":0,"files":{}}},"macOS":{"files":{},"minimumSystemVersion":"10.13","hardenedRuntime":true,"dmg":{"windowSize":{"width":660,"height":400},"appPosition":{"x":180,"y":170},"applicationFolderPosition":{"x":480,"y":170}}},"iOS":{"minimumSystemVersion":"13.0"},"android":{"minSdkVersion":24}},"plugins":{}}
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "eid-wallet",
"version": "0.1.0",
"identifier": "com.eid-wallet.app",
"app": {
"windows": [
{
"label": "main",
"create": true,
"url": "index.html",
"dragDropEnabled": true,
"center": false,
"width": 800.0,
"height": 600.0,
"resizable": true,
"maximizable": true,
"minimizable": true,
"closable": true,
"title": "eid-wallet",
"fullscreen": false,
"focus": true,
"transparent": false,
"maximized": false,
"visible": true,
"decorations": true,
"alwaysOnBottom": false,
"alwaysOnTop": false,
"visibleOnAllWorkspaces": false,
"contentProtected": false,
"skipTaskbar": false,
"titleBarStyle": "Visible",
"hiddenTitle": false,
"acceptFirstMouse": false,
"shadow": true,
"incognito": false,
"zoomHotkeysEnabled": false,
"browserExtensionsEnabled": false,
"useHttpsScheme": false
}
],
"security": {
"freezePrototype": false,
"dangerousDisableAssetCspModification": false,
"assetProtocol": { "scope": [], "enable": false },
"pattern": { "use": "brownfield" },
"capabilities": []
},
"macOSPrivateApi": false,
"withGlobalTauri": false,
"enableGTKAppId": false
},
"build": {
"devUrl": "http://192.168.35.49:1420/",
"frontendDist": "../build",
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build"
},
"bundle": {
"active": true,
"targets": "all",
"createUpdaterArtifacts": false,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"useLocalToolsDir": false,
"windows": {
"digestAlgorithm": null,
"certificateThumbprint": null,
"timestampUrl": null,
"tsp": false,
"webviewInstallMode": { "type": "downloadBootstrapper", "silent": true },
"allowDowngrades": true,
"wix": null,
"nsis": null,
"signCommand": null
},
"linux": {
"appimage": { "bundleMediaFramework": false, "files": {} },
"deb": { "files": {} },
"rpm": { "release": "1", "epoch": 0, "files": {} }
},
"macOS": {
"files": {},
"minimumSystemVersion": "10.13",
"hardenedRuntime": true,
"dmg": {
"windowSize": { "width": 660, "height": 400 },
"appPosition": { "x": 180, "y": 170 },
"applicationFolderPosition": { "x": 480, "y": 170 }
}
},
"iOS": { "minimumSystemVersion": "13.0" },
"android": { "minSdkVersion": 24 }
},
"plugins": {}
}
Loading