forked from jsnbuchanan/crowd-funder-for-time-pwa
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:
@@ -140,7 +140,7 @@ import ContactInputForm from "../components/ContactInputForm.vue";
|
||||
import ContactListHeader from "../components/ContactListHeader.vue";
|
||||
import ContactBulkActions from "../components/ContactBulkActions.vue";
|
||||
import LargeIdenticonModal from "../components/LargeIdenticonModal.vue";
|
||||
import { APP_SERVER, AppString, NotificationIface } from "../constants/app";
|
||||
import { AppString, NotificationIface } from "../constants/app";
|
||||
// Legacy logging import removed - using PlatformServiceMixin methods
|
||||
import { Contact } from "../db/tables/contacts";
|
||||
import { getContactJwtFromJwtUrl } from "../libs/crypto";
|
||||
@@ -167,7 +167,7 @@ import { logger } from "../utils/logger";
|
||||
// import { PlatformServiceFactory } from "@/services/PlatformServiceFactory";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
|
||||
import { PROD_SHARE_DOMAIN } from "@/constants/app";
|
||||
import { APP_SERVER } from "@/constants/app";
|
||||
import {
|
||||
NOTIFY_CONTACT_NO_INFO,
|
||||
NOTIFY_CONTACTS_ADD_ERROR,
|
||||
@@ -275,7 +275,6 @@ export default class ContactsView extends Vue {
|
||||
APP_SERVER = APP_SERVER;
|
||||
AppString = AppString;
|
||||
libsUtil = libsUtil;
|
||||
PROD_SHARE_DOMAIN = PROD_SHARE_DOMAIN;
|
||||
|
||||
/**
|
||||
* Component lifecycle hook - Initialize component state and load data
|
||||
@@ -1171,7 +1170,7 @@ export default class ContactsView extends Vue {
|
||||
contacts: selectedContacts,
|
||||
});
|
||||
// Use production URL for sharing to avoid localhost issues in development
|
||||
const contactsJwtUrl = `${PROD_SHARE_DOMAIN}/deep-link/contact-import/${contactsJwt}`;
|
||||
const contactsJwtUrl = `${APP_SERVER}/deep-link/contact-import/${contactsJwt}`;
|
||||
useClipboard()
|
||||
.copy(contactsJwtUrl)
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user