From a611af8640a49fcc27bad9664f417852127f9b31 Mon Sep 17 00:00:00 2001 From: William Phetsinorath Date: Wed, 25 Mar 2026 18:28:52 +0100 Subject: [PATCH] Migrate nodemon and vite-node to native node TypeScript support Signed-off-by: William Phetsinorath Change-Id: I030b774d2ff1b4b877907d0573f3de8b6a6a6964 --- apps/client/src/App.vue | 14 +-- apps/client/src/api/xhr-client.ts | 2 +- apps/client/src/components.d | 90 +++++++++++++++++++ apps/client/src/components/AdminRoleForm.vue | 4 +- apps/client/src/components/ClusterForm.vue | 4 +- apps/client/src/components/DsoSnackbar.vue | 2 +- .../client/src/components/EnvironmentForm.vue | 8 +- apps/client/src/components/LogsViewer.vue | 2 +- apps/client/src/components/OperationPanel.vue | 2 +- apps/client/src/components/ProjectAction.vue | 4 +- .../src/components/ProjectArchiveButton.vue | 6 +- apps/client/src/components/ProjectBanner.vue | 4 +- .../src/components/ProjectClustersInfos.vue | 6 +- .../src/components/ProjectLockButton.vue | 2 +- .../src/components/ProjectLogsViewer.vue | 2 +- .../src/components/ProjectReplayButton.vue | 4 +- .../src/components/ProjectResources.vue | 14 +-- apps/client/src/components/ProjectRoles.vue | 4 +- .../src/components/ProjectSecretsButton.vue | 4 +- .../client/src/components/ProjectSettings.vue | 2 +- apps/client/src/components/RepoForm.vue | 2 +- apps/client/src/components/SelectProject.vue | 6 +- apps/client/src/components/ServicesConfig.vue | 4 +- apps/client/src/components/SideMenu.vue | 8 +- apps/client/src/components/StageForm.vue | 4 +- apps/client/src/components/TeamCt.vue | 10 +-- apps/client/src/components/TokenForm.vue | 4 +- apps/client/src/components/ZoneForm.vue | 2 +- apps/client/src/main.ts | 6 +- apps/client/src/router/index.ts | 56 ++++++------ apps/client/src/stores/admin-role.ts | 4 +- apps/client/src/stores/admin-token.ts | 2 +- apps/client/src/stores/cluster.ts | 2 +- apps/client/src/stores/log.ts | 2 +- apps/client/src/stores/plugins.ts | 2 +- apps/client/src/stores/project.ts | 6 +- apps/client/src/stores/service-chain.ts | 2 +- apps/client/src/stores/services-monitor.ts | 2 +- apps/client/src/stores/stage.ts | 2 +- apps/client/src/stores/system-settings.ts | 2 +- apps/client/src/stores/token.ts | 2 +- apps/client/src/stores/user.ts | 8 +- apps/client/src/stores/users.ts | 2 +- apps/client/src/stores/zone.ts | 2 +- apps/client/src/utils/func.ts | 2 +- apps/client/src/utils/keycloak/keycloak.ts | 2 +- apps/client/src/utils/project-utils.ts | 8 +- apps/client/src/views/CreateProject.vue | 8 +- apps/client/src/views/DsoHome.vue | 2 +- apps/client/src/views/DsoMaintenance.vue | 2 +- apps/client/src/views/NotFound.vue | 4 +- apps/client/src/views/ProjectDashboard.vue | 14 +-- apps/client/src/views/ServicesHealth.vue | 4 +- apps/client/src/views/admin/AdminCluster.vue | 10 +-- apps/client/src/views/admin/AdminRoles.vue | 4 +- .../src/views/admin/AdminServiceChain.vue | 4 +- apps/client/src/views/admin/AdminTokens.vue | 4 +- apps/client/src/views/admin/DsoAdmin.vue | 4 +- apps/client/src/views/admin/ListClusters.vue | 10 +-- apps/client/src/views/admin/ListLogs.vue | 4 +- apps/client/src/views/admin/ListPlugins.vue | 2 +- apps/client/src/views/admin/ListProjects.vue | 10 +-- .../src/views/admin/ListServiceChains.vue | 6 +- apps/client/src/views/admin/ListStages.vue | 6 +- apps/client/src/views/admin/ListUser.vue | 6 +- apps/client/src/views/admin/ListZones.vue | 4 +- .../client/src/views/admin/SystemSettings.vue | 2 +- .../views/profile/PersonalAccessTokens.vue | 4 +- apps/client/src/views/profile/UserInfo.vue | 2 +- .../client/src/views/projects/DsoProjects.vue | 6 +- apps/client/tsconfig.json | 2 +- apps/server-nestjs/src/__mocks__/prisma.ts | 2 +- apps/server/.envrc | 2 + apps/server/package.json | 8 +- apps/server/src/__mocks__/prisma.ts | 2 +- apps/server/src/app.ts | 12 +-- apps/server/src/connect.ts | 6 +- apps/server/src/init/db/dump.ts | 4 +- apps/server/src/init/db/index.ts | 6 +- apps/server/src/mocks/prisma.ts | 2 +- apps/server/src/plugins.ts | 4 +- apps/server/src/prepare-app.ts | 14 +-- .../src/resources/admin-role/business.ts | 10 +-- .../src/resources/admin-role/queries.ts | 2 +- .../server/src/resources/admin-role/router.ts | 8 +- .../src/resources/admin-token/business.ts | 4 +- .../src/resources/admin-token/router.ts | 8 +- apps/server/src/resources/cluster/business.ts | 14 +-- apps/server/src/resources/cluster/queries.ts | 2 +- apps/server/src/resources/cluster/router.ts | 10 +-- .../src/resources/environment/business.ts | 10 +-- .../src/resources/environment/queries.ts | 2 +- .../src/resources/environment/router.ts | 8 +- apps/server/src/resources/index.ts | 40 ++++----- apps/server/src/resources/log/business.ts | 2 +- apps/server/src/resources/log/queries.ts | 2 +- apps/server/src/resources/log/router.ts | 10 +-- .../src/resources/project-member/business.ts | 10 +-- .../src/resources/project-member/queries.ts | 2 +- .../src/resources/project-member/router.ts | 8 +- .../src/resources/project-role/business.ts | 8 +- .../src/resources/project-role/queries.ts | 2 +- .../src/resources/project-role/router.ts | 8 +- .../src/resources/project-service/business.ts | 2 +- .../src/resources/project-service/queries.ts | 4 +- .../src/resources/project-service/router.ts | 8 +- apps/server/src/resources/project/business.ts | 16 ++-- apps/server/src/resources/project/queries.ts | 6 +- apps/server/src/resources/project/router.ts | 8 +- apps/server/src/resources/queries-index.ts | 28 +++--- .../src/resources/repository/business.ts | 6 +- .../src/resources/repository/queries.ts | 2 +- .../server/src/resources/repository/router.ts | 10 +-- .../src/resources/service-chain/business.ts | 2 +- .../src/resources/service-chain/router.ts | 10 +-- .../src/resources/service-monitor/router.ts | 8 +- apps/server/src/resources/stage/business.ts | 6 +- apps/server/src/resources/stage/queries.ts | 2 +- apps/server/src/resources/stage/router.ts | 8 +- .../src/resources/system/config/business.ts | 4 +- .../src/resources/system/config/queries.ts | 4 +- .../src/resources/system/config/router.ts | 8 +- apps/server/src/resources/system/index.ts | 2 +- apps/server/src/resources/system/router.ts | 4 +- .../src/resources/system/settings/business.ts | 2 +- .../src/resources/system/settings/queries.ts | 2 +- .../src/resources/system/settings/router.ts | 8 +- apps/server/src/resources/user/business.ts | 25 +++--- apps/server/src/resources/user/queries.ts | 2 +- apps/server/src/resources/user/router.ts | 10 +-- .../src/resources/user/tokens/business.ts | 4 +- .../src/resources/user/tokens/router.ts | 10 +-- apps/server/src/resources/zone/business.ts | 10 +-- apps/server/src/resources/zone/queries.ts | 2 +- apps/server/src/resources/zone/router.ts | 8 +- apps/server/src/server.ts | 8 +- apps/server/src/types/index.ts | 2 +- apps/server/src/utils/business.ts | 14 ++- apps/server/src/utils/controller.ts | 10 +-- apps/server/src/utils/fastify.ts | 4 +- apps/server/src/utils/hook-wrapper.ts | 8 +- apps/server/src/utils/keycloak.ts | 4 +- apps/server/src/utils/logger.ts | 4 +- apps/server/src/utils/mocks.ts | 4 +- apps/server/src/utils/plugins.ts | 2 +- packages/hooks/README.md | 4 +- packages/hooks/src/config.ts | 2 +- packages/hooks/src/hooks/hook-admin-role.ts | 6 +- packages/hooks/src/hooks/hook-cluster.ts | 6 +- packages/hooks/src/hooks/hook-misc.ts | 6 +- .../hooks/src/hooks/hook-project-member.ts | 8 +- packages/hooks/src/hooks/hook-project-role.ts | 6 +- packages/hooks/src/hooks/hook-project.ts | 8 +- packages/hooks/src/hooks/hook-user.ts | 6 +- packages/hooks/src/hooks/hook-zone.ts | 6 +- packages/hooks/src/hooks/hook.ts | 4 +- packages/hooks/src/hooks/index.ts | 16 ++-- packages/hooks/src/index.ts | 30 +++---- packages/hooks/src/services.ts | 2 +- packages/hooks/src/utils/crypto.ts | 2 +- packages/hooks/src/utils/index.ts | 6 +- .../hooks/src/utils/plugin-result-handler.ts | 4 +- packages/hooks/src/utils/utils.ts | 2 +- packages/shared/src/api-client.ts | 38 ++++---- packages/shared/src/contracts/_utils.ts | 2 +- packages/shared/src/contracts/admin-role.ts | 6 +- packages/shared/src/contracts/admin-token.ts | 8 +- packages/shared/src/contracts/cluster.ts | 12 +-- packages/shared/src/contracts/environment.ts | 6 +- packages/shared/src/contracts/index.ts | 34 +++---- packages/shared/src/contracts/log.ts | 8 +- .../src/contracts/personal-access-token.ts | 6 +- .../shared/src/contracts/project-member.ts | 6 +- packages/shared/src/contracts/project-role.ts | 6 +- .../shared/src/contracts/project-service.ts | 10 +-- packages/shared/src/contracts/project.ts | 6 +- packages/shared/src/contracts/repository.ts | 6 +- .../shared/src/contracts/service-chain.ts | 6 +- .../shared/src/contracts/service-monitor.ts | 6 +- packages/shared/src/contracts/stage.ts | 6 +- packages/shared/src/contracts/system.ts | 6 +- packages/shared/src/contracts/user.ts | 8 +- packages/shared/src/contracts/zone.ts | 6 +- packages/shared/src/index.ts | 8 +- packages/shared/src/schemas/environment.ts | 4 +- packages/shared/src/schemas/index.ts | 28 +++--- packages/shared/src/schemas/log.ts | 2 +- packages/shared/src/schemas/project.ts | 10 +-- packages/shared/src/schemas/repository.ts | 4 +- packages/shared/src/schemas/role.ts | 2 +- packages/shared/src/schemas/services.ts | 2 +- packages/shared/src/schemas/system.ts | 2 +- packages/shared/src/schemas/token.ts | 4 +- packages/shared/src/schemas/user.ts | 2 +- packages/shared/src/utils/functions.ts | 4 +- packages/shared/src/utils/index.ts | 14 +-- packages/shared/src/utils/permissions.ts | 2 +- packages/test-utils/src/index.ts | 10 +-- .../test-utils/src/utils/random-project.ts | 6 +- packages/test-utils/src/utils/random-utils.ts | 4 +- packages/tsconfig/tsconfig.base.json | 2 +- playwright/tsconfig.json | 2 +- plugins/argocd/src/cluster.ts | 2 +- plugins/argocd/src/functions.ts | 8 +- plugins/argocd/src/index.ts | 10 +-- plugins/argocd/src/zone.ts | 2 +- plugins/gitlab/src/class.ts | 6 +- plugins/gitlab/src/functions.ts | 18 ++-- plugins/gitlab/src/group.ts | 2 +- plugins/gitlab/src/index.ts | 10 +-- plugins/gitlab/src/infos.ts | 2 +- plugins/gitlab/src/members.ts | 8 +- plugins/gitlab/src/monitor.ts | 2 +- plugins/gitlab/src/project.ts | 2 +- plugins/gitlab/src/repositories.ts | 10 +-- plugins/gitlab/src/user.ts | 2 +- plugins/gitlab/src/utils.ts | 4 +- plugins/harbor/src/functions.ts | 12 +-- plugins/harbor/src/index.ts | 6 +- plugins/harbor/src/infos.ts | 2 +- plugins/harbor/src/monitor.ts | 2 +- plugins/harbor/src/permission.ts | 2 +- plugins/harbor/src/policy.ts | 2 +- plugins/harbor/src/project.ts | 4 +- plugins/harbor/src/robot.ts | 8 +- plugins/harbor/src/utils.ts | 6 +- plugins/keycloak/src/class.ts | 2 +- plugins/keycloak/src/client.ts | 2 +- plugins/keycloak/src/functions.ts | 10 +-- plugins/keycloak/src/group.ts | 2 +- plugins/keycloak/src/index.ts | 10 +-- plugins/nexus/src/functions.ts | 2 +- plugins/nexus/src/index.ts | 6 +- plugins/nexus/src/maven.ts | 6 +- plugins/nexus/src/monitor.ts | 2 +- plugins/nexus/src/npm.ts | 6 +- plugins/nexus/src/project.ts | 10 +-- plugins/sonarqube/src/check.ts | 2 +- plugins/sonarqube/src/functions.ts | 16 ++-- plugins/sonarqube/src/group.ts | 4 +- plugins/sonarqube/src/index.ts | 8 +- plugins/sonarqube/src/infos.ts | 2 +- plugins/sonarqube/src/monitor.ts | 2 +- plugins/sonarqube/src/project.ts | 2 +- plugins/sonarqube/src/user.ts | 6 +- plugins/vault/src/index.ts | 10 +-- plugins/vault/src/infos.ts | 2 +- plugins/vault/src/monitor.ts | 2 +- plugins/vault/src/vault-api.ts | 4 +- plugins/vault/src/vault-project-api.ts | 6 +- plugins/vault/src/vault-zone-api.ts | 4 +- plugins/vault/src/vso.ts | 2 +- pnpm-lock.yaml | 6 -- 253 files changed, 883 insertions(+), 794 deletions(-) create mode 100644 apps/client/src/components.d create mode 100644 apps/server/.envrc diff --git a/apps/client/src/App.vue b/apps/client/src/App.vue index 9028d0954..f0cd1b7fb 100644 --- a/apps/client/src/App.vue +++ b/apps/client/src/App.vue @@ -1,14 +1,14 @@