# khairulhasanrakib/hub-admin architecture

> Architecture diagram of the GitHub repository khairulhasanrakib/hub-admin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/khairulhasanrakib/hub-admin
- Repository: https://github.com/khairulhasanrakib/hub-admin

## Overview

##### Project type and purpose
- A Python-based blockchain simulator (Block_Chain/block.py, simulate.py, simulate2.py)
- A collection of PowerShell scripts (sys_monitor.ps1, tracert.ps1, progress.ps1, etc.) for system diagnostics and data collection
- The dashboard consumes data produced by these scripts (e.g. files_count.xml, output logs) and presents charts, calendars, maps, and widgets using JS plugins.

##### File structure
- Top level
- index.html → entry point for the dashboard
- README.md → minimal project description
- files_count.xml → example data file
- cdn-cgi → Cloudflare helper scripts (deployed with your static assets)
- YT.ps1, myscript.ps1, … → PowerShell scripts for monitoring, tracing, progress reporting
- Block_Chain/ → Python modules to simulate or generate blockchain data
- hud/ → all dashboard web assets
– hud/assets/css, js, img, video, webfonts → styling and multimedia
– hud/assets/plugins → third-party JS libraries (FullCalendar, ApexCharts, Chart.js, jVectorMap, Highlight.js, etc.)
– .html pages (analytics.html, calendar.html, widgets.html, etc.)

##### Don’t overthink—be comprehensive
- Every plugin, asset folder, and external script reference to show the breadth of the front-end stack

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client UI Layer
    subgraph "Client UI" 
        direction TB
        Browser["Browser"]:::client
        subgraph "HTML Pages" 
            direction TB
            Analytics["analytics.html"]:::client
            Calendar["calendar.html"]:::client
            Widgets["widgets.html"]:::client
            EmailInbox["email_inbox.html"]:::client
            Helper["helper.html"]:::client
            Login["page_login.html"]:::client
            POSOrder["pos_customer_order.html"]:::client
            Profile["profile.html"]:::client
            Settings["settings.html"]:::client
        end
        subgraph "Assets & Plugins"
            direction TB
            Assets["hud/assets"]:::client
            Plugins["hud/assets/plugins"]:::client
            DemoScripts["hud/assets/js/demo"]:::client
        end
        Browser -->|"renders"| Analytics
        Browser -->|"renders"| Calendar
        Browser -->|"renders"| Widgets
        Browser -->|"renders"| EmailInbox
        Browser -->|"renders"| Helper
        Browser -->|"renders"| Login
        Browser -->|"renders"| POSOrder
        Browser -->|"renders"| Profile
        Browser -->|"renders"| Settings
        Browser -->|"loads CSS/JS/Images"| Assets
        Browser -->|"loads plugins"| Plugins
        Browser -->|"runs demo scripts"| DemoScripts
    end

    %% Hosting / CDN Layer
    subgraph "Hosting & CDN"
        direction TB
        WebServer["Static Web Server"]:::hosting
        CDN["Cloudflare CDN (cdn-cgi/scripts)"]:::external
    end

    WebServer -->|"HTTP GET *.html/CSS/JS"| Browser
    CDN -->|"serves cdn-cgi scripts"| Browser

    %% Data Storage Layer
    subgraph "Data Storage"
        direction TB
        DataFiles["files_count.xml"]:::dataStore
    end

    DataFiles -->|"served as static"| WebServer

    %% Data Generation Layer
    subgraph "Data Generation"
        direction TB
        subgraph "Blockchain Simulator (Python)" 
            direction TB
            BlockPy["block.py"]:::dataGen
            Sim1["simulate.py"]:::dataGen
            Sim2["simulate2.py"]:::dataGen
        end
        subgraph "System Monitor & Diagnostics (PowerShell)"
            direction TB
            YT["YT.ps1"]:::dataGen
            MyScript["myscript.ps1"]:::dataGen
            Progress1["progress.ps1"]:::dataGen
            Progress2["progress2.ps1"]:::dataGen
            Progress3["progress3.ps1"]:::dataGen
            Speed2["speed2.ps1"]:::dataGen
            SysMon["sys_monitor.ps1"]:::dataGen
            Tracert1["tracert.ps1"]:::dataGen
            Tracert2["tracert2.ps1"]:::dataGen
        end
    end

    BlockPy -->|"writes XML"| DataFiles
    Sim1 -->|"writes XML"| DataFiles
    Sim2 -->|"writes XML"| DataFiles

    YT -->|"writes logs"| DataFiles
    MyScript -->|"writes logs"| DataFiles
    Progress1 -->|"writes logs"| DataFiles
    Progress2 -->|"writes logs"| DataFiles
    Progress3 -->|"writes logs"| DataFiles
    Speed2 -->|"writes logs"| DataFiles
    SysMon -->|"writes logs"| DataFiles
    Tracert1 -->|"writes logs"| DataFiles
    Tracert2 -->|"writes logs"| DataFiles

    %% Click Events
    click BlockPy "https://github.com/khairulhasanrakib/hub-admin/blob/main/Block_Chain/block.py"
    click Sim1 "https://github.com/khairulhasanrakib/hub-admin/blob/main/Block_Chain/simulate.py"
    click Sim2 "https://github.com/khairulhasanrakib/hub-admin/blob/main/Block_Chain/simulate2.py"
    click YT "https://github.com/khairulhasanrakib/hub-admin/blob/main/YT.ps1"
    click MyScript "https://github.com/khairulhasanrakib/hub-admin/blob/main/myscript.ps1"
    click Progress1 "https://github.com/khairulhasanrakib/hub-admin/blob/main/progress.ps1"
    click Progress2 "https://github.com/khairulhasanrakib/hub-admin/blob/main/progress2.ps1"
    click Progress3 "https://github.com/khairulhasanrakib/hub-admin/blob/main/progress3.ps1"
    click Speed2 "https://github.com/khairulhasanrakib/hub-admin/blob/main/speed2.ps1"
    click SysMon "https://github.com/khairulhasanrakib/hub-admin/blob/main/sys_monitor.ps1"
    click Tracert1 "https://github.com/khairulhasanrakib/hub-admin/blob/main/tracert.ps1"
    click Tracert2 "https://github.com/khairulhasanrakib/hub-admin/blob/main/tracert2.ps1"
    click DataFiles "https://github.com/khairulhasanrakib/hub-admin/blob/main/files_count.xml"
    click Index "https://github.com/khairulhasanrakib/hub-admin/blob/main/index.html"
    click Analytics "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/analytics.html"
    click Calendar "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/calendar.html"
    click Widgets "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/widgets.html"
    click EmailInbox "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/email_inbox.html"
    click Helper "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/helper.html"
    click Login "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/page_login.html"
    click POSOrder "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/pos_customer_order.html"
    click Profile "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/profile.html"
    click Settings "https://github.com/khairulhasanrakib/hub-admin/blob/main/hud/settings.html"
    click Assets "https://github.com/khairulhasanrakib/hub-admin/tree/main/hud/assets"
    click Plugins "https://github.com/khairulhasanrakib/hub-admin/tree/main/hud/assets/plugins"
    click DemoScripts "https://github.com/khairulhasanrakib/hub-admin/tree/main/hud/assets/js/demo"
    click CDN "https://github.com/khairulhasanrakib/hub-admin/tree/main/cdn-cgi/scripts"

    %% Styles
    classDef dataGen fill:#D6EAF8,stroke:#2980B9,color:#1B4F72
    classDef dataStore fill:#FCF3CF,stroke:#B7950B,color:#7D6608
    classDef hosting fill:#E5E7E9,stroke:#566573,color:#1C2833
    classDef client fill:#D5F5E3,stroke:#27AE60,color:#145A32
    classDef external fill:#F5CBA7,stroke:#BA4A00,color:#78281F
```
