From c55f2da64811629bb39afda4495b78f9ae0b0718 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 9 Jul 2025 07:08:40 +0000 Subject: [PATCH] feat: fork Cyberpunk server dashboard Update dashboard components and styles for new project. #VERCEL_SKIP Co-authored-by: Xiro <140150717+xirothedev@users.noreply.github.com> --- .editorconfig | 12 - .github/CODE_OF_CONDUCT.md | 73 - .github/COMMIT_CONVENTION.md | 85 - .github/CONTRIBUTING.md | 168 - .github/FUNDING.yml | 2 - .github/ISSUE_TEMPLATE/bug_report.yml | 68 - .github/ISSUE_TEMPLATE/config.yml | 8 - .github/ISSUE_TEMPLATE/feature_request.yml | 49 - .../ISSUE_TEMPLATE/security_vulnerability.yml | 96 - .github/PULL_REQUEST_TEMPLATE.md | 1 - .github/dependabot.yml | 18 - .husky/pre-commit | 3 - .npmrc | 3 - .prettierignore | 6 - .prettierrc.json | 9 - .vscode/extensions.json | 9 - .vscode/settings.json | 23 - LICENSE.md | 7 - SECURITY.md | 22 - app/globals.css | 74 + app/layout.tsx | 20 + app/page.tsx | 6 + components.json | 40 +- components/app-sidebar.tsx | 101 + components/bot-status-card.tsx | 125 + components/log-entry.tsx | 131 + components/log-filters.tsx | 190 + components/log-viewer.tsx | 266 + components/metric-card.tsx | 77 + components/system-chart.tsx | 96 + components/theme-provider.tsx | 11 + components/ui/accordion.tsx | 58 + components/ui/alert-dialog.tsx | 141 + components/ui/alert.tsx | 59 + components/ui/aspect-ratio.tsx | 7 + components/ui/avatar.tsx | 50 + components/ui/badge.tsx | 36 + components/ui/breadcrumb.tsx | 115 + components/ui/button.tsx | 56 + components/ui/calendar.tsx | 66 + components/ui/card.tsx | 79 + components/ui/carousel.tsx | 262 + components/ui/chart.tsx | 365 ++ components/ui/checkbox.tsx | 30 + .../ui/collapsible.tsx | 12 +- components/ui/command.tsx | 153 + components/ui/context-menu.tsx | 200 + components/ui/dialog.tsx | 122 + components/ui/drawer.tsx | 118 + components/ui/dropdown-menu.tsx | 200 + components/ui/form.tsx | 178 + components/ui/hover-card.tsx | 29 + components/ui/input-otp.tsx | 71 + components/ui/input.tsx | 22 + components/ui/label.tsx | 26 + components/ui/menubar.tsx | 236 + components/ui/navigation-menu.tsx | 128 + components/ui/pagination.tsx | 117 + components/ui/popover.tsx | 31 + components/ui/progress.tsx | 28 + components/ui/radio-group.tsx | 44 + components/ui/resizable.tsx | 45 + components/ui/scroll-area.tsx | 48 + components/ui/select.tsx | 160 + components/ui/separator.tsx | 31 + components/ui/sheet.tsx | 140 + components/ui/sidebar.tsx | 763 +++ components/ui/skeleton.tsx | 15 + components/ui/slider.tsx | 28 + components/ui/sonner.tsx | 31 + components/ui/switch.tsx | 29 + components/ui/table.tsx | 117 + components/ui/tabs.tsx | 55 + components/ui/textarea.tsx | 22 + components/ui/toast.tsx | 129 + components/ui/toaster.tsx | 35 + components/ui/toggle-group.tsx | 61 + components/ui/toggle.tsx | 45 + components/ui/tooltip.tsx | 30 + components/ui/use-mobile.tsx | 19 + components/ui/use-toast.ts | 194 + dashboard.tsx | 218 + eslint.config.mjs | 22 - hooks/use-mobile.tsx | 19 + hooks/use-toast.ts | 194 + lib/utils.ts | 6 + next.config.mjs | 16 +- package.json | 171 +- pnpm-lock.yaml | 5053 ++++------------- pnpm-workspace.yaml | 7 - postcss.config.mjs | 6 +- src/app/api/actions/route.ts | 32 - src/app/api/monitor/route.ts | 84 - src/app/api/version/route.ts | 23 - src/app/globals.css | 201 - src/app/layout.tsx | 24 - src/app/logger/page.tsx | 21 - src/app/page.tsx | 172 - src/app/settings/page.tsx | 38 - src/app/template.tsx | 9 - src/components/app-sidebar.tsx | 119 - src/components/bot-status-card.tsx | 117 - src/components/log-filters.tsx | 121 - src/components/log-viewer.tsx | 138 - src/components/metric-card.tsx | 59 - src/components/system-chart.tsx | 86 - src/components/theme-provider.tsx | 8 - src/components/ui/accordion.tsx | 54 - src/components/ui/alert-dialog.tsx | 106 - src/components/ui/alert.tsx | 43 - src/components/ui/aspect-ratio.tsx | 7 - src/components/ui/avatar.tsx | 40 - src/components/ui/badge.tsx | 29 - src/components/ui/breadcrumb.tsx | 90 - src/components/ui/button.tsx | 47 - src/components/ui/calendar.tsx | 165 - src/components/ui/card.tsx | 43 - src/components/ui/carousel.tsx | 230 - src/components/ui/chart.tsx | 310 - src/components/ui/checkbox.tsx | 28 - src/components/ui/command.tsx | 132 - src/components/ui/context-menu.tsx | 180 - src/components/ui/dialog.tsx | 97 - src/components/ui/drawer.tsx | 89 - src/components/ui/dropdown-menu.tsx | 181 - src/components/ui/form.tsx | 138 - src/components/ui/hover-card.tsx | 29 - src/components/ui/input-otp.tsx | 63 - src/components/ui/input.tsx | 22 - src/components/ui/label.tsx | 19 - src/components/ui/menubar.tsx | 209 - src/components/ui/navigation-menu.tsx | 120 - src/components/ui/pagination.tsx | 86 - src/components/ui/popover.tsx | 31 - src/components/ui/progress.tsx | 25 - src/components/ui/radio-group.tsx | 38 - src/components/ui/resizable.tsx | 39 - src/components/ui/scroll-area.tsx | 42 - src/components/ui/select.tsx | 145 - src/components/ui/separator.tsx | 26 - src/components/ui/sheet.tsx | 107 - src/components/ui/sidebar.tsx | 642 --- src/components/ui/skeleton.tsx | 7 - src/components/ui/slider.tsx | 25 - src/components/ui/sonner.tsx | 28 - src/components/ui/switch.tsx | 29 - src/components/ui/table.tsx | 76 - src/components/ui/tabs.tsx | 55 - src/components/ui/textarea.tsx | 21 - src/components/ui/toast.tsx | 113 - src/components/ui/toaster.tsx | 26 - src/components/ui/toggle-group.tsx | 51 - src/components/ui/toggle.tsx | 39 - src/components/ui/tooltip.tsx | 30 - src/data/index.json | 3 - src/hooks/use-action.ts | 30 - src/hooks/use-mobile.tsx | 19 - src/hooks/use-monitor.ts | 15 - src/hooks/use-toast.ts | 187 - src/hooks/use-version.ts | 21 - src/lib/format-uptime.ts | 7 - src/lib/utils.ts | 15 - src/types/log.ts | 12 - src/types/monitor.ts | 38 - src/types/pm2.ts | 103 - styles/globals.css | 94 + tailwind.config.ts | 98 + tsconfig.json | 51 +- types/log.ts | 22 + 169 files changed, 8146 insertions(+), 10520 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .github/CODE_OF_CONDUCT.md delete mode 100644 .github/COMMIT_CONVENTION.md delete mode 100644 .github/CONTRIBUTING.md delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml delete mode 100644 .github/ISSUE_TEMPLATE/security_vulnerability.yml delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/dependabot.yml delete mode 100644 .husky/pre-commit delete mode 100644 .npmrc delete mode 100644 .prettierignore delete mode 100644 .prettierrc.json delete mode 100644 .vscode/extensions.json delete mode 100644 .vscode/settings.json delete mode 100644 LICENSE.md delete mode 100644 SECURITY.md create mode 100644 app/globals.css create mode 100644 app/layout.tsx create mode 100644 app/page.tsx create mode 100644 components/app-sidebar.tsx create mode 100644 components/bot-status-card.tsx create mode 100644 components/log-entry.tsx create mode 100644 components/log-filters.tsx create mode 100644 components/log-viewer.tsx create mode 100644 components/metric-card.tsx create mode 100644 components/system-chart.tsx create mode 100644 components/theme-provider.tsx create mode 100644 components/ui/accordion.tsx create mode 100644 components/ui/alert-dialog.tsx create mode 100644 components/ui/alert.tsx create mode 100644 components/ui/aspect-ratio.tsx create mode 100644 components/ui/avatar.tsx create mode 100644 components/ui/badge.tsx create mode 100644 components/ui/breadcrumb.tsx create mode 100644 components/ui/button.tsx create mode 100644 components/ui/calendar.tsx create mode 100644 components/ui/card.tsx create mode 100644 components/ui/carousel.tsx create mode 100644 components/ui/chart.tsx create mode 100644 components/ui/checkbox.tsx rename {src/components => components}/ui/collapsible.tsx (58%) create mode 100644 components/ui/command.tsx create mode 100644 components/ui/context-menu.tsx create mode 100644 components/ui/dialog.tsx create mode 100644 components/ui/drawer.tsx create mode 100644 components/ui/dropdown-menu.tsx create mode 100644 components/ui/form.tsx create mode 100644 components/ui/hover-card.tsx create mode 100644 components/ui/input-otp.tsx create mode 100644 components/ui/input.tsx create mode 100644 components/ui/label.tsx create mode 100644 components/ui/menubar.tsx create mode 100644 components/ui/navigation-menu.tsx create mode 100644 components/ui/pagination.tsx create mode 100644 components/ui/popover.tsx create mode 100644 components/ui/progress.tsx create mode 100644 components/ui/radio-group.tsx create mode 100644 components/ui/resizable.tsx create mode 100644 components/ui/scroll-area.tsx create mode 100644 components/ui/select.tsx create mode 100644 components/ui/separator.tsx create mode 100644 components/ui/sheet.tsx create mode 100644 components/ui/sidebar.tsx create mode 100644 components/ui/skeleton.tsx create mode 100644 components/ui/slider.tsx create mode 100644 components/ui/sonner.tsx create mode 100644 components/ui/switch.tsx create mode 100644 components/ui/table.tsx create mode 100644 components/ui/tabs.tsx create mode 100644 components/ui/textarea.tsx create mode 100644 components/ui/toast.tsx create mode 100644 components/ui/toaster.tsx create mode 100644 components/ui/toggle-group.tsx create mode 100644 components/ui/toggle.tsx create mode 100644 components/ui/tooltip.tsx create mode 100644 components/ui/use-mobile.tsx create mode 100644 components/ui/use-toast.ts create mode 100644 dashboard.tsx delete mode 100644 eslint.config.mjs create mode 100644 hooks/use-mobile.tsx create mode 100644 hooks/use-toast.ts create mode 100644 lib/utils.ts delete mode 100644 pnpm-workspace.yaml delete mode 100644 src/app/api/actions/route.ts delete mode 100644 src/app/api/monitor/route.ts delete mode 100644 src/app/api/version/route.ts delete mode 100644 src/app/globals.css delete mode 100644 src/app/layout.tsx delete mode 100644 src/app/logger/page.tsx delete mode 100644 src/app/page.tsx delete mode 100644 src/app/settings/page.tsx delete mode 100644 src/app/template.tsx delete mode 100644 src/components/app-sidebar.tsx delete mode 100644 src/components/bot-status-card.tsx delete mode 100644 src/components/log-filters.tsx delete mode 100644 src/components/log-viewer.tsx delete mode 100644 src/components/metric-card.tsx delete mode 100644 src/components/system-chart.tsx delete mode 100644 src/components/theme-provider.tsx delete mode 100644 src/components/ui/accordion.tsx delete mode 100644 src/components/ui/alert-dialog.tsx delete mode 100644 src/components/ui/alert.tsx delete mode 100644 src/components/ui/aspect-ratio.tsx delete mode 100644 src/components/ui/avatar.tsx delete mode 100644 src/components/ui/badge.tsx delete mode 100644 src/components/ui/breadcrumb.tsx delete mode 100644 src/components/ui/button.tsx delete mode 100644 src/components/ui/calendar.tsx delete mode 100644 src/components/ui/card.tsx delete mode 100644 src/components/ui/carousel.tsx delete mode 100644 src/components/ui/chart.tsx delete mode 100644 src/components/ui/checkbox.tsx delete mode 100644 src/components/ui/command.tsx delete mode 100644 src/components/ui/context-menu.tsx delete mode 100644 src/components/ui/dialog.tsx delete mode 100644 src/components/ui/drawer.tsx delete mode 100644 src/components/ui/dropdown-menu.tsx delete mode 100644 src/components/ui/form.tsx delete mode 100644 src/components/ui/hover-card.tsx delete mode 100644 src/components/ui/input-otp.tsx delete mode 100644 src/components/ui/input.tsx delete mode 100644 src/components/ui/label.tsx delete mode 100644 src/components/ui/menubar.tsx delete mode 100644 src/components/ui/navigation-menu.tsx delete mode 100644 src/components/ui/pagination.tsx delete mode 100644 src/components/ui/popover.tsx delete mode 100644 src/components/ui/progress.tsx delete mode 100644 src/components/ui/radio-group.tsx delete mode 100644 src/components/ui/resizable.tsx delete mode 100644 src/components/ui/scroll-area.tsx delete mode 100644 src/components/ui/select.tsx delete mode 100644 src/components/ui/separator.tsx delete mode 100644 src/components/ui/sheet.tsx delete mode 100644 src/components/ui/sidebar.tsx delete mode 100644 src/components/ui/skeleton.tsx delete mode 100644 src/components/ui/slider.tsx delete mode 100644 src/components/ui/sonner.tsx delete mode 100644 src/components/ui/switch.tsx delete mode 100644 src/components/ui/table.tsx delete mode 100644 src/components/ui/tabs.tsx delete mode 100644 src/components/ui/textarea.tsx delete mode 100644 src/components/ui/toast.tsx delete mode 100644 src/components/ui/toaster.tsx delete mode 100644 src/components/ui/toggle-group.tsx delete mode 100644 src/components/ui/toggle.tsx delete mode 100644 src/components/ui/tooltip.tsx delete mode 100644 src/data/index.json delete mode 100644 src/hooks/use-action.ts delete mode 100644 src/hooks/use-mobile.tsx delete mode 100644 src/hooks/use-monitor.ts delete mode 100644 src/hooks/use-toast.ts delete mode 100644 src/hooks/use-version.ts delete mode 100644 src/lib/format-uptime.ts delete mode 100644 src/lib/utils.ts delete mode 100644 src/types/log.ts delete mode 100644 src/types/monitor.ts delete mode 100644 src/types/pm2.ts create mode 100644 styles/globals.css create mode 100644 tailwind.config.ts create mode 100644 types/log.ts diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index ebe51d3..0000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -# EditorConfig is awesome: https://EditorConfig.org - -# top-most EditorConfig file -root = true - -[*] -indent_style = space -indent_size = 2 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md deleted file mode 100644 index 800e681..0000000 --- a/.github/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,73 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our community include: - -- Demonstrating empathy and kindness toward other people -- Being respectful of differing opinions, viewpoints, and experiences -- Giving and gracefully accepting constructive feedback -- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -- Focusing on what is best not just for us as individuals, but for the overall community - -Examples of unacceptable behavior include: - -- The use of sexualized language or imagery, and sexual attention or advances of any kind -- Trolling, insulting or derogatory comments, and personal or political attacks -- Public or private harassment -- Publishing others' private information, such as a physical or email address, without their explicit permission -- Other conduct which could reasonably be considered inappropriate in a professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [lethanhtrung.trungle@gmail.com](mailto:lethanhtrung.trungle@gmail.com). All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction -**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. - -### 2. Warning -**Community Impact**: A violation through a single incident or series of actions. - -**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. - -### 3. Temporary Ban -**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban -**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within the community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html). - -Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). - -[homepage]: https://www.contributor-covenant.org \ No newline at end of file diff --git a/.github/COMMIT_CONVENTION.md b/.github/COMMIT_CONVENTION.md deleted file mode 100644 index 14de8a0..0000000 --- a/.github/COMMIT_CONVENTION.md +++ /dev/null @@ -1,85 +0,0 @@ -## Git Commit Message Convention - -> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular). - -### Examples - -Appears under "Features" header, pencil subheader: - -``` -feat(pencil): add 'graphiteWidth' option -``` - -Appears under "Bug Fixes" header, graphite subheader, with a link to issue #28: - -``` -fix(graphite): stop graphite breaking when width < 0.1 - -Closes #28 -``` - -Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: - -``` -perf(pencil): remove graphiteWidth option - -BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason. -``` - -The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. - -``` -revert: feat(pencil): add 'graphiteWidth' option - -This reverts commit 667ecc1654a317a13331b17617d973392f415f02. -``` - -### Commit Message Format - -A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: - -``` -(): - - - -