diff --git a/docker-compose.yml b/docker-compose.yml index e73b6477..0367902c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,29 +14,10 @@ services: - $PWD/core.yaml:/etc/otomi/core.yaml - tmp:/tmp environment: - TOOLS_HOST: tools GIT_LOCAL_PATH: /tmp/otomi-values env_file: - compose/.env - tools: - depends_on: - - api - container_name: tools - image: otomi/core:${TOOLS_TAG:-main} - user: ${USER_ID}:${GROUP_ID} - command: sh -c 'binzx/otomi server -vv' - expose: - - 17771 - ports: - - 17771:17771 - volumes: - - tmp:/tmp - environment: - ENV_DIR: /tmp/otomi-values - env_file: - - compose/.env - volumes: tmp: driver: local diff --git a/src/pages/Maintenance.tsx b/src/pages/Maintenance.tsx index e7697d65..dd67af2e 100644 --- a/src/pages/Maintenance.tsx +++ b/src/pages/Maintenance.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ import PaperLayout from 'layouts/Paper' import React from 'react' -import { Box, Button, Link, Tooltip, Typography } from '@mui/material' +import { Box, Button, Tooltip, Typography } from '@mui/material' import HeaderTitle from 'components/HeaderTitle' import { useLocalStorage } from 'react-use' import { useSession } from 'providers/Session' @@ -9,11 +9,6 @@ import { useGetSettingsQuery } from 'redux/otomiApi' import Section from 'components/Section' const classes = { - actionLink: { - display: 'block', - fontWeight: 400, - fontSize: '14px', - }, actionButton: { mt: 1, px: 0, @@ -51,16 +46,6 @@ export default function (): React.ReactElement { Actions - - - DOWNLOAD PLATFORM VALUES - - - - DOWNLOAD PLATFORM VALUES (SECRETS REDACTED) - - - {isPreInstalled && ( diff --git a/src/redux/otomiApi.ts b/src/redux/otomiApi.ts index 493ecd90..13b4bb7d 100644 --- a/src/redux/otomiApi.ts +++ b/src/redux/otomiApi.ts @@ -1,16 +1,6 @@ import { emptySplitApi as api } from './emptyApi' const injectedRtkApi = api.injectEndpoints({ endpoints: (build) => ({ - getValues: build.query({ - query: (queryArg) => ({ - url: `/v1/otomi/values`, - params: { - filesOnly: queryArg.filesOnly, - excludeSecrets: queryArg.excludeSecrets, - withWorkloadValues: queryArg.withWorkloadValues, - }, - }), - }), getTeams: build.query({ query: () => ({ url: `/v1/teams` }), }), @@ -574,13 +564,6 @@ const injectedRtkApi = api.injectEndpoints({ overrideExisting: false, }) export { injectedRtkApi as otomiApi } -export type GetValuesApiResponse = unknown -export type GetValuesApiArg = { - /** IDs of settings to return */ - filesOnly?: 'true' | 'false' - excludeSecrets?: 'true' | 'false' - withWorkloadValues?: 'true' | 'false' -} export type GetTeamsApiResponse = /** status 200 Successfully obtained teams collection */ { id?: string name: string @@ -6901,7 +6884,6 @@ export type GetApiStatusApiResponse = /** status 200 Successfully obtained API s } export type GetApiStatusApiArg = void export const { - useGetValuesQuery, useGetTeamsQuery, useCreateTeamMutation, useGetTeamQuery,