Update README and API for Docker integration and app management
- Revised README.md to clarify the use of Docker alongside Podman for containerization. - Updated API documentation to reflect new RPC endpoints, including `auth.logout`. - Enhanced WebSocket handling in the API for better connection management. - Modified Neode UI to utilize a curated list of Docker-based applications, replacing previous Start9 registry calls. - Improved error handling and logging in the marketplace for better user experience.
This commit is contained in:
@@ -322,8 +322,18 @@ function handleImageError(e: Event) {
|
||||
// Fetch GitHub app info for dummy apps on mount
|
||||
const appInfoCache = ref<Record<string, any>>({})
|
||||
|
||||
// Watch for packages and fetch app info when showing dummy apps
|
||||
// In development, skip external API calls to avoid rate limiting and noise
|
||||
// App icons and descriptions are already defined in dummyApps.ts
|
||||
const isDev = import.meta.env.DEV
|
||||
|
||||
// Watch for packages and fetch app info when showing dummy apps (DISABLED IN DEV)
|
||||
watch(() => Object.keys(store.packages).length, async (packageCount) => {
|
||||
// Skip external API calls in development to avoid 403/404 errors
|
||||
if (isDev) {
|
||||
console.log('[Apps] Using local app data (dev mode, external API calls disabled)')
|
||||
return
|
||||
}
|
||||
|
||||
// Only fetch if we're showing dummy apps (no real packages)
|
||||
if (packageCount === 0) {
|
||||
try {
|
||||
@@ -366,7 +376,8 @@ watch(() => Object.keys(store.packages).length, async (packageCount) => {
|
||||
return
|
||||
}
|
||||
} catch (registryErr) {
|
||||
console.warn('[Apps] Start9 registry unavailable, trying GitHub...', registryErr)
|
||||
// Silently fail in production
|
||||
console.debug('[Apps] Registry unavailable')
|
||||
}
|
||||
|
||||
// Fallback to GitHub fetching
|
||||
@@ -394,7 +405,7 @@ watch(() => Object.keys(store.packages).length, async (packageCount) => {
|
||||
|
||||
console.log('[Apps] GitHub info fetched:', Object.keys(githubInfo).length, 'apps')
|
||||
} catch (err) {
|
||||
console.error('[Apps] Failed to fetch app info:', err)
|
||||
console.debug('[Apps] External API fetch skipped or failed')
|
||||
}
|
||||
}
|
||||
}, { immediate: true })
|
||||
|
||||
Reference in New Issue
Block a user