vibetunnel/mac/VibeTunnel/Core/Models/DashboardAccessMode.swift
Peter Steinberger a9fd66c291 refactor: major project restructuring - move macOS app to mac/ directory
- Move all macOS-specific code from root to mac/ directory
- Move app icons and assets to dedicated assets/ directory
- Update GitHub workflows for new structure
- Consolidate documentation files
- Clean up root directory for better multi-platform organization
2025-06-20 13:20:01 +02:00

32 lines
803 B
Swift

import Foundation
/// Dashboard access mode.
///
/// Determines the network binding configuration for the VibeTunnel server.
/// Controls whether the web interface is accessible only locally or
/// from other devices on the network.
enum DashboardAccessMode: String, CaseIterable {
case localhost
case network
var displayName: String {
switch self {
case .localhost: "Localhost only"
case .network: "Network"
}
}
var bindAddress: String {
switch self {
case .localhost: "127.0.0.1"
case .network: "0.0.0.0"
}
}
var description: String {
switch self {
case .localhost: "Only accessible from this Mac."
case .network: "Accessible from other devices on this network."
}
}
}