-
Notifications
You must be signed in to change notification settings - Fork 22
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 #675 from raspiblitz/small-improvements
Small improvements
- Loading branch information
Showing
20 changed files
with
190 additions
and
181 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
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
7 changes: 4 additions & 3 deletions
7
src/components/LoadingScreen.tsx → src/layouts/LoadingScreen.tsx
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,17 @@ | ||
import { FC } from "react"; | ||
import LoadingSpinner from "../components/LoadingSpinner/LoadingSpinner"; | ||
|
||
// Loading Screen where sidebar is visible and usable | ||
const PageLoadingScreen: FC = () => { | ||
return ( | ||
<main | ||
className={`content-container page-container bg-gray-100 p-5 transition-colors dark:bg-gray-700 dark:text-white lg:pb-8 lg:pr-8 lg:pt-8`} | ||
> | ||
<section className="content-container flex items-center justify-center"> | ||
<LoadingSpinner color="text-yellow-500" /> | ||
</section> | ||
</main> | ||
); | ||
}; | ||
|
||
export default PageLoadingScreen; |
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
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,39 @@ | ||
import { AppStatus } from "@/models/app-status"; | ||
import { App } from "@/models/app.model"; | ||
import { availableApps } from "@/utils/availableApps"; | ||
import { FC } from "react"; | ||
import AppCard from "./AppCard"; | ||
|
||
type Props = { | ||
title: string; | ||
apps: AppStatus[]; | ||
onInstall: (id: string) => void; | ||
onOpenDetails: (app: App) => void; | ||
}; | ||
|
||
const AppList: FC<Props> = ({ title, apps, onInstall, onOpenDetails }) => { | ||
return ( | ||
<section className="flex h-full flex-wrap"> | ||
<h2 className="w-full pb-5 pt-8 text-xl font-bold dark:text-gray-200"> | ||
{title} | ||
</h2> | ||
<div className="grid w-full grid-cols-1 gap-5 lg:grid-cols-3 lg:gap-8"> | ||
{apps.map((appStatus: AppStatus) => { | ||
return ( | ||
<AppCard | ||
key={appStatus.id} | ||
appInfo={availableApps.get(appStatus.id)!} | ||
appStatusInfo={appStatus} | ||
installed={appStatus.installed} | ||
installingApp={null} | ||
onInstall={onInstall} | ||
onOpenDetails={onOpenDetails} | ||
/> | ||
); | ||
})} | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default AppList; |
Oops, something went wrong.