# awadwd/arknights-authorization-tool architecture

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

- Interactive diagram: https://gitdiagram.com/awadwd/arknights-authorization-tool
- Repository: https://github.com/awadwd/arknights-authorization-tool

## Overview

This UniApp is a cross-platform Arknights merchandise pass lookup and collection tool. Users can browse and search merchandise data, inspect items, scan barcodes, track collections, and use entertainment features such as simulated draws and daily recommendations. Settings manage data sources and preferences; the README documents GitHub/GitCode mirrors as the default source and KnowCloud as an optional integration. Page-level implementation is represented from the supplied tree and excerpts; unsampled routes and calls are not inferred.

Main entry points: [`packageA/Setting/Setting.vue`](https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/Setting/Setting.vue) (Data and preferences), [`pages/Search/Search.vue`](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/Search/Search.vue) (Merchandise search), [`pages/list/list.vue`](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/list/list.vue) (Browse listings), [`pages/index/index.vue`](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/index/index.vue) (Home and updates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Browse and search"]
  node_home["Home and updates<br/>[index.vue]"]
  node_search["Merchandise search<br/>[Search.vue]"]
  node_listing["Browse listings<br/>[list.vue]"]
  node_item_info["Item information<br/>[box_info.vue]"]
  node_ai_search["AI search<br/>[Ai_Search.vue]"]
  node_barcode["Barcode lookup<br/>[scan_barcode.vue]"]
end

subgraph group_collection["Collection tools"]
  node_collection_share["Collection and sharing<br/>[card_share.vue]"]
  node_incomplete["Incomplete items"]
end

subgraph group_play["Entertainment"]
  node_gacha["Simulated draws"]
  node_daily["Daily recommendation"]
  node_my_box["My star box<br/>[mystarbox.vue]"]
end

subgraph group_support["Settings and support"]
  node_settings["Data and preferences<br/>[Setting.vue]"]
  node_custom_words["Custom search words<br/>[custom-words.vue]"]
  node_calendar["Calendar<br/>[calendar.vue]"]
  node_feedback["Feedback"]
end

node_user(("User"))
node_mirrors{{"GitHub/GitCode mirrors"}}
node_knowcloud{{"KnowCloud"}}
node_local_data[("Local app storage")]

node_user -->|"opens"| node_home
node_user -->|"searches"| node_search
node_user -->|"browses"| node_listing
node_user -->|"scans"| node_barcode
node_user -->|"tracks collection"| node_collection_share
node_user -->|"simulates draws"| node_gacha
node_user -->|"gets recommendation"| node_daily
node_user -->|"configures"| node_settings
node_home -.->|"loads data"| node_mirrors
node_search -.->|"requests live data"| node_knowcloud
node_listing -.->|"requests live data"| node_knowcloud
node_settings -.->|"downloads updates"| node_mirrors
node_settings -.->|"refreshes data"| node_knowcloud
node_barcode -->|"downloads data"| node_mirrors
node_search -.->|"stores favorites"| node_local_data
node_listing -.->|"stores favorites"| node_local_data
node_settings -.->|"manages words"| node_custom_words

click node_home "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/index/index.vue"
click node_search "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/Search/Search.vue"
click node_listing "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/list/list.vue"
click node_item_info "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/box_info/box_info.vue"
click node_ai_search "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/Ai_Search/Ai_Search.vue"
click node_barcode "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/scan_barcode/scan_barcode.vue"
click node_collection_share "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/card_share/card_share.vue"
click node_incomplete "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/incomplete_list/incomplete_list.vue"
click node_gacha "https://github.com/awadwd/arknights-authorization-tool/blob/master/packageB/pages/gacha_simulated/gacha_simulated.vue"
click node_daily "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/daily_recommend/daily_recommend.vue"
click node_my_box "https://github.com/awadwd/arknights-authorization-tool/blob/master/packageB/pages/mystarbox/mystarbox.vue"
click node_settings "https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/Setting/Setting.vue"
click node_custom_words "https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/custom-words/custom-words.vue"
click node_calendar "https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/calendar/calendar.vue"
click node_feedback "https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/box_feedback_new/box_feedback_new.vue"

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_home,node_search,node_listing,node_item_info,node_ai_search,node_barcode,node_user toneBlue
class node_collection_share,node_incomplete,node_local_data toneAmber
class node_gacha,node_daily,node_my_box toneMint
class node_settings,node_custom_words,node_calendar,node_feedback toneRose
class node_mirrors,node_knowcloud toneIndigo
```

## Components

### Browse and search

- [Home and updates](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/index/index.vue): `pages/index/index.vue`
- [Merchandise search](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/Search/Search.vue): `pages/Search/Search.vue`
- [Browse listings](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/list/list.vue): `pages/list/list.vue`
- [Item information](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/box_info/box_info.vue): `pages/box_info/box_info.vue`
- [AI search](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/Ai_Search/Ai_Search.vue): `pages/Ai_Search/Ai_Search.vue`
- [Barcode lookup](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/scan_barcode/scan_barcode.vue): `pages/scan_barcode/scan_barcode.vue`

### Collection tools

- [Collection and sharing](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/card_share/card_share.vue): `pages/card_share/card_share.vue`
- [Incomplete items](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/incomplete_list/incomplete_list.vue): `pages/incomplete_list/incomplete_list.vue`

### Entertainment

- [Simulated draws](https://github.com/awadwd/arknights-authorization-tool/blob/master/packageB/pages/gacha_simulated/gacha_simulated.vue): `packageB/pages/gacha_simulated/gacha_simulated.vue`
- [Daily recommendation](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/daily_recommend/daily_recommend.vue): `pages/daily_recommend/daily_recommend.vue`
- [My star box](https://github.com/awadwd/arknights-authorization-tool/blob/master/packageB/pages/mystarbox/mystarbox.vue): `packageB/pages/mystarbox/mystarbox.vue`

### Settings and support

- [Data and preferences](https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/Setting/Setting.vue): `packageA/Setting/Setting.vue`
- [Custom search words](https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/custom-words/custom-words.vue): `packageA/custom-words/custom-words.vue`
- [Calendar](https://github.com/awadwd/arknights-authorization-tool/blob/master/packageA/calendar/calendar.vue): `packageA/calendar/calendar.vue`
- [Feedback](https://github.com/awadwd/arknights-authorization-tool/blob/master/pages/box_feedback_new/box_feedback_new.vue): `pages/box_feedback_new/box_feedback_new.vue`

### Other components

- **User**
- **GitHub/GitCode mirrors**
- **KnowCloud**
- **Local app storage**

## Connections

- User → Home and updates: opens
- User → Merchandise search: searches
- User → Browse listings: browses
- User → Barcode lookup: scans
- User → Collection and sharing: tracks collection
- User → Simulated draws: simulates draws
- User → Daily recommendation: gets recommendation
- User → Data and preferences: configures
- Home and updates → GitHub/GitCode mirrors: loads data
- Merchandise search → KnowCloud: requests live data
- Browse listings → KnowCloud: requests live data
- Data and preferences → GitHub/GitCode mirrors: downloads updates
- Data and preferences → KnowCloud: refreshes data
- Barcode lookup → GitHub/GitCode mirrors: downloads data (evidence: `pages/scan_barcode/scan_barcode.vue`)
- Merchandise search → Local app storage: stores favorites
- Browse listings → Local app storage: stores favorites
- Data and preferences → Custom search words: manages words
