# unmugviolet/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/unmugviolet/portfolio
- Repository: https://github.com/unmugviolet/portfolio

## Overview

#### Purpose and Entry Points
PortfolioXp is a Vue/Vite single-page personal portfolio styled as a Windows XP desktop. It launches through `index.html` and `src/main.js`, with `src/App.vue` composing application-level UI. Routing selects the loader and interactive desktop views via `src/router/index.js`, `src/views/Loader.vue`, and `src/views/Office.vue`.

#### Boot, Login, and Desktop Transition
The initial experience simulates Windows startup and login before exposing the portfolio desktop. Loading stages, authentication-like UI, and progress visuals are isolated in `src/components/Loading/Login.vue`, `src/components/Loading/LoginForm.vue`, and `src/components/Loading/Step1Loading.vue`. Connection/session state is centrally held in `src/stores/connectionStore.js`.

#### Windowed Application Shell
The Office view renders a desktop of launchable applications with shared window chrome, layouts, controls, and taskbar/header elements. `src/layouts/DesktopAppsLayout.vue`, `src/layouts/Window.vue`, and `src/components/Header/Header.vue` establish this reusable shell. Window lifecycle, active/minimized state, and app selection are managed by `src/stores/windowsStore.js`, with app metadata in `src/data/windows-data.json`.

#### Portfolio Applications and Content
Each portfolio feature is implemented as an in-desktop window: profile/CV, projects, services, documents, contact, terminal, pictures, and notepad. Major entry components include `src/components/Windows/MyCV/MyCV.vue`, `src/components/Windows/MyProjects.vue`, and `src/components/Windows/Services.vue`. Structured local content drives these screens through `src/data/cv-data.json`, `src/data/projects-data.json`, and `src/data/services-data.json`; project-specific panels live under `src/components/Windows/MyProjects/`.

#### Interactive Media and Embedded Experiences
The desktop includes local media and game experiences rather than backend-integrated services. Music playback is implemented by `src/components/Windows/Music/Music.vue` and `src/components/Windows/Music/Player.vue`, backed by playlist metadata in `src/data/playlist-data.json` and MP3s in `public/musics/`. Calendar parsing occurs in `src/components/Windows/Calendar/Calendar.vue` and `src/components/Windows/Calendar/icsParser.js`, consuming static ICS feeds in `public/calendar/`. DOOM assets are served from `public/game/DOOM-@evilution.zip`.

#### Shared Client State, Localization, and Metadata
Pinia-like store modules separate cross-cutting client state: locale, audio volume, window navigation, and connection flow in `src/stores/localeStore.js`, `src/stores/volumeStore.js`, and `src/stores/goBackStore.js`. English and French resources reside in `src/locales/en.json` and `src/locales/fr.json`. `src/MetaUpdater.vue` updates document metadata from application state/content.

#### Delivery Runtime and Infrastructure
The project is built with Vite and served as static frontend assets; Sass sources compile into the site styling (`sass/main.scss`, `src/index.css`). Production packaging uses `Dockerfile` with Nginx configuration in `nginx.conf`. CI/CD is defined in `Jenkinsfile` and includes SonarQube project configuration via `sonar-project.properties`; deployment targets a personal-server Docker environment described in the README.

Main entry points: [`src/layouts/DesktopAppsLayout.vue`](https://github.com/unmugviolet/portfolio/blob/main/src/layouts/DesktopAppsLayout.vue) (Windowed desktop shell), [`src/App.vue`](https://github.com/unmugviolet/portfolio/blob/main/src/App.vue) (Root application), [`src/router/index.js`](https://github.com/unmugviolet/portfolio/blob/main/src/router/index.js) (Route selection), [`src/views/Loader.vue`](https://github.com/unmugviolet/portfolio/blob/main/src/views/Loader.vue) (Startup and login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Vue Client"]
  node_entry["Vite entry<br/>HTML + bootstrap<br/>[index.html]"]
  node_main["Application bootstrap<br/>Vue entry<br/>[main.js]"]
  node_app["Root application<br/>Vue root<br/>[App.vue]"]
  node_router["Route selection<br/>Vue router<br/>[index.js]"]
  node_loader["Startup and login<br/>Vue view<br/>[Loader.vue]"]
  node_office["Desktop view<br/>Vue view<br/>[Office.vue]"]
  node_login["Login flow UI<br/>Vue components<br/>[Login.vue]"]
  node_desktop_shell["Windowed desktop shell<br/>Vue layouts"]
  node_window_store[("Window state<br/>Pinia store<br/>[windowsStore.js]")]
  node_client_stores[("Cross-cutting state<br/>Pinia stores<br/>[connectionStore.js]")]
  node_portfolio_apps["Portfolio windows<br/>Vue components<br/>[MyCV.vue]"]
  node_music["Music player<br/>Vue components<br/>[Music.vue]"]
  node_calendar["Calendar and ICS parser<br/>Vue component<br/>[Calendar.vue]"]
  node_metadata["Document metadata<br/>Vue component<br/>[MetaUpdater.vue]"]
end

subgraph group_content["Content &amp; Media"]
  node_window_catalog["Window catalog<br/>JSON data<br/>[windows-data.json]"]
  node_portfolio_data["Portfolio content<br/>JSON data<br/>[cv-data.json]"]
  node_localized_content["Translations<br/>JSON locales<br/>[en.json]"]
  node_media_assets["Media, calendar, and game assets<br/>Public assets"]
end

subgraph group_delivery["Build &amp; Delivery"]
  node_vite_styles["Build and styles<br/>Vite + Sass<br/>[main.scss]"]
  node_container{{"Nginx production image<br/>Docker runtime"}}
  node_ci["CI/CD pipeline<br/>Jenkins"]
end

node_entry -->|"loads"| node_main
node_main -->|"mounts"| node_app
node_app -->|"uses"| node_router
node_router -->|"startup route"| node_loader
node_router -->|"desktop route"| node_office
node_loader -->|"renders"| node_login
node_loader -->|"connection state"| node_client_stores
node_office -->|"renders"| node_desktop_shell
node_desktop_shell -->|"controls windows"| node_window_store
node_window_store -->|"reads app metadata"| node_window_catalog
node_desktop_shell -->|"hosts"| node_portfolio_apps
node_portfolio_apps -->|"reads content"| node_portfolio_data
node_desktop_shell -->|"hosts"| node_music
node_music -->|"plays audio"| node_media_assets
node_desktop_shell -->|"hosts"| node_calendar
node_calendar -->|"parses ICS feeds"| node_media_assets
node_app -->|"updates"| node_metadata
node_client_stores -->|"selects locale"| node_localized_content
node_vite_styles -->|"builds client"| node_entry
node_ci -->|"builds and deploys"| node_container
node_container -->|"serves build output"| node_vite_styles

click node_entry "https://github.com/unmugviolet/portfolio/blob/main/index.html"
click node_main "https://github.com/unmugviolet/portfolio/blob/main/src/main.js"
click node_app "https://github.com/unmugviolet/portfolio/blob/main/src/App.vue"
click node_router "https://github.com/unmugviolet/portfolio/blob/main/src/router/index.js"
click node_loader "https://github.com/unmugviolet/portfolio/blob/main/src/views/Loader.vue"
click node_office "https://github.com/unmugviolet/portfolio/blob/main/src/views/Office.vue"
click node_login "https://github.com/unmugviolet/portfolio/blob/main/src/components/Loading/Login.vue"
click node_desktop_shell "https://github.com/unmugviolet/portfolio/blob/main/src/layouts/DesktopAppsLayout.vue"
click node_window_store "https://github.com/unmugviolet/portfolio/blob/main/src/stores/windowsStore.js"
click node_client_stores "https://github.com/unmugviolet/portfolio/blob/main/src/stores/connectionStore.js"
click node_portfolio_apps "https://github.com/unmugviolet/portfolio/blob/main/src/components/Windows/MyCV/MyCV.vue"
click node_music "https://github.com/unmugviolet/portfolio/blob/main/src/components/Windows/Music/Music.vue"
click node_calendar "https://github.com/unmugviolet/portfolio/blob/main/src/components/Windows/Calendar/Calendar.vue"
click node_metadata "https://github.com/unmugviolet/portfolio/blob/main/src/MetaUpdater.vue"
click node_window_catalog "https://github.com/unmugviolet/portfolio/blob/main/src/data/windows-data.json"
click node_portfolio_data "https://github.com/unmugviolet/portfolio/blob/main/src/data/cv-data.json"
click node_localized_content "https://github.com/unmugviolet/portfolio/blob/main/src/locales/en.json"
click node_vite_styles "https://github.com/unmugviolet/portfolio/blob/main/sass/main.scss"
click node_container "https://github.com/unmugviolet/portfolio/blob/main/Dockerfile"
click node_ci "https://github.com/unmugviolet/portfolio/blob/main/Jenkinsfile"

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_entry,node_main,node_app,node_router,node_loader,node_office,node_login,node_desktop_shell,node_window_store,node_client_stores,node_portfolio_apps,node_music,node_calendar,node_metadata toneBlue
class node_window_catalog,node_portfolio_data,node_localized_content,node_media_assets toneAmber
class node_vite_styles,node_container,node_ci toneMint
```

## Components

### Vue Client

Single-page Windows XP portfolio experience.

- [Vite entry](https://github.com/unmugviolet/portfolio/blob/main/index.html): HTML + bootstrap · `index.html`
- [Application bootstrap](https://github.com/unmugviolet/portfolio/blob/main/src/main.js): Vue entry · `src/main.js`
- [Root application](https://github.com/unmugviolet/portfolio/blob/main/src/App.vue): Vue root · `src/App.vue`
- [Route selection](https://github.com/unmugviolet/portfolio/blob/main/src/router/index.js): Vue router · Selects startup and desktop views. · `src/router/index.js`
- [Startup and login](https://github.com/unmugviolet/portfolio/blob/main/src/views/Loader.vue): Vue view · `src/views/Loader.vue`
- [Desktop view](https://github.com/unmugviolet/portfolio/blob/main/src/views/Office.vue): Vue view · Hosts launchable portfolio applications. · `src/views/Office.vue`
- [Login flow UI](https://github.com/unmugviolet/portfolio/blob/main/src/components/Loading/Login.vue): Vue components · Startup steps and login form. · `src/components/Loading/Login.vue`
- [Windowed desktop shell](https://github.com/unmugviolet/portfolio/blob/main/src/layouts/DesktopAppsLayout.vue): Vue layouts · Reusable desktop, window chrome, and header. · `src/layouts/DesktopAppsLayout.vue`
- [Window state](https://github.com/unmugviolet/portfolio/blob/main/src/stores/windowsStore.js): Pinia store · Tracks lifecycle, active/minimized windows, and app selection. · `src/stores/windowsStore.js`
- [Cross-cutting state](https://github.com/unmugviolet/portfolio/blob/main/src/stores/connectionStore.js): Pinia stores · Connection, locale, volume, and navigation state. · `src/stores/connectionStore.js`
- [Portfolio windows](https://github.com/unmugviolet/portfolio/blob/main/src/components/Windows/MyCV/MyCV.vue): Vue components · CV, projects, services, documents, contact, terminal, pictures, and notepad. · `src/components/Windows/MyCV/MyCV.vue`
- [Music player](https://github.com/unmugviolet/portfolio/blob/main/src/components/Windows/Music/Music.vue): Vue components · `src/components/Windows/Music/Music.vue`
- [Calendar and ICS parser](https://github.com/unmugviolet/portfolio/blob/main/src/components/Windows/Calendar/Calendar.vue): Vue component · `src/components/Windows/Calendar/Calendar.vue`
- [Document metadata](https://github.com/unmugviolet/portfolio/blob/main/src/MetaUpdater.vue): Vue component · `src/MetaUpdater.vue`

### Content & Media

Static portfolio data and embedded assets.

- [Window catalog](https://github.com/unmugviolet/portfolio/blob/main/src/data/windows-data.json): JSON data · `src/data/windows-data.json`
- [Portfolio content](https://github.com/unmugviolet/portfolio/blob/main/src/data/cv-data.json): JSON data · CV, project, and service records. · `src/data/cv-data.json`
- [Translations](https://github.com/unmugviolet/portfolio/blob/main/src/locales/en.json): JSON locales · English and French resources. · `src/locales/en.json`
- **Media, calendar, and game assets**: Public assets · Playlist audio, ICS feeds, and DOOM archive.

### Build & Delivery

Static-site packaging and deployment pipeline.

- [Build and styles](https://github.com/unmugviolet/portfolio/blob/main/sass/main.scss): Vite + Sass · `sass/main.scss`
- [Nginx production image](https://github.com/unmugviolet/portfolio/blob/main/Dockerfile): Docker runtime · Serves the built static site. · `Dockerfile`
- [CI/CD pipeline](https://github.com/unmugviolet/portfolio/blob/main/Jenkinsfile): Jenkins · Builds, analyzes, and deploys the containerized site. · `Jenkinsfile`

## Connections

- Vite entry → Application bootstrap: loads
- Application bootstrap → Root application: mounts
- Root application → Route selection: uses
- Route selection → Startup and login: startup route
- Route selection → Desktop view: desktop route
- Startup and login → Login flow UI: renders
- Startup and login → Cross-cutting state: connection state
- Desktop view → Windowed desktop shell: renders
- Windowed desktop shell → Window state: controls windows
- Window state → Window catalog: reads app metadata
- Windowed desktop shell → Portfolio windows: hosts
- Portfolio windows → Portfolio content: reads content
- Windowed desktop shell → Music player: hosts
- Music player → Media, calendar, and game assets: plays audio
- Windowed desktop shell → Calendar and ICS parser: hosts
- Calendar and ICS parser → Media, calendar, and game assets: parses ICS feeds
- Root application → Document metadata: updates
- Cross-cutting state → Translations: selects locale
- Build and styles → Vite entry: builds client
- CI/CD pipeline → Nginx production image: builds and deploys
- Nginx production image → Build and styles: serves build output
