forked from trent_larson/crowd-funder-for-time-pwa
fix: update component and import paths
Changes: - Update font-awesome component closing tag to match naming - Change @capacitor/app import to use local wrapper - Fix component self-closing tags in ContactScanView.vue This improves consistency in component usage and centralizes capacitor imports through our wrapper layer.
This commit is contained in:
9
src/lib/capacitor/app.ts
Normal file
9
src/lib/capacitor/app.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// Import from node_modules using relative path
|
||||
import { App as CapacitorApp } from '../../../node_modules/@capacitor/app';
|
||||
|
||||
// Re-export the App interface with our own wrapper
|
||||
export const App = {
|
||||
addListener: (eventName: string, listenerFunc: (data: any) => void) => {
|
||||
return CapacitorApp.addListener(eventName, listenerFunc);
|
||||
}
|
||||
};
|
||||
@@ -45,7 +45,7 @@
|
||||
*/
|
||||
|
||||
import { initializeApp } from "./main.common";
|
||||
import { App } from "@capacitor/app";
|
||||
import { App } from "./lib/capacitor/app";
|
||||
import router from "./router";
|
||||
import { handleApiError } from "./services/api";
|
||||
import { AxiosError } from "axios";
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<router-link
|
||||
:to="{ name: 'account' }"
|
||||
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></fa
|
||||
></router-link>
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
||||
</router-link>
|
||||
|
||||
Confirm Contact
|
||||
</h1>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<router-link
|
||||
:to="{ name: 'contacts' }"
|
||||
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></fa
|
||||
></router-link>
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
||||
</router-link>
|
||||
</h1>
|
||||
|
||||
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4">
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
<router-link
|
||||
:to="{ name: 'home' }"
|
||||
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></fa
|
||||
></router-link>
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
||||
</router-link>
|
||||
Given by...
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<router-link
|
||||
:to="{ name: 'account' }"
|
||||
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></fa
|
||||
></router-link>
|
||||
><font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
||||
</router-link>
|
||||
|
||||
Scan Contact
|
||||
</h1>
|
||||
|
||||
Reference in New Issue
Block a user