# vadc123/so-chi-tieu-cong-tac architecture

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

- Interactive diagram: https://gitdiagram.com/vadc123/so-chi-tieu-cong-tac
- Repository: https://github.com/vadc123/so-chi-tieu-cong-tac

## Overview

The available files suggest a small offline-capable web app: the service worker precaches the app shell, serves page requests network-first with a cached fallback, and serves other same-origin GET requests cache-first. The HTML contents and any user-facing workflow are unavailable, so the graph does not infer app features or how the worker is registered. The manifest and icon paths are included in the worker’s shell list, but only the manifest appears in the file tree.

Main entry points: [`sw.js`](https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/sw.js) (Service worker), [`index.html`](https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/index.html) (App page), [`manifest.json`](https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/manifest.json) (App manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_app_shell["App page<br/>[index.html]"]
  node_manifest["App manifest<br/>[manifest.json]"]
end

subgraph group_offline["Offline support"]
  node_service_worker["Service worker<br/>[sw.js]"]
  node_cache[("Cache storage")]
end

node_browser(("Browser"))

node_browser -->|"dispatches events"| node_service_worker
node_service_worker -->|"pre-caches shell"| node_cache
node_service_worker -->|"reads and writes"| node_cache
node_service_worker -->|"caches fallback"| node_app_shell
node_service_worker -->|"caches shell asset"| node_manifest

click node_app_shell "https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/index.html"
click node_manifest "https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/manifest.json"
click node_service_worker "https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/sw.js"

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_app_shell,node_manifest,node_browser toneBlue
class node_service_worker,node_cache toneAmber
```

## Components

### App shell

- [App page](https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/index.html): `index.html`
- [App manifest](https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/manifest.json): `manifest.json`

### Offline support

- [Service worker](https://github.com/vadc123/so-chi-tieu-cong-tac/blob/main/sw.js): `sw.js`
- **Cache storage**

### Other components

- **Browser**

## Connections

- Browser → Service worker: dispatches events (evidence: `sw.js`)
- Service worker → Cache storage: pre-caches shell (evidence: `sw.js`)
- Service worker → Cache storage: reads and writes (evidence: `sw.js`)
- Service worker → App page: caches fallback (evidence: `sw.js`)
- Service worker → App manifest: caches shell asset (evidence: `sw.js`)
