Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend dependency upgrades #1360

Merged
merged 2 commits into from
Jan 10, 2025
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
15 changes: 6 additions & 9 deletions frontend/components/layout/NoContent.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
// SPDX-FileCopyrightText: 2024 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2024 Netherlands eScience Center
// SPDX-FileCopyrightText: 2024 - 2025 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2024 - 2025 Netherlands eScience Center
//
// SPDX-License-Identifier: Apache-2.0

import {useEffect, useRef, useState} from 'react'
import styled from '@emotion/styled'
import DoDisturbIcon from '@mui/icons-material/DoDisturb'
import Box from '@mui/material/Box'
import {Theme} from '@mui/material/styles/createTheme'
import Slide from '@mui/material/Slide'

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const NoContentText = styled('h2')(({theme}:{theme?:Theme}) => ({
const NoContentText = styled('h2')({
fontWeight: 500,
letterSpacing: '0.25rem',
textTransform: 'uppercase',
padding: '1rem 0rem'
}))
})

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const NoContentBody = styled('div')(({theme}:{theme?:Theme}) => ({
const NoContentBody = styled('div')({
margin:'2rem 0rem 0rem 0rem',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
opacity: 0.25
}))
})

export default function NoContent({message='nothing to show'}:{message?:string}) {
const [show, setShow]=useState(false)
Expand Down
8 changes: 4 additions & 4 deletions frontend/components/software/AboutPackageManagers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 dv4all
// SPDX-FileCopyrightText: 2023 - 2024 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2023 - 2024 Netherlands eScience Center
// SPDX-FileCopyrightText: 2023 - 2025 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2023 - 2025 Netherlands eScience Center
//
// SPDX-License-Identifier: Apache-2.0

Expand All @@ -13,7 +13,7 @@ type AboutPackageManagersProps={
packages: PackageManager[]
}

function PackageManager({item}:{item:PackageManager}){
function PackageManagerItem({item}:{item:PackageManager}){
// get package manager only when url provided
if (item.url){
const info = packageManagerSettings[item.package_manager ?? 'other']
Expand Down Expand Up @@ -52,7 +52,7 @@ export default function AboutPackageManagers({packages}:AboutPackageManagersProp
<span className="text-primary pl-2">Packages</span>
</div>
<div className="flex gap-4 flex-wrap">
{packages.map(item=><PackageManager key={item.id} item={item} />)}
{packages.map(item=><PackageManagerItem key={item.id} item={item} />)}
</div>
</>
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
3 changes: 2 additions & 1 deletion frontend/next-env.d.ts.license
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
SPDX-FileCopyrightText: 2022 - 2025 Netherlands eScience Center
SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
SPDX-FileCopyrightText: 2022 Jesús García Gonzalez (Netherlands eScience Center) <j.g.gonzalez@esciencecenter.nl>
SPDX-FileCopyrightText: 2022 Netherlands eScience Center
SPDX-FileCopyrightText: 2022 dv4all
SPDX-FileCopyrightText: 2025 Dusan Mijatovic (Netherlands eScience Center)

SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: CC-BY-4.0
Loading
Loading