diff --git a/app/ide-desktop/lib/dashboard/bundle.ts b/app/ide-desktop/lib/dashboard/bundle.ts index 425aa9e8652f..3666b18123a3 100644 --- a/app/ide-desktop/lib/dashboard/bundle.ts +++ b/app/ide-desktop/lib/dashboard/bundle.ts @@ -32,7 +32,7 @@ async function bundle() { }) opts.entryPoints.push( path.resolve(THIS_PATH, 'src', 'index.html'), - path.resolve(THIS_PATH, 'src', 'index.tsx') + path.resolve(THIS_PATH, 'src', 'index.ts') ) opts.metafile = ANALYZE opts.loader['.html'] = 'copy' diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/animations.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/animations.ts similarity index 100% rename from app/ide-desktop/lib/dashboard/src/authentication/src/animations.tsx rename to app/ide-desktop/lib/dashboard/src/authentication/src/animations.ts diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/indent.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/indent.ts similarity index 84% rename from app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/indent.tsx rename to app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/indent.ts index d67c17edd11e..a128ad7412c2 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/indent.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/indent.ts @@ -1,8 +1,5 @@ /** @file Utilities for indenting elements. */ -// Although this file does not contain JSX, it must be a `.tsx` file for Tailwind to include its -// strings as classes. - // ================= // === Constants === // ================= diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/shortcuts.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/shortcuts.ts similarity index 99% rename from app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/shortcuts.tsx rename to app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/shortcuts.ts index 0cc792870c6b..668ae7a7aff6 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/shortcuts.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/shortcuts.ts @@ -27,8 +27,6 @@ import UntrashIcon from 'enso-assets/untrash.svg' import * as detect from 'enso-common/src/detect' -// This file MUST be a `.tsx` file so that Tailwind includes the CSS classes used here. - // ================= // === Constants === // ================= diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/hooks.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/hooks.ts similarity index 99% rename from app/ide-desktop/lib/dashboard/src/authentication/src/hooks.tsx rename to app/ide-desktop/lib/dashboard/src/authentication/src/hooks.ts index 62540f9bdfeb..7222d5265ada 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/hooks.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/hooks.ts @@ -19,7 +19,7 @@ import * as loggerProvider from './providers/logger' export function useToastAndLog() { const logger = loggerProvider.useLogger() return React.useCallback( - ( + ( messagePrefix: string | null, error?: errorModule.MustNotBeKnown, options?: toastify.ToastOptions diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/http.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/http.ts similarity index 100% rename from app/ide-desktop/lib/dashboard/src/authentication/src/http.tsx rename to app/ide-desktop/lib/dashboard/src/authentication/src/http.ts diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/useRefresh.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/useRefresh.ts similarity index 100% rename from app/ide-desktop/lib/dashboard/src/authentication/src/useRefresh.tsx rename to app/ide-desktop/lib/dashboard/src/authentication/src/useRefresh.ts diff --git a/app/ide-desktop/lib/dashboard/src/index.tsx b/app/ide-desktop/lib/dashboard/src/index.ts similarity index 100% rename from app/ide-desktop/lib/dashboard/src/index.tsx rename to app/ide-desktop/lib/dashboard/src/index.ts diff --git a/app/ide-desktop/lib/dashboard/tailwind.config.ts b/app/ide-desktop/lib/dashboard/tailwind.config.ts index 48334471a6b8..df93ed9c1575 100644 --- a/app/ide-desktop/lib/dashboard/tailwind.config.ts +++ b/app/ide-desktop/lib/dashboard/tailwind.config.ts @@ -14,7 +14,7 @@ const THIS_PATH = path.resolve(path.dirname(url.fileURLToPath(import.meta.url))) // The names come from a third-party API and cannot be changed. /* eslint-disable no-restricted-syntax, @typescript-eslint/naming-convention */ -export const content = [THIS_PATH + '/src/**/*.tsx'] +export const content = [THIS_PATH + '/src/**/*.tsx', THIS_PATH + '/src/**/*.ts'] export const important = `:is(.enso-dashboard, .enso-chat)` export const theme = { extend: { diff --git a/app/ide-desktop/lib/dashboard/test-server.ts b/app/ide-desktop/lib/dashboard/test-server.ts index a294cca847e8..dd3ef314060d 100644 --- a/app/ide-desktop/lib/dashboard/test-server.ts +++ b/app/ide-desktop/lib/dashboard/test-server.ts @@ -22,7 +22,7 @@ const OPTS = bundler.bundlerOptions({ outputPath: '/', devMode: true }) OPTS.define['REDIRECT_OVERRIDE'] = JSON.stringify(`http://localhost:${PORT}`) OPTS.entryPoints.push( path.resolve(THIS_PATH, 'src', 'index.html'), - path.resolve(THIS_PATH, 'src', 'index.tsx'), + path.resolve(THIS_PATH, 'src', 'index.ts'), path.resolve(THIS_PATH, 'src', 'serviceWorker.ts') ) OPTS.write = false diff --git a/app/ide-desktop/lib/dashboard/watch.ts b/app/ide-desktop/lib/dashboard/watch.ts index 073e89014dd1..8c8ba3caec68 100644 --- a/app/ide-desktop/lib/dashboard/watch.ts +++ b/app/ide-desktop/lib/dashboard/watch.ts @@ -24,7 +24,7 @@ const OPTS = bundler.bundlerOptions({ outputPath: '/', devMode: process.env.DEV_ OPTS.define['REDIRECT_OVERRIDE'] = JSON.stringify(`http://localhost:${PORT}`) OPTS.entryPoints.push( path.resolve(THIS_PATH, 'src', 'index.html'), - path.resolve(THIS_PATH, 'src', 'index.tsx'), + path.resolve(THIS_PATH, 'src', 'index.ts'), path.resolve(THIS_PATH, 'src', 'serviceWorker.ts') ) OPTS.minify = false