# yyhsong/ivue2pro architecture

> Architecture diagram of the GitHub repository yyhsong/ivue2pro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yyhsong/ivue2pro
- Repository: https://github.com/yyhsong/ivue2pro

## Overview

iVue2Pro is a Vue 2 enterprise-data analysis dashboard. A user navigates among operating, financial, and tax analysis views; each view requests local JSON through ApiSrv and displays the returned data in ECharts. The graph includes the app shell, routing, and user-state layer. The README identifies the Vue/Element UI/ECharts stack; detailed behavior for the finance view is only partially excerpted, so its sub-analyses are summarized rather than expanded.

Main entry points: [`src/router/index.js`](https://github.com/yyhsong/ivue2pro/blob/master/src/router/index.js) (Page router), [`src/App.vue`](https://github.com/yyhsong/ivue2pro/blob/master/src/App.vue) (App shell), [`src/api/ApiSrv.js`](https://github.com/yyhsong/ivue2pro/blob/master/src/api/ApiSrv.js) (JSON API service), [`src/main.js`](https://github.com/yyhsong/ivue2pro/blob/master/src/main.js) (Vue bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Dashboard shell"]
  node_bootstrap["Vue bootstrap<br/>[main.js]"]
  node_app["App shell<br/>[App.vue]"]
  node_menu["Main menu<br/>[MainMenu.vue]"]
  node_router["Page router<br/>[index.js]"]
  node_store["User state<br/>[index.js]"]
end

subgraph group_analysis["Business analysis"]
  node_operation["Operating analysis"]
  node_finance["Financial analysis<br/>[CompanyFinance.vue]"]
  node_taxation["Tax analysis"]
end

subgraph group_data["Analysis data"]
  node_api["JSON API service<br/>[ApiSrv.js]"]
  node_datasets[("Analysis JSON datasets")]
end

node_user(("Dashboard user"))

node_user -->|"uses dashboard"| node_app
node_bootstrap -->|"mounts"| node_app
node_bootstrap -->|"registers"| node_router
node_bootstrap -->|"registers"| node_store
node_app -->|"renders"| node_menu
node_app -->|"reads user"| node_store
node_menu -->|"links routes"| node_router
node_router -->|"routes to"| node_operation
node_router -->|"routes to"| node_finance
node_router -->|"routes to"| node_taxation
node_operation -->|"requests datasets"| node_api
node_finance -->|"requests datasets"| node_api
node_taxation -->|"requests datasets"| node_api
node_api -->|"fetches JSON"| node_datasets

click node_bootstrap "https://github.com/yyhsong/ivue2pro/blob/master/src/main.js"
click node_app "https://github.com/yyhsong/ivue2pro/blob/master/src/App.vue"
click node_menu "https://github.com/yyhsong/ivue2pro/blob/master/src/components/MainMenu.vue"
click node_router "https://github.com/yyhsong/ivue2pro/blob/master/src/router/index.js"
click node_store "https://github.com/yyhsong/ivue2pro/blob/master/src/store/index.js"
click node_operation "https://github.com/yyhsong/ivue2pro/blob/master/src/views/CompanyOperation.vue"
click node_finance "https://github.com/yyhsong/ivue2pro/blob/master/src/views/CompanyFinance.vue"
click node_taxation "https://github.com/yyhsong/ivue2pro/blob/master/src/views/CompanyTaxation.vue"
click node_api "https://github.com/yyhsong/ivue2pro/blob/master/src/api/ApiSrv.js"
click node_datasets "https://github.com/yyhsong/ivue2pro/tree/master/static/data"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_app,node_menu,node_router,node_store,node_user toneBlue
class node_operation,node_finance,node_taxation toneAmber
class node_api,node_datasets toneMint
```

## Components

### Dashboard shell

- [Vue bootstrap](https://github.com/yyhsong/ivue2pro/blob/master/src/main.js): `src/main.js`
- [App shell](https://github.com/yyhsong/ivue2pro/blob/master/src/App.vue): `src/App.vue`
- [Main menu](https://github.com/yyhsong/ivue2pro/blob/master/src/components/MainMenu.vue): `src/components/MainMenu.vue`
- [Page router](https://github.com/yyhsong/ivue2pro/blob/master/src/router/index.js): `src/router/index.js`
- [User state](https://github.com/yyhsong/ivue2pro/blob/master/src/store/index.js): `src/store/index.js`

### Business analysis

- [Operating analysis](https://github.com/yyhsong/ivue2pro/blob/master/src/views/CompanyOperation.vue): `src/views/CompanyOperation.vue`
- [Financial analysis](https://github.com/yyhsong/ivue2pro/blob/master/src/views/CompanyFinance.vue): `src/views/CompanyFinance.vue`
- [Tax analysis](https://github.com/yyhsong/ivue2pro/blob/master/src/views/CompanyTaxation.vue): `src/views/CompanyTaxation.vue`

### Analysis data

- [JSON API service](https://github.com/yyhsong/ivue2pro/blob/master/src/api/ApiSrv.js): `src/api/ApiSrv.js`
- [Analysis JSON datasets](https://github.com/yyhsong/ivue2pro/tree/master/static/data): `static/data`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → App shell: uses dashboard (evidence: `src/App.vue`)
- Vue bootstrap → App shell: mounts (evidence: `src/main.js`)
- Vue bootstrap → Page router: registers (evidence: `src/main.js`)
- Vue bootstrap → User state: registers (evidence: `src/main.js`)
- App shell → Main menu: renders (evidence: `src/App.vue`)
- App shell → User state: reads user (evidence: `src/App.vue`)
- Main menu → Page router: links routes (evidence: `src/components/MainMenu.vue`)
- Page router → Operating analysis: routes to (evidence: `src/router/index.js`)
- Page router → Financial analysis: routes to (evidence: `src/router/index.js`)
- Page router → Tax analysis: routes to (evidence: `src/router/index.js`)
- Operating analysis → JSON API service: requests datasets (evidence: `src/views/CompanyOperation.vue`)
- Financial analysis → JSON API service: requests datasets (evidence: `src/views/CompanyFinance.vue`)
- Tax analysis → JSON API service: requests datasets (evidence: `src/views/CompanyTaxation.vue`)
- JSON API service → Analysis JSON datasets: fetches JSON (evidence: `src/api/ApiSrv.js`)
