-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23bfb1c
commit 9ef2c8a
Showing
16 changed files
with
753 additions
and
396 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*! | ||
* Copyright 2024 - Swiss Data Science Center (SDSC) | ||
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and | ||
* Eidgenössische Technische Hochschule Zürich (ETHZ). | ||
* | ||
* 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 cx from "classnames"; | ||
import { CSSProperties } from "react"; | ||
import { Folder, People, Person } from "react-bootstrap-icons"; | ||
|
||
interface EntityWatermarkProps { | ||
type: "project" | "user" | "group"; | ||
} | ||
export function EntityWatermark({ type }: EntityWatermarkProps) { | ||
const watermarkStyles: CSSProperties = { | ||
right: "0", | ||
fontSize: "150px", | ||
lineHeight: "0", | ||
color: "rgba(0, 0, 0, 0.1)", | ||
}; | ||
return ( | ||
<div | ||
style={watermarkStyles} | ||
className={cx("d-none", "d-lg-block", "position-absolute", "top-0")} | ||
> | ||
{type === "group" && <People />} | ||
{type === "user" && <Person />} | ||
{type === "project" && <Folder />} | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*! | ||
* Copyright 2024 - Swiss Data Science Center (SDSC) | ||
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and | ||
* Eidgenössische Technische Hochschule Zürich (ETHZ). | ||
* | ||
* 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 cx from "classnames"; | ||
import { Eye, Sliders } from "react-bootstrap-icons"; | ||
import { Nav, NavItem } from "reactstrap"; | ||
import RenkuNavLinkV2 from "./RenkuNavLinkV2"; | ||
|
||
export interface PageNavOptions { | ||
overviewUrl: string; | ||
settingsUrl: string; | ||
} | ||
export default function PageNav({ options }: { options: PageNavOptions }) { | ||
return ( | ||
<> | ||
<Nav tabs> | ||
<NavItem> | ||
<RenkuNavLinkV2 | ||
end | ||
to={options.overviewUrl} | ||
title="Overview" | ||
data-cy="nav-link-overview" | ||
> | ||
<Eye className={cx("bi", "me-1")} /> | ||
Overview | ||
</RenkuNavLinkV2> | ||
</NavItem> | ||
<NavItem> | ||
<RenkuNavLinkV2 | ||
end | ||
to={options.settingsUrl} | ||
title="Settings" | ||
data-cy="nav-link-settings" | ||
> | ||
<Sliders className={cx("bi", "me-1")} /> | ||
Settings | ||
</RenkuNavLinkV2> | ||
</NavItem> | ||
</Nav> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*! | ||
* Copyright 2024 - Swiss Data Science Center (SDSC) | ||
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and | ||
* Eidgenössische Technische Hochschule Zürich (ETHZ). | ||
* | ||
* 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 { Suspense, lazy } from "react"; | ||
import PageLoader from "../../components/PageLoader"; | ||
|
||
const GroupV2Container = lazy(() => import("./show/GroupPageContainer")); | ||
|
||
export default function LazyGroupContainer() { | ||
return ( | ||
<Suspense fallback={<PageLoader />}> | ||
<GroupV2Container /> | ||
</Suspense> | ||
); | ||
} |
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.