forked from eclipse-sw360/sw360-frontend
-
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 eclipse-sw360#167 from eclipse-sw360/heliocastro/m…
…etadata feat(metadata): Add root layout metadata
- Loading branch information
Showing
11 changed files
with
114 additions
and
78 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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// Copyright (C) TOSHIBA CORPORATION, 2023. Part of the SW360 Frontend Project. | ||
// Copyright (C) Toshiba Software Development (Vietnam) Co., Ltd., 2023. Part of the SW360 Frontend Project. | ||
// Copyright (C) Siemens AG, 2023. Part of the SW360 Frontend Project. | ||
// Copyright (C) Helio Chissini de Castro, 2023. Part of the SW360 Frontend Project. | ||
|
||
// This program and the accompanying materials are made | ||
// available under the terms of the Eclipse Public License 2.0 | ||
// which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
|
||
// SPDX-License-Identifier: EPL-2.0 | ||
// License-Filename: LICENSE | ||
|
||
'use client' | ||
|
||
import { signOut, useSession } from 'next-auth/react' | ||
|
||
import { PageSpinner } from 'next-sw360' | ||
|
||
import MyComponentsWidget from './components/MyComponentsWidget' | ||
import MyProjectsWidget from './components/MyProjectsWidget' | ||
import MySubscriptionsWidget from './components/MySubscriptionsWidget' | ||
import MyTaskAssignmentsWidget from './components/MyTaskAssignmentsWidget' | ||
import MyTaskSubmissionsWidget from './components/MyTaskSubmissionsWidget' | ||
import RecentComponentsWidget from './components/RecentComponentsWidget' | ||
import RecentReleasesWidget from './components/RecentReleasesWidget' | ||
|
||
function HomePage() { | ||
const { status } = useSession() | ||
|
||
if (status === 'unauthenticated') { | ||
signOut() | ||
} | ||
|
||
return ( | ||
<> | ||
<div className='content-container container-fluid homePage'> | ||
{status == 'loading' ? ( | ||
<PageSpinner /> | ||
) : ( | ||
<div className='row'> | ||
<div className='col col-md-10'> | ||
<div className='row'> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<MyProjectsWidget /> | ||
</div> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<MyComponentsWidget /> | ||
</div> | ||
</div> | ||
<div className='row'> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<MyTaskAssignmentsWidget /> | ||
</div> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<MyTaskSubmissionsWidget /> | ||
</div> | ||
</div> | ||
</div> | ||
<div className='col col-md-2'> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<MySubscriptionsWidget /> | ||
</div> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<RecentComponentsWidget /> | ||
</div> | ||
<div className='col-sm' id='sw360_table_col'> | ||
<RecentReleasesWidget /> | ||
</div> | ||
</div> | ||
</div> | ||
)} | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default HomePage |
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
File renamed without changes.
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