diff --git a/lefthook.yml b/lefthook.yml index f8ec27262a..75ccbde2bd 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -7,7 +7,7 @@ pre-commit: run: pnpm -F bridge-ui lint:fix && git add {staged_files} bridge-ui-v2: glob: "packages/bridge-ui-v2/**.{js,ts,css,svelte}" - run: pnpm -F bridge-ui-v2 lint:fix && git add {staged_files} + run: pnpm -F bridge-ui-v2 svelte:check && pnpm -F bridge-ui-v2 lint:fix && git add {staged_files} protocol_sol: glob: "packages/protocol/**.{sol}" run: pnpm -F protocol lint:sol && git add {staged_files} diff --git a/packages/bridge-ui-v2/.prettierrc b/packages/bridge-ui-v2/.prettierrc index aa5a4f5d3d..dcc8f6261b 100644 --- a/packages/bridge-ui-v2/.prettierrc +++ b/packages/bridge-ui-v2/.prettierrc @@ -6,8 +6,13 @@ "singleQuote": true, "trailingComma": "all", "bracketSameLine": true, - "plugins": ["prettier-plugin-svelte"], - "pluginSearchDirs": ["."], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] + "overrides": [ + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } + } + ] } diff --git a/packages/bridge-ui-v2/package.json b/packages/bridge-ui-v2/package.json index 3df4a3959c..8d87b15bf0 100644 --- a/packages/bridge-ui-v2/package.json +++ b/packages/bridge-ui-v2/package.json @@ -14,16 +14,16 @@ "test:unit:watch": "vitest", "svelte:check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --ignore ./wagmi.config.ts", "svelte:check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --ignore ./wagmi.config.ts --watch", - "format": "prettier --plugin-search-dir . --write .", - "lint": "prettier --plugin-search-dir . --check . && eslint .", + "format": "prettier --write .", + "lint": "prettier --check . && eslint .", "lint:fix": "pnpm format && eslint . --fix", "generate:abi": "pnpm wagmi generate" }, "devDependencies": { "@playwright/test": "^1.28.1", - "@sveltejs/adapter-auto": "^2.0.0", + "@sveltejs/adapter-auto": "^2.1.0", "@sveltejs/adapter-static": "^2.0.2", - "@sveltejs/kit": "^1.5.0", + "@sveltejs/kit": "^1.22.3", "@types/debug": "^4.1.7", "@typescript-eslint/eslint-plugin": "^5.45.0", "@typescript-eslint/parser": "^5.45.0", @@ -35,17 +35,19 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-simple-import-sort": "^10.0.0", "eslint-plugin-svelte": "^2.26.0", + "ethereum-address": "^0.0.4", "postcss": "^8.4.24", - "prettier": "^2.8.0", - "prettier-plugin-svelte": "^2.8.1", - "svelte": "^3.54.0", - "svelte-check": "^3.4.4", + "prettier": "^3.0.0", + "prettier-plugin-svelte": "^3.0.0", + "svelte": "^4.1.0", + "svelte-check": "^3.4.6", "tailwindcss": "^3.3.2", "tslib": "^2.4.1", - "typescript": "^5.0.0", + "typescript": "^5.1.6", "vite": "^4.3.0", "vite-tsconfig-paths": "^4.2.0", - "vitest": "^0.32.2" + "vitest": "^0.32.2", + "vitest-fetch-mock": "^0.2.2" }, "type": "module", "dependencies": { diff --git a/packages/bridge-ui-v2/src/app.html b/packages/bridge-ui-v2/src/app.html index be167ec1d9..39b9d4df54 100644 --- a/packages/bridge-ui-v2/src/app.html +++ b/packages/bridge-ui-v2/src/app.html @@ -1,4 +1,4 @@ - + diff --git a/packages/bridge-ui-v2/src/components/Activities/ListWithDetailsView.svelte b/packages/bridge-ui-v2/src/components/Activities/ListWithDetailsView.svelte index 021b55d32c..f664644387 100644 --- a/packages/bridge-ui-v2/src/components/Activities/ListWithDetailsView.svelte +++ b/packages/bridge-ui-v2/src/components/Activities/ListWithDetailsView.svelte @@ -25,150 +25,148 @@
-
+ + + + + +
2.5 BLL
+ +
+ + {$t('activities.status.failed')} +
+ + + + +