diff --git a/plugins/workbench-assets/lang/en.json b/plugins/workbench-assets/lang/en.json index a575a83bba..a0278e98d7 100644 --- a/plugins/workbench-assets/lang/en.json +++ b/plugins/workbench-assets/lang/en.json @@ -28,6 +28,7 @@ "OpenInNewTab": "Open in a new tab", "NewVersionAvailable": "New version is available", "PleaseUpdate": "Please update", - "ServerUnderMaintenance": "Server is under maintenance" + "ServerUnderMaintenance": "Server is under maintenance", + "MobileNotSupported": "Sorry, mobile devices support coming soon. In the meantime, please use Desktop" } } diff --git a/plugins/workbench-assets/lang/es.json b/plugins/workbench-assets/lang/es.json index 9117181110..35925522eb 100644 --- a/plugins/workbench-assets/lang/es.json +++ b/plugins/workbench-assets/lang/es.json @@ -28,6 +28,7 @@ "OpenInNewTab": "Abrir en una nueva pestaña", "NewVersionAvailable": "Nueva versión disponible", "PleaseUpdate": "Por favor, actualice", - "ServerUnderMaintenance": "El servidor está en mantenimiento" + "ServerUnderMaintenance": "El servidor está en mantenimiento", + "MobileNotSupported": "Disculpa, el soporte para dispositivos móviles estará disponible próximamente. Mientras tanto, por favor usa el escritorio." } } \ No newline at end of file diff --git a/plugins/workbench-assets/lang/pt.json b/plugins/workbench-assets/lang/pt.json index dd4b9348bc..4b67e5e018 100644 --- a/plugins/workbench-assets/lang/pt.json +++ b/plugins/workbench-assets/lang/pt.json @@ -28,6 +28,7 @@ "OpenInNewTab": "Abrir num novo separador", "NewVersionAvailable": "Nova versão disponível", "PleaseUpdate": "Atualize", - "ServerUnderMaintenance": "Servidor em manutenção" + "ServerUnderMaintenance": "Servidor em manutenção", + "MobileNotSupported": "Desculpe, o suporte para dispositivos móveis estará disponível em breve. Enquanto isso, por favor, use o Desktop." } } \ No newline at end of file diff --git a/plugins/workbench-assets/lang/ru.json b/plugins/workbench-assets/lang/ru.json index 91015dd43d..4cf2a185ce 100644 --- a/plugins/workbench-assets/lang/ru.json +++ b/plugins/workbench-assets/lang/ru.json @@ -28,6 +28,7 @@ "OpenInNewTab": "Открыть в новой вкладке", "NewVersionAvailable": "Доступна новая версия", "PleaseUpdate": "Пожалуйста, обновите приложение", - "ServerUnderMaintenance": "Обслуживание сервера" + "ServerUnderMaintenance": "Обслуживание сервера", + "MobileNotSupported": "Простите, поддержка мобильных устройств скоро будет доступна. Пока воспользуйтесь компьютером." } } diff --git a/plugins/workbench-resources/src/components/WorkbenchApp.svelte b/plugins/workbench-resources/src/components/WorkbenchApp.svelte index 0889758929..af1d2805da 100644 --- a/plugins/workbench-resources/src/components/WorkbenchApp.svelte +++ b/plugins/workbench-resources/src/components/WorkbenchApp.svelte @@ -14,7 +14,7 @@ --> {#if $location.path[0] === workbenchId || $location.path[0] === workbench.component.WorkbenchApp} - {#key $location.path[1]} - {#await connect(getMetadata(workbench.metadata.PlatformTitle) ?? 'Platform')} - - {:then client} - {#if !client && versionError} -
-
- {#if isNeedUpgrade} -

- - {:else} -

- {/if} - {versionError} + {#if $deviceOptionsStore.isMobile} +
+
+

+
+
+ {:else} + {#key $location.path[1]} + {#await connect(getMetadata(workbench.metadata.PlatformTitle) ?? 'Platform')} + + {:then client} + {#if !client && versionError} +
+
+ {#if isNeedUpgrade} +

+ + {:else} +

+ {/if} + {versionError} +
-
- {:else if client} - - - - {/if} - {:catch error} -
{error} -- {error.stack}
- {/await} - {/key} + {:else if client} + + + + {/if} + {:catch error} +
{error} -- {error.stack}
+ {/await} + {/key} + {/if} {/if}