koishi-plugin-tmp-bot 1.18.0 → 1.18.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.
@@ -6,18 +6,21 @@
6
6
  <style>
7
7
  @font-face {
8
8
  font-family: 'segui-emj';
9
- src: url('package/SEGUIEMJ.TTF');
9
+ src: url('./package/SEGUIEMJ.TTF');
10
10
  font-weight: normal;
11
11
  font-style: normal;
12
12
  }
13
-
14
13
  body {
15
- font-family: 'segui-emj', Arial, sans-serif;
14
+ font-family: 'segui-emj', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
16
15
  margin: 0;
17
16
  padding: 0;
18
17
  background-color: #000;
19
18
  }
20
19
 
20
+ .emoji {
21
+ font-family: 'emoji-font', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
22
+ }
23
+
21
24
  #container {
22
25
  width: 340px;
23
26
  background: linear-gradient(135deg, #1f2f54, #0f2c2a);
@@ -247,7 +250,8 @@
247
250
  2: '* 每日 0:00 重置统计'
248
251
  };
249
252
 
250
- titleElement.textContent = titles[apiData.rankingType] || '🏆 行驶里程排行榜';
253
+ const titleText = titles[apiData.rankingType] || '🏆 行驶里程排行榜';
254
+ titleElement.innerHTML = `<span class="emoji">${titleText.substring(0, 2)}</span>${titleText.substring(2)}`;
251
255
  if (footerElement) {
252
256
  footerElement.textContent = footerNotes[apiData.rankingType] || '* 数据统计说明';
253
257
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-tmp-bot",
3
3
  "description": "欧洲卡车模拟2 TMP查询插件,不会部署的可以直接使用此机器人->QQ:3523283907",
4
- "version": "1.18.0",
4
+ "version": "1.18.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "homepage": "https://github.com/79887143/koishi-plugin-tmp-bot",