forked from trent_larson/crowd-funder-for-time-pwa
feat: enhance GenericVerifiableCredential interface with explicit optional properties
- Add name, description, and agent as optional properties to GenericVerifiableCredential - Improve type safety and IntelliSense for common claim properties - Maintain backward compatibility with existing code - Reduce need for type assertions when accessing claim properties
This commit is contained in:
@@ -58,12 +58,15 @@ import { Router } from "vue-router";
|
||||
|
||||
import QuickNav from "../components/QuickNav.vue";
|
||||
import TopMessage from "../components/TopMessage.vue";
|
||||
import { db } from "../db/index";
|
||||
import { Log } from "../db/tables/logs";
|
||||
import { logger } from "../utils/logger";
|
||||
import { PlatformServiceFactory } from "../services/PlatformServiceFactory";
|
||||
import * as databaseUtil from "../db/databaseUtil";
|
||||
|
||||
interface Log {
|
||||
date: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
QuickNav,
|
||||
@@ -74,8 +77,8 @@ export default class LogView extends Vue {
|
||||
$router!: Router;
|
||||
|
||||
loading = true;
|
||||
logs: Log[] = [];
|
||||
error: string | null = null;
|
||||
logs: Log[] = [];
|
||||
memoryLogs: string[] = [];
|
||||
|
||||
async mounted() {
|
||||
@@ -87,7 +90,6 @@ export default class LogView extends Vue {
|
||||
this.error = null; // Clear any previous errors
|
||||
this.memoryLogs = databaseUtil.memoryLogs;
|
||||
|
||||
const allLogs: Log[] = [];
|
||||
const platformService = PlatformServiceFactory.getInstance();
|
||||
const queryResult = await platformService.dbQuery(
|
||||
"SELECT * FROM logs ORDER BY date DESC",
|
||||
|
||||
Reference in New Issue
Block a user