Skip to content

Commit

Permalink
Feature check (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Nov 22, 2023
2 parents 5698f65 + db0f77a commit 488506c
Show file tree
Hide file tree
Showing 17 changed files with 387 additions and 137 deletions.
22 changes: 16 additions & 6 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rtspPort": "RTSP Port",
"serverName": "Server Name",
"username": "Username",
"usernameHint": "Admin",
"password": "Password",
"savePassword": "Save password",
"showPassword": "Show password",
Expand Down Expand Up @@ -75,8 +76,6 @@
"addToView": "Add to view",
"addAllToView": "Add all to view",
"removeAllFromView": "Remove all from view",
"externalStream": "External stream",
"addExternalStream": "Add external stream",
"streamName": "Stream name",
"streamNameRequired": "The stream name is required",
"streamURL": "Stream URL",
Expand Down Expand Up @@ -205,8 +204,9 @@
"multipleView": "Multiple view",
"compactView": "Compact view",
"createNewLayout": "Create new layout",
"layoutNameHint": "Layout name",
"layoutTypeHint": "Layout type",
"layoutName": "Layout name",
"layoutNameHint": "First floor",
"layoutTypeLabel": "Layout type",
"@Downloads": {},
"downloads": "Downloads",
"download": "Download",
Expand Down Expand Up @@ -422,7 +422,7 @@
"notificationClickBehavior": "Notification Click Behavior",
"showEventsScreen": "Show events history",
"@@STREAMING": {},
"streamingSetings": "Streaming settings",
"streamingSettings": "Streaming settings",
"streamingType": "Streaming type",
"rtspProtocol": "RTSP Protocol",
"camerasSettings": "Cameras settings",
Expand Down Expand Up @@ -460,5 +460,15 @@
"example": "0.0"
}
}
}
},
"@EXTERNAL STREAM": {},
"externalStream": "External stream",
"addExternalStream": "Add external stream",
"showMore": "Show more",
"showLess": "Show less",
"serverHostname": "Server hostname",
"serverHostnameExample": "https://my-server.bluecherry.app:7001",
"rackName": "Rack name",
"rackNameExample": "Lab 1",
"openServer": "Open server"
}
22 changes: 16 additions & 6 deletions lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rtspPort": "RTSP Port",
"serverName": "Server Name",
"username": "Nom d'utilisateur",
"usernameHint": "Admin",
"password": "Mot de passe",
"savePassword": "Sauvegarder mot de passe",
"showPassword": "Afficher mot de passe",
Expand Down Expand Up @@ -71,8 +72,6 @@
"addToView": "Ajouter à la vue",
"addAllToView": "Tout ajouter à la vue",
"removeAllFromView": "Tout retirer de la vue",
"externalStream": "External stream",
"addExternalStream": "Add external stream",
"streamName": "Stream name",
"streamNameRequired": "The stream name is required",
"streamURL": "Stream URL",
Expand Down Expand Up @@ -195,8 +194,9 @@
"multipleView": "Vue multiple",
"compactView": "Vue compacte",
"createNewLayout": "Créer une nouvelle disposition",
"layoutNameHint": "Nom de la disposition",
"layoutTypeHint": "Type de disposition",
"layoutName": "Nom de la disposition",
"layoutNameHint": "First floor",
"layoutTypeLabel": "Type de disposition",
"@Downloads": {},
"downloads": "Téléchargements",
"download": "Télécharger",
Expand Down Expand Up @@ -396,7 +396,7 @@
"notificationClickBehavior": "Action de clic sur les notifications",
"showEventsScreen": "Montrer le navigateur d'événements",
"@@STREAMING": {},
"streamingSetings": "Paramètre de diffusion",
"streamingSettings": "Paramètre de diffusion",
"streamingType": "Type de diffusion",
"rtspProtocol": "Protocole RTSP",
"camerasSettings": "Paramètres des caméras",
Expand Down Expand Up @@ -434,5 +434,15 @@
"example": "0.0"
}
}
}
},
"@EXTERNAL STREAM": {},
"externalStream": "External stream",
"addExternalStream": "Add external stream",
"showMore": "More options",
"showLess": "Less options",
"serverHostname": "Server hostname",
"serverHostnameExample": "https://my-server.bluecherry.app:7001",
"rackName": "Rack name",
"rackNameExample": "Lab 1",
"openServer": "Open server"
}
22 changes: 16 additions & 6 deletions lib/l10n/app_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rtspPort": "RTSP Port",
"serverName": "Server Name",
"username": "Nazwa użytkownika",
"usernameHint": "Admin",
"password": "Hasło",
"savePassword": "Zapisz hasło",
"showPassword": "Show password",
Expand Down Expand Up @@ -75,8 +76,6 @@
"addToView": "Dodaj do widoku",
"addAllToView": "Dodaj wszystkie do widoku",
"removeAllFromView": "Remove all from view",
"externalStream": "External stream",
"addExternalStream": "Add external stream",
"streamName": "Stream name",
"streamNameRequired": "The stream name is required",
"streamURL": "Stream URL",
Expand Down Expand Up @@ -205,8 +204,9 @@
"multipleView": "Widok wielokrotny",
"compactView": "Widok kompaktowy",
"createNewLayout": "Utwórz nowy układ",
"layoutNameHint": "Nazwa układu",
"layoutTypeHint": "Typ układu",
"layoutName": "Nazwa układu",
"layoutNameHint": "First floor",
"layoutTypeLabel": "Typ układu",
"@Downloads": {},
"downloads": "Pobrania",
"download": "Pobierz",
Expand Down Expand Up @@ -422,7 +422,7 @@
"notificationClickBehavior": "Zachowanie po kliknięciu na powiadomienie",
"showEventsScreen": "Pokaż historię zdarzeń",
"@@STREAMING": {},
"streamingSetings": "Streaming settings",
"streamingSettings": "Streaming settings",
"streamingType": "Streaming type",
"rtspProtocol": "RTSP Protocol",
"camerasSettings": "Cameras settings",
Expand Down Expand Up @@ -460,5 +460,15 @@
"example": "0.0"
}
}
}
},
"@EXTERNAL STREAM": {},
"externalStream": "External stream",
"addExternalStream": "Add external stream",
"showMore": "More options",
"showLess": "Less options",
"serverHostname": "Server hostname",
"serverHostnameExample": "https://my-server.bluecherry.app:7001",
"rackName": "Rack name",
"rackNameExample": "Lab 1",
"openServer": "Open server"
}
22 changes: 16 additions & 6 deletions lib/l10n/app_pt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rtspPort": "Porta RTSP",
"serverName": "Nome do servidor",
"username": "Nome de usuário",
"usernameHint": "Admin",
"password": "Senha",
"savePassword": "Salvar senha",
"showPassword": "Mostrar senha",
Expand Down Expand Up @@ -75,8 +76,6 @@
"addToView": "Adicionar ao layout",
"addAllToView": "Adicionar tudo ao layout",
"removeAllFromView": "Remover tudo do layout",
"externalStream": "Transmissão externa",
"addExternalStream": "Adicionar transmissão externa",
"streamName": "Nome da Transmissão",
"streamNameRequired": "O nome da transmissão é obrigatório",
"streamURL": "URL da Transmissão",
Expand Down Expand Up @@ -205,8 +204,9 @@
"multipleView": "Múltiplas câmeras",
"compactView": "Visualização compacta",
"createNewLayout": "Criar novo layout",
"layoutNameHint": "Nome do layout",
"layoutTypeHint": "Tipo do layout",
"layoutName": "Nome do layout",
"layoutNameHint": "Primeiro andar",
"layoutTypeLabel": "Tipo do layout",
"@Downloads": {},
"downloads": "Downloads",
"download": "Baixar",
Expand Down Expand Up @@ -422,7 +422,7 @@
"notificationClickBehavior": "Ação ao clicar na notificação",
"showEventsScreen": "Mostar histórico de eventos",
"@@STREAMING": {},
"streamingSetings": "Configurações de streaming",
"streamingSettings": "Configurações de streaming",
"streamingType": "Tipo de streaming",
"rtspProtocol": "Protocolo RTSP",
"camerasSettings": "Configurações das câmeras",
Expand Down Expand Up @@ -460,5 +460,15 @@
"example": "0.0"
}
}
}
},
"@EXTERNAL STREAM": {},
"externalStream": "Transmissão externa",
"addExternalStream": "Adicionar transmissão externa",
"showMore": "Mostrar mais",
"showLess": "Mostrar menos",
"serverHostname": "Hostname do servidor",
"serverHostnameExample": "https://servidor.bluecherry.app:7001",
"rackName": "Nome do rack",
"rackNameExample": "Lab 1",
"openServer": "Abrir servidor"
}
15 changes: 8 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ Future<void> main(List<String> args) async {
await UnityVideoPlayerInterface.instance.initialize();
await configureStorage();

logging.writeLogToFile('Opening app with $args');

if (isDesktopPlatform && args.isNotEmpty) {
debugPrint('FOUND ANOTHER WINDOW: $args');

if (args.length == 1 &&
(path.extension(args.first) == '.bluecherry' ||
Uri.tryParse(args.first)?.scheme == 'bluecherry')) {
// this is handled by app links
// final configFile = File(args.first);
// if (await configFile.exists()) {
// handleConfigurationFile(configFile);
// }
Uri.tryParse(args.first)?.scheme == 'bluecherry' ||
Uri.tryParse(args.first)?.scheme == 'rtsp')) {
// this is handled by app_links. this clause is kept because we do not
// want to open the [AlternativeWindow] screen.
} else {
try {
// this is just a mock. HomeProvider depends on this, so we mock the instance
Expand Down Expand Up @@ -165,10 +165,11 @@ Future<void> main(List<String> args) async {

HomeProvider.setDefaultStatusBarStyle();

runApp(const UnityApp());

app_links.register('rtsp');
app_links.register('bluecherry');
app_links.listen();
runApp(const UnityApp());
}, logging.handleError);
}

Expand Down
Loading

0 comments on commit 488506c

Please sign in to comment.