@sjtdev/koishi-plugin-dota2tracker 1.5.3 → 1.5.4

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.
@@ -11,7 +11,6 @@ html,
11
11
  body {
12
12
  overflow: hidden;
13
13
  width: 800px;
14
- font-family: "MiSans", sans-serif;
15
14
  }
16
15
 
17
16
  nav {
@@ -8,6 +8,9 @@
8
8
  <%- "<style>" %>
9
9
  <%- include("./match_2/original.css") %>
10
10
  <%- include("./match_2+/extra.css") %>
11
+ <% if (fontFamily && fontFamily.length > 0) { %>
12
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
13
+ <% } %>
11
14
  <%- "</style>" %>
12
15
  </head>
13
16
  <body>
@@ -7,6 +7,9 @@
7
7
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
8
8
  <%- "<style>" %>
9
9
  <%- include("./match_2/original.css") %>
10
+ <% if (fontFamily && fontFamily.length > 0) { %>
11
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
12
+ <% } %>
10
13
  <%- "</style>" %>
11
14
  </head>
12
15
  <body>
@@ -11,7 +11,6 @@
11
11
  background-color: black;
12
12
  color: white;
13
13
  width: 800px;
14
- font-family: 'MiSans', sans-serif;
15
14
  }
16
15
 
17
16
  .wrapper > * {
@@ -346,6 +345,12 @@
346
345
  color: #aaa;
347
346
  }
348
347
  </style>
348
+
349
+ <% if (fontFamily && fontFamily.length > 0) { %>
350
+ <%- "<style>" %>
351
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
352
+ <%- "</style>" %>
353
+ <% } %>
349
354
  </head>
350
355
  <body>
351
356
  <% const player = data;
@@ -12,7 +12,6 @@
12
12
  html {
13
13
  width: 1024px;
14
14
  height: 768px;
15
- font-family: 'MiSans', sans-serif;
16
15
  }
17
16
  body {
18
17
  background: no-repeat center center / cover;
@@ -82,6 +81,12 @@
82
81
  position: absolute;
83
82
  }
84
83
  </style>
84
+
85
+ <% if (fontFamily && fontFamily.length > 0) { %>
86
+ <%- "<style>" %>
87
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
88
+ <%- "</style>" %>
89
+ <% } %>
85
90
  </head>
86
91
  <% const {name, avatar, isRising, prevRank, currRank, date} = data; %>
87
92
  <% const kind = isRising ? "xi" : "bei"; %>
@@ -12,7 +12,6 @@
12
12
  color: white;
13
13
  width: 600px;
14
14
  font-size: 14px;
15
- font-family: 'MiSans', sans-serif;
16
15
  }
17
16
  body > * {
18
17
  width: 100%;
@@ -135,6 +134,12 @@
135
134
  color: #B30000;
136
135
  }
137
136
  </style>
137
+
138
+ <% if (fontFamily && fontFamily.length > 0) { %>
139
+ <%- "<style>" %>
140
+ <%- `body { font-family: ${fontFamily.map(f => `${f}`).join(", ")}; }` %>
141
+ <%- "</style>" %>
142
+ <% } %>
138
143
  </head>
139
144
  <body>
140
145
  <% const { title, players, combinations, showCombi } = data; %>