@playpilot/tpi 8.4.0 → 8.4.2
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/package.json
CHANGED
|
Binary file
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { Language } from '$lib/enums/Language'
|
|
2
3
|
import { SplitTest } from '$lib/enums/SplitTest'
|
|
3
4
|
import { destroyExplore, insertExplore, useExploreRouter } from '$lib/explore'
|
|
4
5
|
import { getPageTextAndElements } from '$lib/injectionElements'
|
|
6
|
+
import { getLanguage } from '$lib/language'
|
|
5
7
|
import { getFullUrlPath } from '$lib/url'
|
|
6
8
|
import { onDestroy } from 'svelte'
|
|
7
9
|
|
|
@@ -186,12 +188,27 @@
|
|
|
186
188
|
|
|
187
189
|
<hr />
|
|
188
190
|
|
|
189
|
-
<
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
<div>
|
|
192
|
+
<small>Region</small>
|
|
193
|
+
<input type="text" value={window.PlayPilotLinkInjections.region} onchange={event => {
|
|
194
|
+
destroyExplore()
|
|
195
|
+
window.PlayPilotLinkInjections.region = (event.target as HTMLInputElement).value
|
|
196
|
+
insertExplore()
|
|
197
|
+
}} />
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div style="margin-top: 4px">
|
|
201
|
+
<small>Language</small>
|
|
202
|
+
<select onchange={event => {
|
|
203
|
+
destroyExplore()
|
|
204
|
+
window.PlayPilotLinkInjections.language = (event.target as HTMLInputElement).value
|
|
205
|
+
insertExplore()
|
|
206
|
+
}}>
|
|
207
|
+
{#each Object.entries(Language) as [label, value] }
|
|
208
|
+
<option {value} selected={value === getLanguage()}>{label}</option>
|
|
209
|
+
{/each}
|
|
210
|
+
</select>
|
|
211
|
+
</div>
|
|
195
212
|
|
|
196
213
|
<hr />
|
|
197
214
|
|
|
@@ -239,7 +256,8 @@
|
|
|
239
256
|
}
|
|
240
257
|
}
|
|
241
258
|
|
|
242
|
-
input[type="text"]
|
|
259
|
+
input[type="text"],
|
|
260
|
+
select {
|
|
243
261
|
padding: margin(0.5);
|
|
244
262
|
border: 1px solid theme(primary);
|
|
245
263
|
background: black;
|
|
@@ -253,7 +271,7 @@
|
|
|
253
271
|
top: 0;
|
|
254
272
|
left: 0;
|
|
255
273
|
max-width: 70dvw;
|
|
256
|
-
max-height:
|
|
274
|
+
max-height: 80dvh;
|
|
257
275
|
padding: margin(1);
|
|
258
276
|
border: 1px solid theme(primary);
|
|
259
277
|
background: black;
|