fix: update Vue template syntax and improve Vite config

- Fix Vue template syntax in App.vue by using proper event handler format
- Update Vite config to properly handle ESM imports and crypto modules
- Add manual chunks for better code splitting
- Improve environment variable handling in vite-env.d.ts
- Fix TypeScript linting errors in App.vue
This commit is contained in:
Matthew Raymer
2025-04-18 09:59:33 +00:00
parent 62553a37aa
commit e5518cd47c
161 changed files with 12154 additions and 11570 deletions

View File

@@ -1,9 +1,9 @@
import {
ImageResult,
PlatformService,
PlatformCapabilities,
} from "../PlatformService";
import { logger } from "../../utils/logger";
PlatformCapabilities
} from '../PlatformService'
import { logger } from '../../utils/logger'
/**
* Platform service implementation for PyWebView platform.
@@ -30,8 +30,8 @@ export class PyWebViewPlatformService implements PlatformService {
isMobile: false,
isIOS: false,
hasFileDownload: false, // Not implemented yet
needsFileHandlingInstructions: false,
};
needsFileHandlingInstructions: false
}
}
/**
@@ -42,7 +42,7 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement file reading through pywebview's Python-JavaScript bridge
*/
async readFile(_path: string): Promise<string> {
throw new Error("Not implemented");
throw new Error('Not implemented')
}
/**
@@ -53,7 +53,7 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement file writing through pywebview's Python-JavaScript bridge
*/
async writeFile(_path: string, _content: string): Promise<void> {
throw new Error("Not implemented");
throw new Error('Not implemented')
}
/**
@@ -63,7 +63,7 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement file deletion through pywebview's Python-JavaScript bridge
*/
async deleteFile(_path: string): Promise<void> {
throw new Error("Not implemented");
throw new Error('Not implemented')
}
/**
@@ -74,7 +74,7 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement directory listing through pywebview's Python-JavaScript bridge
*/
async listFiles(_directory: string): Promise<string[]> {
throw new Error("Not implemented");
throw new Error('Not implemented')
}
/**
@@ -84,8 +84,8 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement camera access using Python's camera libraries
*/
async takePicture(): Promise<ImageResult> {
logger.error("takePicture not implemented in PyWebView platform");
throw new Error("Not implemented");
logger.error('takePicture not implemented in PyWebView platform')
throw new Error('Not implemented')
}
/**
@@ -95,8 +95,8 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement file picker using pywebview's file dialog API
*/
async pickImage(): Promise<ImageResult> {
logger.error("pickImage not implemented in PyWebView platform");
throw new Error("Not implemented");
logger.error('pickImage not implemented in PyWebView platform')
throw new Error('Not implemented')
}
/**
@@ -106,7 +106,7 @@ export class PyWebViewPlatformService implements PlatformService {
* @todo Implement deep link handling using Python's URL handling capabilities
*/
async handleDeepLink(_url: string): Promise<void> {
logger.error("handleDeepLink not implemented in PyWebView platform");
throw new Error("Not implemented");
logger.error('handleDeepLink not implemented in PyWebView platform')
throw new Error('Not implemented')
}
}