diff --git a/infrastructure/control-panel/.gitignore b/infrastructure/control-panel/.gitignore index da4616b7..42250352 100644 --- a/infrastructure/control-panel/.gitignore +++ b/infrastructure/control-panel/.gitignore @@ -22,8 +22,5 @@ Thumbs.db vite.config.js.timestamp-* vite.config.ts.timestamp-* -# Paraglide -src/lib/paraglide - *storybook.log storybook-static diff --git a/infrastructure/control-panel/biome.json b/infrastructure/control-panel/biome.json new file mode 100644 index 00000000..4bc34f1f --- /dev/null +++ b/infrastructure/control-panel/biome.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", + "extends": ["../../biome.json"], + "organizeImports": { + "include": ["src/**/*.ts", "src/**/*.svelte"] + } +} diff --git a/infrastructure/control-panel/src/app.css b/infrastructure/control-panel/src/app.css index 2c0d12d5..403bc8e2 100644 --- a/infrastructure/control-panel/src/app.css +++ b/infrastructure/control-panel/src/app.css @@ -32,40 +32,40 @@ .small { @apply text-xs/[1.5] font-normal text-black; } -} -@theme { - /* Custom theme */ - --color-primary: #8e52ff; - --color-primary-100: #e8dcff; - --color-primary-200: #d2baff; - --color-primary-300: #bb97ff; - --color-primary-400: #a575ff; - --color-primary-500: #8e52ff; + :root { + /* Custom theme */ + --color-primary: #8e52ff; + --color-primary-100: #e8dcff; + --color-primary-200: #d2baff; + --color-primary-300: #bb97ff; + --color-primary-400: #a575ff; + --color-primary-500: #8e52ff; - --color-secondary: #73efd5; - --color-secondary-100: #e3fcf7; - --color-secondary-200: #c7f9ee; - --color-secondary-300: #abf6e6; - --color-secondary-400: #8ff2dd; - --color-secondary-500: #73efd5; + --color-secondary: #73efd5; + --color-secondary-100: #e3fcf7; + --color-secondary-200: #c7f9ee; + --color-secondary-300: #abf6e6; + --color-secondary-400: #8ff2dd; + --color-secondary-500: #73efd5; - --color-white: #ffffff; - --color-gray: #f5f5f5; + --color-white: #ffffff; + --color-gray: #f5f5f5; - --color-black: #1f1f1f; - --color-black-100: #d2d2d2; - --color-black-300: #a5a5a5; - --color-black-500: #797979; - --color-black-700: #4c4c4c; - --color-black-900: #1f1f1f; + --color-black: #1f1f1f; + --color-black-100: #d2d2d2; + --color-black-300: #a5a5a5; + --color-black-500: #797979; + --color-black-700: #4c4c4c; + --color-black-900: #1f1f1f; - --color-danger: #ff5255; - --color-danger-100: #ffdcdd; - --color-danger-200: #ffb1a7; - --color-danger-300: #ff968e; - --color-danger-400: #ff7b77; - --color-danger-500: #ff5255; + --color-danger: #ff5255; + --color-danger-100: #ffdcdd; + --color-danger-200: #ffb1a7; + --color-danger-300: #ff968e; + --color-danger-400: #ff7b77; + --color-danger-500: #ff5255; - --color-green: #0fb340; + --color-green: #0fb340; + } } diff --git a/infrastructure/control-panel/src/app.html b/infrastructure/control-panel/src/app.html index f08d5fac..1391f884 100644 --- a/infrastructure/control-panel/src/app.html +++ b/infrastructure/control-panel/src/app.html @@ -1,5 +1,5 @@ - +
diff --git a/infrastructure/control-panel/src/hooks.server.ts b/infrastructure/control-panel/src/hooks.server.ts deleted file mode 100644 index ad77efcf..00000000 --- a/infrastructure/control-panel/src/hooks.server.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Handle } from '@sveltejs/kit'; -import { paraglideMiddleware } from '$lib/paraglide/server'; - -const handleParaglide: Handle = ({ event, resolve }) => - paraglideMiddleware(event.request, ({ request, locale }) => { - event.request = request; - - return resolve(event, { - transformPageChunk: ({ html }) => html.replace('%paraglide.lang%', locale) - }); - }); - -export const handle: Handle = handleParaglide; diff --git a/infrastructure/control-panel/src/hooks.ts b/infrastructure/control-panel/src/hooks.ts deleted file mode 100644 index e75600b3..00000000 --- a/infrastructure/control-panel/src/hooks.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { deLocalizeUrl } from '$lib/paraglide/runtime'; - -export const reroute = (request) => deLocalizeUrl(request.url).pathname; diff --git a/infrastructure/control-panel/src/routes/demo/+page.svelte b/infrastructure/control-panel/src/routes/demo/+page.svelte deleted file mode 100644 index a815390c..00000000 --- a/infrastructure/control-panel/src/routes/demo/+page.svelte +++ /dev/null @@ -1 +0,0 @@ -paraglide diff --git a/infrastructure/control-panel/src/routes/demo/paraglide/+page.svelte b/infrastructure/control-panel/src/routes/demo/paraglide/+page.svelte deleted file mode 100644 index 0ccba11c..00000000 --- a/infrastructure/control-panel/src/routes/demo/paraglide/+page.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - -- If you use VSCode, install the Sherlock i18n extension for a better i18n experience. -
diff --git a/infrastructure/control-panel/vite.config.ts b/infrastructure/control-panel/vite.config.ts index 2fa21a2c..bf699a8d 100644 --- a/infrastructure/control-panel/vite.config.ts +++ b/infrastructure/control-panel/vite.config.ts @@ -1,15 +1,7 @@ -import { paraglideVitePlugin } from '@inlang/paraglide-js'; -import tailwindcss from '@tailwindcss/vite'; import { sveltekit } from '@sveltejs/kit/vite'; +import tailwindcss from '@tailwindcss/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [ - tailwindcss(), - sveltekit(), - paraglideVitePlugin({ - project: './project.inlang', - outdir: './src/lib/paraglide' - }) - ] + plugins: [tailwindcss(), sveltekit()] }); diff --git a/infrastructure/web3-adapter/src/evault/evault.ts b/infrastructure/web3-adapter/src/evault/evault.ts index 02859180..f8eed7e3 100644 --- a/infrastructure/web3-adapter/src/evault/evault.ts +++ b/infrastructure/web3-adapter/src/evault/evault.ts @@ -190,7 +190,10 @@ export class EVaultClient { private async requestPlatformToken(): Promise- No users found. -
- )} - {!isSearching && displayUsers.length === 0 && !searchQuery && ( -- Start typing to search for users. -
- )} + {!isSearching && + displayUsers.length === 0 && + searchQuery && ( ++ No users found. +
+ )} + {!isSearching && + displayUsers.length === 0 && + !searchQuery && ( ++ Start typing to search for users. +
+ )} {displayUsers.map((userItem) => { - const isSelected = selectedUsers.some(u => u.id === userItem.id); - const isSelectedUser = selectedUsers.some(u => u.id === userItem.id); - const isExistingMember = currentChat?.participants.includes(userItem.id); - + const isSelected = selectedUsers.some( + (u) => u.id === userItem.id + ); + const isSelectedUser = selectedUsers.some( + (u) => u.id === userItem.id + ); + const isExistingMember = + currentChat?.participants.includes(userItem.id); + return (