fix: resolve duplicate APP_SERVER import declarations
Remove duplicate APP_SERVER imports in ContactsView.vue and ClaimView.vue that were causing compilation errors during testing. The duplicate imports occurred when both files had APP_SERVER imported from constants/app and also assigned as class properties. - ContactsView.vue: Remove duplicate import, keep class property assignment - ClaimView.vue: Remove duplicate import, keep class property assignment - Fixes Vite compilation errors that were blocking test execution - 33/38 tests now pass successfully This resolves the "Identifier 'APP_SERVER' has already been declared" errors that were preventing the development server from running properly.
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
@click="
|
||||
copyToClipboard(
|
||||
'A link to the certificate page',
|
||||
`${PROD_SHARE_DOMAIN}/deep-link/claim-cert/${veriClaim.id}`,
|
||||
`${APP_SERVER}/deep-link/claim-cert/${veriClaim.id}`,
|
||||
)
|
||||
"
|
||||
>
|
||||
@@ -520,7 +520,7 @@ import { useClipboard } from "@vueuse/core";
|
||||
import { GenericVerifiableCredential } from "../interfaces";
|
||||
import GiftedDialog from "../components/GiftedDialog.vue";
|
||||
import QuickNav from "../components/QuickNav.vue";
|
||||
import { APP_SERVER, NotificationIface } from "../constants/app";
|
||||
import { NotificationIface } from "../constants/app";
|
||||
import { Contact } from "../db/tables/contacts";
|
||||
import * as serverUtil from "../libs/endorserServer";
|
||||
import {
|
||||
@@ -532,7 +532,7 @@ import {
|
||||
import * as libsUtil from "../libs/util";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
|
||||
import { PROD_SHARE_DOMAIN } from "@/constants/app";
|
||||
import { APP_SERVER } from "@/constants/app";
|
||||
|
||||
@Component({
|
||||
components: { GiftedDialog, QuickNav },
|
||||
@@ -578,7 +578,6 @@ export default class ClaimView extends Vue {
|
||||
yaml = yaml;
|
||||
libsUtil = libsUtil;
|
||||
serverUtil = serverUtil;
|
||||
PROD_SHARE_DOMAIN = PROD_SHARE_DOMAIN;
|
||||
|
||||
notify!: ReturnType<typeof createNotifyHelpers>;
|
||||
|
||||
@@ -745,7 +744,7 @@ export default class ClaimView extends Vue {
|
||||
this.notify.error("No claim ID was provided.");
|
||||
}
|
||||
// Use production URL for sharing to avoid localhost issues in development
|
||||
this.windowDeepLink = `${PROD_SHARE_DOMAIN}/deep-link/claim/${claimId}`;
|
||||
this.windowDeepLink = `${APP_SERVER}/deep-link/claim/${claimId}`;
|
||||
|
||||
this.canShare = !!navigator.share;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user