- Added new fields for proxy URL, session affinity, and session affinity TTL in usage tracking. - Updated tauri configuration to increase window width. - Expanded Japanese and Chinese translations for new error messages and notices related to network settings. - Introduced new network configuration panel in the UI, allowing users to set port, LAN access, proxy URL, and session affinity options. - Implemented validation for port input and added error handling for network settings. - Refactored API access logic to support new provider record management functions. - Updated navigation to ensure the config page is always accessible. - Added tests for new provider record functionalities and network settings.
10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
const alwaysAvailablePages = new Set(['home', 'versions', 'config']);
|
|
|
|
export function isAlwaysAvailablePage(pageId: string) {
|
|
return alwaysAvailablePages.has(pageId);
|
|
}
|
|
|
|
export function canOpenAppPage(pageId: string, coreRunning: boolean) {
|
|
return coreRunning || isAlwaysAvailablePage(pageId);
|
|
}
|