WIP: certificate view and dependency updates

- Update certificate view canvas rendering and QR code generation
- Upgrade dependencies (expo-file-system, expo-font, expo-keep-awake)
- Fix type imports for nostr-tools and dexie-export-import
- Update vite config for better dependency resolution
- Clean up main entry points (capacitor, electron, pywebview)
- Improve error handling in API and plan services
- Add type safety to API error handling
- Update build configuration for platform-specific builds

This is a work in progress commit focusing on certificate view improvements
and dependency maintenance. Some type definitions and build configurations
may need further refinement.
This commit is contained in:
Matthew Raymer
2025-02-21 09:47:24 +00:00
parent b5b5d45b99
commit f33d1f0af3
13 changed files with 636 additions and 603 deletions

View File

@@ -15,16 +15,16 @@ function setupGlobalErrorHandler(app: VueApp) {
app.config.errorHandler = (
err: unknown,
instance: ComponentPublicInstance | null,
info: string
info: string,
) => {
console.error("[App Error] Global Error Handler:", {
error: err,
info,
component: instance?.$options.name || 'unknown'
component: instance?.$options.name || "unknown",
});
alert(
(err instanceof Error ? err.message : "Something bad happened") +
" - Try reloading or restarting the app."
" - Try reloading or restarting the app.",
);
};
}
@@ -33,24 +33,23 @@ function setupGlobalErrorHandler(app: VueApp) {
export function initializeApp() {
console.log("[App Init] Starting app initialization");
console.log("[App Init] Platform:", process.env.VITE_PLATFORM);
const app = createApp(App);
console.log("[App Init] Vue app created");
app.component("fa", FontAwesomeIcon)
.component("camera", Camera);
app.component("font-awesome", FontAwesomeIcon).component("camera", Camera);
console.log("[App Init] Components registered");
const pinia = createPinia();
app.use(pinia);
console.log("[App Init] Pinia store initialized");
app.use(VueAxios, axios);
console.log("[App Init] Axios initialized");
app.use(router);
console.log("[App Init] Router initialized");
app.use(Notifications);
console.log("[App Init] Notifications initialized");