# coscup/2024 architecture

> Architecture diagram of the GitHub repository coscup/2024, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/coscup/2024
- Repository: https://github.com/coscup/2024

## Overview

##### Main Components Layer
- Divide the application into these major sections:
- Frontend Application (Vue.js)
- Build/Deploy Pipeline
- Static Assets
- Pre-build Scripts

##### Frontend Architecture (Primary Focus)
a. Core Application Structure:
- Router (src/router)
- Modules System (src/modules)
- Components Layer (src/components)
- Pages Layer (src/pages)

b. Create distinct sections for key features:
- Internationalization System
- Connection to locales directory
- To i18n module
- Theme System
- To theme module
- Relationship with SCSS structure
- Session Management
- Link session components
- Connection to schedule management
- Integration
- Map components and utils

##### Build and Generation Pipeline
- Content Generation Scripts
- Resource Optimization
- Static Asset Processing
- To the deployment workflow (.github/workflows)

##### Specific sections

**[Frontend Application]**
- Vue.js Core
- Router
- Components
- Pages
- Modules System
- i18n
- Session
- Theme
- PopUp
- Progress
- Static Assets
- Images
- Fonts
- Styles (SCSS)
- Build Pipeline
- Pre-build Scripts
- Resource Optimization
- Deployment Workflow

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Main
        App["Frontend Application (Vue.js)"]
        BP["Build Pipeline"]
        SA["Static Assets"]
        PBS["Pre-build Scripts"]
    end

    subgraph "Vue.js Core"
        Router["Router System"]
        Components["Components Layer"]
        Pages["Pages Layer"]
        VueCore["Vue.js Core"]
    end

    subgraph "Modules"
        ModSys["Modules System"]
        I18n["i18n Module"]
        Session["Session Module"]
        Theme["Theme Module"]
        PopUp["PopUp Module"]
        Progress["Progress Module"]
        PWA["PWA Module"]
    end

    subgraph "Assets"
        Images["Images"]
        Fonts["Fonts"]
        SCSS["Styles (SCSS)"]
    end

    subgraph "Build"
        PreBuild["Pre-build Scripts"]
        ResOpt["Resource Optimization"]
        Deploy["Deployment Workflow"]
    end

    %% Core Connections
    App --> VueCore
    VueCore --> Router
    VueCore --> Components
    VueCore --> Pages

    %% Module Connections
    App --> ModSys
    ModSys --> I18n
    ModSys --> Session
    ModSys --> Theme
    ModSys --> PopUp
    ModSys --> Progress
    ModSys --> PWA

    %% Asset Connections
    SA --> Images
    SA --> Fonts
    SA --> SCSS
    SCSS -.-> Theme

    %% Build Connections
    BP --> PreBuild
    BP --> ResOpt
    BP --> Deploy

    %% Component Specific Connections
    Session -.-> Components
    Theme -.-> SCSS
    PopUp -.-> Components

    %% Styling
    classDef core fill:#2196F3,stroke:#1565C0,color:white
    classDef asset fill:#4CAF50,stroke:#2E7D32,color:white
    classDef build fill:#FF9800,stroke:#EF6C00,color:white
    classDef i18n fill:#9C27B0,stroke:#6A1B9A,color:white
    classDef module fill:#FFC107,stroke:#FFA000,color:black

    class App,VueCore,Router,Components,Pages core
    class SA,Images,Fonts,SCSS asset
    class BP,PreBuild,ResOpt,Deploy build
    class I18n i18n
    class ModSys,Session,Theme,PopUp,Progress,PWA module

    %% Click Events
    click App "https://github.com/coscup/2024/blob/master/src/App.vue"
    click Router "https://github.com/coscup/2024/blob/master/src/router/index.ts"
    click ModSys "https://github.com/coscup/2024/tree/master/src/modules/"
    click Components "https://github.com/coscup/2024/tree/master/src/components/"
    click Pages "https://github.com/coscup/2024/tree/master/src/pages/"
    click I18n "https://github.com/coscup/2024/tree/master/src/modules/i18n/"
    click Theme "https://github.com/coscup/2024/tree/master/src/modules/theme/"
    click Session "https://github.com/coscup/2024/tree/master/src/modules/session/"
    click PopUp "https://github.com/coscup/2024/tree/master/src/modules/pop-up/"
    click Progress "https://github.com/coscup/2024/tree/master/src/modules/progress/"
    click PWA "https://github.com/coscup/2024/tree/master/src/modules/pwa/"
    click SCSS "https://github.com/coscup/2024/tree/master/src/assets/scss/"
    click SA "https://github.com/coscup/2024/tree/master/src/assets/"
    click PreBuild "https://github.com/coscup/2024/tree/master/scripts/pre-build/"
    click Deploy "https://github.com/coscup/2024/blob/master/.github/workflows/Deploy.yml"
```
