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:
Matthew Raymer
2025-07-24 06:30:16 +00:00
parent 4f3f7d9f7a
commit 53282b4237
16 changed files with 13748 additions and 11893 deletions

View File

@@ -101,7 +101,7 @@ import TopMessage from "../components/TopMessage.vue";
import {
DEFAULT_PARTNER_API_SERVER,
NotificationIface,
PROD_SHARE_DOMAIN,
APP_SERVER,
} from "../constants/app";
import { Contact } from "../db/tables/contacts";
import { didInfo, getHeaders } from "../libs/endorserServer";
@@ -157,7 +157,7 @@ export default class UserProfileView extends Vue {
// make this function available to the Vue template
didInfo = didInfo;
/** Production share domain for deep links */
PROD_SHARE_DOMAIN = PROD_SHARE_DOMAIN;
APP_SERVER = APP_SERVER;
/**
* Initializes notification helpers
@@ -242,7 +242,7 @@ export default class UserProfileView extends Vue {
*/
onCopyLinkClick() {
// Use production URL for sharing to avoid localhost issues in development
const deepLink = `${PROD_SHARE_DOMAIN}/deep-link/user-profile/${this.profile?.rowId}`;
const deepLink = `${APP_SERVER}/deep-link/user-profile/${this.profile?.rowId}`;
useClipboard()
.copy(deepLink)
.then(() => {