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
3 changes: 0 additions & 3 deletions infrastructure/control-panel/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ Thumbs.db
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# Paraglide
src/lib/paraglide

*storybook.log
storybook-static
7 changes: 7 additions & 0 deletions infrastructure/control-panel/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["../../biome.json"],
"organizeImports": {
"include": ["src/**/*.ts", "src/**/*.svelte"]
}
}
60 changes: 30 additions & 30 deletions infrastructure/control-panel/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion infrastructure/control-panel/src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="%paraglide.lang%">
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
Expand Down
13 changes: 0 additions & 13 deletions infrastructure/control-panel/src/hooks.server.ts

This file was deleted.

3 changes: 0 additions & 3 deletions infrastructure/control-panel/src/hooks.ts

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 2 additions & 10 deletions infrastructure/control-panel/vite.config.ts
Original file line number Diff line number Diff line change
@@ -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()]
});
7 changes: 5 additions & 2 deletions infrastructure/web3-adapter/src/evault/evault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ export class EVaultClient {
private async requestPlatformToken(): Promise<TokenInfo> {
try {
const response = await fetch(
new URL("/platforms/certification", this.registryUrl).toString(),
new URL(
"/platforms/certification",
this.registryUrl,
).toString(),
{
method: "POST",
headers: {
Expand All @@ -204,7 +207,7 @@ export class EVaultClient {
throw new Error(`HTTP error! status: ${response.status}`);
}

const data = await response.json() as PlatformTokenResponse;
const data = (await response.json()) as PlatformTokenResponse;
const now = Date.now();
const expiresAt = data.expiresAt || now + 3600000; // Default 1 hour

Expand Down
Loading