koishi-plugin-rocom 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +53 -0
- package/lib/client.js +473 -0
- package/lib/commands/account.d.ts +5 -0
- package/lib/commands/account.js +205 -0
- package/lib/commands/admin.d.ts +2 -0
- package/lib/commands/admin.js +117 -0
- package/lib/commands/egg.d.ts +2 -0
- package/lib/commands/egg.js +196 -0
- package/lib/commands/merchant.d.ts +2 -0
- package/lib/commands/merchant.js +242 -0
- package/lib/commands/query.d.ts +2 -0
- package/lib/commands/query.js +1264 -0
- package/lib/commands/wiki.d.ts +2 -0
- package/lib/commands/wiki.js +11 -0
- package/lib/egg-service.d.ts +229 -0
- package/lib/egg-service.js +705 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.js +3746 -0
- package/lib/render-templates/bind-list/index.html +51 -0
- package/lib/render-templates/bind-list/style.css +178 -0
- package/lib/render-templates/exchange-hall/css/_@astro-renderers.0KDkAyVb.css +1 -0
- package/lib/render-templates/exchange-hall/css/index.B3tv56V6.css +1 -0
- package/lib/render-templates/exchange-hall/css/index.D2LGPudy.css +1 -0
- package/lib/render-templates/exchange-hall/extracted.css +393 -0
- package/lib/render-templates/exchange-hall/index.html +99 -0
- package/lib/render-templates/exchange-hall/style.css +267 -0
- package/lib/render-templates/friendship/index.html +58 -0
- package/lib/render-templates/friendship/style.css +182 -0
- package/lib/render-templates/home/data/home_item_list.json +122 -0
- package/lib/render-templates/home/img/home_icon/100604.png +0 -0
- package/lib/render-templates/home/img/home_icon/100604_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100604_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100605.png +0 -0
- package/lib/render-templates/home/img/home_icon/100605_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100605_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100606.png +0 -0
- package/lib/render-templates/home/img/home_icon/100606_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100606_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100607.png +0 -0
- package/lib/render-templates/home/img/home_icon/100607_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100607_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100608.png +0 -0
- package/lib/render-templates/home/img/home_icon/100608_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100608_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100622.png +0 -0
- package/lib/render-templates/home/img/home_icon/100622_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100622_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100623.png +0 -0
- package/lib/render-templates/home/img/home_icon/100623_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100623_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100624.png +0 -0
- package/lib/render-templates/home/img/home_icon/100624_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100624_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100627.png +0 -0
- package/lib/render-templates/home/img/home_icon/100627_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100627_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100684.png +0 -0
- package/lib/render-templates/home/img/home_icon/100684_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100684_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100686.png +0 -0
- package/lib/render-templates/home/img/home_icon/100686_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100686_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100687.png +0 -0
- package/lib/render-templates/home/img/home_icon/100687_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100687_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100689.png +0 -0
- package/lib/render-templates/home/img/home_icon/100689_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100689_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100690.png +0 -0
- package/lib/render-templates/home/img/home_icon/100690_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100690_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100691.png +0 -0
- package/lib/render-templates/home/img/home_icon/100691_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100691_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100692.png +0 -0
- package/lib/render-templates/home/img/home_icon/100692_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100692_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100693.png +0 -0
- package/lib/render-templates/home/img/home_icon/100693_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100693_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100694.png +0 -0
- package/lib/render-templates/home/img/home_icon/100694_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100694_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100706.png +0 -0
- package/lib/render-templates/home/img/home_icon/100706_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100706_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100751.png +0 -0
- package/lib/render-templates/home/img/home_icon/100751_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100751_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100755.png +0 -0
- package/lib/render-templates/home/img/home_icon/100755_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100755_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100762.png +0 -0
- package/lib/render-templates/home/img/home_icon/100762_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100762_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100764.png +0 -0
- package/lib/render-templates/home/img/home_icon/100764_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100764_2.png +0 -0
- package/lib/render-templates/home/img/home_icon/100869.png +0 -0
- package/lib/render-templates/home/img/home_icon/100869_1.png +0 -0
- package/lib/render-templates/home/img/home_icon/100869_2.png +0 -0
- package/lib/render-templates/home/img/img_HomeVisit_Icon1.png +0 -0
- package/lib/render-templates/home/img/img_LevelReward_Bg2.png +0 -0
- package/lib/render-templates/home/index.html +139 -0
- package/lib/render-templates/home/style.css +537 -0
- package/lib/render-templates/ingame-shop/index.html +87 -0
- package/lib/render-templates/ingame-shop/style.css +220 -0
- package/lib/render-templates/inspect/index.html +47 -0
- package/lib/render-templates/inspect/style.css +149 -0
- package/lib/render-templates/lineup/index.html +77 -0
- package/lib/render-templates/lineup/style.css +255 -0
- package/lib/render-templates/lineup-detail/index.html +63 -0
- package/lib/render-templates/lineup-detail/style.css +218 -0
- package/lib/render-templates/menu/index.html +36 -0
- package/lib/render-templates/menu/style.css +126 -0
- package/lib/render-templates/package/index.html +115 -0
- package/lib/render-templates/package/style.css +352 -0
- package/lib/render-templates/personal-card/index.html +292 -0
- package/lib/render-templates/personal-card/style.css +2114 -0
- package/lib/render-templates/pet-wiki/index.html +118 -0
- package/lib/render-templates/pet-wiki/style.css +382 -0
- package/lib/render-templates/player-search/index.html +60 -0
- package/lib/render-templates/player-search/style.css +192 -0
- package/lib/render-templates/record/index.html +86 -0
- package/lib/render-templates/record/style.css +322 -0
- package/lib/render-templates/searcheggs/Pets.json +104328 -0
- package/lib/render-templates/searcheggs/candidates.html +52 -0
- package/lib/render-templates/searcheggs/eggs.py +599 -0
- package/lib/render-templates/searcheggs/index.html +198 -0
- package/lib/render-templates/searcheggs/pair.html +81 -0
- package/lib/render-templates/searcheggs/size.html +82 -0
- package/lib/render-templates/searcheggs/style.css +586 -0
- package/lib/render-templates/searcheggs/want.html +63 -0
- package/lib/render-templates/skill-wiki/index.html +68 -0
- package/lib/render-templates/skill-wiki/style.css +182 -0
- package/lib/render-templates/student/index.html +95 -0
- package/lib/render-templates/student/style.css +255 -0
- package/lib/render-templates/student-perks/index.html +78 -0
- package/lib/render-templates/student-perks/style.css +238 -0
- package/lib/render-templates/student-state/index.html +52 -0
- package/lib/render-templates/student-state/style.css +157 -0
- package/lib/render-templates/yuanxing-shangren/index.html +371 -0
- package/lib/render-templates/yuanxing-shangren/style.css +371 -0
- package/lib/render.d.ts +11 -0
- package/lib/render.js +226 -0
- package/lib/role-token.d.ts +27 -0
- package/lib/role-token.js +137 -0
- package/lib/send-image.d.ts +3 -0
- package/lib/send-image.js +135 -0
- package/lib/subscription-send.d.ts +8 -0
- package/lib/subscription-send.js +48 -0
- package/lib/types.d.ts +32 -0
- package/lib/types.js +2 -0
- package/lib/user.d.ts +67 -0
- package/lib/user.js +176 -0
- package/package.json +58 -0
- package/readme.md +575 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"330001": {
|
|
3
|
+
"id": 330001,
|
|
4
|
+
"name": "向阳花",
|
|
5
|
+
"iconid": 100604
|
|
6
|
+
},
|
|
7
|
+
"330002": {
|
|
8
|
+
"id": 330002,
|
|
9
|
+
"name": "喵喵草",
|
|
10
|
+
"iconid": 100605
|
|
11
|
+
},
|
|
12
|
+
"330003": {
|
|
13
|
+
"id": 330003,
|
|
14
|
+
"name": "蓝掌",
|
|
15
|
+
"iconid": 100606
|
|
16
|
+
},
|
|
17
|
+
"330004": {
|
|
18
|
+
"id": 330004,
|
|
19
|
+
"name": "睡铃",
|
|
20
|
+
"iconid": 100607
|
|
21
|
+
},
|
|
22
|
+
"330005": {
|
|
23
|
+
"id": 330005,
|
|
24
|
+
"name": "天使草",
|
|
25
|
+
"iconid": 100608
|
|
26
|
+
},
|
|
27
|
+
"330006": {
|
|
28
|
+
"id": 330006,
|
|
29
|
+
"name": "伞伞菌",
|
|
30
|
+
"iconid": 100622
|
|
31
|
+
},
|
|
32
|
+
"330007": {
|
|
33
|
+
"id": 330007,
|
|
34
|
+
"name": "蜜黄菌",
|
|
35
|
+
"iconid": 100623
|
|
36
|
+
},
|
|
37
|
+
"330008": {
|
|
38
|
+
"id": 330008,
|
|
39
|
+
"name": "喷气菇",
|
|
40
|
+
"iconid": 100624
|
|
41
|
+
},
|
|
42
|
+
"330009": {
|
|
43
|
+
"id": 330009,
|
|
44
|
+
"name": "幽幽草",
|
|
45
|
+
"iconid": 100627
|
|
46
|
+
},
|
|
47
|
+
"330010": {
|
|
48
|
+
"id": 330010,
|
|
49
|
+
"name": "星霜花",
|
|
50
|
+
"iconid": 100692
|
|
51
|
+
},
|
|
52
|
+
"330011": {
|
|
53
|
+
"id": 330011,
|
|
54
|
+
"name": "雪菇",
|
|
55
|
+
"iconid": 100693
|
|
56
|
+
},
|
|
57
|
+
"330012": {
|
|
58
|
+
"id": 330012,
|
|
59
|
+
"name": "花星角",
|
|
60
|
+
"iconid": 100689
|
|
61
|
+
},
|
|
62
|
+
"330013": {
|
|
63
|
+
"id": 330013,
|
|
64
|
+
"name": "荧光兰",
|
|
65
|
+
"iconid": 100694
|
|
66
|
+
},
|
|
67
|
+
"330014": {
|
|
68
|
+
"id": 330014,
|
|
69
|
+
"name": "大嘴花",
|
|
70
|
+
"iconid": 100684
|
|
71
|
+
},
|
|
72
|
+
"330015": {
|
|
73
|
+
"id": 330015,
|
|
74
|
+
"name": "流星兰",
|
|
75
|
+
"iconid": 100691
|
|
76
|
+
},
|
|
77
|
+
"330016": {
|
|
78
|
+
"id": 330016,
|
|
79
|
+
"name": "紫晶菇",
|
|
80
|
+
"iconid": 100706
|
|
81
|
+
},
|
|
82
|
+
"330017": {
|
|
83
|
+
"id": 330017,
|
|
84
|
+
"name": "海桑花",
|
|
85
|
+
"iconid": 100687
|
|
86
|
+
},
|
|
87
|
+
"330018": {
|
|
88
|
+
"id": 330018,
|
|
89
|
+
"name": "恶魔雪茄",
|
|
90
|
+
"iconid": 100686
|
|
91
|
+
},
|
|
92
|
+
"330019": {
|
|
93
|
+
"id": 330019,
|
|
94
|
+
"name": "火焰花",
|
|
95
|
+
"iconid": 100690
|
|
96
|
+
},
|
|
97
|
+
"330020": {
|
|
98
|
+
"id": 330020,
|
|
99
|
+
"name": "彩玉花",
|
|
100
|
+
"iconid": 100751
|
|
101
|
+
},
|
|
102
|
+
"330021": {
|
|
103
|
+
"id": 330021,
|
|
104
|
+
"name": "象牙花",
|
|
105
|
+
"iconid": 100762
|
|
106
|
+
},
|
|
107
|
+
"330022": {
|
|
108
|
+
"id": 330022,
|
|
109
|
+
"name": "海神花",
|
|
110
|
+
"iconid": 100755
|
|
111
|
+
},
|
|
112
|
+
"330023": {
|
|
113
|
+
"id": 330023,
|
|
114
|
+
"name": "紫雀花",
|
|
115
|
+
"iconid": 100764
|
|
116
|
+
},
|
|
117
|
+
"330024": {
|
|
118
|
+
"id": 330024,
|
|
119
|
+
"name": "短木莲",
|
|
120
|
+
"iconid": 100869
|
|
121
|
+
}
|
|
122
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=1200, initial-scale=1">
|
|
6
|
+
<link rel="stylesheet" href="{{_res_path}}render/home/style.css">
|
|
7
|
+
<title>洛克家园</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div class="home-page">
|
|
11
|
+
<div class="page-bg"></div>
|
|
12
|
+
|
|
13
|
+
<header class="home-header">
|
|
14
|
+
<div class="home-title">{{title}}</div>
|
|
15
|
+
<div class="home-title-ghost">ROCOM HOME</div>
|
|
16
|
+
{{if updatedAt}}
|
|
17
|
+
<div class="update-badge">数据更新时间:{{updatedAt}}</div>
|
|
18
|
+
{{/if}}
|
|
19
|
+
</header>
|
|
20
|
+
|
|
21
|
+
<section class="profile-strip">
|
|
22
|
+
<img class="home-icon" src="{{_res_path}}render/home/img/img_HomeVisit_Icon1.png" alt="">
|
|
23
|
+
<div class="profile-main">
|
|
24
|
+
<div class="home-name-row">
|
|
25
|
+
<span class="home-owner">{{homeName}}</span>
|
|
26
|
+
<span class="uid-pill">UID {{uid}}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="profile-subtitle">{{subtitle}}</div>
|
|
29
|
+
</div>
|
|
30
|
+
</section>
|
|
31
|
+
|
|
32
|
+
<section class="summary-strip">
|
|
33
|
+
{{each summaryCards item}}
|
|
34
|
+
<div class="summary-item">
|
|
35
|
+
<div class="summary-label">{{item.label}}</div>
|
|
36
|
+
<div class="summary-value">{{item.value}}</div>
|
|
37
|
+
</div>
|
|
38
|
+
{{/each}}
|
|
39
|
+
</section>
|
|
40
|
+
|
|
41
|
+
<main class="content-grid">
|
|
42
|
+
<div class="left-column">
|
|
43
|
+
<section class="panel garden-panel">
|
|
44
|
+
<div class="panel-head">
|
|
45
|
+
<div>
|
|
46
|
+
<div class="panel-label">Home Garden</div>
|
|
47
|
+
<div class="garden-title-row">
|
|
48
|
+
<h2>菜园情况</h2>
|
|
49
|
+
<div class="guard-inline">
|
|
50
|
+
<span class="guard-inline-label">守卫精灵</span>
|
|
51
|
+
{{if guardPets.length}}
|
|
52
|
+
{{each guardPets item}}
|
|
53
|
+
<span class="guard-inline-name">{{item.name}}</span>
|
|
54
|
+
<span class="status-pill status-{{item.statusClass}}">{{item.statusText}}</span>
|
|
55
|
+
{{/each}}
|
|
56
|
+
{{else}}
|
|
57
|
+
<span class="guard-inline-empty">{{guardEmptyText}}</span>
|
|
58
|
+
{{/if}}
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<span class="panel-count">{{gardenCount}}</span>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
{{if gardenPlots.length}}
|
|
66
|
+
<div class="garden-grid">
|
|
67
|
+
{{each gardenPlots item}}
|
|
68
|
+
<article class="plot-card">
|
|
69
|
+
<div class="plot-index">田地 {{item.landIndex}}</div>
|
|
70
|
+
<div class="plot-main">
|
|
71
|
+
{{if item.iconUrl}}
|
|
72
|
+
<img class="plant-icon" src="{{item.iconUrl}}" alt="">
|
|
73
|
+
{{else}}
|
|
74
|
+
<div class="empty-icon">无图</div>
|
|
75
|
+
{{/if}}
|
|
76
|
+
<div class="plot-info">
|
|
77
|
+
<div class="plant-name">{{item.plantName}}</div>
|
|
78
|
+
<div class="plant-state state-{{item.stateType}}">{{item.statusText}}</div>
|
|
79
|
+
<div class="time-text">{{item.leftTimeText}}</div>
|
|
80
|
+
<div class="plot-tags">
|
|
81
|
+
{{if item.harvestText}}<span>{{item.harvestText}}</span>{{/if}}
|
|
82
|
+
{{if item.stealText}}<span>{{item.stealText}}</span>{{/if}}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="progress-track">
|
|
87
|
+
<div class="progress-fill" style="width: {{item.progress}}%;"></div>
|
|
88
|
+
</div>
|
|
89
|
+
</article>
|
|
90
|
+
{{/each}}
|
|
91
|
+
</div>
|
|
92
|
+
{{else}}
|
|
93
|
+
<div class="empty-state">当前没有菜园作物信息</div>
|
|
94
|
+
{{/if}}
|
|
95
|
+
</section>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<section class="panel indoor-panel">
|
|
99
|
+
<div class="panel-head">
|
|
100
|
+
<div>
|
|
101
|
+
<div class="panel-label">Indoor Pets</div>
|
|
102
|
+
<h2>室内精灵</h2>
|
|
103
|
+
</div>
|
|
104
|
+
<span class="panel-count">{{indoorCount}}</span>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
{{if indoorPets.length}}
|
|
108
|
+
<div class="pet-grid">
|
|
109
|
+
{{each indoorPets item}}
|
|
110
|
+
<article class="pet-card indoor-card status-{{item.statusClass}}">
|
|
111
|
+
<div class="pet-avatar-wrap">
|
|
112
|
+
{{if item.iconUrl}}
|
|
113
|
+
<img class="pet-avatar" src="{{item.iconUrl}}" alt="">
|
|
114
|
+
{{else}}
|
|
115
|
+
<div class="pet-avatar empty-icon">无图</div>
|
|
116
|
+
{{/if}}
|
|
117
|
+
{{if item.badge}}
|
|
118
|
+
<span class="pet-badge">{{item.badge}}</span>
|
|
119
|
+
{{/if}}
|
|
120
|
+
</div>
|
|
121
|
+
<div class="pet-info">
|
|
122
|
+
<div class="pet-name">{{item.name}}</div>
|
|
123
|
+
<div class="pet-meta">
|
|
124
|
+
<span>Lv.{{item.level}}</span>
|
|
125
|
+
<span class="status-pill status-{{item.statusClass}}">{{item.statusText}}</span>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="pet-note">{{item.note}}</div>
|
|
128
|
+
</div>
|
|
129
|
+
</article>
|
|
130
|
+
{{/each}}
|
|
131
|
+
</div>
|
|
132
|
+
{{else}}
|
|
133
|
+
<div class="empty-state">当前没有室内精灵信息</div>
|
|
134
|
+
{{/if}}
|
|
135
|
+
</section>
|
|
136
|
+
</main>
|
|
137
|
+
</div>
|
|
138
|
+
</body>
|
|
139
|
+
</html>
|