Feature | Add documentation of caddy control#13
Open
mukezhz wants to merge 48 commits intoavashForReal:mainfrom
Open
Feature | Add documentation of caddy control#13mukezhz wants to merge 48 commits intoavashForReal:mainfrom
mukezhz wants to merge 48 commits intoavashForReal:mainfrom
Conversation
- Implemented PermissionGuard component for conditional rendering based on user permissions. - Created PermissionsManagement component for managing permissions, including creating new permissions and displaying existing ones. - Added RolesManagement component for managing user roles, including creating and editing roles. - Developed UserManagement component for user management, including assigning roles and resetting passwords. - Introduced resource configuration for permissions and actions. - Added hooks for fetching and managing roles and permissions. - Enhanced user schema to include role and permissions. - Implemented API client response interceptor for handling authentication errors. - Updated auth store to include permission checking logic.
- Simplified ProtectedLayout and Home components by removing unnecessary state management and effects. - Enhanced user profile fetching and handling in SettingsPage and other components. - Introduced PermissionGuard component for better permission management across the application. - Updated user management components to conditionally render actions based on user permissions. - Improved error handling in user hooks to prevent crashes when used outside QueryClientProvider. - Cleaned up API client error logging and auth state reset logic. - Added permission checks for various user actions to ensure proper access control.
refactor: simplify imports in PageHeader component
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ts, and installation guide
…tomization docs feat: enhance DocsLayout with new icons and update GitHub link fix: adjust Home page content and update author information fix: improve header styling by removing unnecessary margin feat: add new logo assets for branding
…tions in pnpm-lock.yaml
…enhanced configuration
There was a problem hiding this comment.
Pull Request Overview
This pull request improves the project's documentation and content management while updating the Docker configuration for running a new Caddy Control service. The key changes include:
- Adding a new Docker Compose service for caddycontrol with production-ready settings.
- Configuring Contentlayer with MDX support and relevant plugins.
- Introducing new configuration files (toc.tsx, sidebar.tsx, meta.tsx) to enhance documentation navigation and metadata.
Reviewed Changes
Copilot reviewed 131 out of 146 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docker-compose.system.yml | Adds a service for caddycontrol with environment settings and host networking for production. |
| contentlayer.config.ts | Sets up Contentlayer to process MDX files with remark and rehype plugins. |
| config/toc.tsx | Defines a table of contents structure for documentation pages. |
| config/sidebar.tsx | Implements sidebar navigation with icon mappings for documentation. |
| config/meta.tsx | Establishes SEO and OpenGraph metadata for the documentation site. |
Files not reviewed (15)
- .dockerignore: Language not supported
- Dockerfile: Language not supported
- Makefile: Language not supported
- content/button.mdx: Language not supported
- content/installation.mdx: Language not supported
- docs/api/authentication.mdx: Language not supported
- docs/api/endpoints.mdx: Language not supported
- docs/api/overview.mdx: Language not supported
- docs/components/button.mdx: Language not supported
- docs/components/dialog.mdx: Language not supported
- docs/components/folder-tree.mdx: Language not supported
- docs/components/input.mdx: Language not supported
- docs/components/menu.mdx: Language not supported
- docs/components/nav-menu.mdx: Language not supported
- docs/components/note.mdx: Language not supported
…ss various components
…er and API management
… clean up redundant code
…dability and maintainability
…ce RolesManagement to display permissions for admin role
…rity across various sections
…ptions for better understanding
- Cleaned up import statements for better readability. - Consolidated error handling responses in user-related API routes. - Improved permission checks for user actions. - Enhanced password handling in user creation and reset processes. - Updated resource configuration to maintain consistency in naming conventions. - Refined error handling utilities for better clarity and maintainability. - Adjusted hooks for user and key management to streamline API interactions. - Ensured consistent formatting and structure across various schema definitions. - Improved overall code readability and maintainability by applying consistent formatting.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces several updates to the project, including improvements to the Docker setup, content management, and documentation. Key changes include switching the Docker base image, adding new content-layer configurations, and enhancing the project's documentation with metadata, sidebar navigation, and API references.
Docker and Build System Updates:
.dockerignoreto include.contentlayer/anddocker-compose.*files for better build context management.node:20.14.0-alpine3.20tonode:jod-bookworm-slimand addedopensslinstallation in the build process. [1] [2]Makefilewith apushtarget for building and pushing Docker images to a repository.docker-compose.system.ymlfile for running the application with production settings.Content Management Enhancements:
contentlayer.config.tsto define document types and configure MDX processing with plugins likeremark-gfmandrehype-slug.button.mdxandinstallation.mdx, to provide a foundation for documentation. [1] [2]Documentation Improvements:
meta.tsxfile to define metadata for the documentation, including SEO optimizations and OpenGraph settings.sidebar.tsxfile to define navigation structure for the documentation, grouping pages into categories like "Getting Started" and "API Reference."toc.tsxfile to define a table of contents for the documentation, detailing sections and pages for each topic.docs/api/authentication.mdxanddocs/api/endpoints.mdx, covering topics like authentication, endpoints, and best practices. [1] [2]