Refactor code structure for improved readability and maintainability

This commit is contained in:
hamed
2026-07-10 11:27:17 +03:30
parent ab2ab0dea2
commit 778876b1f7
12 changed files with 318 additions and 139 deletions
+27 -27
View File
@@ -1,16 +1,16 @@
# Graph Report - nobat724_front (2026-07-09)
# Graph Report - nobat724_front (2026-07-10)
## Corpus Check
- 595 files · ~537,275 words
- 596 files · ~537,596 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 2051 nodes · 2034 edges · 374 communities (344 shown, 30 thin omitted)
- 2055 nodes · 2037 edges · 374 communities (344 shown, 30 thin omitted)
- Extraction: 95% EXTRACTED · 5% INFERRED · 0% AMBIGUOUS · INFERRED: 99 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `a56b7e8d`
- Built from commit: `ab2ab0de`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@@ -163,6 +163,8 @@
10. `Architecture Overview` - 10 edges
## Surprising Connections (you probably didn't know these)
- `Dashboard()` --calls--> `safeJsonParse()` [INFERRED]
app/dashboard/page.js → lib/sanitize.js
- `AboutUsPage()` --calls--> `getStateInfo()` [INFERRED]
components/aboutUs/index.js → lib/getStateInfo.js
- `ContactUsPage()` --calls--> `getStateInfo()` [INFERRED]
@@ -171,8 +173,6 @@
components/home/search/index.js → lib/getStateInfo.js
- `StLayout()` --calls--> `getStateInfo()` [INFERRED]
components/layout/StLayout.js → lib/getStateInfo.js
- `generateMetadata()` --calls--> `getStateInfo()` [INFERRED]
app/about-us/page.js → lib/getStateInfo.js
## Import Cycles
- None detected.
@@ -184,12 +184,12 @@ Cohesion: 0.05
Nodes (27): BgGray(), ButtonMenu(), Col(), ModalLogout(), Footer(), head, LogoNamad(), Namads (+19 more)
### Community 1 - "Community 1"
Cohesion: 0.24
Nodes (8): Head(), convertTimestampToJalali(), convertTimestampToTime(), ButtonData(), DetailLg(), DetailSm(), Head(), Card()
Cohesion: 0.36
Nodes (5): convertTimestampToTime(), ButtonData(), DetailLg(), DetailSm(), Head()
### Community 2 - "Community 2"
Cohesion: 0.04
Nodes (45): dependencies, aos, axios, @casl/ability, @casl/react, date-fns, dayjs, @emotion/cache (+37 more)
Nodes (46): dependencies, altcha, aos, axios, @casl/ability, @casl/react, date-fns, dayjs (+38 more)
### Community 3 - "Community 3"
Cohesion: 0.24
@@ -204,8 +204,8 @@ Cohesion: 0.08
Nodes (18): AppointmentList(), ItemAppointment(), AboutDcotor(), DetailDoctor(), Link(), listLink, List(), VAZIR_WEIGHTS (+10 more)
### Community 6 - "Community 6"
Cohesion: 0.06
Nodes (17): Dashboard(), metadata, defineAbilitiesFor(), getUser(), formatToman(), rialToToman(), buildPatientUser(), safeJsonParse() (+9 more)
Cohesion: 0.07
Nodes (16): Dashboard(), metadata, defineAbilitiesFor(), getUser(), formatToman(), rialToToman(), buildPatientUser(), getServerAccessToken() (+8 more)
### Community 8 - "Community 8"
Cohesion: 0.13
@@ -240,8 +240,8 @@ Cohesion: 0.14
Nodes (10): Chart(), ProgressAll(), fallbackLabels, ProgressDetail(), Form(), Content(), Rates(), numberToArStyle() (+2 more)
### Community 16 - "Community 16"
Cohesion: 0.25
Nodes (6): Head(), AboutUsPage(), ourServices, Services(), TickOrangeA(), UnderlineLG()
Cohesion: 0.14
Nodes (10): Head(), AboutUsPage(), ourServices, Services(), SearchBar(), TickOrangeA(), UnderlineLG(), ButtonFilter() (+2 more)
### Community 17 - "Community 17"
Cohesion: 0.11
@@ -356,8 +356,8 @@ Cohesion: 0.14
Nodes (13): `hours/List.js`, آبجکت اسلات (از `adaptSlots` / API), تأیید و سخت‌سازی غیرفعال‌بودن اسلات‌های گذشته در صفحه‌ی نوبت, زمینه, فایل‌های مرتبط, مشکل / هدف, نکات مهم, وضعیت فعلی (کد واقعی) (+5 more)
### Community 45 - "Community 45"
Cohesion: 0.25
Nodes (12): generateMetadata(), generateMetadata(), RootLayout(), imageUrl(), normalizeBlog(), getRequestOrigin(), safeJsonLd(), Blog() (+4 more)
Cohesion: 0.23
Nodes (11): generateMetadata(), generateMetadata(), imageUrl(), normalizeBlog(), safeJsonLd(), safeJsonParse(), Blog(), Doctor() (+3 more)
### Community 46 - "Community 46"
Cohesion: 0.22
@@ -464,8 +464,8 @@ Cohesion: 0.22
Nodes (7): degree, Form(), gender, degree, Form(), gender, filterList()
### Community 72 - "Community 72"
Cohesion: 0.52
Nodes (6): generateMetadata(), buildCanonicalPath(), buildCanonicalUrl(), buildMainCanonicalUrl(), getCanonicalUrl(), normalizeHost()
Cohesion: 0.39
Nodes (8): generateMetadata(), RootLayout(), buildCanonicalPath(), buildCanonicalUrl(), buildMainCanonicalUrl(), getCanonicalUrl(), getRequestOrigin(), normalizeHost()
### Community 73 - "Community 73"
Cohesion: 0.32
@@ -497,11 +497,7 @@ Nodes (11): رفع خطای `TypeError: fetch failed` در sitemap هنگام د
### Community 83 - "Community 83"
Cohesion: 0.24
Nodes (6): STATUS_LABELS, Head(), listTab, Turns(), List(), STATUS_LABELS
### Community 85 - "Community 85"
Cohesion: 0.36
Nodes (4): SearchBar(), ButtonFilter(), Fields(), RedirectLink()
Nodes (7): Card(), STATUS_LABELS, Head(), listTab, Turns(), List(), STATUS_LABELS
### Community 86 - "Community 86"
Cohesion: 0.40
@@ -511,6 +507,10 @@ Nodes (5): Doctors(), FILTER_KEYS, generateMetadata(), listingRobots(), buildDoc
Cohesion: 0.33
Nodes (6): 1. افزودن صفحه جدید, 2. افزودن API Endpoint جدید, 3. افزودن کامپوننت جدید, 4. کار با تاریخ شمسی, 5. استفاده از Context, 📝 نکات توسعه
### Community 89 - "Community 89"
Cohesion: 0.28
Nodes (4): Head(), convertTimestampToJalali(), RelatedContent(), Item()
### Community 90 - "Community 90"
Cohesion: 0.50
Nodes (4): buildDays(), InlineJalaliMonth(), MONTHS, WEEKDAYS
@@ -596,24 +596,24 @@ Cohesion: 0.33
Nodes (5): engines, node, name, private, version
## Knowledge Gaps
- **697 isolated node(s):** `metadata`, `FILTER_KEYS`, `fallbackLabels`, `MaterialUISwitch`, `fixedIconData` (+692 more)
- **699 isolated node(s):** `metadata`, `FILTER_KEYS`, `fallbackLabels`, `MaterialUISwitch`, `fixedIconData` (+694 more)
These have ≤1 connection - possible missing edges or undocumented components.
- **30 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `getStateInfo()` connect `Community 29` to `Community 0`, `Community 67`, `Community 70`, `Community 6`, `Community 72`, `Community 365`, `Community 45`, `Community 14`, `Community 16`, `Community 51`, `Community 85`, `Community 86`?**
_High betweenness centrality (0.031) - this node is a cross-community bridge._
- **Why does `getStateInfo()` connect `Community 29` to `Community 0`, `Community 67`, `Community 70`, `Community 6`, `Community 72`, `Community 365`, `Community 45`, `Community 14`, `Community 16`, `Community 51`, `Community 86`?**
_High betweenness centrality (0.032) - this node is a cross-community bridge._
- **Why does `imageUrl()` connect `Community 45` to `Community 0`, `Community 99`, `Community 4`, `Community 7`, `Community 365`, `Community 81`, `Community 55`, `Community 56`, `Community 89`?**
_High betweenness centrality (0.025) - this node is a cross-community bridge._
- **Why does `isRootCity()` connect `Community 51` to `Community 3`, `Community 29`?**
_High betweenness centrality (0.015) - this node is a cross-community bridge._
_High betweenness centrality (0.016) - this node is a cross-community bridge._
- **Are the 22 inferred relationships involving `getStateInfo()` (e.g. with `generateMetadata()` and `AboutUsPage()`) actually correct?**
_`getStateInfo()` has 22 INFERRED edges - model-reasoned connections that need verification._
- **Are the 14 inferred relationships involving `imageUrl()` (e.g. with `generateMetadata()` and `generateMetadata()`) actually correct?**
_`imageUrl()` has 14 INFERRED edges - model-reasoned connections that need verification._
- **What connects `metadata`, `FILTER_KEYS`, `fallbackLabels` to the rest of the system?**
_697 weakly-connected nodes found - possible documentation gaps or missing edges._
_699 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Community 0` be split into smaller, more focused modules?**
_Cohesion score 0.05263157894736842 - nodes in this community are weakly interconnected._
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+164 -94
View File
@@ -2130,7 +2130,7 @@
"source_location": "L84",
"_origin": "ast",
"id": "app_layout_rootlayout",
"community": 45,
"community": 72,
"norm_label": "rootlayout()"
},
{
@@ -2513,6 +2513,36 @@
"community": 65,
"norm_label": "theme"
},
{
"label": "Altcha.js",
"file_type": "code",
"source_file": "components/Altcha.js",
"source_location": "L1",
"_origin": "ast",
"id": "components_altcha",
"community": 85,
"norm_label": "altcha.js"
},
{
"label": "FA_STRINGS",
"file_type": "code",
"source_file": "components/Altcha.js",
"source_location": "L11",
"_origin": "ast",
"id": "components_altcha_fa_strings",
"community": 85,
"norm_label": "fa_strings"
},
{
"label": "Altcha()",
"file_type": "code",
"source_file": "components/Altcha.js",
"source_location": "L20",
"_origin": "ast",
"id": "components_altcha_altcha",
"community": 85,
"norm_label": "altcha()"
},
{
"label": "Head.js",
"file_type": "code",
@@ -3140,7 +3170,7 @@
"source_location": "L1",
"_origin": "ast",
"id": "components_blog_head_index_js_head_index",
"community": 1,
"community": 89,
"norm_label": "index.js"
},
{
@@ -3150,7 +3180,7 @@
"source_location": "L4",
"_origin": "ast",
"id": "components_blog_head_index_js_head_index_head",
"community": 1,
"community": 89,
"norm_label": "head()"
},
{
@@ -5700,7 +5730,7 @@
"source_location": "L18",
"_origin": "ast",
"id": "turns_card_card",
"community": 1,
"community": 83,
"norm_label": "card()"
},
{
@@ -6960,7 +6990,7 @@
"source_location": "L1",
"_origin": "ast",
"id": "search_fields",
"community": 85,
"community": 16,
"norm_label": "fields.js"
},
{
@@ -6970,7 +7000,7 @@
"source_location": "L11",
"_origin": "ast",
"id": "search_fields_fields",
"community": 85,
"community": 16,
"norm_label": "fields()"
},
{
@@ -7000,7 +7030,7 @@
"source_location": "L1",
"_origin": "ast",
"id": "search_redirectlink",
"community": 85,
"community": 16,
"norm_label": "redirectlink.js"
},
{
@@ -7010,7 +7040,7 @@
"source_location": "L10",
"_origin": "ast",
"id": "search_redirectlink_redirectlink",
"community": 85,
"community": 16,
"norm_label": "redirectlink()"
},
{
@@ -7020,7 +7050,7 @@
"source_location": "L1",
"_origin": "ast",
"id": "components_home_search_index_js_search_index",
"community": 85,
"community": 16,
"norm_label": "index.js"
},
{
@@ -7030,7 +7060,7 @@
"source_location": "L5",
"_origin": "ast",
"id": "components_home_search_index_js_search_index_searchbar",
"community": 85,
"community": 16,
"norm_label": "searchbar()"
},
{
@@ -7060,7 +7090,7 @@
"source_location": "L1",
"_origin": "ast",
"id": "modal_buttonfilter",
"community": 85,
"community": 16,
"norm_label": "buttonfilter.js"
},
{
@@ -7070,7 +7100,7 @@
"source_location": "L6",
"_origin": "ast",
"id": "modal_buttonfilter_buttonfilter",
"community": 85,
"community": 16,
"norm_label": "buttonfilter()"
},
{
@@ -10807,7 +10837,7 @@
"label": "LogInPage()",
"file_type": "code",
"source_file": "components/register/LogInPage.js",
"source_location": "L9",
"source_location": "L10",
"_origin": "ast",
"id": "register_loginpage_loginpage",
"community": 350,
@@ -10867,7 +10897,7 @@
"label": "Recode()",
"file_type": "code",
"source_file": "components/register/verificationPage/Recode.js",
"source_location": "L9",
"source_location": "L10",
"_origin": "ast",
"id": "verificationpage_recode_recode",
"community": 52,
@@ -11220,7 +11250,7 @@
"source_location": "L60",
"_origin": "ast",
"id": "helper_index_converttimestamptojalali",
"community": 1,
"community": 89,
"norm_label": "converttimestamptojalali()"
},
{
@@ -11760,7 +11790,7 @@
"source_location": "L31",
"_origin": "ast",
"id": "lib_getcanonicalurl_getrequestorigin",
"community": 45,
"community": 72,
"norm_label": "getrequestorigin()"
},
{
@@ -12050,7 +12080,7 @@
"source_location": "L1",
"_origin": "ast",
"id": "lib_sanitize",
"community": 6,
"community": 45,
"norm_label": "sanitize.js"
},
{
@@ -12080,7 +12110,7 @@
"source_location": "L22",
"_origin": "ast",
"id": "lib_sanitize_safejsonparse",
"community": 6,
"community": 45,
"norm_label": "safejsonparse()"
},
{
@@ -12464,11 +12494,21 @@
"norm_label": "@next/third-parties"
},
{
"label": "aos",
"label": "altcha",
"file_type": "code",
"source_file": "package.json",
"source_location": "L30",
"_origin": "ast",
"id": "package_dependencies_altcha",
"community": 2,
"norm_label": "altcha"
},
{
"label": "aos",
"file_type": "code",
"source_file": "package.json",
"source_location": "L31",
"_origin": "ast",
"id": "package_dependencies_aos",
"community": 2,
"norm_label": "aos"
@@ -12477,7 +12517,7 @@
"label": "axios",
"file_type": "code",
"source_file": "package.json",
"source_location": "L31",
"source_location": "L32",
"_origin": "ast",
"id": "package_dependencies_axios",
"community": 2,
@@ -12487,7 +12527,7 @@
"label": "date-fns",
"file_type": "code",
"source_file": "package.json",
"source_location": "L32",
"source_location": "L33",
"_origin": "ast",
"id": "package_dependencies_date_fns",
"community": 2,
@@ -12497,7 +12537,7 @@
"label": "dayjs",
"file_type": "code",
"source_file": "package.json",
"source_location": "L33",
"source_location": "L34",
"_origin": "ast",
"id": "package_dependencies_dayjs",
"community": 2,
@@ -12507,7 +12547,7 @@
"label": "html-to-image",
"file_type": "code",
"source_file": "package.json",
"source_location": "L34",
"source_location": "L35",
"_origin": "ast",
"id": "package_dependencies_html_to_image",
"community": 2,
@@ -12517,7 +12557,7 @@
"label": "html2canvas",
"file_type": "code",
"source_file": "package.json",
"source_location": "L35",
"source_location": "L36",
"_origin": "ast",
"id": "package_dependencies_html2canvas",
"community": 2,
@@ -12527,7 +12567,7 @@
"label": "i",
"file_type": "code",
"source_file": "package.json",
"source_location": "L36",
"source_location": "L37",
"_origin": "ast",
"id": "package_dependencies_i",
"community": 2,
@@ -12537,7 +12577,7 @@
"label": "isomorphic-dompurify",
"file_type": "code",
"source_file": "package.json",
"source_location": "L37",
"source_location": "L38",
"_origin": "ast",
"id": "package_dependencies_isomorphic_dompurify",
"community": 2,
@@ -12547,7 +12587,7 @@
"label": "jalaali-js",
"file_type": "code",
"source_file": "package.json",
"source_location": "L38",
"source_location": "L39",
"_origin": "ast",
"id": "package_dependencies_jalaali_js",
"community": 2,
@@ -12557,7 +12597,7 @@
"label": "jalali-moment",
"file_type": "code",
"source_file": "package.json",
"source_location": "L39",
"source_location": "L40",
"_origin": "ast",
"id": "package_dependencies_jalali_moment",
"community": 2,
@@ -12567,7 +12607,7 @@
"label": "js-cookie",
"file_type": "code",
"source_file": "package.json",
"source_location": "L40",
"source_location": "L41",
"_origin": "ast",
"id": "package_dependencies_js_cookie",
"community": 2,
@@ -12577,7 +12617,7 @@
"label": "jspdf",
"file_type": "code",
"source_file": "package.json",
"source_location": "L41",
"source_location": "L42",
"_origin": "ast",
"id": "package_dependencies_jspdf",
"community": 2,
@@ -12587,7 +12627,7 @@
"label": "moment-jalaali",
"file_type": "code",
"source_file": "package.json",
"source_location": "L42",
"source_location": "L43",
"_origin": "ast",
"id": "package_dependencies_moment_jalaali",
"community": 2,
@@ -12597,7 +12637,7 @@
"label": "next",
"file_type": "code",
"source_file": "package.json",
"source_location": "L43",
"source_location": "L44",
"_origin": "ast",
"id": "package_dependencies_next",
"community": 2,
@@ -12607,7 +12647,7 @@
"label": "next-themes",
"file_type": "code",
"source_file": "package.json",
"source_location": "L44",
"source_location": "L45",
"_origin": "ast",
"id": "package_dependencies_next_themes",
"community": 2,
@@ -12617,7 +12657,7 @@
"label": "npm",
"file_type": "code",
"source_file": "package.json",
"source_location": "L45",
"source_location": "L46",
"_origin": "ast",
"id": "package_dependencies_npm",
"community": 2,
@@ -12627,7 +12667,7 @@
"label": "postcss",
"file_type": "code",
"source_file": "package.json",
"source_location": "L46",
"source_location": "L47",
"_origin": "ast",
"id": "package_dependencies_postcss",
"community": 2,
@@ -12637,7 +12677,7 @@
"label": "qrcode",
"file_type": "code",
"source_file": "package.json",
"source_location": "L47",
"source_location": "L48",
"_origin": "ast",
"id": "package_dependencies_qrcode",
"community": 2,
@@ -12647,7 +12687,7 @@
"label": "qrcode.react",
"file_type": "code",
"source_file": "package.json",
"source_location": "L48",
"source_location": "L49",
"_origin": "ast",
"id": "package_dependencies_qrcode_react",
"community": 2,
@@ -12657,7 +12697,7 @@
"label": "react",
"file_type": "code",
"source_file": "package.json",
"source_location": "L49",
"source_location": "L50",
"_origin": "ast",
"id": "package_dependencies_react",
"community": 2,
@@ -12667,7 +12707,7 @@
"label": "react-dom",
"file_type": "code",
"source_file": "package.json",
"source_location": "L50",
"source_location": "L51",
"_origin": "ast",
"id": "package_dependencies_react_dom",
"community": 2,
@@ -12677,7 +12717,7 @@
"label": "react-easy-crop",
"file_type": "code",
"source_file": "package.json",
"source_location": "L51",
"source_location": "L52",
"_origin": "ast",
"id": "package_dependencies_react_easy_crop",
"community": 2,
@@ -12687,7 +12727,7 @@
"label": "react-google-map-picker",
"file_type": "code",
"source_file": "package.json",
"source_location": "L52",
"source_location": "L53",
"_origin": "ast",
"id": "package_dependencies_react_google_map_picker",
"community": 2,
@@ -12697,7 +12737,7 @@
"label": "react-images-uploading",
"file_type": "code",
"source_file": "package.json",
"source_location": "L53",
"source_location": "L54",
"_origin": "ast",
"id": "package_dependencies_react_images_uploading",
"community": 2,
@@ -12707,7 +12747,7 @@
"label": "react-toastify",
"file_type": "code",
"source_file": "package.json",
"source_location": "L54",
"source_location": "L55",
"_origin": "ast",
"id": "package_dependencies_react_toastify",
"community": 2,
@@ -12717,7 +12757,7 @@
"label": "sharp",
"file_type": "code",
"source_file": "package.json",
"source_location": "L55",
"source_location": "L56",
"_origin": "ast",
"id": "package_dependencies_sharp",
"community": 2,
@@ -12727,7 +12767,7 @@
"label": "styled-components",
"file_type": "code",
"source_file": "package.json",
"source_location": "L56",
"source_location": "L57",
"_origin": "ast",
"id": "package_dependencies_styled_components",
"community": 2,
@@ -12737,7 +12777,7 @@
"label": "stylis",
"file_type": "code",
"source_file": "package.json",
"source_location": "L57",
"source_location": "L58",
"_origin": "ast",
"id": "package_dependencies_stylis",
"community": 2,
@@ -12747,7 +12787,7 @@
"label": "stylis-plugin-rtl",
"file_type": "code",
"source_file": "package.json",
"source_location": "L58",
"source_location": "L59",
"_origin": "ast",
"id": "package_dependencies_stylis_plugin_rtl",
"community": 2,
@@ -12757,7 +12797,7 @@
"label": "swiper",
"file_type": "code",
"source_file": "package.json",
"source_location": "L59",
"source_location": "L60",
"_origin": "ast",
"id": "package_dependencies_swiper",
"community": 2,
@@ -12767,7 +12807,7 @@
"label": "tailwindcss",
"file_type": "code",
"source_file": "package.json",
"source_location": "L60",
"source_location": "L61",
"_origin": "ast",
"id": "package_dependencies_tailwindcss",
"community": 2,
@@ -12777,7 +12817,7 @@
"label": "uninstall",
"file_type": "code",
"source_file": "package.json",
"source_location": "L61",
"source_location": "L62",
"_origin": "ast",
"id": "package_dependencies_uninstall",
"community": 2,
@@ -12787,7 +12827,7 @@
"label": "devDependencies",
"file_type": "code",
"source_file": "package.json",
"source_location": "L63",
"source_location": "L64",
"_origin": "ast",
"id": "package_devdependencies",
"community": 8,
@@ -12797,7 +12837,7 @@
"label": "@eslint/eslintrc",
"file_type": "code",
"source_file": "package.json",
"source_location": "L64",
"source_location": "L65",
"_origin": "ast",
"id": "package_devdependencies_eslint_eslintrc",
"community": 8,
@@ -12807,7 +12847,7 @@
"label": "@testing-library/dom",
"file_type": "code",
"source_file": "package.json",
"source_location": "L65",
"source_location": "L66",
"_origin": "ast",
"id": "package_devdependencies_testing_library_dom",
"community": 8,
@@ -12817,7 +12857,7 @@
"label": "@testing-library/jest-dom",
"file_type": "code",
"source_file": "package.json",
"source_location": "L66",
"source_location": "L67",
"_origin": "ast",
"id": "package_devdependencies_testing_library_jest_dom",
"community": 8,
@@ -12827,7 +12867,7 @@
"label": "@testing-library/react",
"file_type": "code",
"source_file": "package.json",
"source_location": "L67",
"source_location": "L68",
"_origin": "ast",
"id": "package_devdependencies_testing_library_react",
"community": 8,
@@ -12837,7 +12877,7 @@
"label": "@testing-library/user-event",
"file_type": "code",
"source_file": "package.json",
"source_location": "L68",
"source_location": "L69",
"_origin": "ast",
"id": "package_devdependencies_testing_library_user_event",
"community": 8,
@@ -12847,7 +12887,7 @@
"label": "@vitejs/plugin-react",
"file_type": "code",
"source_file": "package.json",
"source_location": "L69",
"source_location": "L70",
"_origin": "ast",
"id": "package_devdependencies_vitejs_plugin_react",
"community": 8,
@@ -12857,7 +12897,7 @@
"label": "babel-plugin-react-compiler",
"file_type": "code",
"source_file": "package.json",
"source_location": "L70",
"source_location": "L71",
"_origin": "ast",
"id": "package_devdependencies_babel_plugin_react_compiler",
"community": 8,
@@ -12867,7 +12907,7 @@
"label": "cross-env",
"file_type": "code",
"source_file": "package.json",
"source_location": "L71",
"source_location": "L72",
"_origin": "ast",
"id": "package_devdependencies_cross_env",
"community": 8,
@@ -12877,7 +12917,7 @@
"label": "eslint",
"file_type": "code",
"source_file": "package.json",
"source_location": "L72",
"source_location": "L73",
"_origin": "ast",
"id": "package_devdependencies_eslint",
"community": 8,
@@ -12887,7 +12927,7 @@
"label": "eslint-config-next",
"file_type": "code",
"source_file": "package.json",
"source_location": "L73",
"source_location": "L74",
"_origin": "ast",
"id": "package_devdependencies_eslint_config_next",
"community": 8,
@@ -12897,7 +12937,7 @@
"label": "jsdom",
"file_type": "code",
"source_file": "package.json",
"source_location": "L74",
"source_location": "L75",
"_origin": "ast",
"id": "package_devdependencies_jsdom",
"community": 8,
@@ -12907,7 +12947,7 @@
"label": "prettier",
"file_type": "code",
"source_file": "package.json",
"source_location": "L75",
"source_location": "L76",
"_origin": "ast",
"id": "package_devdependencies_prettier",
"community": 8,
@@ -12917,7 +12957,7 @@
"label": "typescript",
"file_type": "code",
"source_file": "package.json",
"source_location": "L76",
"source_location": "L77",
"_origin": "ast",
"id": "package_devdependencies_typescript",
"community": 8,
@@ -12927,7 +12967,7 @@
"label": "vitest",
"file_type": "code",
"source_file": "package.json",
"source_location": "L77",
"source_location": "L78",
"_origin": "ast",
"id": "package_devdependencies_vitest",
"community": 8,
@@ -23796,6 +23836,26 @@
"source": "theme_theme",
"target": "theme_theme_theme"
},
{
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "components/Altcha.js",
"source_location": "L20",
"weight": 1.0,
"source": "components_altcha",
"target": "components_altcha_altcha",
"confidence_score": 1.0
},
{
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "components/Altcha.js",
"source_location": "L11",
"weight": 1.0,
"source": "components_altcha",
"target": "components_altcha_fa_strings",
"confidence_score": 1.0
},
{
"relation": "contains",
"confidence": "EXTRACTED",
@@ -33322,9 +33382,9 @@
"source_file": "lib/getStateInfo.js",
"source_location": "L19",
"weight": 1.0,
"confidence_score": 1.0,
"source": "lib_getstateinfo",
"target": "lib_getstateinfo_fetchsitecontext",
"confidence_score": 1.0
"target": "lib_getstateinfo_fetchsitecontext"
},
{
"relation": "contains",
@@ -33342,9 +33402,9 @@
"source_file": "lib/getStateInfo.js",
"source_location": "L17",
"weight": 1.0,
"confidence_score": 1.0,
"source": "lib_getstateinfo",
"target": "lib_getstateinfo_sitecontextcache",
"confidence_score": 1.0
"target": "lib_getstateinfo_sitecontextcache"
},
{
"relation": "calls",
@@ -33364,9 +33424,9 @@
"source_file": "lib/getStateInfo.js",
"source_location": "L59",
"weight": 1.0,
"confidence_score": 1.0,
"source": "lib_getstateinfo_getstateinfo",
"target": "lib_getstateinfo_fetchsitecontext",
"confidence_score": 1.0
"target": "lib_getstateinfo_fetchsitecontext"
},
{
"relation": "calls",
@@ -33814,6 +33874,16 @@
"source": "package_scripts",
"target": "package_scripts_test_watch"
},
{
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "package.json",
"source_location": "L30",
"weight": 1.0,
"source": "package_dependencies",
"target": "package_dependencies_altcha",
"confidence_score": 1.0
},
{
"relation": "contains",
"confidence": "EXTRACTED",
@@ -38512,9 +38582,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L1",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site",
"target": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627"
},
{
"relation": "contains",
@@ -38522,9 +38592,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L9",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u0632\u0645\u06cc\u0646\u0647",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0632\u0645\u06cc\u0646\u0647"
},
{
"relation": "contains",
@@ -38532,9 +38602,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L19",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u0641\u0627\u06cc\u0644_\u0647\u0627\u06cc_\u0645\u0631\u062a\u0628\u0637",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0641\u0627\u06cc\u0644_\u0647\u0627\u06cc_\u0645\u0631\u062a\u0628\u0637"
},
{
"relation": "contains",
@@ -38542,9 +38612,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L13",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u0645\u0634\u06a9\u0644_\u0647\u062f\u0641",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0645\u0634\u06a9\u0644_\u0647\u062f\u0641"
},
{
"relation": "contains",
@@ -38552,9 +38622,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L108",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u0646\u06a9\u0627\u062a_\u0645\u0647\u0645",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0646\u06a9\u0627\u062a_\u0645\u0647\u0645"
},
{
"relation": "contains",
@@ -38562,9 +38632,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L30",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u0648\u0636\u0639\u06cc\u062a_\u0641\u0639\u0644\u06cc",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0648\u0636\u0639\u06cc\u062a_\u0641\u0639\u0644\u06cc"
},
{
"relation": "contains",
@@ -38572,9 +38642,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L60",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u0648\u0638\u0627\u06cc\u0641",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u0648\u0638\u0627\u06cc\u0641"
},
{
"relation": "contains",
@@ -38582,9 +38652,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L3",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0633\u0627\u06cc\u062a_\u062f\u0627\u0645\u0646\u0647_\u0627\u062e\u062a\u0635\u0627\u0635\u06cc_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647_\u0633\u0631\u0627\u0633\u0631\u06cc_\u062a\u0634\u062e\u06cc\u0635_\u062f\u0627\u0645\u0646\u0647_\u0641\u06cc\u0644\u062a\u0631_\u067e\u0632\u0634\u06a9\u0627\u0646_\u06a9\u0644\u06cc\u0646\u06cc\u06a9_\u0647\u0627",
"target": "prompt_global_rep_domain_site_\u067e\u0631\u0648\u0698\u0647",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u067e\u0631\u0648\u0698\u0647"
},
{
"relation": "contains",
@@ -38592,9 +38662,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L62",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0648\u0638\u0627\u06cc\u0641",
"target": "prompt_global_rep_domain_site_\u06f1_\u062a\u0648\u0633\u0639\u0647_getstateinfo_repcontext",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u06f1_\u062a\u0648\u0633\u0639\u0647_getstateinfo_repcontext"
},
{
"relation": "contains",
@@ -38602,9 +38672,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L81",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0648\u0638\u0627\u06cc\u0641",
"target": "prompt_global_rep_domain_site_\u06f2_\u067e\u0627\u0633_\u062f\u0627\u062f\u0646_domain_\u062f\u0631_\u0644\u06cc\u0633\u062a_\u0647\u0627",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u06f2_\u067e\u0627\u0633_\u062f\u0627\u062f\u0646_domain_\u062f\u0631_\u0644\u06cc\u0633\u062a_\u0647\u0627"
},
{
"relation": "contains",
@@ -38612,9 +38682,9 @@
"source_file": ".claude/prompt/global-rep-domain-site.md",
"source_location": "L99",
"weight": 1.0,
"confidence_score": 1.0,
"source": "prompt_global_rep_domain_site_\u0648\u0638\u0627\u06cc\u0641",
"target": "prompt_global_rep_domain_site_\u06f3_\u0645\u062a\u0627\u062f\u06cc\u062a\u0627_\u0648_\u0628\u0631\u0646\u062f\u06cc\u0646\u06af_\u062f\u0627\u0645\u0646\u0647_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647",
"confidence_score": 1.0
"target": "prompt_global_rep_domain_site_\u06f3_\u0645\u062a\u0627\u062f\u06cc\u062a\u0627_\u0648_\u0628\u0631\u0646\u062f\u06cc\u0646\u06af_\u062f\u0627\u0645\u0646\u0647_\u0646\u0645\u0627\u06cc\u0646\u062f\u0647"
},
{
"relation": "contains",
@@ -41428,5 +41498,5 @@
}
],
"hyperedges": [],
"built_at_commit": "a56b7e8de50645802f13f7723934a78f8bb01fd3"
"built_at_commit": "ab2ab0dea2a0ddb66444d4243bb5f6d410716e2e"
}
+13 -8
View File
@@ -2460,8 +2460,8 @@
"semantic_hash": ""
},
"components/register/LogInPage.js": {
"mtime": 1783519228.5642412,
"ast_hash": "87b80befe6ff96319414e56202781a6c",
"mtime": 1783669925.383512,
"ast_hash": "2e1cedadd67101d572ff62d55eb4c0d4",
"semantic_hash": ""
},
"components/register/element/OTPForm.js": {
@@ -2475,8 +2475,8 @@
"semantic_hash": ""
},
"components/register/verificationPage/Recode.js": {
"mtime": 1783071536.6832757,
"ast_hash": "84b1c17b61802f5655a813d0c9369efb",
"mtime": 1783669964.1003268,
"ast_hash": "3335d5bea26c96164522d1ced6b1ca76",
"semantic_hash": ""
},
"components/register/verificationPage/SendReq.js": {
@@ -2685,8 +2685,8 @@
"semantic_hash": ""
},
"package.json": {
"mtime": 1783320697.752623,
"ast_hash": "af42cd79d6bf4cc03bf313969e6b2a37",
"mtime": 1783669847.7761147,
"ast_hash": "db05989414641ce2862a92752329ea5b",
"semantic_hash": ""
},
"postcss.config.mjs": {
@@ -2710,8 +2710,8 @@
"semantic_hash": ""
},
"services/response.js": {
"mtime": 1783071485.829278,
"ast_hash": "d14bf7797bca0e0df2bf8a33398a7ed7",
"mtime": 1783669898.8824792,
"ast_hash": "af872a5ac548f9cb16b0813c1e4f0abc",
"semantic_hash": ""
},
"services/services.test.js": {
@@ -3418,5 +3418,10 @@
"mtime": 1783568045.290634,
"ast_hash": "468c80e35c433c7a03e87bb8481e37d7",
"semantic_hash": ""
},
"components/Altcha.js": {
"mtime": 1783669890.854174,
"ast_hash": "3b63ed7f7007340d460d175e5b48d8f8",
"semantic_hash": ""
}
}