# r1eox/arab-pure-staff1 architecture

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

- Interactive diagram: https://gitdiagram.com/r1eox/arab-pure-staff1
- Repository: https://github.com/r1eox/arab-pure-staff1

## Overview

Unified Admin Dashboard is a browser-based shell for navigating six independently maintained admin sections. The documented user flow is to open the shell, select a section, and view it in an iframe; the configuration maps section keys to local entry pages. Shared code provides role-to-section permissions and prefix-scoped LocalStorage. The README documents the iframe behavior, but sampled source does not show how the shell loads configuration or whether sections use the shared helpers, so those links are omitted.

Main entry points: [`index.html`](https://github.com/r1eox/arab-pure-staff1/blob/main/index.html) (Dashboard shell), [`shared/config.js`](https://github.com/r1eox/arab-pure-staff1/blob/main/shared/config.js) (Routes and prefixes), [`shared/storage.js`](https://github.com/r1eox/arab-pure-staff1/blob/main/shared/storage.js) (Scoped storage), [`موقع افنت/index.html`](https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%85%D9%88%D9%82%D8%B9%20%D8%A7%D9%81%D9%86%D8%AA/index.html) (Events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Dashboard shell"]
  node_dashboard["Dashboard shell<br/>[index.html]"]
end

subgraph group_shared["Shared utilities"]
  node_config["Routes and prefixes<br/>[config.js]"]
  node_permissions["Role permissions<br/>[permissions.js]"]
  node_storage["Scoped storage<br/>[storage.js]"]
end

subgraph group_sections["Admin sections"]
  node_events["Events<br/>[index.html]"]
  node_interviews["Interviews<br/>[index.html]"]
  node_raqabh["Raqabh<br/>[index.html]"]
  node_roles["Roles<br/>[index.html]"]
  node_scenario["Scenario<br/>[index.html]"]
  node_ban["Ban team<br/>[index.html]"]
end

node_user(("Dashboard user"))
node_localstorage[("Browser LocalStorage")]

node_user -->|"opens"| node_dashboard
node_dashboard -->|"opens in iframe"| node_events
node_dashboard -->|"opens in iframe"| node_interviews
node_dashboard -->|"opens in iframe"| node_raqabh
node_dashboard -->|"opens in iframe"| node_roles
node_dashboard -->|"opens in iframe"| node_scenario
node_dashboard -->|"opens in iframe"| node_ban
node_config -->|"maps route"| node_events
node_config -->|"maps route"| node_interviews
node_config -->|"maps route"| node_raqabh
node_config -->|"maps route"| node_roles
node_config -->|"maps route"| node_scenario
node_config -->|"maps route"| node_ban
node_storage -->|"reads prefixes"| node_config
node_storage -->|"reads and writes"| node_localstorage

click node_dashboard "https://github.com/r1eox/arab-pure-staff1/blob/main/index.html"
click node_config "https://github.com/r1eox/arab-pure-staff1/blob/main/shared/config.js"
click node_permissions "https://github.com/r1eox/arab-pure-staff1/blob/main/shared/permissions.js"
click node_storage "https://github.com/r1eox/arab-pure-staff1/blob/main/shared/storage.js"
click node_events "https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%85%D9%88%D9%82%D8%B9%20%D8%A7%D9%81%D9%86%D8%AA/index.html"
click node_interviews "https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%82%D8%B3%D9%85%20%D8%A7%D9%86%D8%AA%D8%B1%D9%81%D9%8A%D9%88/index.html"
click node_raqabh "https://github.com/r1eox/arab-pure-staff1/blob/main/%D8%B1%D9%82%D8%A7%D8%A8%D8%A9/index.html"
click node_roles "https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%82%D8%B3%D9%85%20%D8%B1%D9%88%D9%84%D8%B2/index.html"
click node_scenario "https://github.com/r1eox/arab-pure-staff1/blob/main/%D8%B3%D9%8A%D9%86%D8%A7%D8%B1%D9%8A%D9%88%20%D8%AA%D9%8A%D9%85/index.html"
click node_ban "https://github.com/r1eox/arab-pure-staff1/blob/main/%D8%A8%D8%A7%D9%86%D8%AF%20%D8%AA%D9%8A%D9%85/index.html"

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_dashboard,node_user toneBlue
class node_config,node_permissions,node_storage,node_localstorage toneAmber
class node_events,node_interviews,node_raqabh,node_roles,node_scenario,node_ban toneMint
```

## Components

### Dashboard shell

- [Dashboard shell](https://github.com/r1eox/arab-pure-staff1/blob/main/index.html): `index.html`

### Shared utilities

- [Routes and prefixes](https://github.com/r1eox/arab-pure-staff1/blob/main/shared/config.js): `shared/config.js`
- [Role permissions](https://github.com/r1eox/arab-pure-staff1/blob/main/shared/permissions.js): `shared/permissions.js`
- [Scoped storage](https://github.com/r1eox/arab-pure-staff1/blob/main/shared/storage.js): `shared/storage.js`

### Admin sections

- [Events](https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%85%D9%88%D9%82%D8%B9%20%D8%A7%D9%81%D9%86%D8%AA/index.html): `موقع افنت/index.html`
- [Interviews](https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%82%D8%B3%D9%85%20%D8%A7%D9%86%D8%AA%D8%B1%D9%81%D9%8A%D9%88/index.html): `قسم انترفيو/index.html`
- [Raqabh](https://github.com/r1eox/arab-pure-staff1/blob/main/%D8%B1%D9%82%D8%A7%D8%A8%D8%A9/index.html): `رقابة/index.html`
- [Roles](https://github.com/r1eox/arab-pure-staff1/blob/main/%D9%82%D8%B3%D9%85%20%D8%B1%D9%88%D9%84%D8%B2/index.html): `قسم رولز/index.html`
- [Scenario](https://github.com/r1eox/arab-pure-staff1/blob/main/%D8%B3%D9%8A%D9%86%D8%A7%D8%B1%D9%8A%D9%88%20%D8%AA%D9%8A%D9%85/index.html): `سيناريو تيم/index.html`
- [Ban team](https://github.com/r1eox/arab-pure-staff1/blob/main/%D8%A8%D8%A7%D9%86%D8%AF%20%D8%AA%D9%8A%D9%85/index.html): `باند تيم/index.html`

### Other components

- **Dashboard user**
- **Browser LocalStorage**

## Connections

- Dashboard user → Dashboard shell: opens (evidence: `README.md`)
- Dashboard shell → Events: opens in iframe (evidence: `README.md`)
- Dashboard shell → Interviews: opens in iframe (evidence: `README.md`)
- Dashboard shell → Raqabh: opens in iframe (evidence: `README.md`)
- Dashboard shell → Roles: opens in iframe (evidence: `README.md`)
- Dashboard shell → Scenario: opens in iframe (evidence: `README.md`)
- Dashboard shell → Ban team: opens in iframe (evidence: `README.md`)
- Routes and prefixes → Events: maps route (evidence: `shared/config.js`)
- Routes and prefixes → Interviews: maps route (evidence: `shared/config.js`)
- Routes and prefixes → Raqabh: maps route (evidence: `shared/config.js`)
- Routes and prefixes → Roles: maps route (evidence: `shared/config.js`)
- Routes and prefixes → Scenario: maps route (evidence: `shared/config.js`)
- Routes and prefixes → Ban team: maps route (evidence: `shared/config.js`)
- Scoped storage → Routes and prefixes: reads prefixes (evidence: `shared/storage.js`)
- Scoped storage → Browser LocalStorage: reads and writes (evidence: `shared/storage.js`)
