Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ web_modules/
.env.test.local
.env.production.local
.env.local
.env.VITE_GEMINI_API_KEY

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>Log Analyzer</title>
</head>
<body>
<div id="root"></div>
Expand Down
2,883 changes: 2,732 additions & 151 deletions frontend/package-lock.json

Large diffs are not rendered by default.

27 changes: 26 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,43 @@
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-brands-svg-icons": "^6.7.2",
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mui/material": "^6.4.7",
"@mui/styled-engine-sc": "^6.4.6",
"@mui/x-charts": "^7.27.1",
"@mui/x-charts-pro": "^7.27.1",
"d3": "^7.9.0",
"leaflet": "^1.9.4",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react-dom": "^19.0.0",
"react-heatmap-grid": "^0.9.1",
"react-icons": "^5.5.0",
"react-leaflet": "^5.0.0",
"recharts": "^2.15.1",
"styled-components": "^6.1.15",
"tailwind-scrollbar-hide": "^2.0.0"
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@tailwindcss/postcss": "^4.0.14",
"@tailwindcss/vite": "^4.0.14",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.21",
"babel-plugin-styled-components": "^2.1.4",
"eslint": "^9.21.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^15.15.0",
"postcss": "^8.5.3",
"tailwindcss": "^4.0.14",
"vite": "^6.2.0"
}
}
6 changes: 6 additions & 0 deletions frontend/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
autoprefixer: {},
},
};
51 changes: 16 additions & 35 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,23 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@import url('https://fonts.googleapis.com/css2?family=Outfit:[email protected]&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
body {
font-family: 'Poppins';
margin: 0;
padding: 0;
background-color: #f5f5f5;
}

@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
::-webkit-scrollbar{
display: none;
}

.card {
padding: 2em;
/* Hide scrollbar for Chrome, Safari, and Opera */
.scrollbar-hide::-webkit-scrollbar {
display: none;
}

.read-the-docs {
color: #888;
}
/* Hide scrollbar for IE, Edge, and Firefox */
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
44 changes: 38 additions & 6 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,44 @@
import './App.css'
import React, { useState } from 'react';
import Navbar from './components/Navbar';
import Dashboard from './components/Dashboard';
import CheckLog from './components/CheckLog';
import ChartLine from './components/ChartLine';
import LogOut from './components/LogOut';
import Collab from './components/Collab';
import './App.css';

function App() {
const [activeTab, setActiveTab] = useState('dashboard');

const renderContent = () => {
switch (activeTab) {
case 'dashboard':
return <Dashboard />;
case 'checkLog':
return <CheckLog />;
case 'chartLine':
return <ChartLine />;
case 'logOut':
return <LogOut />;
default:
return <Dashboard />;
}
};

return (
<>
<h1>Log Analyzer Frontend</h1>
</>
)
<div className="flex">
<div className="fixed top-0 left-0 h-full w-30 p-5 bg-gradient-to-b from-gray-100 via-gray-200 to-gray-300">
<Navbar activeTab={activeTab} setActiveTab={setActiveTab} vertical />
</div>
<div className="ml-30 mr-80 w-full p-5 bg-gradient-to-b from-gray-100 via-gray-200 to-gray-300 h-screen overflow-y-auto scrollbar-hide">
{renderContent()}
</div>

<div className='fixed top-0 right-0 h-full w-80 p-5 bg-gradient-to-t from-gray-100 via-gray-200 to-gray-300'>
<Collab />
</div>
</div>
);
}

export default App
export default App;
13 changes: 13 additions & 0 deletions frontend/src/assets/assets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import user1 from './user1.png'
import user2 from './user2.png'
import user3 from './user3.png'
import user4 from './user4.png'
import user5 from './user5.png'

export const assets = {
user1,
user2,
user3,
user4,
user5
}
Binary file added frontend/src/assets/user1.png
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. Please remove it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/user2.png
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. Please remove it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/user3.png
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. Please remove it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/user4.png
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. Please remove it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/user5.png
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. Please remove it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading