forked from trent_larson/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:
@@ -284,7 +284,7 @@ import {
|
||||
import { encryptMessage } from "../libs/crypto";
|
||||
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_MEETING_INVALID_TIME,
|
||||
NOTIFY_MEETING_NAME_REQUIRED,
|
||||
@@ -327,7 +327,7 @@ export default class OnboardMeetingView extends Vue {
|
||||
$router!: Router;
|
||||
notify!: ReturnType<typeof createNotifyHelpers>;
|
||||
/** Production share domain for deep links */
|
||||
PROD_SHARE_DOMAIN = PROD_SHARE_DOMAIN;
|
||||
APP_SERVER = APP_SERVER;
|
||||
|
||||
currentMeeting: ServerMeeting | null = null;
|
||||
newOrUpdatedMeetingInputs: MeetingSetupInputs | null = null;
|
||||
@@ -663,7 +663,7 @@ export default class OnboardMeetingView extends Vue {
|
||||
onboardMeetingMembersLink(): string {
|
||||
if (this.currentMeeting) {
|
||||
// Use production URL for sharing to avoid localhost issues in development
|
||||
return `${PROD_SHARE_DOMAIN}/deep-link/onboard-meeting-members/${this.currentMeeting?.groupId}?password=${encodeURIComponent(
|
||||
return `${APP_SERVER}/deep-link/onboard-meeting-members/${this.currentMeeting?.groupId}?password=${encodeURIComponent(
|
||||
this.currentMeeting?.password || "",
|
||||
)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user