Skip to content
Snippets Groups Projects
Verified Commit 6f5ddcf5 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

add short description on top of pages

parent fef45507
No related branches found
No related tags found
No related merge requests found
/**
* This page shows information about a single application. It contains several
* configuration options (that are not implemented in the back-end yet) such as:
*
* 1. Toggling auto-updates
* 2. Advanced configuration by overwriting helm values
* 3. Deleting the application
*
* This page is only available for Admin users.
*/
import React, { useEffect, useState } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
import { useForm, useWatch } from 'react-hook-form';
......
/* eslint-disable react-hooks/exhaustive-deps */
/**
* This page shows all the applications and their status in a table.
*
* This page is only available for Admin users.
*/
import React, { useState, useCallback, useMemo, useEffect } from 'react';
import { useNavigate } from 'react-router';
// import { useNavigate } from 'react-router';
import { SearchIcon } from '@heroicons/react/solid';
import { showToast, ToastType } from 'src/common/util/show-toast';
import _, { debounce } from 'lodash';
......@@ -12,7 +17,7 @@ import { getConstForStatus } from './consts';
export const Apps: React.FC = () => {
const [search, setSearch] = useState('');
const [installModalOpen, setInstallModalOpen] = useState(false);
const [appSlug, setAppSlug] = useState(null);
const [appSlug] = useState(null);
const { apps, appTableLoading, loadApps } = useApps();
const handleSearch = useCallback((event: any) => {
......@@ -92,6 +97,9 @@ export const Apps: React.FC = () => {
// let buttonFuntion = () => navigate(`/apps/${slug}`);
// if (appStatus === AppStatusEnum.NotInstalled) {
// buttonFuntion = () => {
// // To make this work, change the `useState` call on top of this
// // file to this:
// // const [appSlug, setAppSlug] = useState(null);
// setAppSlug(slug);
// setInstallModalOpen(true);
// };
......
/* eslint-disable react-hooks/exhaustive-deps */
/**
* Page that shows only installed applications, and links to them.
*
* "Utilities" is a special section that links to the Stackspin documentation,
* and that shows the "Monitoring" application if it is installed.
*/
import React, { useEffect } from 'react';
import { useApps } from 'src/services/apps';
import { AppStatusEnum } from 'src/services/apps/types';
......
/**
* Login page that starts the OAuth2 authentication flow.
*/
import React from 'react';
import clsx from 'clsx';
import { LockClosedIcon } from '@heroicons/react/solid';
......
/* eslint-disable react-hooks/exhaustive-deps */
/**
* This page shows a table of all users. It is only available for Admin users.
*
* Admin users can add one or more users, or edit a user.
*/
import React, { useState, useCallback, useEffect, useMemo } from 'react';
import { SearchIcon, PlusIcon, ViewGridAddIcon } from '@heroicons/react/solid';
import { CogIcon, TrashIcon } from '@heroicons/react/outline';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment