forked from PelicanPlatform/pelican
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PelicanPlatform#105 from PelicanPlatform/ui-updates
UI updates
- Loading branch information
Showing
23 changed files
with
662 additions
and
28 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,54 @@ | ||
/*************************************************************** | ||
* | ||
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you | ||
* may not use this file except in compliance with the License. You may | ||
* obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
***************************************************************/ | ||
|
||
import Image from 'next/image' | ||
import styles from "../../app/page.module.css" | ||
import {Poppins} from "next/font/google"; | ||
|
||
import PelicanLogo from "../../public/static/images/PelicanPlatformLogo_Icon.png" | ||
import GithubIcon from "../../public/static/images/github-mark.png" | ||
import {Typography} from "@mui/material"; | ||
import {Typography, Box} from "@mui/material"; | ||
|
||
export const Sidebar = () => { | ||
|
||
return ( | ||
<div className={styles.header} style={{display: "flex", flexDirection: "column", justifyContent:"space-between", padding:"1rem", top:0, position:"sticky", zIndex:"1", overflow: "hidden", height: "100vh"}}> | ||
<div style={{display:"flex"}}> | ||
<Image | ||
src={PelicanLogo} | ||
alt={"Pelican Logo"} | ||
width={32} | ||
height={32} | ||
/> | ||
</div> | ||
<div> | ||
<a href={"https://github.com/PelicanPlatform"}> | ||
<Box> | ||
<div className={styles.header} style={{display: "flex", flexDirection: "column", justifyContent:"space-between", padding:"1rem", top:0, position:"relative", zIndex:"1", overflow: "hidden", height: "100vh"}}> | ||
<div style={{display:"flex"}}> | ||
<Image | ||
src={GithubIcon} | ||
alt={"Github Mark"} | ||
src={PelicanLogo} | ||
alt={"Pelican Logo"} | ||
width={32} | ||
height={32} | ||
/> | ||
</a> | ||
</div> | ||
<div> | ||
<a href={"https://github.com/PelicanPlatform"}> | ||
<Image | ||
src={GithubIcon} | ||
alt={"Github Mark"} | ||
width={32} | ||
height={32} | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</Box> | ||
|
||
) | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,63 @@ | ||
/*************************************************************** | ||
* | ||
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you | ||
* may not use this file except in compliance with the License. You may | ||
* obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
***************************************************************/ | ||
|
||
import RateGraph from "@/components/graphs/RateGraph"; | ||
import LineGraph from "@/components/graphs/LineGraph"; | ||
|
||
import {Box, Grid} from "@mui/material"; | ||
import Image from 'next/image' | ||
import styles from './page.module.css' | ||
|
||
|
||
export default function Home() { | ||
|
||
|
||
|
||
return ( | ||
<>Test</> | ||
<Box width={"100%"}> | ||
<Grid container spacing={2}> | ||
<Grid item xs={12} lg={6}> | ||
<Box sx={{backgroundColor: "#F6F6F6", borderRadius: "1rem"}} p={2}> | ||
<Box display={"flex"} minHeight={"200px"} maxHeight={"400px"} m={"auto"} flexGrow={1} justifyContent={"center"}> | ||
<RateGraph | ||
rate={"10m"} | ||
duration={"24h"} | ||
resolution={"10m"} | ||
metric={"xrootd_monitoring_packets_received"} | ||
datasetOptions={{label: "xrootd_monitoring_packets_received rate over 10m", borderColor: "#0071ff"}} | ||
/> | ||
</Box> | ||
</Box> | ||
</Grid> | ||
<Grid item xs={12} lg={6}> | ||
<Box sx={{backgroundColor: "#F6F6F6", borderRadius: "1rem"}} p={2}> | ||
<Box display={"flex"} minHeight={"200px"} maxHeight={"400px"} flexGrow={1} justifyContent={"center"}> | ||
<LineGraph | ||
metric={"xrootd_server_connection_count"} | ||
duration={"24h"} | ||
resolution={"10m"} | ||
datasetOptions={{label: "xrootd_server_connection_count", borderColor: "#0071ff"}} | ||
/> | ||
</Box> | ||
</Box> | ||
</Grid> | ||
</Grid> | ||
|
||
</Box> | ||
) | ||
} |
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
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
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
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
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
18 changes: 18 additions & 0 deletions
18
origin_ui/src/app/initialization/password/PasswordInput.tsx
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
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
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
Oops, something went wrong.