From 4b9b1760bb3f0c1fe00fe2e48a48408874d0e763 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Wed, 24 May 2023 15:17:49 +0800 Subject: [PATCH] build(web): disable `allowImportingTsExtensions` to suppress warning with `noEmit` (#213) part of #193, ref https://github.com/microsoft/TypeScript/pull/53599 --- web/libs/di/container.tsx | 2 +- web/libs/hooks/use-state-from-observable.ts | 2 +- web/src/app.tsx | 24 +++++++++---------- web/src/components/card/index.tsx | 2 +- web/src/components/date-parser/index.tsx | 2 +- .../components/edit-deployment/index.tsx | 10 ++++---- web/src/components/deployment-item/index.tsx | 10 ++++---- .../components/deployment-status/index.tsx | 2 +- web/src/components/description/index.tsx | 2 +- .../layout/components/footer/index.tsx | 2 +- .../layout/components/nav/index.tsx | 8 +++---- web/src/components/link/index.tsx | 2 +- .../photon-item/components/actions/index.tsx | 6 ++--- .../components/extra-info/index.tsx | 2 +- .../popover-deployment-table/index.tsx | 4 ++-- .../components/time-description/index.tsx | 2 +- .../components/version-description/index.tsx | 2 +- web/src/components/photon-item/index.tsx | 6 ++--- web/src/components/root/index.tsx | 6 ++--- web/src/components/theme-provider/index.tsx | 4 ++-- web/src/interfaces/photon.ts | 2 +- web/src/main.tsx | 2 +- web/src/routers/dashboard/index.tsx | 8 +++---- .../deployments/components/apis/index.tsx | 8 +++---- .../components/logs-viewer/index.tsx | 9 +++---- .../instances/components/terminal/index.tsx | 7 ++---- .../components/instances/index.tsx | 8 +++---- .../deployments/components/requests/index.tsx | 10 ++++---- .../components/schema-form/index.tsx | 6 ++--- web/src/routers/deployments/index.tsx | 2 +- .../deployments/routers/create/index.tsx | 6 ++--- .../deployments/routers/detail/index.tsx | 4 ++-- .../deployments/routers/list/index.tsx | 6 ++--- .../components/detail-description/index.tsx | 2 +- .../photons/components/upload/index.tsx | 4 ++-- web/src/routers/photons/index.tsx | 2 +- .../routers/photons/routers/detail/index.tsx | 4 ++-- .../routers/photons/routers/list/index.tsx | 6 ++--- .../photons/routers/versions/index.tsx | 6 ++--- web/src/services/api.local.service.ts | 9 +++---- web/src/services/api.server.service.ts | 11 ++++----- web/src/services/api.service.ts | 7 ++---- web/src/services/deployment.service.ts | 7 ++---- web/src/services/initializer.service.ts | 6 ++--- web/src/services/json-schema.service.ts | 2 +- web/src/services/notification.service.ts | 8 +++---- web/src/services/photon.service.ts | 4 ++-- web/src/services/theme.service.ts | 2 +- web/tsconfig.json | 1 - 49 files changed, 120 insertions(+), 139 deletions(-) diff --git a/web/libs/di/container.tsx b/web/libs/di/container.tsx index 0f0a8dc8e..d013b301a 100644 --- a/web/libs/di/container.tsx +++ b/web/libs/di/container.tsx @@ -1,6 +1,6 @@ import { FC, PropsWithChildren, useContext } from "react"; import { Injector, Provider, ReflectiveInjector } from "injection-js"; -import { useOnce } from "@lepton-libs/hooks/use-once.ts"; +import { useOnce } from "@lepton-libs/hooks/use-once"; import { InjectorContext } from "./context"; export const DIContainer: FC< diff --git a/web/libs/hooks/use-state-from-observable.ts b/web/libs/hooks/use-state-from-observable.ts index 91bdd187b..d9e7f08ab 100644 --- a/web/libs/hooks/use-state-from-observable.ts +++ b/web/libs/hooks/use-state-from-observable.ts @@ -1,7 +1,7 @@ import { Observable, PartialObserver } from "rxjs"; import { useObservableEagerState, useSubscription } from "observable-hooks"; import { useState } from "react"; -import { useOnce } from "@lepton-libs/hooks/use-once.ts"; +import { useOnce } from "@lepton-libs/hooks/use-once"; export const useStateFromObservable = ( factory: () => Observable, diff --git a/web/src/app.tsx b/web/src/app.tsx index c765e6c35..0cab93116 100644 --- a/web/src/app.tsx +++ b/web/src/app.tsx @@ -6,22 +6,22 @@ import { } from "react-router-dom"; import { Layout } from "@lepton-dashboard/components/layout"; import { ThemeProvider } from "@lepton-dashboard/components/theme-provider"; -import { ThemeService } from "@lepton-dashboard/services/theme.service.ts"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { TitleService } from "@lepton-dashboard/services/title.service.ts"; -import { ApiService } from "@lepton-dashboard/services/api.service.ts"; -import { InitializerService } from "@lepton-dashboard/services/initializer.service.ts"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { ThemeService } from "@lepton-dashboard/services/theme.service"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { TitleService } from "@lepton-dashboard/services/title.service"; +import { ApiService } from "@lepton-dashboard/services/api.service"; +import { InitializerService } from "@lepton-dashboard/services/initializer.service"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; import { Root } from "@lepton-dashboard/components/root"; -import { HttpClientService } from "@lepton-dashboard/services/http-client.service.ts"; +import { HttpClientService } from "@lepton-dashboard/services/http-client.service"; import { App as AntdApp } from "antd"; import { css } from "@emotion/react"; -import { ApiServerService } from "@lepton-dashboard/services/api.server.service.ts"; +import { ApiServerService } from "@lepton-dashboard/services/api.server.service"; import { lazy } from "react"; -import { NotificationService } from "@lepton-dashboard/services/notification.service.ts"; -import { StorageService } from "@lepton-dashboard/services/storage.service.ts"; -import { JsonSchemaService } from "@lepton-dashboard/services/json-schema.service.ts"; +import { NotificationService } from "@lepton-dashboard/services/notification.service"; +import { StorageService } from "@lepton-dashboard/services/storage.service"; +import { JsonSchemaService } from "@lepton-dashboard/services/json-schema.service"; const Dashboard = lazy(() => import("@lepton-dashboard/routers/dashboard").then((e) => ({ default: e.Dashboard, diff --git a/web/src/components/card/index.tsx b/web/src/components/card/index.tsx index be3528953..d1fab77d5 100644 --- a/web/src/components/card/index.tsx +++ b/web/src/components/card/index.tsx @@ -1,7 +1,7 @@ import { FC, PropsWithChildren, ReactNode } from "react"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { css } from "@emotion/react"; -import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props.ts"; +import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props"; export const Card: FC< PropsWithChildren< diff --git a/web/src/components/date-parser/index.tsx b/web/src/components/date-parser/index.tsx index 98170c3ce..c509c9285 100644 --- a/web/src/components/date-parser/index.tsx +++ b/web/src/components/date-parser/index.tsx @@ -1,6 +1,6 @@ import { FC } from "react"; import dayjs, { ConfigType } from "dayjs"; -import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props.ts"; +import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props"; export const DateParser: FC< { diff --git a/web/src/components/deployment-item/components/edit-deployment/index.tsx b/web/src/components/deployment-item/components/edit-deployment/index.tsx index 027c40a57..c4088e85f 100644 --- a/web/src/components/deployment-item/components/edit-deployment/index.tsx +++ b/web/src/components/deployment-item/components/edit-deployment/index.tsx @@ -13,15 +13,15 @@ import { DeploymentStatus } from "@lepton-dashboard/components/deployment-status import { PhotonItem } from "@lepton-dashboard/components/photon-item"; import { Link } from "@lepton-dashboard/components/link"; import { DateParser } from "@lepton-dashboard/components/date-parser"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { mergeMap, of } from "rxjs"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; import { CarbonIcon } from "@lepton-dashboard/components/icons"; import { Edit as EditIcon } from "@carbon/icons-react"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; export const EditDeployment: FC<{ deployment: Deployment }> = ({ deployment, }) => { diff --git a/web/src/components/deployment-item/index.tsx b/web/src/components/deployment-item/index.tsx index a7cec5353..9a7dac8b4 100644 --- a/web/src/components/deployment-item/index.tsx +++ b/web/src/components/deployment-item/index.tsx @@ -1,5 +1,5 @@ import { FC } from "react"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; import { App, Button, @@ -28,10 +28,10 @@ import { CloseOutlined, DeleteOutlined } from "@ant-design/icons"; import { DeploymentStatus } from "@lepton-dashboard/components/deployment-status"; import { DateParser } from "@lepton-dashboard/components/date-parser"; import { useInject } from "@lepton-libs/di"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; import { PhotonItem } from "@lepton-dashboard/components/photon-item"; import { Hoverable } from "@lepton-dashboard/components/hoverable"; import { EditDeployment } from "@lepton-dashboard/components/deployment-item/components/edit-deployment"; diff --git a/web/src/components/deployment-status/index.tsx b/web/src/components/deployment-status/index.tsx index da4974e23..a7c2c5990 100644 --- a/web/src/components/deployment-status/index.tsx +++ b/web/src/components/deployment-status/index.tsx @@ -1,6 +1,6 @@ import { FC } from "react"; import { Tag } from "antd"; -import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props.ts"; +import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props"; import { css } from "@emotion/react"; import { DeploymentIcon } from "@lepton-dashboard/components/icons"; diff --git a/web/src/components/description/index.tsx b/web/src/components/description/index.tsx index f5e0bb7b2..0dff3e8ee 100644 --- a/web/src/components/description/index.tsx +++ b/web/src/components/description/index.tsx @@ -2,7 +2,7 @@ import { FC, PropsWithChildren, ReactNode } from "react"; import styled from "@emotion/styled"; import { css } from "@emotion/react"; import { Divider, Space } from "antd"; -import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props.ts"; +import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; const ItemContainer = styled.div` diff --git a/web/src/components/layout/components/footer/index.tsx b/web/src/components/layout/components/footer/index.tsx index d6ba7616d..fb6ae7832 100644 --- a/web/src/components/layout/components/footer/index.tsx +++ b/web/src/components/layout/components/footer/index.tsx @@ -11,7 +11,7 @@ import { } from "@ant-design/icons"; import { AsleepFilled, LightFilled } from "@carbon/icons-react"; import { useInject } from "@lepton-libs/di"; -import { ThemeService } from "@lepton-dashboard/services/theme.service.ts"; +import { ThemeService } from "@lepton-dashboard/services/theme.service"; const Container = styled.div` height: 60px; overflow: hidden; diff --git a/web/src/components/layout/components/nav/index.tsx b/web/src/components/layout/components/nav/index.tsx index 1f07719ef..f3edff1ae 100644 --- a/web/src/components/layout/components/nav/index.tsx +++ b/web/src/components/layout/components/nav/index.tsx @@ -5,15 +5,15 @@ import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { css } from "@emotion/react"; import { useLocation, useNavigate } from "react-router-dom"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { CarbonIcon, DeploymentIcon, PhotonIcon, } from "@lepton-dashboard/components/icons"; -import { NotificationService } from "@lepton-dashboard/services/notification.service.ts"; +import { NotificationService } from "@lepton-dashboard/services/notification.service"; import { Workspace } from "@carbon/icons-react"; const Container = styled.div` diff --git a/web/src/components/link/index.tsx b/web/src/components/link/index.tsx index 177b3d639..9e525eac7 100644 --- a/web/src/components/link/index.tsx +++ b/web/src/components/link/index.tsx @@ -2,7 +2,7 @@ import { Link as RouterLink, RelativeRoutingType, To } from "react-router-dom"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { forwardRef, PropsWithChildren, ReactNode } from "react"; import { css } from "@emotion/react"; -import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props.ts"; +import { EmotionProps } from "@lepton-dashboard/interfaces/emotion-props"; export const Link = forwardRef< HTMLAnchorElement, diff --git a/web/src/components/photon-item/components/actions/index.tsx b/web/src/components/photon-item/components/actions/index.tsx index c98462652..a8e98a29b 100644 --- a/web/src/components/photon-item/components/actions/index.tsx +++ b/web/src/components/photon-item/components/actions/index.tsx @@ -1,10 +1,10 @@ import { FC } from "react"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; import { useNavigate } from "react-router-dom"; import { App, Button, Divider, Popconfirm, Space } from "antd"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; import { CarbonIcon, DeploymentIcon } from "@lepton-dashboard/components/icons"; import { Download } from "@carbon/icons-react"; import { DeleteOutlined } from "@ant-design/icons"; diff --git a/web/src/components/photon-item/components/extra-info/index.tsx b/web/src/components/photon-item/components/extra-info/index.tsx index d6439663a..290a509ee 100644 --- a/web/src/components/photon-item/components/extra-info/index.tsx +++ b/web/src/components/photon-item/components/extra-info/index.tsx @@ -1,5 +1,5 @@ import { FC } from "react"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { Col } from "antd"; import { css } from "@emotion/react"; diff --git a/web/src/components/photon-item/components/popover-deployment-table/index.tsx b/web/src/components/photon-item/components/popover-deployment-table/index.tsx index f8e10c59f..7d0ad777c 100644 --- a/web/src/components/photon-item/components/popover-deployment-table/index.tsx +++ b/web/src/components/photon-item/components/popover-deployment-table/index.tsx @@ -1,7 +1,7 @@ import { FC, useMemo } from "react"; import { Popover, Table, Tag } from "antd"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; import { DeploymentStatus } from "@lepton-dashboard/components/deployment-status"; import { useNavigate } from "react-router-dom"; import { css as classNameCss } from "@emotion/css"; diff --git a/web/src/components/photon-item/components/time-description/index.tsx b/web/src/components/photon-item/components/time-description/index.tsx index 1eba9b5a9..653ce751a 100644 --- a/web/src/components/photon-item/components/time-description/index.tsx +++ b/web/src/components/photon-item/components/time-description/index.tsx @@ -1,5 +1,5 @@ import { FC } from "react"; -import { Photon, PhotonVersion } from "@lepton-dashboard/interfaces/photon.ts"; +import { Photon, PhotonVersion } from "@lepton-dashboard/interfaces/photon"; import { Description } from "@lepton-dashboard/components/description"; import { CarbonIcon } from "@lepton-dashboard/components/icons"; import { Time } from "@carbon/icons-react"; diff --git a/web/src/components/photon-item/components/version-description/index.tsx b/web/src/components/photon-item/components/version-description/index.tsx index 10a004247..51584c9f9 100644 --- a/web/src/components/photon-item/components/version-description/index.tsx +++ b/web/src/components/photon-item/components/version-description/index.tsx @@ -1,5 +1,5 @@ import { FC } from "react"; -import { Photon, PhotonVersion } from "@lepton-dashboard/interfaces/photon.ts"; +import { Photon, PhotonVersion } from "@lepton-dashboard/interfaces/photon"; import { Description } from "@lepton-dashboard/components/description"; import { CarbonIcon } from "@lepton-dashboard/components/icons"; import { Version } from "@carbon/icons-react"; diff --git a/web/src/components/photon-item/index.tsx b/web/src/components/photon-item/index.tsx index d400d7cdd..6e6bc58c7 100644 --- a/web/src/components/photon-item/index.tsx +++ b/web/src/components/photon-item/index.tsx @@ -1,13 +1,13 @@ import { FC } from "react"; -import { Photon, PhotonVersion } from "@lepton-dashboard/interfaces/photon.ts"; +import { Photon, PhotonVersion } from "@lepton-dashboard/interfaces/photon"; import { Col, Empty, Row } from "antd"; import { Link } from "@lepton-dashboard/components/link"; import { PhotonIcon } from "@lepton-dashboard/components/icons"; import { css } from "@emotion/react"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { useInject } from "@lepton-libs/di"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { PopoverDeploymentTable } from "@lepton-dashboard/components/photon-item/components/popover-deployment-table"; import { ExtraInfo } from "@lepton-dashboard/components/photon-item/components/extra-info"; import { VersionDescription } from "@lepton-dashboard/components/photon-item/components/version-description"; diff --git a/web/src/components/root/index.tsx b/web/src/components/root/index.tsx index 32a3e2ccf..09093f38a 100644 --- a/web/src/components/root/index.tsx +++ b/web/src/components/root/index.tsx @@ -3,10 +3,10 @@ import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { css } from "@emotion/react"; import styled from "@emotion/styled"; import { useInject } from "@lepton-libs/di"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; import { useLocation } from "react-router-dom"; -import { InitializerService } from "@lepton-dashboard/services/initializer.service.ts"; -import { useStateFromBehaviorSubject } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { InitializerService } from "@lepton-dashboard/services/initializer.service"; +import { useStateFromBehaviorSubject } from "@lepton-libs/hooks/use-state-from-observable"; import { App } from "antd"; import axios from "axios"; import { Loading } from "@lepton-dashboard/components/loading"; diff --git a/web/src/components/theme-provider/index.tsx b/web/src/components/theme-provider/index.tsx index 9854a7f66..64ba3a848 100644 --- a/web/src/components/theme-provider/index.tsx +++ b/web/src/components/theme-provider/index.tsx @@ -1,8 +1,8 @@ import { FC, PropsWithChildren } from "react"; import { ConfigProvider } from "antd"; import { useInject } from "@lepton-libs/di"; -import { ThemeService } from "@lepton-dashboard/services/theme.service.ts"; -import { useStateFromBehaviorSubject } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { ThemeService } from "@lepton-dashboard/services/theme.service"; +import { useStateFromBehaviorSubject } from "@lepton-libs/hooks/use-state-from-observable"; import { ThemeConfig } from "antd/es/config-provider/context"; export const ThemeProvider: FC< diff --git a/web/src/interfaces/photon.ts b/web/src/interfaces/photon.ts index cd6fb9a03..21e820043 100644 --- a/web/src/interfaces/photon.ts +++ b/web/src/interfaces/photon.ts @@ -1,4 +1,4 @@ -import { SafeAny } from "@lepton-dashboard/interfaces/safe-any.ts"; +import { SafeAny } from "@lepton-dashboard/interfaces/safe-any"; export interface Photon { id: string; diff --git a/web/src/main.tsx b/web/src/main.tsx index 440a6eb5a..851b51582 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -1,5 +1,5 @@ import ReactDOM from "react-dom/client"; -import App from "@lepton-dashboard/app.tsx"; +import App from "@lepton-dashboard/app"; import "./index.css"; import "xterm/css/xterm.css"; import dayjs from "dayjs"; diff --git a/web/src/routers/dashboard/index.tsx b/web/src/routers/dashboard/index.tsx index 00ff151c1..93c7b6bda 100644 --- a/web/src/routers/dashboard/index.tsx +++ b/web/src/routers/dashboard/index.tsx @@ -2,10 +2,10 @@ import { FC, useEffect } from "react"; import styled from "@emotion/styled"; import { Col, Row, Statistic, Timeline, Typography } from "antd"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { TitleService } from "@lepton-dashboard/services/title.service.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { TitleService } from "@lepton-dashboard/services/title.service"; import { Card } from "@lepton-dashboard/components/card"; import dayjs from "dayjs"; import { css } from "@emotion/react"; diff --git a/web/src/routers/deployments/components/apis/index.tsx b/web/src/routers/deployments/components/apis/index.tsx index 60160fdb5..13e9aa0f7 100644 --- a/web/src/routers/deployments/components/apis/index.tsx +++ b/web/src/routers/deployments/components/apis/index.tsx @@ -1,12 +1,12 @@ import { FC } from "react"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { Typography } from "antd"; import { css } from "@emotion/react"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; -import { JsonSchemaService } from "@lepton-dashboard/services/json-schema.service.ts"; +import { JsonSchemaService } from "@lepton-dashboard/services/json-schema.service"; export const Apis: FC<{ deployment: Deployment }> = ({ deployment }) => { const theme = useAntdTheme(); diff --git a/web/src/routers/deployments/components/instances/components/logs-viewer/index.tsx b/web/src/routers/deployments/components/instances/components/logs-viewer/index.tsx index c20cb2ad4..a3de18aa2 100644 --- a/web/src/routers/deployments/components/instances/components/logs-viewer/index.tsx +++ b/web/src/routers/deployments/components/instances/components/logs-viewer/index.tsx @@ -2,13 +2,10 @@ import { FC, memo, useRef, useState } from "react"; import { Button, Spin } from "antd"; import { CarbonIcon } from "@lepton-dashboard/components/icons"; import { DataViewAlt } from "@carbon/icons-react"; -import { - Deployment, - Instance, -} from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment, Instance } from "@lepton-dashboard/interfaces/deployment"; import { useInject } from "@lepton-libs/di"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import Editor from "@monaco-editor/react"; import { FullScreenDrawer } from "@lepton-dashboard/routers/deployments/components/full-screen-drawer"; import { css } from "@emotion/react"; diff --git a/web/src/routers/deployments/components/instances/components/terminal/index.tsx b/web/src/routers/deployments/components/instances/components/terminal/index.tsx index 968bb037b..474017207 100644 --- a/web/src/routers/deployments/components/instances/components/terminal/index.tsx +++ b/web/src/routers/deployments/components/instances/components/terminal/index.tsx @@ -2,10 +2,7 @@ import { FC, useEffect, useRef, useState } from "react"; import { Button } from "antd"; import { CarbonIcon } from "@lepton-dashboard/components/icons"; import { Terminal as CarbonTerminal } from "@carbon/icons-react"; -import { - Deployment, - Instance, -} from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment, Instance } from "@lepton-dashboard/interfaces/deployment"; import { FullScreenDrawer } from "@lepton-dashboard/routers/deployments/components/full-screen-drawer"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { FitAddon } from "xterm-addon-fit"; @@ -14,7 +11,7 @@ import { css } from "@emotion/react"; import { Terminal as Xterm } from "xterm"; import "xterm/css/xterm.css"; import { useInject } from "@lepton-libs/di"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; const TerminalDetail: FC<{ deploymentId: string; diff --git a/web/src/routers/deployments/components/instances/index.tsx b/web/src/routers/deployments/components/instances/index.tsx index 80d2f7b74..e6ec1eb0c 100644 --- a/web/src/routers/deployments/components/instances/index.tsx +++ b/web/src/routers/deployments/components/instances/index.tsx @@ -1,14 +1,14 @@ import { FC, useState } from "react"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; import { useInject } from "@lepton-libs/di"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { debounceTime, startWith, switchMap, tap } from "rxjs"; import { Divider, Space, Table } from "antd"; import { css } from "@emotion/react"; import { LogsViewer } from "@lepton-dashboard/routers/deployments/components/instances/components/logs-viewer"; import { Terminal } from "@lepton-dashboard/routers/deployments/components/instances/components/terminal"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; export const Instances: FC<{ deployment: Deployment }> = ({ deployment }) => { const deploymentService = useInject(DeploymentService); diff --git a/web/src/routers/deployments/components/requests/index.tsx b/web/src/routers/deployments/components/requests/index.tsx index 439d1b39e..284bcc1fa 100644 --- a/web/src/routers/deployments/components/requests/index.tsx +++ b/web/src/routers/deployments/components/requests/index.tsx @@ -1,14 +1,14 @@ import { FC, useMemo, useState } from "react"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; import { Alert, Col, Row } from "antd"; import { SchemaForm } from "@lepton-dashboard/routers/deployments/components/schema-form"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { css } from "@emotion/react"; -import { SafeAny } from "@lepton-dashboard/interfaces/safe-any.ts"; -import { JsonSchemaService } from "@lepton-dashboard/services/json-schema.service.ts"; +import { SafeAny } from "@lepton-dashboard/interfaces/safe-any"; +import { JsonSchemaService } from "@lepton-dashboard/services/json-schema.service"; export const Requests: FC<{ deployment: Deployment }> = ({ deployment }) => { const theme = useAntdTheme(); diff --git a/web/src/routers/deployments/components/schema-form/index.tsx b/web/src/routers/deployments/components/schema-form/index.tsx index 82167a6b1..f99aee8ce 100644 --- a/web/src/routers/deployments/components/schema-form/index.tsx +++ b/web/src/routers/deployments/components/schema-form/index.tsx @@ -1,15 +1,15 @@ import { memo, useState } from "react"; import { JSONSchema7 } from "json-schema"; import { useInject } from "@lepton-libs/di"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; import { css } from "@emotion/react"; import { css as classNameCss } from "@emotion/css"; import validator from "@rjsf/validator-ajv8"; import { Button, Checkbox, Col, Row } from "antd"; import { Form } from "@rjsf/antd"; -import { SafeAny } from "@lepton-dashboard/interfaces/safe-any.ts"; +import { SafeAny } from "@lepton-dashboard/interfaces/safe-any"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; -import { Deployment } from "@lepton-dashboard/interfaces/deployment.ts"; +import { Deployment } from "@lepton-dashboard/interfaces/deployment"; const convertToOptionalSchema = (schema: JSONSchema7): JSONSchema7 => { const optionalSchema: JSONSchema7 = { properties: {}, diff --git a/web/src/routers/deployments/index.tsx b/web/src/routers/deployments/index.tsx index be9eaa360..58aa0e29d 100644 --- a/web/src/routers/deployments/index.tsx +++ b/web/src/routers/deployments/index.tsx @@ -5,7 +5,7 @@ import styled from "@emotion/styled"; import { Detail } from "@lepton-dashboard/routers/deployments/routers/detail"; import { useInject } from "@lepton-libs/di"; import { Create } from "@lepton-dashboard/routers/deployments/routers/create"; -import { TitleService } from "@lepton-dashboard/services/title.service.ts"; +import { TitleService } from "@lepton-dashboard/services/title.service"; const Container = styled.div` flex: 1 1 auto; diff --git a/web/src/routers/deployments/routers/create/index.tsx b/web/src/routers/deployments/routers/create/index.tsx index 06b26f442..7e4bc6549 100644 --- a/web/src/routers/deployments/routers/create/index.tsx +++ b/web/src/routers/deployments/routers/create/index.tsx @@ -15,11 +15,11 @@ import { css } from "@emotion/react"; import { BreadcrumbHeader } from "../../../../components/breadcrumb-header"; import { Link } from "@lepton-dashboard/components/link"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import dayjs from "dayjs"; import { useNavigate, useParams } from "react-router-dom"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; import { DeploymentIcon } from "@lepton-dashboard/components/icons"; interface RawForm { diff --git a/web/src/routers/deployments/routers/detail/index.tsx b/web/src/routers/deployments/routers/detail/index.tsx index e3a741ddb..c69ac21d2 100644 --- a/web/src/routers/deployments/routers/detail/index.tsx +++ b/web/src/routers/deployments/routers/detail/index.tsx @@ -1,12 +1,12 @@ import { FC } from "react"; import { useParams } from "react-router-dom"; import { useInject } from "@lepton-libs/di"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { Col, Row, Tabs } from "antd"; import { BreadcrumbHeader } from "../../../../components/breadcrumb-header"; import { Link } from "@lepton-dashboard/components/link"; import { Card } from "@lepton-dashboard/components/card"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; import { CarbonIcon, DeploymentIcon } from "@lepton-dashboard/components/icons"; import { Requests } from "../../components/requests"; import { css } from "@emotion/react"; diff --git a/web/src/routers/deployments/routers/list/index.tsx b/web/src/routers/deployments/routers/list/index.tsx index a1dcc8a49..0f4b5d16c 100644 --- a/web/src/routers/deployments/routers/list/index.tsx +++ b/web/src/routers/deployments/routers/list/index.tsx @@ -10,12 +10,12 @@ import { } from "antd"; import { PlusOutlined, SearchOutlined } from "@ant-design/icons"; import { useInject } from "@lepton-libs/di"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import { useNavigate, useParams } from "react-router-dom"; import dayjs from "dayjs"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; import { Card } from "@lepton-dashboard/components/card"; import { DeploymentItem } from "../../../../components/deployment-item"; diff --git a/web/src/routers/photons/components/detail-description/index.tsx b/web/src/routers/photons/components/detail-description/index.tsx index 1c5591f29..f2cef5e31 100644 --- a/web/src/routers/photons/components/detail-description/index.tsx +++ b/web/src/routers/photons/components/detail-description/index.tsx @@ -1,6 +1,6 @@ import { FC, PropsWithChildren } from "react"; import { Descriptions } from "antd"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; export const DetailDescription: FC> = ({ photon, diff --git a/web/src/routers/photons/components/upload/index.tsx b/web/src/routers/photons/components/upload/index.tsx index 6e7793698..af34c5d87 100644 --- a/web/src/routers/photons/components/upload/index.tsx +++ b/web/src/routers/photons/components/upload/index.tsx @@ -3,8 +3,8 @@ import { App, Button, Upload as AntdUpload, UploadFile } from "antd"; import { UploadOutlined } from "@ant-design/icons"; import { RcFile } from "antd/es/upload"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; export const Upload: FC = () => { const photonService = useInject(PhotonService); diff --git a/web/src/routers/photons/index.tsx b/web/src/routers/photons/index.tsx index d6927cf43..98a5a93f0 100644 --- a/web/src/routers/photons/index.tsx +++ b/web/src/routers/photons/index.tsx @@ -5,7 +5,7 @@ import styled from "@emotion/styled"; import { Detail } from "@lepton-dashboard/routers/photons/routers/detail"; import { Versions } from "@lepton-dashboard/routers/photons/routers/versions"; import { useInject } from "@lepton-libs/di"; -import { TitleService } from "@lepton-dashboard/services/title.service.ts"; +import { TitleService } from "@lepton-dashboard/services/title.service"; const Container = styled.div` flex: 1 1 auto; `; diff --git a/web/src/routers/photons/routers/detail/index.tsx b/web/src/routers/photons/routers/detail/index.tsx index 297693604..dafc45ff8 100644 --- a/web/src/routers/photons/routers/detail/index.tsx +++ b/web/src/routers/photons/routers/detail/index.tsx @@ -1,8 +1,8 @@ import { FC } from "react"; import { useParams } from "react-router-dom"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { Col, Row } from "antd"; import { BreadcrumbHeader } from "../../../../components/breadcrumb-header"; import { Link } from "@lepton-dashboard/components/link"; diff --git a/web/src/routers/photons/routers/list/index.tsx b/web/src/routers/photons/routers/list/index.tsx index d2e0fbf93..4942660cf 100644 --- a/web/src/routers/photons/routers/list/index.tsx +++ b/web/src/routers/photons/routers/list/index.tsx @@ -6,12 +6,12 @@ import { SearchOutlined, } from "@ant-design/icons"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { Card } from "@lepton-dashboard/components/card"; import { Upload } from "@lepton-dashboard/routers/photons/components/upload"; import { PhotonItem } from "../../../../components/photon-item"; -import { StorageService } from "@lepton-dashboard/services/storage.service.ts"; +import { StorageService } from "@lepton-dashboard/services/storage.service"; export const List: FC = () => { const photonService = useInject(PhotonService); diff --git a/web/src/routers/photons/routers/versions/index.tsx b/web/src/routers/photons/routers/versions/index.tsx index dd5fe096b..5f32535de 100644 --- a/web/src/routers/photons/routers/versions/index.tsx +++ b/web/src/routers/photons/routers/versions/index.tsx @@ -1,8 +1,8 @@ import { FC, useMemo } from "react"; import { useParams } from "react-router-dom"; import { useInject } from "@lepton-libs/di"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable.ts"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { useStateFromObservable } from "@lepton-libs/hooks/use-state-from-observable"; import { Col, Row, Timeline, Typography } from "antd"; import { Link } from "@lepton-dashboard/components/link"; import { BreadcrumbHeader } from "../../../../components/breadcrumb-header"; @@ -12,7 +12,7 @@ import { useAntdTheme } from "@lepton-dashboard/hooks/use-antd-theme"; import dayjs from "dayjs"; import { PhotonIcon } from "@lepton-dashboard/components/icons"; import { PhotonItem } from "../../../../components/photon-item"; -import { PhotonVersion } from "@lepton-dashboard/interfaces/photon.ts"; +import { PhotonVersion } from "@lepton-dashboard/interfaces/photon"; export const Versions: FC = () => { const { name } = useParams(); diff --git a/web/src/services/api.local.service.ts b/web/src/services/api.local.service.ts index 87bdf939b..8293a5c40 100644 --- a/web/src/services/api.local.service.ts +++ b/web/src/services/api.local.service.ts @@ -1,11 +1,8 @@ import { Injectable } from "injection-js"; import { EMPTY, Observable, of } from "rxjs"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; -import { - Deployment, - Instance, -} from "@lepton-dashboard/interfaces/deployment.ts"; -import { ApiService } from "@lepton-dashboard/services/api.service.ts"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; +import { Deployment, Instance } from "@lepton-dashboard/interfaces/deployment"; +import { ApiService } from "@lepton-dashboard/services/api.service"; const mockedPhotons = [ { id: "dd3f54cb-56e4-494d-8e0b-b5a004f373f5", diff --git a/web/src/services/api.server.service.ts b/web/src/services/api.server.service.ts index 44572fbe8..62d840122 100644 --- a/web/src/services/api.server.service.ts +++ b/web/src/services/api.server.service.ts @@ -1,12 +1,9 @@ import { Injectable } from "injection-js"; import { Observable } from "rxjs"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; -import { - Deployment, - Instance, -} from "@lepton-dashboard/interfaces/deployment.ts"; -import { ApiService } from "@lepton-dashboard/services/api.service.ts"; -import { HttpClientService } from "@lepton-dashboard/services/http-client.service.ts"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; +import { Deployment, Instance } from "@lepton-dashboard/interfaces/deployment"; +import { ApiService } from "@lepton-dashboard/services/api.service"; +import { HttpClientService } from "@lepton-dashboard/services/http-client.service"; @Injectable() export class ApiServerService implements ApiService { diff --git a/web/src/services/api.service.ts b/web/src/services/api.service.ts index fdf712cfd..8e4566817 100644 --- a/web/src/services/api.service.ts +++ b/web/src/services/api.service.ts @@ -1,10 +1,7 @@ import { Injectable } from "injection-js"; import { Observable } from "rxjs"; -import { Photon } from "@lepton-dashboard/interfaces/photon.ts"; -import { - Deployment, - Instance, -} from "@lepton-dashboard/interfaces/deployment.ts"; +import { Photon } from "@lepton-dashboard/interfaces/photon"; +import { Deployment, Instance } from "@lepton-dashboard/interfaces/deployment"; @Injectable() export abstract class ApiService { diff --git a/web/src/services/deployment.service.ts b/web/src/services/deployment.service.ts index 01297ca9d..c2769f626 100644 --- a/web/src/services/deployment.service.ts +++ b/web/src/services/deployment.service.ts @@ -1,10 +1,7 @@ import { Injectable } from "injection-js"; import { BehaviorSubject, map, Observable, tap } from "rxjs"; -import { - Deployment, - Instance, -} from "@lepton-dashboard/interfaces/deployment.ts"; -import { ApiService } from "@lepton-dashboard/services/api.service.ts"; +import { Deployment, Instance } from "@lepton-dashboard/interfaces/deployment"; +import { ApiService } from "@lepton-dashboard/services/api.service"; @Injectable() export class DeploymentService { diff --git a/web/src/services/initializer.service.ts b/web/src/services/initializer.service.ts index cc2781e05..f88591b7c 100644 --- a/web/src/services/initializer.service.ts +++ b/web/src/services/initializer.service.ts @@ -1,7 +1,7 @@ import { Injectable } from "injection-js"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; import { BehaviorSubject, forkJoin, switchMap, tap } from "rxjs"; @Injectable() diff --git a/web/src/services/json-schema.service.ts b/web/src/services/json-schema.service.ts index 14debc1be..73acbe0bc 100644 --- a/web/src/services/json-schema.service.ts +++ b/web/src/services/json-schema.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "injection-js"; -import { SafeAny } from "@lepton-dashboard/interfaces/safe-any.ts"; +import { SafeAny } from "@lepton-dashboard/interfaces/safe-any"; import { JSONSchema7 } from "json-schema"; @Injectable() diff --git a/web/src/services/notification.service.ts b/web/src/services/notification.service.ts index f5e0c7eec..61e98807b 100644 --- a/web/src/services/notification.service.ts +++ b/web/src/services/notification.service.ts @@ -1,9 +1,9 @@ import { Injectable } from "injection-js"; -import { DeploymentService } from "@lepton-dashboard/services/deployment.service.ts"; -import { PhotonService } from "@lepton-dashboard/services/photon.service.ts"; +import { DeploymentService } from "@lepton-dashboard/services/deployment.service"; +import { PhotonService } from "@lepton-dashboard/services/photon.service"; import { map, mergeMap, take, tap } from "rxjs"; -import { RefreshService } from "@lepton-dashboard/services/refresh.service.ts"; -import { StorageService } from "@lepton-dashboard/services/storage.service.ts"; +import { RefreshService } from "@lepton-dashboard/services/refresh.service"; +import { StorageService } from "@lepton-dashboard/services/storage.service"; @Injectable() export class NotificationService { diff --git a/web/src/services/photon.service.ts b/web/src/services/photon.service.ts index c00f42cc0..3fa0abd97 100644 --- a/web/src/services/photon.service.ts +++ b/web/src/services/photon.service.ts @@ -1,7 +1,7 @@ import { Injectable } from "injection-js"; import { BehaviorSubject, map, Observable, tap } from "rxjs"; -import { Photon, PhotonGroup } from "@lepton-dashboard/interfaces/photon.ts"; -import { ApiService } from "@lepton-dashboard/services/api.service.ts"; +import { Photon, PhotonGroup } from "@lepton-dashboard/interfaces/photon"; +import { ApiService } from "@lepton-dashboard/services/api.service"; @Injectable() export class PhotonService { diff --git a/web/src/services/theme.service.ts b/web/src/services/theme.service.ts index 89a41ccd5..f14a05346 100644 --- a/web/src/services/theme.service.ts +++ b/web/src/services/theme.service.ts @@ -1,7 +1,7 @@ import { Injectable } from "injection-js"; import { ReplaySubject } from "rxjs"; import { theme, ThemeConfig } from "antd"; -import { StorageService } from "@lepton-dashboard/services/storage.service.ts"; +import { StorageService } from "@lepton-dashboard/services/storage.service"; @Injectable() export class ThemeService { diff --git a/web/tsconfig.json b/web/tsconfig.json index 18bd06c84..53b4478d6 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -7,7 +7,6 @@ /* Bundler mode */ "moduleResolution": "bundler", - "allowImportingTsExtensions": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "resolveJsonModule": true,