This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { useQuery, QueryKey } from '@tanstack/react-query'; | |
import axios, { AxiosRequestHeaders } from 'axios'; | |
import { newResource, Resource } from '@models/resource'; | |
import { PaginationState, SortingState } from '@tanstack/react-table'; | |
const INITIAL_STATE: { pagination: PaginationState; sort: SortingState } = { | |
pagination: { | |
pageIndex: 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { useQuery, QueryKey } from '@tanstack/react-query'; | |
import axios, { AxiosRequestHeaders } from 'axios'; | |
import { newResource, Resource } from '@models/resource'; | |
const INITIAL_STATE = { | |
page: 1, | |
resultsPerPage: 20, | |
sort: '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const metricsService = require("../services/MetricsService"); | |
const logger = require("../utils/Logger"); | |
/** | |
* The GET action for /api/v1.0.0/metrics | |
*/ | |
exports.download = (_, res) => { | |
try { | |
// Get the in memory metrics file (Either comes from /metrics folder in the project or the kubernetes persistent storage) | |
const { name, contentType, lastModified, size } = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="vite/client" /> | |
/// <reference types="vitest" /> | |
import { defineConfig, splitVendorChunkPlugin } from "vite"; | |
import react from "@vitejs/plugin-react-swc"; | |
import path from "path"; | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
// Provide any plugins required for Vite to work and perform additional setup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import PropTypes from "prop-types"; | |
export const AuthRequiredModalContext = React.createContext<boolean>(false); | |
interface AuthRequiredContextInterface { | |
isAuthRequiredModalOpen: boolean; | |
setIsAuthRequiredModalOpen: React.Dispatch<React.SetStateAction<boolean>>; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import PropTypes from 'prop-types'; | |
import classNames from 'classnames'; | |
import { useVirtualizer } from '@tanstack/react-virtual'; | |
import { RadioGroup } from '@headlessui/react'; | |
import Icon from '../Icon/Icon'; | |
import CountryFlag from '../../CountryFlag/CountryFlag'; |