How unmugviolet/portfolio works
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: DesktopAppsLayout.vue Windowed desktop shell · App.vue Root application · index.js Route selection · Loader.vue Startup and login
Components 21
Vue Client
Single-page Windows XP portfolio experience.
- Vite entry
index.html - Application bootstrap
src/main.js - Root application
src/App.vue - Route selection · Selects startup and desktop views.
src/router/index.js - Startup and login
src/views/Loader.vue - Desktop view · Hosts launchable portfolio applications.
src/views/Office.vue - Login flow UI · Startup steps and login form.
src/components/Loading/Login.vue - Windowed desktop shell · Reusable desktop, window chrome, and header.
src/layouts/DesktopAppsLayout.vue - Window state · Tracks lifecycle, active/minimized windows, and app selection.
src/stores/windowsStore.js - Cross-cutting state · Connection, locale, volume, and navigation state.
src/stores/connectionStore.js - Portfolio windows · CV, projects, services, documents, contact, terminal, pictures, and notepad.
src/components/Windows/MyCV/MyCV.vue - Music player
src/components/Windows/Music/Music.vue - Calendar and ICS parser
src/components/Windows/Calendar/Calendar.vue - Document metadata
src/MetaUpdater.vue
Content & Media
Static portfolio data and embedded assets.
- Window catalog
src/data/windows-data.json - Portfolio content · CV, project, and service records.
src/data/cv-data.json - Translations · English and French resources.
src/locales/en.json - Media, calendar, and game assets · Playlist audio, ICS feeds, and DOOM archive.
Build & Delivery
Static-site packaging and deployment pipeline.
- Build and styles
sass/main.scss - Nginx production image · Serves the built static site.
Dockerfile - CI/CD pipeline · Builds, analyzes, and deploys the containerized site.
Jenkinsfile
Connections 21
- 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