Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak the non-desktop platforms text #198

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/messages/ui.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"connectMB.transferHex.altText": "animation of dragging a hex file from the downloads folder onto the micro:bit drive or device listed in the file explorer",

"compatibility.platform.notSupported": "The tool is not supported on your current platform.",
"compatibility.platform.notSupported.joinDesktop": "Join us on desktop.",
"compatibility.platform.notSupported.joinDesktop": "Please use Google Chrome or Microsoft Edge on a computer.",
"compatibility.webgl.notSupported": "WebGL not available. Enable WebGL to see 3D data view.",

"loading": "loading",
Expand Down
2 changes: 1 addition & 1 deletion src/router/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import { writable, Writable, get, derived } from 'svelte/store';
import type { MessageFormatter } from '../i18n';
import { appName } from '../script/environment';
export const Paths = {
HOME: '/',
PLAYGROUND: 'playground',
Expand All @@ -31,7 +32,6 @@ export function navigate(path: PathType) {
currentPathPrivate.set(path);
}

const appName = 'micro:bit machine learning tool';
export const getTitle = (path: PathType, t: MessageFormatter) => {
switch (path) {
case '/': {
Expand Down
2 changes: 2 additions & 0 deletions src/script/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: MIT
*/

export const appName = 'micro:bit machine learning tool';

// See CI & package.json scripts.
export const version = import.meta.env.VITE_VERSION || 'local';
export type Stage = 'local' | 'review' | 'staging' | 'production';
Expand Down
3 changes: 2 additions & 1 deletion src/views/IncompatiblePlatformView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

<script>
import { t } from '../i18n';
import { appName } from '../script/environment';
</script>

<div class="h-screen w-screen bg-secondary flex flex-col justify-center items-center">
<p class="mb-4 text-secondarytext font-extrabold text-5xl">
{'ML-Machine'}
{appName}
</p>
<p class="text-primarytext text-center mb-2">
{$t('compatibility.platform.notSupported')}
Expand Down
Loading