This commit is contained in:
wuzilong committed 2026-09-18 12:01:13 +08:00
1 parent 98531845e4
commit 1ba1f38321
107 files changed
+65567 -36568

No files matched your search

+12 -8
View File
@@ -35,14 +35,18 @@ export const fuelRegisterApi = {
return unwrapList(data)
},
get: async (id) => unwrapEntity(await db.get(`/transport/vehicle-fuel-register/${id}`)),
create: (payload) =>
db.post('/transport/vehicle-fuel-register/', payload, {
params: { mineOnly: true }
}),
update: (id, payload) =>
db.put(`/transport/vehicle-fuel-register/${id}`, payload, {
params: { mineOnly: true }
}),
create: async (payload) =>
unwrapEntity(
await db.post('/transport/vehicle-fuel-register/', payload, {
params: { mineOnly: true }
})
),
update: async (id, payload) =>
unwrapEntity(
await db.put(`/transport/vehicle-fuel-register/${id}`, payload, {
params: { mineOnly: true }
})
),
cancel: (id) =>
db.post(
`/transport/vehicle-fuel-register/${id}/cancel`,
+118 -118
View File
@@ -1,16 +1,16 @@
# Graph Report - miniprogram (2026-09-16)
# Graph Report - miniprogram (2026-09-17)
## Corpus Check
- 360 files · ~149,542 words
- 361 files · ~150,002 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 3103 nodes · 3640 edges · 329 communities (290 shown, 39 thin omitted)
- Extraction: 99% EXTRACTED · 1% INFERRED · 0% AMBIGUOUS · INFERRED: 52 edges (avg confidence: 0.8)
- 3110 nodes · 3650 edges · 329 communities (290 shown, 39 thin omitted)
- Extraction: 99% EXTRACTED · 1% INFERRED · 0% AMBIGUOUS · INFERRED: 53 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `d6fddc66`
- Built from commit: `86694f73`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@@ -77,7 +77,7 @@
- [[_COMMUNITY_Community 59|Community 59]]
- [[_COMMUNITY_Community 60|Community 60]]
- [[_COMMUNITY_Community 61|Community 61]]
- [[_COMMUNITY_Community 62|Community 62]]
- [[_COMMUNITY_Community 63|Community 63]]
- [[_COMMUNITY_Community 64|Community 64]]
- [[_COMMUNITY_Community 65|Community 65]]
- [[_COMMUNITY_Community 66|Community 66]]
@@ -124,7 +124,7 @@
- [[_COMMUNITY_Community 109|Community 109]]
- [[_COMMUNITY_Community 110|Community 110]]
- [[_COMMUNITY_Community 111|Community 111]]
- [[_COMMUNITY_Community 113|Community 113]]
- [[_COMMUNITY_Community 112|Community 112]]
- [[_COMMUNITY_Community 114|Community 114]]
- [[_COMMUNITY_Community 115|Community 115]]
- [[_COMMUNITY_Community 116|Community 116]]
@@ -135,7 +135,7 @@
- [[_COMMUNITY_Community 121|Community 121]]
- [[_COMMUNITY_Community 122|Community 122]]
- [[_COMMUNITY_Community 123|Community 123]]
- [[_COMMUNITY_Community 127|Community 127]]
- [[_COMMUNITY_Community 124|Community 124]]
- [[_COMMUNITY_Community 128|Community 128]]
- [[_COMMUNITY_Community 129|Community 129]]
- [[_COMMUNITY_Community 130|Community 130]]
@@ -275,7 +275,7 @@ Nodes (27): capitalize(), checkValue(), clearTime(), compareValueWithStartAndEnd
### Community 3 - "Community 3"
Cohesion: 0.05
Nodes (36): a, an, Bt(), cn, {emailToLowerCase:c}, {emailToLowerCase:e}, {emailToLowerCase:i}, en (+28 more)
Nodes (37): a, an, Bt(), cn, {emailToLowerCase:c}, {emailToLowerCase:e}, {emailToLowerCase:i}, en (+29 more)
### Community 4 - "Community 4"
Cohesion: 0.05
@@ -334,38 +334,42 @@ Cohesion: 0.09
Nodes (7): Cache, CacheKey, CacheKeyCascade, DatabaseCache, db, RedisCache, validator
### Community 18 - "Community 18"
Cohesion: 0.12
Nodes (25): checkAll(), created(), localData(), setRules(), setValue(), submit(), validate(), validateField() (+17 more)
Cohesion: 0.08
Nodes (22): activeTab, clearKeyword(), currentPage, fetchPage(), finished, handleCopy(), keyword, list (+14 more)
### Community 19 - "Community 19"
Cohesion: 0.12
Nodes (19): _cloudDataNodeWhere(), _cloudDataPostField(), _cloudDataTreeWhere(), _extractTree(), _filterData(), _findNodePath(), getCloudDataListValue(), getCloudDataTreeValue() (+11 more)
Nodes (25): checkAll(), created(), localData(), setRules(), setValue(), submit(), validate(), validateField() (+17 more)
### Community 20 - "Community 20"
Cohesion: 0.12
Nodes (19): _cloudDataNodeWhere(), _cloudDataPostField(), _cloudDataTreeWhere(), _extractTree(), _filterData(), _findNodePath(), getCloudDataListValue(), getCloudDataTreeValue() (+11 more)
### Community 21 - "Community 21"
Cohesion: 0.14
Nodes (24): at(), ct(), dt(), e(), et(), ft(), gt(), ht() (+16 more)
### Community 21 - "Community 21"
### Community 22 - "Community 22"
Cohesion: 0.09
Nodes (16): animateTypes1, animateTypes2, animateTypes3, createAnimation(), MPAnimation, nvueAnimation, close(), handler() (+8 more)
### Community 22 - "Community 22"
### Community 23 - "Community 23"
Cohesion: 0.1
Nodes (27): defaultAvatarPathByRole(), normalizeAvatarUrlForMini(), resolveUserAvatarUrl(), appendQueryParam(), fallbackVersionFromManifest(), getStaticAssetsVersion(), hasSignedQuery(), hasVersionParam() (+19 more)
### Community 23 - "Community 23"
### Community 24 - "Community 24"
Cohesion: 0.09
Nodes (25): approverDisplay, approverFallback, approverKeyword, buildNodePayload(), closeApproverPicker(), filteredUsers, formData, handleDelete() (+17 more)
### Community 24 - "Community 24"
### Community 25 - "Community 25"
Cohesion: 0.09
Nodes (7): created(), init(), inputContentStyle(), inputStyle(), obj2strStyle(), onInput(), trimStr()
### Community 25 - "Community 25"
### Community 26 - "Community 26"
Cohesion: 0.1
Nodes (14): clear(), _dispatchEvent(), handleClose(), handleInput(), handler(), hide(), load(), onchange() (+6 more)
### Community 26 - "Community 26"
### Community 27 - "Community 27"
Cohesion: 0.08
Nodes (8): {
AppConfig
@@ -381,21 +385,17 @@ Nodes (8): {
WeixinServer
}
### Community 27 - "Community 27"
### Community 28 - "Community 28"
Cohesion: 0.12
Nodes (20): buttonShow(), close(), closeSwipe(), getDirection(), init(), leftOptions(), mounted(), move() (+12 more)
### Community 28 - "Community 28"
### Community 29 - "Community 29"
Cohesion: 0.11
Nodes (16): created(), destroyed(), 'form.formRules'(), 'form.labelPosition'(), 'form.labelWidth'(), init(), itemSetValue(), _justifyContent() (+8 more)
### Community 29 - "Community 29"
Cohesion: 0.1
Nodes (12): activated(), bottom(), center(), close(), deactivated(), destroyed(), left(), onTap() (+4 more)
### Community 30 - "Community 30"
Cohesion: 0.1
Nodes (16): activeTab, clearKeyword(), currentPage, fetchPage(), finished, keyword, list, listHeight (+8 more)
Nodes (12): activated(), bottom(), center(), close(), deactivated(), destroyed(), left(), onTap() (+4 more)
### Community 31 - "Community 31"
Cohesion: 0.08
@@ -414,13 +414,13 @@ Cohesion: 0.11
Nodes (11): askAbortDownload(), checkLocalStoragePackage(), checkStoreScheme(), closeUpdate(), compare(), deleteSavedFile(), downLoadComplete(), installPackage() (+3 more)
### Community 35 - "Community 35"
Cohesion: 0.2
Nodes (16): max, bx_ok(), _list_of(), log(), login(), main(), Numberish(), portal_ok() (+8 more)
### Community 36 - "Community 36"
Cohesion: 0.1
Nodes (13): dateFilter, dateFilters, keyword, list, loading, mergedRelated, onClear(), relatedData (+5 more)
### Community 36 - "Community 36"
Cohesion: 0.2
Nodes (16): max, bx_ok(), _list_of(), log(), login(), main(), Numberish(), portal_ok() (+8 more)
### Community 38 - "Community 38"
Cohesion: 0.09
Nodes (22): 1.1.10(2021-06-17), 1.1.7(2021-02-05), 1.1.8(2021-03-26), 1.1.9(2021-05-12), 1.2.1(2021-07-30), 1.2.2(2021-08-17), 1.2.3(2021-08-20), 1.2.4(2021-08-20) (+14 more)
@@ -438,25 +438,25 @@ Cohesion: 0.16
Nodes (18): API_ENCRYPT_EXCLUDE_PATHS, appendTimestampQuery(), base64ToBytes(), bytesToBase64(), bytesToHex(), createUnauthorizedError(), decryptJson(), deriveKey() (+10 more)
### Community 42 - "Community 42"
Cohesion: 0.19
Nodes (21): Ae(), Ce(), De(), e(), ee(), ie(), j, je() (+13 more)
### Community 43 - "Community 43"
Cohesion: 0.11
Nodes (12): dateFilter, dateFilters, keyword, list, loading, onClear(), related, relatedLoading (+4 more)
### Community 44 - "Community 44"
### Community 43 - "Community 43"
Cohesion: 0.1
Nodes (20): 1.1.4(2021-02-05), 1.1.5(2021-05-12), 1.1.7(2021-11-08), 1.2.0(2021-07-30), 1.3.0(2021-11-19), 1.3.1(2021-11-23), 1.3.2(2021-12-01), 1.3.3(2022-01-17) (+12 more)
### Community 45 - "Community 45"
### Community 44 - "Community 44"
Cohesion: 0.13
Nodes (6): AccessToken, Encryptkey, Ticket, updateAccessToken(), updateEncryptKey(), updateTicket()
### Community 46 - "Community 46"
### Community 45 - "Community 45"
Cohesion: 0.18
Nodes (15): change(), created(), getDataList(), getSelectedValue(), handler(), loadData(), mixinDatacomResData(), modelValue() (+7 more)
### Community 47 - "Community 47"
Cohesion: 0.19
Nodes (20): Ae(), Ce(), De(), e(), ee(), ie(), j, ke() (+12 more)
### Community 48 - "Community 48"
Cohesion: 0.12
Nodes (12): dateFilter, dateFilters, keyword, list, loading, onClear(), related, relatedLoading (+4 more)
@@ -486,25 +486,23 @@ Cohesion: 0.12
Nodes (16): 1.0.5(2021-02-05), 1.0.6(2021-04-20), 1.0.7(2021-02-05), 1.0.7(2021-05-12), 1.1.0(2021-07-13), 1.1.1(2021-07-30), 1.1.2(2021-11-09), 1.2.0(2021-11-19) (+8 more)
### Community 55 - "Community 55"
Cohesion: 0.14
Nodes (8): BridgeError, ErrorCodeType, HTTP_STATUS, ProviderType, {
BridgeError
}, crypto, {
HTTP_STATUS
}, ws
### Community 56 - "Community 56"
Cohesion: 0.12
Nodes (15): 1.0.1(2021-02-05), 1.0.2(2021-03-22), 1.0.3(2021-04-16), 1.0.4(2021-05-12), 1.0.5(2021-06-28), 1.0.6(2021-07-05), 1.0.7(2021-07-08), 1.1.0(2021-07-30) (+7 more)
### Community 57 - "Community 57"
### Community 56 - "Community 56"
Cohesion: 0.12
Nodes (15): 1.3.15(2021-02-04), 1.3.16(2021-05-12), 1.4.0(2021-07-30), 1.4.10(2023-04-10), 1.4.11(2024-01-10), 1.4.12(2024-09-21), 1.4.1(2021-08-05), 1.4.2(2021-08-24) (+7 more)
### Community 58 - "Community 58"
### Community 57 - "Community 57"
Cohesion: 0.12
Nodes (15): 1.1.5(2021-02-05), 1.1.6(2021-02-05), 1.1.7(2021-05-12), 1.2.0(2021-07-21), 1.2.1(2021-07-21), 1.2.2(2021-07-21), 1.3.0(2021-07-30), 1.3.1(2021-07-30) (+7 more)
### Community 58 - "Community 58"
Cohesion: 0.18
Nodes (7): AppConfig, ConfigBase, configCenter, OauthConfig, {
ProviderType
}, Support_Platforms, ProviderType
### Community 59 - "Community 59"
Cohesion: 0.28
Nodes (14): getDirection(), getDisabledType(), getDom(), move(), moveDirection(), openState(), range(), resetTouchStatus() (+6 more)
@@ -513,44 +511,48 @@ Nodes (14): getDirection(), getDisabledType(), getDom(), move(), moveDirection()
Cohesion: 0.2
Nodes (11): d(), fe(), I(), l(), le(), n, o, p() (+3 more)
### Community 61 - "Community 61"
Cohesion: 0.2
Nodes (6): AppConfig, ConfigBase, configCenter, OauthConfig, {
ProviderType
}, Support_Platforms
### Community 64 - "Community 64"
### Community 63 - "Community 63"
Cohesion: 0.2
Nodes (6): Fr(), Ht(), Ot(), pn, T(), Xr()
### Community 65 - "Community 65"
### Community 64 - "Community 64"
Cohesion: 0.14
Nodes (13): 1.0.2(2021-02-04), 1.0.3(2021-05-08), 1.0.4(2021-05-12), 1.0.5(2021-06-18), 1.1.0(2021-07-30), 1.1.1(2021-07-30), 1.1.2(2021-08-24), 1.1.3(2021-10-18) (+5 more)
### Community 66 - "Community 66"
### Community 65 - "Community 65"
Cohesion: 0.21
Nodes (7): formatDate(), friendlyDate(), getDate(), parser, dateShow(), handler(), setAutoRefresh()
### Community 68 - "Community 68"
### Community 67 - "Community 67"
Cohesion: 0.31
Nodes (12): changeFlag(), countDown(), day(), handler(), hour(), minute(), second(), startData() (+4 more)
### Community 71 - "Community 71"
### Community 70 - "Community 70"
Cohesion: 0.15
Nodes (12): 1.0.6(2021-02-04), 1.0.7(2021-05-07), 1.1.0(2021-05-12), 1.1.1(2021-05-12), 1.1.3(2021-06-24), 1.1.4(2021-07-29), 1.1.5(2021-07-30), 1.1.6(2021-09-22) (+4 more)
### Community 72 - "Community 72"
### Community 71 - "Community 71"
Cohesion: 0.15
Nodes (12): 1.0.0(2022-08-22), 1.0.2(2022-09-02), 1.0.3(2022-09-06), 1.0.4(2022-09-21), 1.1.0(2023-02-27), 1.1.1(2023-02-28), 1.1.2(2023-02-28), 1.1.3(2023-03-13) (+4 more)
### Community 73 - "Community 73"
### Community 72 - "Community 72"
Cohesion: 0.15
Nodes (12): 1.1.6(2021-02-05), 1.1.7(2021-03-30), 1.1.8(2021-05-12), 1.2.0(2021-07-30), 1.2.1(2021-08-24), 1.3.0(2021-11-19), 1.3.1(2022-01-19), 1.3.2(2022-01-19) (+4 more)
### Community 74 - "Community 74"
### Community 73 - "Community 73"
Cohesion: 0.15
Nodes (12): 1.0.4(2021-02-05), 1.0.5(2021-02-05), 1.0.6(2021-04-12), 1.0.7(2021-05-12), 1.1.0(2021-07-30), 1.1.1(2021-08-20), 1.1.2(2021-10-08), 1.2.0(2021-11-19) (+4 more)
### Community 74 - "Community 74"
Cohesion: 0.2
Nodes (5): BridgeError, {
BridgeError
}, {
CacheKeyCascade
}, {
Validator
}, Validator
### Community 76 - "Community 76"
Cohesion: 0.23
Nodes (6): ascendingFn(), clearOther(), created(), descendingFn(), getTable(), sort()
@@ -584,13 +586,13 @@ Cohesion: 0.25
Nodes (6): _(), b(), G, H(), K(), q
### Community 85 - "Community 85"
Cohesion: 0.27
Nodes (7): ENV_PRESETS, resolveApiBase(), buildQuery(), bxRequest(), bxUploadFile(), bxUploadInvoice(), normalizeBxUrl()
### Community 86 - "Community 86"
Cohesion: 0.22
Nodes (8): useUserStore, onUnauthorized(), buildQuery(), db, dbRequest(), normalizeDbUrl(), onUnauthorized(), onHttpUnauthorized()
### Community 86 - "Community 86"
Cohesion: 0.27
Nodes (7): ENV_PRESETS, resolveApiBase(), buildQuery(), bxRequest(), bxUploadFile(), bxUploadInvoice(), normalizeBxUrl()
### Community 87 - "Community 87"
Cohesion: 0.18
Nodes (10): 1.0.8(2021-02-05), 1.0.9(2021-02-05), 1.1.0(2021-04-16), 1.1.1(2021-04-21), 1.1.2(2021-05-12), 1.2.0(2021-07-13), 1.2.1(2021-07-30), 1.2.2(2021-09-10) (+2 more)
@@ -641,102 +643,100 @@ Nodes (9): 1.0.2(2021-02-05), 1.1.0(2021-04-22), 1.1.1(2021-05-12),
### Community 104 - "Community 104"
Cohesion: 0.25
Nodes (3): close(), select(), { t }
Nodes (6): ErrorCodeType, HTTP_STATUS, {
BridgeError
}, crypto, {
HTTP_STATUS
}, ws
### Community 105 - "Community 105"
Cohesion: 0.25
Nodes (3): close(), select(), { t }
### Community 106 - "Community 106"
Cohesion: 0.28
Nodes (7): __dirname, envPath, productionBlockLooksLocal(), readAppEnv(), root, strict, strictCheck()
### Community 106 - "Community 106"
### Community 107 - "Community 107"
Cohesion: 0.22
Nodes (8): 技术栈, 已接通业务:地磅管理, 壳页面, 本地开发, 正式发版上传(微信), code:bash (cd miniprogram), 生产信息(来自 https://w.shanxiachem.com/), 山峡化工 · 微信小程序(miniprogram)
### Community 107 - "Community 107"
### Community 108 - "Community 108"
Cohesion: 0.22
Nodes (8): 使用说明, 导入, cancelNotificationProgress() : void, code:block1 (export type CreateNotificationProgressOptions = {), code:block2 (export type FinishNotificationProgressOptions = {), createNotificationProgress(options : CreateNotificationProgressOptions) : void,, finishNotificationProgress(options: FinishNotificationProgressOptions) : void, uts-progressNotification
### Community 108 - "Community 108"
### Community 109 - "Community 109"
Cohesion: 0.22
Nodes (8): 0.0.2(2021-02-05), 0.0.3(2021-03-09), 0.0.4(2021-05-12), 0.0.5(2021-06-21), 0.0.6(2021-07-30), 0.0.7(2021-09-03), 1.0.0(2021-11-19), 1.1.7(2021-11-08)
### Community 109 - "Community 109"
### Community 110 - "Community 110"
Cohesion: 0.22
Nodes (8): 1.0.4(2021-02-05), 1.0.5(2021-02-05), 1.0.6(2021-04-21), 1.0.7(2021-05-06), 1.0.8(2021-05-12), 1.1.0(2021-11-19), 1.1.1(2021-11-22), 1.1.2(2024-03-28)
### Community 110 - "Community 110"
### Community 111 - "Community 111"
Cohesion: 0.22
Nodes (8): 1.0.4(2021-02-05), 1.0.5(2021-02-05), 1.0.6(2021-04-21), 1.0.7(2021-05-12), 1.1.0(2021-07-13), 1.1.1(2021-08-24), 1.2.0(2021-11-19), 1.2.1(2022-05-30)
### Community 111 - "Community 111"
### Community 112 - "Community 112"
Cohesion: 0.22
Nodes (8): 0.0.3(2021-02-04), 0.0.4(2021-02-05), 0.0.5(2021-04-21), 0.0.6(2021-05-12), 0.1.0(2021-07-30), 1.0.0(2021-11-19), 1.0.1(2021-11-23), 1.0.2(2024-09-21)
### Community 113 - "Community 113"
### Community 114 - "Community 114"
Cohesion: 0.39
Nodes (5): chooseAll(), chooseAndUploadFile(), chooseImage(), chooseVideo(), uploadFiles()
### Community 115 - "Community 115"
### Community 116 - "Community 116"
Cohesion: 0.25
Nodes (7): advanceApi, attachmentApi, expenseItemApi, invoiceApi, invoiceWalletApi, reimburseApi, workflowApi
### Community 116 - "Community 116"
### Community 117 - "Community 117"
Cohesion: 0.57
Nodes (7): buildParams(), buildParams(), addDays(), formatYmd(), nowYmdHms(), weekRange(), buildParams()
### Community 118 - "Community 118"
### Community 119 - "Community 119"
Cohesion: 0.25
Nodes (7): 1.0.10(2021-04-21), 1.0.11(2021-05-12), 1.0.8(2021-02-05), 1.0.9(2021-02-05), 1.1.0(2021-07-30), 1.2.0(2021-11-19), 1.2.1(2021-11-22)
### Community 119 - "Community 119"
### Community 120 - "Community 120"
Cohesion: 0.25
Nodes (7): 0.1.0(2022-04-21), 0.1.1(2022-04-27), 0.2.0(2022-05-07), 0.2.1(2022-05-09), 0.2.2(2024-01-15), 0.2.3(2024-03-20), 0.2.4(2024-04-23)
### Community 120 - "Community 120"
### Community 121 - "Community 121"
Cohesion: 0.25
Nodes (7): 1.0.4(2021-02-05), 1.0.5(2021-05-12), 1.1.0(2021-07-30), 1.2.0(2021-11-19), 1.2.1(2024-03-20), 1.2.2(2024-03-28), 1.2.3(2024-04-02)
### Community 121 - "Community 121"
### Community 122 - "Community 122"
Cohesion: 0.25
Nodes (7): 1.0.2(2021-02-05), 1.0.3(2021-05-12), 1.1.0(2021-07-30), 1.1.7(2021-11-08), 1.2.0(2021-11-19), 1.2.1(2021-11-22), 1.2.2(2022-05-30)
### Community 122 - "Community 122"
### Community 123 - "Community 123"
Cohesion: 0.25
Nodes (7): 1.1.6(2021-02-04), 1.1.7(2021-05-12), 1.1.8(2021-07-01), 1.2.0(2021-07-13), 1.2.1(2021-07-30), 1.3.0(2021-11-19), 1.3.1(2021-12-20)
### Community 123 - "Community 123"
### Community 124 - "Community 124"
Cohesion: 0.38
Nodes (3): _change(), close(), open()
### Community 127 - "Community 127"
### Community 128 - "Community 128"
Cohesion: 0.29
Nodes (3): driverPlanApi, fuelRegisterApi, sitePlanApi
### Community 128 - "Community 128"
### Community 129 - "Community 129"
Cohesion: 0.29
Nodes (5): avatarUrl, deptName, email, phone, roleLabel
### Community 129 - "Community 129"
### Community 130 - "Community 130"
Cohesion: 0.29
Nodes (3): loadDetail(), save(), title
### Community 131 - "Community 131"
### Community 132 - "Community 132"
Cohesion: 0.29
Nodes (6): 1.0.6(2021-02-04), 1.0.7(2021-05-12), 1.1.0(2021-07-13), 1.1.1(2021-07-30), 1.2.0(2021-11-19), 1.2.1(2021-11-22)
### Community 132 - "Community 132"
### Community 133 - "Community 133"
Cohesion: 0.29
Nodes (6): 1.2.3(2021-02-05), 1.2.4(2021-05-12), 1.3.0(2021-07-13), 1.3.1(2021-07-30), 1.3.2(2021-11-09), 1.4.0(2021-11-19)
### Community 133 - "Community 133"
Cohesion: 0.4
Nodes (4): {
BridgeError
}, {
CacheKeyCascade
}, {
Validator
}, Validator
### Community 140 - "Community 140"
Cohesion: 0.47
Nodes (3): get_file_data(), get_file_ext(), get_file_info()
@@ -746,17 +746,17 @@ Cohesion: 0.47
Nodes (3): isOpenStat(), mounted(), title()
### Community 145 - "Community 145"
Cohesion: 0.53
Nodes (4): chooseAndUploadImages(), extractUrl(), getToken(), parseUploadBody()
### Community 146 - "Community 146"
Cohesion: 0.73
Nodes (5): extractOptions(), fetchCustomerOptions(), fetchProductOptions(), fetchVehicleOptions(), unwrapPortal()
### Community 147 - "Community 147"
### Community 146 - "Community 146"
Cohesion: 0.33
Nodes (4): fetchPortalUserOptions(), loadUsers(), parseResponseJson(), fetchServicePhone()
### Community 147 - "Community 147"
Cohesion: 0.53
Nodes (4): chooseAndUploadImages(), extractUrl(), getToken(), parseUploadBody()
### Community 148 - "Community 148"
Cohesion: 0.53
Nodes (4): HTMLParser(), parseAttrs(), parseHtml(), removeDOCTYPE()
@@ -782,41 +782,41 @@ Cohesion: 0.5
Nodes (4): emit, onMask(), panelStyle, props
### Community 158 - "Community 158"
Cohesion: 0.6
Nodes (4): isMpWebviewRoute(), msg, openMenu(), openPage()
### Community 159 - "Community 159"
Cohesion: 0.4
Nodes (4): dashboardApi, inventoryApi, planApi, weighingApi
### Community 160 - "Community 160"
### Community 159 - "Community 159"
Cohesion: 0.4
Nodes (4): 0.0.3(2021-02-05), 0.0.4(2021-05-12), 0.1.0(2021-07-13), 1.0.0(2021-11-19)
### Community 161 - "Community 161"
### Community 160 - "Community 160"
Cohesion: 0.4
Nodes (4): 0.0.3(2021-02-04), 0.0.4(2021-05-12), 0.0.5(2021-07-08), 1.0.0(2021-11-19)
### Community 162 - "Community 162"
### Community 161 - "Community 161"
Cohesion: 0.4
Nodes (4): [点击查看详细文档](https://uniapp.dcloud.io/component/uniui/uni-indexed-list), List 列表, 基于uni-list扩展的页面模板, 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
### Community 163 - "Community 163"
### Community 162 - "Community 162"
Cohesion: 0.4
Nodes (4): 1.0.5(2021-02-05), 1.0.6(2021-05-12), 1.1.0(2021-07-30), 1.2.0(2021-11-19)
### Community 164 - "Community 164"
### Community 163 - "Community 163"
Cohesion: 0.4
Nodes (4): 使用说明, code:block1 (type InstallApkOptions = {), uni-installApk, uni.installApk(options : InstallApkOptions):void
### Community 165 - "Community 165"
### Community 164 - "Community 164"
Cohesion: 0.4
Nodes (4): 1.0.0(2021-11-18), 1.0.1(2021-11-22), 1.0.2(2021-11-22), 1.0.3(2022-01-21)
### Community 166 - "Community 166"
### Community 165 - "Community 165"
Cohesion: 0.4
Nodes (4): 1.0.1(2021-02-05), 1.0.2(2021-05-12), 1.1.0(2021-11-19), 1.1.1(2022-05-19)
### Community 166 - "Community 166"
Cohesion: 0.6
Nodes (4): isMpWebviewRoute(), msg, openMenu(), openPage()
### Community 167 - "Community 167"
Cohesion: 0.5
Nodes (3): fontData, IconsData, IconsDataItem
@@ -1006,25 +1006,25 @@ Cohesion: 0.5
Nodes (3): [查看文档](https://uniapp.dcloud.io/component/uniui/uni-transition), Transition 过渡动画, 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
## Knowledge Gaps
- **1191 isolated node(s):** `app`, `db`, `validator`, `crypto`, `{
- **1192 isolated node(s):** `app`, `db`, `validator`, `crypto`, `{
HTTP_STATUS
}` (+1186 more)
}` (+1187 more)
These have ≤1 connection - possible missing edges or undocumented components.
- **39 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 `resolveApiBase()` connect `Community 85` to `Community 41`, `Community 236`, `Community 145`, `Community 22`, `Community 86`?**
- **Why does `resolveApiBase()` connect `Community 86` to `Community 41`, `Community 236`, `Community 147`, `Community 85`, `Community 23`?**
_High betweenness centrality (0.002) - this node is a cross-community bridge._
- **Why does `request()` connect `Community 41` to `Community 146`, `Community 147`, `Community 85`?**
_High betweenness centrality (0.002) - this node is a cross-community bridge._
- **Why does `fetchPortalUserOptions()` connect `Community 147` to `Community 41`, `Community 115`?**
- **Why does `request()` connect `Community 41` to `Community 145`, `Community 146`, `Community 86`?**
_High betweenness centrality (0.001) - this node is a cross-community bridge._
- **Why does `normalizeAvatarUrlForMini()` connect `Community 23` to `Community 86`?**
_High betweenness centrality (0.001) - this node is a cross-community bridge._
- **Are the 5 inferred relationships involving `lt()` (e.g. with `d()` and `n`) actually correct?**
_`lt()` has 5 INFERRED edges - model-reasoned connections that need verification._
- **What connects `app`, `db`, `validator` to the rest of the system?**
_1191 weakly-connected nodes found - possible documentation gaps or missing edges._
_1192 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `Community 0` be split into smaller, more focused modules?**
_Cohesion score 0.06 - nodes in this community are weakly interconnected._
- **Should `Community 1` be split into smaller, more focused modules?**
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "label": "pl.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L1"}, {"id": "api_pl_unwraplist", "label": "unwrapList()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L7"}, {"id": "api_pl_unwrapentity", "label": "unwrapEntity()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L21"}, {"id": "api_pl_fuelregisterapi", "label": "fuelRegisterApi", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L29"}, {"id": "api_pl_unwrapdata", "label": "unwrapData()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L58"}, {"id": "api_pl_siteplanapi", "label": "sitePlanApi", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L64"}, {"id": "api_pl_driverplanapi", "label": "driverPlanApi", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L78"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "dbrequest", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "dboptions", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "api_pl_unwraplist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L7", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "api_pl_unwrapentity", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L21", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "api_pl_fuelregisterapi", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L29", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "api_pl_unwrapdata", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L58", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "api_pl_siteplanapi", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L64", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_api_pl_js", "target": "api_pl_driverplanapi", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L78", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_pl_unwraplist", "callee": "Number", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L17"}, {"caller_nid": "api_pl_unwraplist", "callee": "isArray", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/api/pl.js", "source_location": "L18"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_fuel_register_form_vue", "label": "form.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/form.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_plfuelregistercopy_js", "label": "plFuelRegisterCopy.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L1"}, {"id": "utils_plfuelregistercopy_category_labels", "label": "CATEGORY_LABELS", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L5"}, {"id": "utils_plfuelregistercopy_countplattachmenturls", "label": "countPlAttachmentUrls()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L11"}, {"id": "utils_plfuelregistercopy_getplfuelcategorylabel", "label": "getPlFuelCategoryLabel()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L18"}, {"id": "utils_plfuelregistercopy_buildfuelregistercopytext", "label": "buildFuelRegisterCopyText()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L22"}, {"id": "utils_plfuelregistercopy_copyfuelregistertoclipboard", "label": "copyFuelRegisterToClipboard()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L58"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_plfuelregistercopy_js", "target": "utils_plfuelregistercopy_category_labels", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_plfuelregistercopy_js", "target": "utils_plfuelregistercopy_countplattachmenturls", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L11", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_plfuelregistercopy_js", "target": "utils_plfuelregistercopy_getplfuelcategorylabel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L18", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_plfuelregistercopy_js", "target": "utils_plfuelregistercopy_buildfuelregistercopytext", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L22", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_plfuelregistercopy_js", "target": "utils_plfuelregistercopy_copyfuelregistertoclipboard", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L58", "weight": 1.0}, {"source": "utils_plfuelregistercopy_buildfuelregistercopytext", "target": "utils_plfuelregistercopy_getplfuelcategorylabel", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L45", "weight": 1.0}, {"source": "utils_plfuelregistercopy_buildfuelregistercopytext", "target": "utils_plfuelregistercopy_countplattachmenturls", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L52", "weight": 1.0}, {"source": "utils_plfuelregistercopy_copyfuelregistertoclipboard", "target": "utils_plfuelregistercopy_buildfuelregistercopytext", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L59", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_plfuelregistercopy_countplattachmenturls", "callee": "filter", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L12"}, {"caller_nid": "utils_plfuelregistercopy_countplattachmenturls", "callee": "map", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L12"}, {"caller_nid": "utils_plfuelregistercopy_countplattachmenturls", "callee": "split", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFuelRegisterCopy.js", "source_location": "L12"}, {"caller_nid": "utils_plfuelregistercopy_countplattachmenturls", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/plFLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_fuel_register_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L1"}, {"id": "fuel_register_list_safeareastyle", "label": "safeAreaStyle", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L135"}, {"id": "fuel_register_list_tabs", "label": "tabs", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L137"}, {"id": "fuel_register_list_keyword", "label": "keyword", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L143"}, {"id": "fuel_register_list_activetab", "label": "activeTab", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L144"}, {"id": "fuel_register_list_list", "label": "list", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L145"}, {"id": "fuel_register_list_loading", "label": "loading", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L146"}, {"id": "fuel_register_list_finished", "label": "finished", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L147"}, {"id": "fuel_register_list_refreshing", "label": "refreshing", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L148"}, {"id": "fuel_register_list_currentpage", "label": "currentPage", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L149"}, {"id": "fuel_register_list_listheight", "label": "listHeight", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L151"}, {"id": "fuel_register_list_computelistheight", "label": "computeListHeight()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L153"}, {"id": "fuel_register_list_categorylabel", "label": "categoryLabel()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L163"}, {"id": "fuel_register_list_statuslabel", "label": "statusLabel()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L170"}, {"id": "fuel_register_list_statustagclass", "label": "statusTagClass()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L175"}, {"id": "fuel_register_list_formatliters", "label": "formatLiters()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L179"}, {"id": "fuel_register_list_formattons", "label": "formatTons()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L184"}, {"id": "fuel_register_list_fetchpage", "label": "fetchPage()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L193"}, {"id": "fuel_register_list_onrefresh", "label": "onRefresh()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L219"}, {"id": "fuel_register_list_onpullrefresh", "label": "onPullRefresh()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L227"}, {"id": "fuel_register_list_onloadmore", "label": "onLoadMore()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L234"}, {"id": "fuel_register_list_ontabchange", "label": "onTabChange()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L239"}, {"id": "fuel_register_list_clearkeyword", "label": "clearKeyword()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L244"}, {"id": "fuel_register_list_goback", "label": "goBack()", "file_type": "code", "source_file": "/Users/zlwuLine truncated
+5 -5
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>graphify - miniprogram/graphify-out/graph.html</title>
<title>graphify - /Users/zlwu/work/00code/shanxia2.0/miniprogram/graphify-out/graph.html</title>
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
@@ -61,12 +61,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">3103 nodes &middot; 3640 edges &middot; 329 communities</div>
<div id="stats">3110 nodes &middot; 3650 edges &middot; 329 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 266, "community_name": "Community 266", "source_file": "App.vue", "file_type": "code", "degree": 0}, {"id": "jest_config_js", "label": "jest.config.js", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "jest.config.js", "community": 267, "community_name": "Community 267", "source_file": "jest.config.js", "file_type": "code", "degree": 0}, {"id": "main_js", "label": "main.js", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "main.js", "community": 37, "community_name": "Community 37", "source_file": "main.js", "file_type": "code", "degree": 3}, {"id": "miniprogram_main_app", "label": "app", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "app", "community": 37, "community_name": "Community 37", "source_file": "main.js", "file_type": "code", "degree": 1}, {"id": "miniprogram_main_createapp", "label": "createApp()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "createApp()", "community": 37, "community_name": "Community 37", "source_file": "main.js", "file_type": "code", "degree": 1}, {"id": "uni_modules_uni_row_components_uni_row_uni_row_vue", "label": "uni-row.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "uni-row.vue", "community": 242, "community_name": "Community 242", "source_file": "uni_modules/uni-row/components/uni-row/uni-row.vue", "file_type": "code", "degree": 1}, {"id": "uni_row_uni_row_if", "label": "if()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "if()", "community": 242, "community_name": "Community 242", "source_file": "uni_modules/uni-row/components/uni-row/uni-row.vue", "file_type": "code", "degree": 1}, {"id": "uni_modules_uni_row_components_uni_col_uni_col_vue", "label": "uni-col.vue", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "uni-col.vue", "community": 223, "community_name": "Community 223", "source_file": "uni_modules/uni-row/components/uni-col/uni-col.vue", "file_type": "code", "degree": 2}, {"id": "uni_col_uni_col_handler", "label": "handler()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "handler()", "community": 223, "community_name": "Community 223", "source_file": "uni_modules/uni-row/components/uni-col/uni-col.vue", "file_type": "code", "degree": 1}, {"id": "uni_col_uni_col_res", "label": "res()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "res()", "community": 223, "community_name": "Community 223", "source_file": "uni_modules/uni-row/components/uni-col/uni-col.vue", "file_type": "code", "degree": 1}, {"id": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "label": "uni-badge.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "uni-badge.vue", "community": 102, "community_name": "Community 102", "source_file": "uni_modules/uni-badge/components/uni-badge/uni-badge.vue", "file_type": "code", "degree": 8}, {"id": "uni_badge_uni_badge_default", "label": "default()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "default()", "community": 102, "community_name": "Community 102", "source_file": "uni_modules/uni-badge/components/uni-badge/uni-badge.vue", "file_type": "code", "degree": 1}, {"id": "uni_badge_uni_badge_data", "label": "data()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "data()", "communLine truncated
const RAW_EDGES = [{"from": "main_js", "to": "store_index_js", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_js", "to": "miniprogram_main_app", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_js", "to": "miniprogram_main_createapp", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_row_components_uni_row_uni_row_vue", "to": "uni_row_uni_row_if", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_row_components_uni_col_uni_col_vue", "to": "uni_col_uni_col_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_row_components_uni_col_uni_col_vue", "to": "uni_col_uni_col_res", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_default", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_width", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_classnames", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_positionstyle", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_dotstyle", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_displayvalue", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_onclick", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "to": "uni_open_bridge_common_consts_http_status", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "to": "uni_open_bridge_common_consts_providertype", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "to": "uni_open_bridge_common_consts_errorcodetype", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_weixin_server_js", "to": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_index_js", "to": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_config_js", "toLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 73}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 67}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 52}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 50}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 50}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 50}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 49}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 48}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 44}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 43}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 41}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 40}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 39}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 39}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 36}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 36}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 34}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 33}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 32}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 31}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 31}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 31}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 30}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 30}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 27}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 27}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 26}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 26}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 26}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 26}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 26}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 26}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 26}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 24}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 23}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 23}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 23}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 23}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 23}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 22}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 22}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 21}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 21}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 21}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 20}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 20}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 20}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 20}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 20}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 19}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 18}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 18}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 17}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 17}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 16}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 16}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 16}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 16}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 15}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 15}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 14}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 14}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 14}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 14}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 14}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 13}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 13}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 13}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 13}, {"cid": 70, "color": "#4E79A7", "Line truncated
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 266, "community_name": "Community 266", "source_file": "App.vue", "file_type": "code", "degree": 0}, {"id": "jest_config_js", "label": "jest.config.js", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "jest.config.js", "community": 267, "community_name": "Community 267", "source_file": "jest.config.js", "file_type": "code", "degree": 0}, {"id": "main_js", "label": "main.js", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "main.js", "community": 37, "community_name": "Community 37", "source_file": "main.js", "file_type": "code", "degree": 3}, {"id": "miniprogram_main_app", "label": "app", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "app", "community": 37, "community_name": "Community 37", "source_file": "main.js", "file_type": "code", "degree": 1}, {"id": "miniprogram_main_createapp", "label": "createApp()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "createApp()", "community": 37, "community_name": "Community 37", "source_file": "main.js", "file_type": "code", "degree": 1}, {"id": "uni_modules_uni_row_components_uni_row_uni_row_vue", "label": "uni-row.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "uni-row.vue", "community": 242, "community_name": "Community 242", "source_file": "uni_modules/uni-row/components/uni-row/uni-row.vue", "file_type": "code", "degree": 1}, {"id": "uni_row_uni_row_if", "label": "if()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "if()", "community": 242, "community_name": "Community 242", "source_file": "uni_modules/uni-row/components/uni-row/uni-row.vue", "file_type": "code", "degree": 1}, {"id": "uni_modules_uni_row_components_uni_col_uni_col_vue", "label": "uni-col.vue", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "uni-col.vue", "community": 223, "community_name": "Community 223", "source_file": "uni_modules/uni-row/components/uni-col/uni-col.vue", "file_type": "code", "degree": 2}, {"id": "uni_col_uni_col_handler", "label": "handler()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "handler()", "community": 223, "community_name": "Community 223", "source_file": "uni_modules/uni-row/components/uni-col/uni-col.vue", "file_type": "code", "degree": 1}, {"id": "uni_col_uni_col_res", "label": "res()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "res()", "community": 223, "community_name": "Community 223", "source_file": "uni_modules/uni-row/components/uni-col/uni-col.vue", "file_type": "code", "degree": 1}, {"id": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "label": "uni-badge.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "uni-badge.vue", "community": 102, "community_name": "Community 102", "source_file": "uni_modules/uni-badge/components/uni-badge/uni-badge.vue", "file_type": "code", "degree": 8}, {"id": "uni_badge_uni_badge_default", "label": "default()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "default()", "community": 102, "community_name": "Community 102", "source_file": "uni_modules/uni-badge/components/uni-badge/uni-badge.vue", "file_type": "code", "degree": 1}, {"id": "uni_badge_uni_badge_data", "label": "data()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "data()", "communLine truncated
const RAW_EDGES = [{"from": "main_js", "to": "store_index_js", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_js", "to": "miniprogram_main_app", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_js", "to": "miniprogram_main_createapp", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_row_components_uni_row_uni_row_vue", "to": "uni_row_uni_row_if", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_row_components_uni_col_uni_col_vue", "to": "uni_col_uni_col_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_row_components_uni_col_uni_col_vue", "to": "uni_col_uni_col_res", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_default", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_width", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_classnames", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_positionstyle", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_dotstyle", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_displayvalue", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_badge_components_uni_badge_uni_badge_vue", "to": "uni_badge_uni_badge_onclick", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "to": "uni_open_bridge_common_consts_http_status", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "to": "uni_open_bridge_common_consts_providertype", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "to": "uni_open_bridge_common_consts_errorcodetype", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_weixin_server_js", "to": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_index_js", "to": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_consts_js", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "uni_modules_uni_open_bridge_common_unicloud_cloudfunctions_common_uni_open_bridge_common_config_js", "toLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 73}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 67}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 52}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 51}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 50}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 50}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 49}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 48}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 44}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 43}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 41}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 40}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 39}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 39}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 36}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 36}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 34}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 33}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 33}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 32}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 31}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 31}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 31}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 30}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 30}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 27}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 27}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 26}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 26}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 26}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 26}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 26}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 26}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 24}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 23}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 23}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 23}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 23}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 23}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 22}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 22}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 21}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 21}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 20}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 20}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 20}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 20}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 20}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 20}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 19}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 18}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 18}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 17}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 17}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 16}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 16}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 16}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 15}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 15}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 15}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 14}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 14}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 14}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 14}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 13}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 13}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 13}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 13}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 13}, {"cid": 70, "color": "#4E79A7", "Line truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
File diff suppressed because it is too large. Load diff
+85 -8
View File
@@ -15,6 +15,11 @@
<text class="form-badge">{{ formBadge }}</text>
</view>
<view v-if="detailRecord?.seqNo != null" class="field">
<text class="field-label">序号</text>
<input class="form-input" :value="String(detailRecord.seqNo)" disabled />
</view>
<view v-if="form.registerNo" class="field">
<text class="field-label">登记单号</text>
<input class="form-input" :value="form.registerNo" disabled />
@@ -141,8 +146,26 @@
</view>
</view>
<view v-if="!readonly" class="bottom-action-bar">
<button class="btn btn-primary btn-block" :disabled="submitting || uploading" @click="onSubmit">
<view v-if="readonly" class="bottom-action-bar">
<button class="btn btn-primary btn-block" @click="onCopyToWechat">复制信息发微信群</button>
</view>
<view v-else class="bottom-action-bar">
<button
v-if="isEdit"
class="btn btn-ghost"
style="flex: 1"
:disabled="submitting || uploading"
@click="onCopyToWechat"
>
复制发群
</button>
<button
class="btn btn-primary"
:class="{ 'btn-block': !isEdit }"
:style="isEdit ? 'flex: 1' : ''"
:disabled="submitting || uploading"
@click="onSubmit"
>
{{ submitting ? '保存中…' : '保存' }}
</button>
</view>
@@ -205,6 +228,7 @@ import { fuelRegisterApi, fetchVehicleOptions } from '@/api/pl'
import { chooseAndUploadImages, previewImages } from '@/utils/upload'
import { useUserStore } from '@/stores/user'
import { getSafeAreaStyle } from '@/utils/safeArea'
import { copyFuelRegisterToClipboard } from '@/utils/plFuelRegisterCopy'
const safeAreaStyle = getSafeAreaStyle()
const userStore = useUserStore()
@@ -221,6 +245,8 @@ const readonly = ref(false)
const submitting = ref(false)
const uploading = ref(false)
const imageUrls = ref([])
/** 详情/保存后完整记录(含 seqNo),用于复制发群 */
const detailRecord = ref(null)
const vehicles = ref([])
const showVehiclePicker = ref(false)
const vehicleKeyword = ref('')
@@ -463,6 +489,7 @@ function buildPayload() {
async function loadEditData(id) {
try {
const data = await fuelRegisterApi.get(id)
detailRecord.value = data
form.registerNo = data.registerNo || ''
form.fuelCategory = data.fuelCategory || 'bailian'
form.registerDate = data.registerDate || ''
@@ -481,6 +508,54 @@ async function loadEditData(id) {
}
}
function buildCopyRowFromForm(saved) {
const info = userStore.userInfo || {}
const name = info.realName || info.nickName || info.username || ''
return {
seqNo: saved?.seqNo,
registerNo: saved?.registerNo || form.registerNo,
fuelCategory: saved?.fuelCategory || form.fuelCategory,
registerDate: saved?.registerDate || form.registerDate,
registrantName: saved?.registrantName || name,
licensePlate: saved?.licensePlate || form.licensePlate,
odometerKm:
saved?.odometerKm != null
? saved.odometerKm
: form.odometerKm === ''
? null
: Number(form.odometerKm),
fuelLiters:
saved?.fuelLiters != null ? saved.fuelLiters : Number(form.fuelLiters),
fuelTons: saved?.fuelTons,
attachmentUrls: saved?.attachmentUrls ?? imageUrls.value.join(','),
remark: saved?.remark ?? form.remark
}
}
function onCopyToWechat() {
const row = detailRecord.value || buildCopyRowFromForm(null)
copyFuelRegisterToClipboard(row)
}
function promptCopyAfterSave(saved, isUpdate) {
return new Promise((resolve) => {
// 微信原生 confirmText 最长约 4 字,完整文案放 content
uni.showModal({
title: '提示',
content: `${isUpdate ? '更新成功' : '创建成功'},可将信息复制发到微信群`,
confirmText: '复制发群',
cancelText: '关闭',
success: async (res) => {
if (res.confirm) {
await copyFuelRegisterToClipboard(buildCopyRowFromForm(saved))
}
resolve()
},
fail: () => resolve()
})
})
}
async function onSubmit() {
if (!validate()) return
if (uploading.value) {
@@ -490,14 +565,16 @@ async function onSubmit() {
submitting.value = true
try {
const payload = buildPayload()
if (editId.value) {
await fuelRegisterApi.update(editId.value, payload)
uni.showToast({ title: '更新成功', icon: 'success' })
const editing = !!editId.value
let saved
if (editing) {
saved = await fuelRegisterApi.update(editId.value, payload)
} else {
await fuelRegisterApi.create(payload)
uni.showToast({ title: '创建成功', icon: 'success' })
saved = await fuelRegisterApi.create(payload)
}
setTimeout(() => goBack(), 500)
detailRecord.value = saved
await promptCopyAfterSave(saved, editing)
goBack()
} catch (e) {
// toasted
} finally {
@@ -72,6 +72,10 @@
<view class="ec-amount-label">加油升数</view>
<view class="ec-amount">{{ formatLiters(item.fuelLiters) }} L</view>
<view class="list-card-kv">
<view class="list-card-kv__row">
<text class="list-card-kv__k">序号</text>
<text class="list-card-kv__v">{{ item.seqNo != null ? item.seqNo : '—' }}</text>
</view>
<view class="list-card-kv__row">
<text class="list-card-kv__k">登记单号</text>
<text class="list-card-kv__v">{{ item.registerNo || '—' }}</text>
@@ -103,6 +107,7 @@
</view>
<view class="ec-bottom" @click.stop>
<view class="op-actions">
<button class="btn btn-sm btn-ghost" @click="handleCopy(item)">复制发群</button>
<template v-if="item.status === 'normal'">
<button class="btn btn-sm btn-primary" @click="goForm(item.id)">编辑</button>
<button class="btn btn-sm btn-danger" @click="handleCancel(item)">作废</button>
@@ -125,6 +130,7 @@ import { onShow } from '@dcloudio/uni-app'
import { PAGE_PATHS } from '@/config/api'
import { fuelRegisterApi } from '@/api/pl'
import { getSafeAreaStyle } from '@/utils/safeArea'
import { copyFuelRegisterToClipboard } from '@/utils/plFuelRegisterCopy'
const safeAreaStyle = getSafeAreaStyle()
@@ -249,6 +255,10 @@ function goForm(id) {
uni.navigateTo({ url: `${PAGE_PATHS.plFuelRegisterForm}${q}` })
}
function handleCopy(item) {
copyFuelRegisterToClipboard(item)
}
function handleCancel(item) {
uni.showModal({
title: '作废确认',
+77
View File
@@ -0,0 +1,77 @@
/**
* 加油登记发微信群纯文本(与 web-admin buildFuelRegisterCopyText 对齐)
*/
const CATEGORY_LABELS = {
bailian: '百链',
gas_station: '加油站',
shanxia_factory: '山峡'
}
export function countPlAttachmentUrls(raw) {
return String(raw || '')
.split(',')
.map((s) => s.trim())
.filter(Boolean).length
}
export function getPlFuelCategoryLabel(category) {
return CATEGORY_LABELS[category] || category || '—'
}
export function buildFuelRegisterCopyText(row = {}) {
const dash = '—'
const seq =
row.seqNo != null && Number.isFinite(Number(row.seqNo)) ? String(row.seqNo) : dash
const liters =
row.fuelLiters != null && Number.isFinite(Number(row.fuelLiters))
? Number(row.fuelLiters).toFixed(2)
: dash
let tons = dash
if (row.fuelTons != null && Number.isFinite(Number(row.fuelTons))) {
tons = Number(row.fuelTons).toFixed(3)
} else if (row.fuelLiters != null && Number.isFinite(Number(row.fuelLiters))) {
tons = (Number(row.fuelLiters) / 1176).toFixed(3)
}
const odometer =
row.odometerKm != null && Number.isFinite(Number(row.odometerKm))
? `${Number(row.odometerKm).toFixed(1)} KM`
: dash
const plate = String(row.licensePlate || '').trim() || dash
return [
`【${plate} - 加油登记】`,
`序号:${seq}`,
`登记单号:${row.registerNo || dash}`,
`加油类别:${getPlFuelCategoryLabel(row.fuelCategory)}`,
`日期:${row.registerDate || dash}`,
`登记人:${row.registrantName || dash}`,
`车牌号:${plate}`,
`期初公里数:${odometer}`,
`加油升数:${liters === dash ? dash : `${liters} L`}`,
`加油/吨:${tons}`,
`附件个数:${countPlAttachmentUrls(row.attachmentUrls)}`,
`备注:${String(row.remark || '').trim() || dash}`
].join('\n')
}
/** 复制到剪贴板;成功返回 true */
export function copyFuelRegisterToClipboard(row) {
const text = buildFuelRegisterCopyText(row)
if (!text) {
uni.showToast({ title: '暂无可复制内容', icon: 'none' })
return Promise.resolve(false)
}
return new Promise((resolve) => {
uni.setClipboardData({
data: text,
success: () => {
uni.showToast({ title: '已复制', icon: 'success' })
resolve(true)
},
fail: () => {
uni.showToast({ title: '复制失败', icon: 'none' })
resolve(false)
}
})
})
}