-
Notifications
You must be signed in to change notification settings - Fork 0
Setup/obs #4
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
Merged
Setup/obs #4
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
99bdb72
feat: add AppSidebar component and update dependencies.
Coderx85 8c0852b
feat: add UI components for separator, sheet, sidebar, skeleton, sonn…
Coderx85 e01335c
feat: add sidebar items and mobile theme changer hooks.
Coderx85 524ffb5
feat: add observability stack with Loki, Grafana, and Vector configur…
Coderx85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,53 @@ | ||
| "use client"; | ||
| import { ChartAreaInteractive } from "@/components/chart-area-interactive"; | ||
| import { DataTable } from "@/components/data-table"; | ||
| import { SectionCards } from "@/components/section-cards"; | ||
|
|
||
| import data from "./data.json"; | ||
| import { useState } from "react"; | ||
| import { | ||
| Empty, | ||
| EmptyContent, | ||
| EmptyDescription, | ||
| EmptyHeader, | ||
| EmptyMedia, | ||
| EmptyTitle, | ||
| } from "@/components/ui/empty"; | ||
| import { User2Icon } from "lucide-react"; | ||
|
|
||
| export default function Page() { | ||
| const [user, setUser] = useState(null); | ||
|
|
||
| if (!user) { | ||
| return ( | ||
| <Empty> | ||
| <EmptyHeader> | ||
| <EmptyMedia> | ||
| <User2Icon /> | ||
| </EmptyMedia> | ||
| <EmptyTitle>No User Data</EmptyTitle> | ||
| <EmptyDescription> | ||
| Please add a user to see the data. | ||
| </EmptyDescription> | ||
| </EmptyHeader> | ||
| <EmptyContent> | ||
| You can add a user by clicking the "Add User" button. | ||
| </EmptyContent> | ||
| </Empty> | ||
| ); | ||
| } | ||
|
|
||
| return ( | ||
| <div className="flex flex-col"> | ||
| <div className="@container/main flex flex-col gap-2"> | ||
| <div className="flex flex-col gap-4"> | ||
| <SectionCards /> | ||
| <div> | ||
| <ChartAreaInteractive /> | ||
| </div> | ||
| <DataTable data={data} /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or 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,22 @@ | ||
| import React from "react"; | ||
| import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"; | ||
| import { AppSidebar } from "@/components/app-sidebar"; | ||
| import { SiteHeader } from "@/components/site-header"; | ||
|
|
||
| type Props = { | ||
| children: React.ReactNode; | ||
| }; | ||
|
|
||
| const DashboardLayout = (props: Props) => { | ||
| return ( | ||
| <SidebarProvider> | ||
| <AppSidebar variant="inset" /> | ||
| <SidebarInset> | ||
| <SiteHeader /> | ||
| <main className="p-6">{props.children}</main> | ||
| </SidebarInset> | ||
| </SidebarProvider> | ||
| ); | ||
| }; | ||
|
|
||
| export default DashboardLayout; |
This file contains hidden or 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,33 @@ | ||
| import { | ||
| Empty, | ||
| EmptyContent, | ||
| EmptyDescription, | ||
| EmptyHeader, | ||
| EmptyMedia, | ||
| EmptyTitle, | ||
| } from "@/components/ui/empty"; | ||
| import { FolderIcon } from "lucide-react"; | ||
|
|
||
| const Project = () => { | ||
| return ( | ||
| <Empty className="bg-border h-120"> | ||
| <EmptyHeader> | ||
| <EmptyMedia | ||
| variant="icon" | ||
| className="p-1 border-2 border-current/50 rounded-md" | ||
| > | ||
| <FolderIcon className="h-12 w-12 text-muted-foreground" /> | ||
| </EmptyMedia> | ||
| <EmptyTitle>No Projects Found</EmptyTitle> | ||
| <EmptyDescription> | ||
| There are currently no projects to display. | ||
| </EmptyDescription> | ||
| </EmptyHeader> | ||
| <EmptyContent className="text-secondary"> | ||
| Get started by creating a new project. | ||
| </EmptyContent> | ||
| </Empty> | ||
| ); | ||
| }; | ||
|
|
||
| export default Project; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.