koishi-plugin-rocom 1.0.11 → 1.0.13

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 (42) hide show
  1. package/lib/client.d.ts +17 -1
  2. package/lib/client.js +121 -21
  3. package/lib/commands/merchant.js +409 -61
  4. package/lib/commands/query.js +95 -27
  5. package/lib/index.d.ts +4 -0
  6. package/lib/index.js +600 -127
  7. package/lib/render-templates/home/img/rocomuid/a_title.png +0 -0
  8. package/lib/render-templates/home/img/rocomuid/banner_bg.png +0 -0
  9. package/lib/render-templates/home/img/rocomuid/bg.jpg +0 -0
  10. package/lib/render-templates/home/img/rocomuid/img_head.png +0 -0
  11. package/lib/render-templates/home/img/rocomuid/jindu_bar.png +0 -0
  12. package/lib/render-templates/home/img/rocomuid/jindu_tc.png +0 -0
  13. package/lib/render-templates/home/img/rocomuid/level_icon.png +0 -0
  14. package/lib/render-templates/home/img/rocomuid/pet_bg.png +0 -0
  15. package/lib/render-templates/home/img/rocomuid/plant_bg.png +0 -0
  16. package/lib/render-templates/home/img/rocomuid/star_1.png +0 -0
  17. package/lib/render-templates/home/img/rocomuid/star_8.png +0 -0
  18. package/lib/render-templates/home/img/rocomuid/star_9.png +0 -0
  19. package/lib/render-templates/home/img/rocomuid/title_fg.png +0 -0
  20. package/lib/render-templates/home/img/rocomuid/top_bg.png +0 -0
  21. package/lib/render-templates/home/img/rocomuid/touxiang_mask.png +0 -0
  22. package/lib/render-templates/home/index.html +81 -97
  23. package/lib/render-templates/home/style.css +316 -375
  24. package/lib/render-templates/yuanxing-shangren/CHANGELOG.md +138 -0
  25. package/lib/render-templates/yuanxing-shangren/README.md +86 -0
  26. package/lib/render-templates/yuanxing-shangren/img/coin.png +0 -0
  27. package/lib/render-templates/yuanxing-shangren/img//345/272/225/351/203/250/344/277/241/346/201/257/346/241/206.png +0 -0
  28. package/lib/render-templates/yuanxing-shangren/img//346/240/207/351/242/230.png +0 -0
  29. package/lib/render-templates/yuanxing-shangren/img//347/203/255/351/224/200.png +0 -0
  30. package/lib/render-templates/yuanxing-shangren/img//347/274/226/345/217/267/350/203/214/346/231/257/346/241/206.png +0 -0
  31. package/lib/render-templates/yuanxing-shangren/index.html +233 -148
  32. package/lib/render-templates/yuanxing-shangren/index.html.backup +356 -0
  33. package/lib/render-templates/yuanxing-shangren/merchant.html +461 -0
  34. package/lib/render-templates/yuanxing-shangren/style.css +201 -256
  35. package/lib/render-templates/yuanxing-shangren/today.html +461 -0
  36. package/lib/render-templates/yuanxing-shangren/today.style.css +366 -0
  37. package/lib/render.js +11 -4
  38. package/lib/subscription-send.js +4 -5
  39. package/lib/ttf/rocom_skill_origin.ttf +0 -0
  40. package/lib/ttf//351/200/240/345/255/227/345/267/245/346/210/277/345/220/257/351/273/221/344/275/223.ttf +0 -0
  41. package/lib/types.d.ts +4 -0
  42. package/package.json +1 -1
@@ -2,128 +2,74 @@
2
2
  <html lang="zh-CN">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <meta name="viewport" content="width=1200, initial-scale=1">
5
+ <meta name="viewport" content="width=1000, initial-scale=1">
6
6
  <link rel="stylesheet" href="{{_res_path}}render/home/style.css">
7
7
  <title>洛克家园</title>
8
8
  </head>
9
9
  <body>
10
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>
11
+ <img class="page-bg-img" src="{{_res_path}}render/home/img/rocomuid/bg.jpg" alt="">
12
+ <header class="home-top">
13
+ <img class="top-bg" src="{{_res_path}}render/home/img/rocomuid/top_bg.png" alt="">
14
+ <img class="title-fg" src="{{_res_path}}render/home/img/rocomuid/title_fg.png" alt="">
15
+ <div class="avatar-wrap">
16
+ <img class="avatar-img" src="{{_res_path}}render/home/img/rocomuid/img_head.png" alt="">
17
+ </div>
18
+ <div class="home-profile">
19
+ <div class="home-owner">{{homeName}}的小屋</div>
20
+ <div class="home-uid">学号 {{uid}}</div>
21
+ </div>
16
22
  {{if updatedAt}}
17
- <div class="update-badge">数据更新时间:{{updatedAt}}</div>
23
+ <div class="update-time">{{updatedAt}}</div>
18
24
  {{/if}}
19
25
  </header>
20
26
 
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>
27
+ <section class="home-banner">
28
+ <img class="banner-bg" src="{{_res_path}}render/home/img/rocomuid/banner_bg.png" alt="">
29
+ {{each summaryCards item index}}
30
+ <div class="banner-item banner-item-{{index}}">
31
+ <div class="banner-value">{{item.value}}</div>
37
32
  </div>
38
33
  {{/each}}
39
34
  </section>
40
35
 
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>
36
+ <main class="home-content">
37
+ <section class="section-block">
38
+ <div class="section-title">
39
+ <img src="{{_res_path}}render/home/img/rocomuid/a_title.png" alt="">
40
+ <span>精灵信息</span>
105
41
  </div>
106
-
42
+ {{if guardPets.length}}
43
+ <div class="guard-row">
44
+ <span>守卫精灵</span>
45
+ {{each guardPets item}}
46
+ <strong>{{item.name}}</strong>
47
+ <em class="status-{{item.statusClass}}">{{item.statusText}}</em>
48
+ {{/each}}
49
+ </div>
50
+ {{/if}}
107
51
  {{if indoorPets.length}}
108
52
  <div class="pet-grid">
109
53
  {{each indoorPets item}}
110
- <article class="pet-card indoor-card status-{{item.statusClass}}">
111
- <div class="pet-avatar-wrap">
54
+ <article class="pet-card">
55
+ <img class="card-bg" src="{{_res_path}}render/home/img/rocomuid/pet_bg.png" alt="">
56
+ <div class="pet-avatar-box">
112
57
  {{if item.iconUrl}}
113
58
  <img class="pet-avatar" src="{{item.iconUrl}}" alt="">
114
59
  {{else}}
115
- <div class="pet-avatar empty-icon">无图</div>
60
+ <div class="pet-avatar pet-empty">无图</div>
116
61
  {{/if}}
117
- {{if item.badge}}
118
- <span class="pet-badge">{{item.badge}}</span>
62
+ {{if item.starIconUrl}}
63
+ <img class="pet-star" src="{{item.starIconUrl}}" alt="">
119
64
  {{/if}}
65
+ <div class="level-badge">
66
+ <img src="{{_res_path}}render/home/img/rocomuid/level_icon.png" alt="">
67
+ <span>Lv{{item.level}}</span>
68
+ </div>
120
69
  </div>
121
70
  <div class="pet-info">
122
71
  <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>
72
+ <div class="pet-status">{{item.statusText}}</div>
127
73
  <div class="pet-note">{{item.note}}</div>
128
74
  </div>
129
75
  </article>
@@ -133,7 +79,45 @@
133
79
  <div class="empty-state">当前没有室内精灵信息</div>
134
80
  {{/if}}
135
81
  </section>
82
+
83
+ <section class="section-block">
84
+ <div class="section-title">
85
+ <img src="{{_res_path}}render/home/img/rocomuid/a_title.png" alt="">
86
+ <span>种植信息</span>
87
+ </div>
88
+ {{if gardenPlots.length}}
89
+ <div class="plant-grid">
90
+ {{each gardenPlots item}}
91
+ <article class="plant-card">
92
+ <img class="card-bg" src="{{_res_path}}render/home/img/rocomuid/plant_bg.png" alt="">
93
+ {{if item.iconUrl}}
94
+ <img class="plant-icon" src="{{item.iconUrl}}" alt="">
95
+ {{else}}
96
+ <div class="plant-icon plant-empty">无图</div>
97
+ {{/if}}
98
+ <div class="plant-info">
99
+ <div class="plant-name">{{item.plantName}}</div>
100
+ <div class="plant-state state-{{item.stateType}}">{{item.statusText}}</div>
101
+ {{if !item.ready}}
102
+ <div class="plant-progress">
103
+ <img class="progress-track" src="{{_res_path}}render/home/img/rocomuid/jindu_tc.png" alt="">
104
+ <img class="progress-bar" src="{{_res_path}}render/home/img/rocomuid/jindu_bar.png" style="width: {{item.progress}}%;" alt="">
105
+ </div>
106
+ <div class="plant-time">{{item.leftTimeText}}</div>
107
+ {{/if}}
108
+ </div>
109
+ </article>
110
+ {{/each}}
111
+ </div>
112
+ {{else}}
113
+ <div class="empty-state">当前没有菜园作物信息</div>
114
+ {{/if}}
115
+ </section>
136
116
  </main>
117
+
118
+ <footer class="home-footer">
119
+ <span>WeGame · 洛克家园</span>
120
+ </footer>
137
121
  </div>
138
122
  </body>
139
123
  </html>