forked from trent_larson/crowd-funder-for-time-pwa
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:
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user