Browse Source

fix: correct import paths and add host flag for dev server

- Update import path for GiveRecordWithContactInfo to use relative path
- Add --host flag to dev script for network access during development
qrcode-reboot
Matthew Raymer 22 hours ago
parent
commit
8e6ba68560
  1. 2
      package.json
  2. 2
      src/types/index.ts
  3. 2
      src/views/HomeView.vue

2
package.json

@ -6,7 +6,7 @@
"name": "Time Safari Team"
},
"scripts": {
"dev": "vite --config vite.config.dev.mts",
"dev": "vite --config vite.config.dev.mts --host",
"serve": "vite preview",
"build": "VITE_GIT_HASH=`git log -1 --pretty=format:%h` vite build --config vite.config.mts",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src",

2
src/types/index.ts

@ -1,4 +1,4 @@
import { GiveSummaryRecord, GiveVerifiableCredential } from "interfaces";
import { GiveSummaryRecord, GiveVerifiableCredential } from "../interfaces";
export interface GiveRecordWithContactInfo extends GiveSummaryRecord {
jwtId: string;

2
src/views/HomeView.vue

@ -348,7 +348,7 @@ import {
import { GiveSummaryRecord } from "../interfaces";
import * as serverUtil from "../libs/endorserServer";
import { logger } from "../utils/logger";
import { GiveRecordWithContactInfo } from "types";
import { GiveRecordWithContactInfo } from "../types";
interface Claim {
claim?: Claim; // For nested claims in Verifiable Credentials

Loading…
Cancel
Save