Skip to content

Commit

Permalink
refactor(frontend): remove gant, fix env vars, change aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Melichka committed Sep 2, 2024
1 parent bcfc5c1 commit 8a803a1
Show file tree
Hide file tree
Showing 61 changed files with 607 additions and 4,260 deletions.
859 changes: 506 additions & 353 deletions application/frontend/package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions application/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@
"globals": "^15.9.0",
"husky": "^9.1.4",
"prettier": "^3.3.3",
"typescript": "^5.5.3",
"typescript": "^5.1.6",
"typescript-eslint": "^8.0.0",
"vite": "^5.4.0"
"vite": "^4.2.0",
"vite-plugin-svgr": "^4.2.0"
},
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down
1 change: 1 addition & 0 deletions application/frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react"
import { BrowserRouter } from "react-router-dom"

import "@fontsource/roboto/300.css"
Expand Down
8 changes: 4 additions & 4 deletions application/frontend/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { UserController } from "~api/controllers/UserController"
import { useTheme } from "~components/Theme"
import { ThemeEnum } from "~types/theme/enum"

import React, { useEffect } from "react"
import { useTranslation } from "react-i18next"
import { useNavigate } from "react-router-dom"

import { AccountCircleOutlined, MoreVertOutlined, NotificationsOutlined } from "@mui/icons-material"
import { Button, IconButton, Switch, Tooltip, Typography } from "@mui/material"

import { UserController } from "src/api/controllers/UserController"
import { useTheme } from "src/components/Theme"
import { ThemeEnum } from "src/types/theme/enum"

import {
Container,
IconButtons,
Expand Down
9 changes: 5 additions & 4 deletions application/frontend/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Header } from "~components/Header"
import { Theme } from "~components/Theme"
import i18nInstance from "~locales/service"

import React from "react"
import { I18nextProvider } from "react-i18next"
import { Outlet, useLocation } from "react-router-dom"

import { Header } from "src/components/Header"
import { Theme } from "src/components/Theme"
import i18nInstance from "src/locales/service"

import Markup from "./Layout.styled"

export const Layout = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StyledBreadcrumb } from "./NavButton.styled"
interface NavButtonProps {
to: string
children: React.ReactNode
icon?: React.ReactNode
icon?: React.ReactElement
}

export const NavButton: React.FC<NavButtonProps> = ({ to, children, icon }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ProfileCard: React.FC<ProfileCardProps> = ({ profile }) => {

return (
<ProfileCardContainer onClick={handleCardClick}>
<Avatar color={avatar ? undefined : avatarColor}>
<Avatar color={avatar ? "black" : avatarColor}>
{avatar ? (
<img
src={avatar}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
DateCell,
DateNumber,
DayOfWeek,
HeaderText,
LineContainer,
ScrollableBox,
StickyColumnCell,
Expand Down
2 changes: 0 additions & 2 deletions application/frontend/src/components/SearchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import {
interface SearchBarProps {
searchQuery: string
onSearchChange: (e: React.ChangeEvent<HTMLInputElement>) => void
viewMode: "list" | "grid" | "timeline"
onToggleViewMode: () => void
onClearSearch: () => void
variant?: "standard" | "outlined"
startIcon?: React.ReactNode
Expand Down
4 changes: 2 additions & 2 deletions application/frontend/src/components/Theme/Theme.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ThemeProvider } from "styled-components"
import { ThemeEnum } from "types/theme/enum"

import { ReactNode, useState } from "react"
import React from "react"

import { createTheme } from "@mui/material"
import CssBaseline from "@mui/material/CssBaseline"

import { ThemeEnum } from "src/types/theme/enum"

import { ThemeContext } from "./Theme.hooks"

interface ThemeProps {
Expand Down
4 changes: 2 additions & 2 deletions application/frontend/src/components/Theme/Theme.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Theme } from "@mui/material"
import { ThemeEnum } from "types/theme/enum"

import { ThemeEnum } from "src/types/theme/enum"
import { Theme } from "@mui/material"

export type ThemeContextTypes = {
currentTheme: ThemeEnum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ViewModuleIcon from "@mui/icons-material/ViewModule"
import { IconButton } from "@mui/material"

interface ViewModeToggleProps {
viewMode: "list" | "grid"
viewMode: "list" | "grid" | "timeline"
onToggleViewMode: () => void
}

Expand Down
Loading

0 comments on commit 8a803a1

Please sign in to comment.