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.
Files changed (157) hide show
  1. package/lib/client.d.ts +53 -0
  2. package/lib/client.js +473 -0
  3. package/lib/commands/account.d.ts +5 -0
  4. package/lib/commands/account.js +205 -0
  5. package/lib/commands/admin.d.ts +2 -0
  6. package/lib/commands/admin.js +117 -0
  7. package/lib/commands/egg.d.ts +2 -0
  8. package/lib/commands/egg.js +196 -0
  9. package/lib/commands/merchant.d.ts +2 -0
  10. package/lib/commands/merchant.js +242 -0
  11. package/lib/commands/query.d.ts +2 -0
  12. package/lib/commands/query.js +1264 -0
  13. package/lib/commands/wiki.d.ts +2 -0
  14. package/lib/commands/wiki.js +11 -0
  15. package/lib/egg-service.d.ts +229 -0
  16. package/lib/egg-service.js +705 -0
  17. package/lib/index.d.ts +24 -0
  18. package/lib/index.js +3746 -0
  19. package/lib/render-templates/bind-list/index.html +51 -0
  20. package/lib/render-templates/bind-list/style.css +178 -0
  21. package/lib/render-templates/exchange-hall/css/_@astro-renderers.0KDkAyVb.css +1 -0
  22. package/lib/render-templates/exchange-hall/css/index.B3tv56V6.css +1 -0
  23. package/lib/render-templates/exchange-hall/css/index.D2LGPudy.css +1 -0
  24. package/lib/render-templates/exchange-hall/extracted.css +393 -0
  25. package/lib/render-templates/exchange-hall/index.html +99 -0
  26. package/lib/render-templates/exchange-hall/style.css +267 -0
  27. package/lib/render-templates/friendship/index.html +58 -0
  28. package/lib/render-templates/friendship/style.css +182 -0
  29. package/lib/render-templates/home/data/home_item_list.json +122 -0
  30. package/lib/render-templates/home/img/home_icon/100604.png +0 -0
  31. package/lib/render-templates/home/img/home_icon/100604_1.png +0 -0
  32. package/lib/render-templates/home/img/home_icon/100604_2.png +0 -0
  33. package/lib/render-templates/home/img/home_icon/100605.png +0 -0
  34. package/lib/render-templates/home/img/home_icon/100605_1.png +0 -0
  35. package/lib/render-templates/home/img/home_icon/100605_2.png +0 -0
  36. package/lib/render-templates/home/img/home_icon/100606.png +0 -0
  37. package/lib/render-templates/home/img/home_icon/100606_1.png +0 -0
  38. package/lib/render-templates/home/img/home_icon/100606_2.png +0 -0
  39. package/lib/render-templates/home/img/home_icon/100607.png +0 -0
  40. package/lib/render-templates/home/img/home_icon/100607_1.png +0 -0
  41. package/lib/render-templates/home/img/home_icon/100607_2.png +0 -0
  42. package/lib/render-templates/home/img/home_icon/100608.png +0 -0
  43. package/lib/render-templates/home/img/home_icon/100608_1.png +0 -0
  44. package/lib/render-templates/home/img/home_icon/100608_2.png +0 -0
  45. package/lib/render-templates/home/img/home_icon/100622.png +0 -0
  46. package/lib/render-templates/home/img/home_icon/100622_1.png +0 -0
  47. package/lib/render-templates/home/img/home_icon/100622_2.png +0 -0
  48. package/lib/render-templates/home/img/home_icon/100623.png +0 -0
  49. package/lib/render-templates/home/img/home_icon/100623_1.png +0 -0
  50. package/lib/render-templates/home/img/home_icon/100623_2.png +0 -0
  51. package/lib/render-templates/home/img/home_icon/100624.png +0 -0
  52. package/lib/render-templates/home/img/home_icon/100624_1.png +0 -0
  53. package/lib/render-templates/home/img/home_icon/100624_2.png +0 -0
  54. package/lib/render-templates/home/img/home_icon/100627.png +0 -0
  55. package/lib/render-templates/home/img/home_icon/100627_1.png +0 -0
  56. package/lib/render-templates/home/img/home_icon/100627_2.png +0 -0
  57. package/lib/render-templates/home/img/home_icon/100684.png +0 -0
  58. package/lib/render-templates/home/img/home_icon/100684_1.png +0 -0
  59. package/lib/render-templates/home/img/home_icon/100684_2.png +0 -0
  60. package/lib/render-templates/home/img/home_icon/100686.png +0 -0
  61. package/lib/render-templates/home/img/home_icon/100686_1.png +0 -0
  62. package/lib/render-templates/home/img/home_icon/100686_2.png +0 -0
  63. package/lib/render-templates/home/img/home_icon/100687.png +0 -0
  64. package/lib/render-templates/home/img/home_icon/100687_1.png +0 -0
  65. package/lib/render-templates/home/img/home_icon/100687_2.png +0 -0
  66. package/lib/render-templates/home/img/home_icon/100689.png +0 -0
  67. package/lib/render-templates/home/img/home_icon/100689_1.png +0 -0
  68. package/lib/render-templates/home/img/home_icon/100689_2.png +0 -0
  69. package/lib/render-templates/home/img/home_icon/100690.png +0 -0
  70. package/lib/render-templates/home/img/home_icon/100690_1.png +0 -0
  71. package/lib/render-templates/home/img/home_icon/100690_2.png +0 -0
  72. package/lib/render-templates/home/img/home_icon/100691.png +0 -0
  73. package/lib/render-templates/home/img/home_icon/100691_1.png +0 -0
  74. package/lib/render-templates/home/img/home_icon/100691_2.png +0 -0
  75. package/lib/render-templates/home/img/home_icon/100692.png +0 -0
  76. package/lib/render-templates/home/img/home_icon/100692_1.png +0 -0
  77. package/lib/render-templates/home/img/home_icon/100692_2.png +0 -0
  78. package/lib/render-templates/home/img/home_icon/100693.png +0 -0
  79. package/lib/render-templates/home/img/home_icon/100693_1.png +0 -0
  80. package/lib/render-templates/home/img/home_icon/100693_2.png +0 -0
  81. package/lib/render-templates/home/img/home_icon/100694.png +0 -0
  82. package/lib/render-templates/home/img/home_icon/100694_1.png +0 -0
  83. package/lib/render-templates/home/img/home_icon/100694_2.png +0 -0
  84. package/lib/render-templates/home/img/home_icon/100706.png +0 -0
  85. package/lib/render-templates/home/img/home_icon/100706_1.png +0 -0
  86. package/lib/render-templates/home/img/home_icon/100706_2.png +0 -0
  87. package/lib/render-templates/home/img/home_icon/100751.png +0 -0
  88. package/lib/render-templates/home/img/home_icon/100751_1.png +0 -0
  89. package/lib/render-templates/home/img/home_icon/100751_2.png +0 -0
  90. package/lib/render-templates/home/img/home_icon/100755.png +0 -0
  91. package/lib/render-templates/home/img/home_icon/100755_1.png +0 -0
  92. package/lib/render-templates/home/img/home_icon/100755_2.png +0 -0
  93. package/lib/render-templates/home/img/home_icon/100762.png +0 -0
  94. package/lib/render-templates/home/img/home_icon/100762_1.png +0 -0
  95. package/lib/render-templates/home/img/home_icon/100762_2.png +0 -0
  96. package/lib/render-templates/home/img/home_icon/100764.png +0 -0
  97. package/lib/render-templates/home/img/home_icon/100764_1.png +0 -0
  98. package/lib/render-templates/home/img/home_icon/100764_2.png +0 -0
  99. package/lib/render-templates/home/img/home_icon/100869.png +0 -0
  100. package/lib/render-templates/home/img/home_icon/100869_1.png +0 -0
  101. package/lib/render-templates/home/img/home_icon/100869_2.png +0 -0
  102. package/lib/render-templates/home/img/img_HomeVisit_Icon1.png +0 -0
  103. package/lib/render-templates/home/img/img_LevelReward_Bg2.png +0 -0
  104. package/lib/render-templates/home/index.html +139 -0
  105. package/lib/render-templates/home/style.css +537 -0
  106. package/lib/render-templates/ingame-shop/index.html +87 -0
  107. package/lib/render-templates/ingame-shop/style.css +220 -0
  108. package/lib/render-templates/inspect/index.html +47 -0
  109. package/lib/render-templates/inspect/style.css +149 -0
  110. package/lib/render-templates/lineup/index.html +77 -0
  111. package/lib/render-templates/lineup/style.css +255 -0
  112. package/lib/render-templates/lineup-detail/index.html +63 -0
  113. package/lib/render-templates/lineup-detail/style.css +218 -0
  114. package/lib/render-templates/menu/index.html +36 -0
  115. package/lib/render-templates/menu/style.css +126 -0
  116. package/lib/render-templates/package/index.html +115 -0
  117. package/lib/render-templates/package/style.css +352 -0
  118. package/lib/render-templates/personal-card/index.html +292 -0
  119. package/lib/render-templates/personal-card/style.css +2114 -0
  120. package/lib/render-templates/pet-wiki/index.html +118 -0
  121. package/lib/render-templates/pet-wiki/style.css +382 -0
  122. package/lib/render-templates/player-search/index.html +60 -0
  123. package/lib/render-templates/player-search/style.css +192 -0
  124. package/lib/render-templates/record/index.html +86 -0
  125. package/lib/render-templates/record/style.css +322 -0
  126. package/lib/render-templates/searcheggs/Pets.json +104328 -0
  127. package/lib/render-templates/searcheggs/candidates.html +52 -0
  128. package/lib/render-templates/searcheggs/eggs.py +599 -0
  129. package/lib/render-templates/searcheggs/index.html +198 -0
  130. package/lib/render-templates/searcheggs/pair.html +81 -0
  131. package/lib/render-templates/searcheggs/size.html +82 -0
  132. package/lib/render-templates/searcheggs/style.css +586 -0
  133. package/lib/render-templates/searcheggs/want.html +63 -0
  134. package/lib/render-templates/skill-wiki/index.html +68 -0
  135. package/lib/render-templates/skill-wiki/style.css +182 -0
  136. package/lib/render-templates/student/index.html +95 -0
  137. package/lib/render-templates/student/style.css +255 -0
  138. package/lib/render-templates/student-perks/index.html +78 -0
  139. package/lib/render-templates/student-perks/style.css +238 -0
  140. package/lib/render-templates/student-state/index.html +52 -0
  141. package/lib/render-templates/student-state/style.css +157 -0
  142. package/lib/render-templates/yuanxing-shangren/index.html +371 -0
  143. package/lib/render-templates/yuanxing-shangren/style.css +371 -0
  144. package/lib/render.d.ts +11 -0
  145. package/lib/render.js +226 -0
  146. package/lib/role-token.d.ts +27 -0
  147. package/lib/role-token.js +137 -0
  148. package/lib/send-image.d.ts +3 -0
  149. package/lib/send-image.js +135 -0
  150. package/lib/subscription-send.d.ts +8 -0
  151. package/lib/subscription-send.js +48 -0
  152. package/lib/types.d.ts +32 -0
  153. package/lib/types.js +2 -0
  154. package/lib/user.d.ts +67 -0
  155. package/lib/user.js +176 -0
  156. package/package.json +58 -0
  157. package/readme.md +575 -0
@@ -0,0 +1,292 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=1280, initial-scale=1">
6
+ <link rel="stylesheet" href="{{_res_path}}render/personal-card/style.css">
7
+ <style>
8
+ html, body {
9
+ overflow: visible !important;
10
+ width: auto !important;
11
+ height: auto !important;
12
+ }
13
+
14
+ body {
15
+ background: transparent;
16
+ margin: 0;
17
+ padding: 0;
18
+ display: inline-block;
19
+ min-width: 0;
20
+ }
21
+
22
+ .page-out-client {
23
+ font-size: 14px;
24
+ }
25
+
26
+ .stats-cont {
27
+ height: auto !important;
28
+ min-height: 6.7rem !important;
29
+ display: block !important;
30
+ overflow: visible !important;
31
+ background: url('{{backgroundUrl}}') no-repeat center top;
32
+ background-size: 100% 100%;
33
+ background-color: #d8cfbf;
34
+ }
35
+
36
+ .page-section-main {
37
+ height: auto !important;
38
+ min-height: 6.7rem !important;
39
+ overflow: visible !important;
40
+ }
41
+
42
+ .stats-cont .stats-page {
43
+ position: relative !important;
44
+ inset: auto !important;
45
+ }
46
+ </style>
47
+ </head>
48
+ <body class="page-out-client">
49
+ <div class="stats-cont page-section-main">
50
+ <div class="stats-page">
51
+ <div class="stats-title"></div>
52
+ <div class="stats-main">
53
+ <div class="stats-left">
54
+ <div class="stats-user-info">
55
+ <div class="user-info-header">
56
+ <div class="user-avatar">
57
+ <div class="helper-image">
58
+ <img alt="{{userName}}" class="helper-image-pic" src="{{userAvatarDisplay}}" loading="eager" onerror="this.onerror=null;this.src='data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%23333\'%3E%3Ccircle cx=\'12\' cy=\'12\' r=\'12\'/%3E%3C/svg%3E'">
59
+ </div>
60
+ </div>
61
+ <div class="user-msg">
62
+ <div class="user-name">
63
+ <span class="name">{{userName}}</span>
64
+ <span class="level">Lv. {{userLevel}}</span>
65
+ </div>
66
+ <div class="user-uid-row">
67
+ <div class="user-uid">ID:{{userUid}}</div>
68
+ {{if hasExtraProfileData}}
69
+ <div class="user-status-badge">
70
+ <span class="status-dot {{profileStatusClass}}"></span>
71
+ <span class="status-text">{{profileStatusText}}</span>
72
+ </div>
73
+ {{/if}}
74
+ </div>
75
+ {{if hasExtraProfileData && profileHeadTags && profileHeadTags.length}}
76
+ <div class="user-head-tags">
77
+ {{each profileHeadTags tag}}
78
+ <div class="head-tag">
79
+ <span class="head-tag-label">{{tag.label}}</span>
80
+ <span class="head-tag-value">{{tag.value}}</span>
81
+ </div>
82
+ {{/each}}
83
+ </div>
84
+ {{/if}}
85
+ </div>
86
+ </div>
87
+ <div class="user-info-bottom">
88
+ <div class="entry-day">
89
+ <span class="label">入学天数</span>
90
+ <span class="num">{{enrollDays}}</span>
91
+ </div>
92
+ <div class="entry-day">
93
+ <span class="label">魔法师星级</span>
94
+ <span class="num num-text">{{starName}}</span>
95
+ </div>
96
+ </div>
97
+ {{if showProfileSignature}}
98
+ <div class="user-signature-inline">
99
+ <span class="user-signature-label">个性签名</span>
100
+ <span class="user-signature-text">{{profileSignature}}</span>
101
+ </div>
102
+ {{/if}}
103
+ </div>
104
+
105
+ <div class="stats-ai-panel">
106
+ {{if hasAiProfileData}}
107
+ <div class="ai-card-panel" pet-name="{{bestPetName}}">
108
+ <div class="ai-card-tit">
109
+ {{each summaryTitleParts part}}
110
+ <span>{{part}}</span>
111
+ {{/each}}
112
+ </div>
113
+ <div class="ai-card-img">
114
+ <div class="helper-image">
115
+ <img alt="{{bestPetName}}" class="helper-image-pic" src="{{bestPetImageDisplay}}" loading="eager" onerror="this.onerror=null;this.src='{{fallbackPetImage}}'">
116
+ </div>
117
+ </div>
118
+ <div class="ai-card-score"><span>{{scoreText}}</span></div>
119
+ <div class="ai-card-name">{{bestPetName}}</div>
120
+ </div>
121
+
122
+ <div class="chart-wrapper">
123
+ <div class="chart-box">
124
+ <svg class="radar-svg" viewBox="0 0 260 260" aria-hidden="true">
125
+ {{each radarPolygons polygon}}
126
+ <polygon points="{{polygon}}" class="radar-grid{{if $index === radarPolygons.length - 1}} radar-grid-outer{{/if}}"></polygon>
127
+ {{/each}}
128
+
129
+ {{each radarAxes axis}}
130
+ <line x1="{{centerX}}" y1="{{centerY}}" x2="{{axis.x}}" y2="{{axis.y}}" class="radar-axis"></line>
131
+ {{/each}}
132
+
133
+ <polygon points="{{radarAreaPoints}}" class="radar-area"></polygon>
134
+ <polygon points="{{radarAreaPoints}}" class="radar-line"></polygon>
135
+
136
+ {{each radarAxisLabels label}}
137
+ <text x="{{label.x}}" y="{{label.y}}" text-anchor="{{label.anchor}}" class="radar-axis-label">{{label.name}}</text>
138
+ {{/each}}
139
+
140
+ {{each radarValueBadges badge}}
141
+ <g transform="translate({{badge.x}}, {{badge.y}})">
142
+ <rect width="{{badge.width}}" height="24" rx="12" class="radar-value-bg"></rect>
143
+ <text x="{{badge.width / 2}}" y="12" text-anchor="middle" class="radar-value-text">{{badge.value}}</text>
144
+ </g>
145
+ {{/each}}
146
+
147
+ {{each radarDots dot}}
148
+ <circle cx="{{dot.x}}" cy="{{dot.y}}" r="5" class="radar-dot"></circle>
149
+ {{/each}}
150
+ </svg>
151
+ </div>
152
+
153
+ <div class="ai-comment">
154
+ <div class="ai-comment-tit"><span>AI点评</span></div>
155
+ <div class="ai-comment-text">{{aiCommentText}}</div>
156
+ </div>
157
+ </div>
158
+ {{else}}
159
+ <div class="stats-ai-empty">
160
+ <div class="nodata-empty">
161
+ <div class="nodata-icon"></div>
162
+ <div class="nodata-text">暂无数据</div>
163
+ <div class="nodata-action"></div>
164
+ </div>
165
+ </div>
166
+ {{/if}}
167
+ </div>
168
+ </div>
169
+
170
+ <div class="stats-right">
171
+ <div class="user-collect-panel">
172
+ <div class="collect-tit">我的收藏</div>
173
+ <div class="user-collect-header">
174
+ <div class="collect-totals">
175
+ <span class="collect-have">{{currentCollectionCount}}</span>
176
+ <span class="collect-total">{{totalCollectionCount}}</span>
177
+ <span class="collect-text">搜集情况</span>
178
+ </div>
179
+ <div class="collect-detail">
180
+ <ul class="collect-spirit">
181
+ <li><span class="label">了不起精灵</span><span class="num">{{amazingSpriteCount}}</span></li>
182
+ <li><span class="label">异色精灵</span><span class="num">{{shinySpriteCount}}</span></li>
183
+ <li><span class="label">炫彩精灵</span><span class="num">{{colorfulSpriteCount}}</span></li>
184
+ </ul>
185
+ <div class="collect-detail-btn">
186
+ <span class="text">{{collectionHint}}</span>
187
+ <i class="icon"></i>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ <div class="user-collect-footer">
192
+ <div class="collect-value"><span class="label">时装收藏</span><span class="num">{{fashionCollectionCount}}</span></div>
193
+ <div class="collect-value"><span class="label">道具收藏</span><span class="num">{{itemCount}}</span></div>
194
+ </div>
195
+ </div>
196
+
197
+ <div class="record-panel">
198
+ <div class="record-tit">闪耀大赛</div>
199
+ {{if hasBattleData}}
200
+ <div class="record-main">
201
+ <div class="record-status">
202
+ <div class="helper-image"><img class="helper-image-pic" src="{{tierBadgeUrl}}"></div>
203
+ </div>
204
+ <div class="record-detail">
205
+ <ul class="record-detail-data">
206
+ <li><span class="label">对战胜率</span><span class="num">{{winRate}}</span></li>
207
+ <li><span class="label">对战场次</span><span class="num">{{totalMatch}}</span></li>
208
+ </ul>
209
+ <div class="record-detail-btn"><span class="text">查看生涯</span><i class="icon"></i></div>
210
+ </div>
211
+ </div>
212
+ <div class="record-recent">
213
+ <div class="record-recent-tit"><span>最近一场比赛</span></div>
214
+ <div class="match-item">
215
+ <div class="team-info">
216
+ <div class="team team-left">
217
+ <div class="team-header">
218
+ <div class="player-avatar"><div class="helper-image"><img class="helper-image-pic" src="{{userAvatarDisplay}}"></div></div>
219
+ <span class="player-name">{{userName}}</span>
220
+ </div>
221
+ <div class="character-list">
222
+ {{each leftTeamPets pet}}
223
+ <div class="character-item"><div class="character-avatar"><div class="helper-image"><img class="helper-image-pic" src="{{pet.icon}}"></div></div></div>
224
+ {{/each}}
225
+ </div>
226
+ </div>
227
+ <div class="match-status-center">
228
+ <div class="match-status {{matchResult}}"></div>
229
+ </div>
230
+ <div class="team team-right">
231
+ <div class="team-header">
232
+ <span class="player-name">{{opponentName}}</span>
233
+ <div class="player-avatar"><div class="helper-image"><img class="helper-image-pic" src="{{opponentAvatarDisplay}}"></div></div>
234
+ </div>
235
+ <div class="character-list">
236
+ {{each rightTeamPets pet}}
237
+ <div class="character-item"><div class="character-avatar"><div class="helper-image"><img class="helper-image-pic" src="{{pet.icon}}"></div></div></div>
238
+ {{/each}}
239
+ </div>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ {{else}}
245
+ <div class="stats-collect-empty">
246
+ <div class="nodata-empty">
247
+ <div class="nodata-icon"></div>
248
+ <div class="nodata-text">暂无数据</div>
249
+ <div class="nodata-action"></div>
250
+ </div>
251
+ </div>
252
+ {{/if}}
253
+ </div>
254
+ </div>
255
+ </div>
256
+
257
+ {{if hasExtraProfileData}}
258
+ <div class="profile-fusion-board">
259
+ <div class="profile-fusion-grid">
260
+ <div class="profile-card-showcase">
261
+ <div class="profile-card-preview">
262
+ {{if profileCardImage}}
263
+ <img class="profile-card-image" src="{{profileCardImage}}" alt="名片展示">
264
+ {{else}}
265
+ <div class="profile-card-placeholder">暂无名片图片</div>
266
+ {{/if}}
267
+ </div>
268
+ </div>
269
+
270
+ <div class="profile-fusion-card">
271
+ <div class="profile-fusion-title">家园信息</div>
272
+ <div class="profile-home-grid">
273
+ {{each profileHomeItems item}}
274
+ <div class="profile-home-item">
275
+ <span class="profile-home-label">{{item.label}}</span>
276
+ <span class="profile-home-value">{{item.value}}</span>
277
+ </div>
278
+ {{/each}}
279
+ </div>
280
+ </div>
281
+ </div>
282
+ </div>
283
+ {{/if}}
284
+ </div>
285
+ <div class="pagination-footer">
286
+ <span class="pagination-hint">{{commandHint}}</span>
287
+ <span class="copyright">{{copyright}}</span>
288
+ </div>
289
+ </div>
290
+ </body>
291
+ </html>
292
+