Skip to content

Commit 0d77158

Browse files
authored
Chore/fix check code (#404)
* fix: check code * chore: remove check lint
1 parent d6bea52 commit 0d77158

File tree

48 files changed

+1907
-1994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1907
-1994
lines changed

.github/workflows/check-lint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

infrastructure/control-panel/src/routes/evaults/[namespace]/[pod]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
2727
const [logsData, detailsData] = await Promise.all([
2828
EVaultService.getEVaultLogs(namespace, podName),
29-
EVaultService.getEVaultDetails(namespace, podName)
29+
EVaultService.getEVaultMetrics(namespace, podName)
3030
]);
3131
3232
logs = logsData;

infrastructure/eid-wallet/src/lib/crypto/HardwareKeyManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { KeyManager } from "./types";
2-
import { KeyManagerError, KeyManagerErrorCodes } from "./types";
31
import {
42
exists as hwExists,
53
generate as hwGenerate,
64
getPublicKey as hwGetPublicKey,
75
signPayload as hwSignPayload,
86
verifySignature as hwVerifySignature,
97
} from "@auvo/tauri-plugin-crypto-hw-api";
8+
import type { KeyManager } from "./types";
9+
import { KeyManagerError, KeyManagerErrorCodes } from "./types";
1010

1111
/**
1212
* Hardware key manager implementation using Tauri crypto hardware API

infrastructure/eid-wallet/src/lib/crypto/KeyManagerFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { KeyManager, KeyManagerConfig } from "./types";
21
import { HardwareKeyManager } from "./HardwareKeyManager";
32
import { SoftwareKeyManager } from "./SoftwareKeyManager";
3+
import type { KeyManager, KeyManagerConfig } from "./types";
44
import { KeyManagerError, KeyManagerErrorCodes } from "./types";
55

66
/**

infrastructure/eid-wallet/src/lib/global/controllers/evault.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { PUBLIC_REGISTRY_URL } from "$env/static/public";
22
import type { Store } from "@tauri-apps/plugin-store";
33
import axios from "axios";
44
import { GraphQLClient } from "graphql-request";
5-
import type { UserController } from "./user";
65
import NotificationService from "../../services/NotificationService";
6+
import type { UserController } from "./user";
77

88
const STORE_META_ENVELOPE = `
99
mutation StoreMetaEnvelope($input: MetaEnvelopeInput!) {

infrastructure/eid-wallet/src/lib/global/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Store } from "@tauri-apps/plugin-store";
2+
import NotificationService from "../services/NotificationService";
23
import { VaultController } from "./controllers/evault";
34
import { SecurityController } from "./controllers/security";
45
import { UserController } from "./controllers/user";
5-
import NotificationService from "../services/NotificationService";
66
/**
77
* @author SoSweetHam <[email protected]>
88
* @description A centralized state that can be used to control the global state of the application, meant to be used as a singleton through the main layout component.

infrastructure/eid-wallet/src/lib/services/NotificationService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { PUBLIC_PROVISIONER_URL } from "$env/static/public";
2+
import { invoke } from "@tauri-apps/api/core";
13
import {
2-
requestPermission,
34
isPermissionGranted,
5+
requestPermission,
46
sendNotification,
57
} from "@tauri-apps/plugin-notification";
6-
import { invoke } from "@tauri-apps/api/core";
7-
import { PUBLIC_PROVISIONER_URL } from "$env/static/public";
88

99
export interface DeviceRegistration {
1010
eName: string;

infrastructure/eid-wallet/src/routes/(app)/+layout.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts">
2-
import { page } from "$app/state";
32
import { goto } from "$app/navigation";
4-
import type { Snippet } from "svelte";
5-
import type { LayoutData } from "./$types";
3+
import { page } from "$app/state";
64
import type { GlobalState } from "$lib/global";
5+
import type { Snippet } from "svelte";
76
import { getContext, onMount } from "svelte";
7+
import type { LayoutData } from "./$types";
88
99
let { data, children }: { data: LayoutData; children: Snippet } = $props();
1010

infrastructure/eid-wallet/src/routes/(app)/settings/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ $effect(() => {
122122
<div class="w-full py-10 text-center">
123123
<button
124124
class="text-gray-500 hover:text-gray-700 transition-colors cursor-pointer select-none"
125-
on:click={handleVersionTap}
125+
onclick={handleVersionTap}
126126
disabled={isRetrying}
127127
>
128128
Version v0.3.0.0

infrastructure/eid-wallet/src/routes/(auth)/onboarding/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import {
44
PUBLIC_PROVISIONER_URL,
55
PUBLIC_REGISTRY_URL,
66
} from "$env/static/public";
7+
import { type KeyManager, KeyManagerFactory } from "$lib/crypto";
78
import { Hero } from "$lib/fragments";
89
import { GlobalState } from "$lib/global";
910
import { ButtonAction, Drawer } from "$lib/ui";
1011
import { capitalize } from "$lib/utils";
11-
import { KeyManagerFactory, type KeyManager } from "$lib/crypto";
1212
import * as falso from "@ngneat/falso";
1313
import axios from "axios";
1414
import { getContext, onMount } from "svelte";

0 commit comments

Comments
 (0)