Login in...
; + } +}; diff --git a/frontend/client/src/app/components/PageDrawerContext.tsx b/frontend/client/src/app/components/PageDrawerContext.tsx new file mode 100644 index 000000000..a7bb01da5 --- /dev/null +++ b/frontend/client/src/app/components/PageDrawerContext.tsx @@ -0,0 +1,200 @@ +import * as React from "react"; +import { + Drawer, + DrawerActions, + DrawerCloseButton, + DrawerContent, + DrawerContentBody, + DrawerHead, + DrawerPanelBody, + DrawerPanelContent, + DrawerPanelContentProps, +} from "@patternfly/react-core"; +import pageStyles from "@patternfly/react-styles/css/components/Page/page"; + +const usePageDrawerState = () => { + const [isDrawerExpanded, setIsDrawerExpanded] = React.useState(false); + const [drawerPanelContent, setDrawerPanelContent] = + React.useStatenpm run build+ and then in two separate terminals, run:
npm run port-forwardand:
npm run startand the UI will be served on port 8080. + `); + } else { + res.render("index.html.ejs", { + _env: encodeEnv(TRUSTIFICATION_ENV, SERVER_ENV_KEYS), + branding: brandingStrings, + }); + } +}); + +// Start the server +const server = app.listen(port, () => { + console.log(`Server listening on port::${port}`); +}); + +// Handle shutdown signals Ctrl-C (SIGINT) and default podman/docker stop (SIGTERM) +const httpTerminator = createHttpTerminator({ server }); + +const shutdown = async (signal) => { + if (!server) { + console.log(`${signal}, no server running.`); + return; + } + + console.log(`${signal} - Stopping server on port::${port}`); + await httpTerminator.terminate(); + console.log(`${signal} - Stopped server on port::${port}`); +}; + +process.on("SIGINT", shutdown); +process.on("SIGTERM", shutdown);