dashpub icon indicating copy to clipboard operation
dashpub copied to clipboard

WIP: Sync with fork

Open livehybrid opened this issue 11 months ago • 0 comments

Overview of updates

Functionality Enhancements

  • Dashboard Parsing: Dashboards and their tags can now be dynamically parsed and selected during project setup, allowing for greater flexibility in dashboard management.
  • JWT Authentication: The introduction of simple JWT-based authentication mechanisms based on specific user/pass combo defined in environment variables..

CLI Tool Enhancements

cli/init.js

  • Introduced parseDashboardsAndTags function to parse dashboards and associated tags from environment variables or prompts.
  • Introduced functionality to inject custom visualizations in a folder defined in DASHPUB_CUSTOM_VIZ_PATH

Template Updates

package.json Dependencies

  • Added jsonwebtoken and cookies-next to dependencies for handling JWT authentication and cookies management.

New Login Component

  • Introduced a new login.js component in template/src/components for handling user authentication with a simple Splunk UI styled login form.

Page Component Styling

  • Minor styling adjustments to template/src/components/page.js for improved layout and readability.

Middleware for Authentication

  • Implemented middleware in template/src/middleware.ts to verify JWT tokens and manage access control, if enabled.

Dashboard Page Enhancements

  • Updated template/src/pages/[dashboard].jsx to support dynamic dashboard rendering with enhanced URL handling for images.

API Data Handling

  • Improved error handling and token authentication in template/src/pages/api/data/[dsid].js.

Login API Endpoint

  • Added a new API endpoint template/src/pages/api/login.js for handling login requests and token generation.

Login Page

  • Created a new login page template/src/pages/login.jsx integrating the Login component with overall theme support.

livehybrid avatar Feb 27 '24 22:02 livehybrid