mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
Merge pull request #46 from tresabhi/1.14.4
This commit is contained in:
4 files changed
+27
-17
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
# Blitzkrieg 1.14.4
|
||||||
|
|
||||||
|
Streamers get some knowledge today
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Added a video in the embed button prompt
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkrieg",
|
"name": "blitzkrieg",
|
||||||
"version": "1.14.0",
|
"version": "1.14.4",
|
||||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||||
"main": "src/server.ts",
|
"main": "src/server.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export default function Page() {
|
|||||||
<Button
|
<Button
|
||||||
variant="soft"
|
variant="soft"
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
if (!session.promptBeforeReset) {
|
if (!session.resetPrompt) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
resetSession();
|
resetSession();
|
||||||
}
|
}
|
||||||
@@ -153,7 +153,7 @@ export default function Page() {
|
|||||||
mr="1"
|
mr="1"
|
||||||
onCheckedChange={(checked) =>
|
onCheckedChange={(checked) =>
|
||||||
useSession.setState({
|
useSession.setState({
|
||||||
promptBeforeReset: !checked,
|
resetPrompt: !checked,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -183,7 +183,7 @@ export default function Page() {
|
|||||||
variant="soft"
|
variant="soft"
|
||||||
className={styles.toolbarButton}
|
className={styles.toolbarButton}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
if (!session.showEmbedPrompt) {
|
if (!session.embedPrompt) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
resetSession();
|
resetSession();
|
||||||
}
|
}
|
||||||
@@ -202,14 +202,17 @@ export default function Page() {
|
|||||||
Copied link to your clipboard
|
Copied link to your clipboard
|
||||||
</AlertDialog.Title>
|
</AlertDialog.Title>
|
||||||
<AlertDialog.Description>
|
<AlertDialog.Description>
|
||||||
Keep in mind:
|
Instructions for streamers:
|
||||||
<ul>
|
<iframe
|
||||||
<li>Paste this link into your browser to view the embed</li>
|
style={{
|
||||||
<li>Embeds abide your custom options</li>
|
width: '100%',
|
||||||
<li>
|
aspectRatio: '16 / 9',
|
||||||
Options do not transfer across websites/streaming softwares
|
border: 'none',
|
||||||
</li>
|
}}
|
||||||
</ul>
|
src="https://www.youtube-nocookie.com/embed/e--GwjyrJAE?si=ftEiCmpbMI2FUY5N"
|
||||||
|
title="YouTube video player"
|
||||||
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||||
|
></iframe>
|
||||||
</AlertDialog.Description>
|
</AlertDialog.Description>
|
||||||
|
|
||||||
<Text size="2">
|
<Text size="2">
|
||||||
@@ -217,7 +220,7 @@ export default function Page() {
|
|||||||
mr="1"
|
mr="1"
|
||||||
onCheckedChange={(checked) =>
|
onCheckedChange={(checked) =>
|
||||||
useSession.setState({
|
useSession.setState({
|
||||||
showEmbedPrompt: !checked,
|
embedPrompt: !checked,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ type Session = (
|
|||||||
time: number;
|
time: number;
|
||||||
}
|
}
|
||||||
) & {
|
) & {
|
||||||
promptBeforeReset: boolean;
|
resetPrompt: boolean;
|
||||||
showEmbedPrompt: boolean;
|
embedPrompt: boolean;
|
||||||
customColumns: {
|
customColumns: {
|
||||||
display: CustomColumnDisplay;
|
display: CustomColumnDisplay;
|
||||||
showDelta: boolean;
|
showDelta: boolean;
|
||||||
@@ -67,10 +67,10 @@ export const useSession = create<Session>()(
|
|||||||
persist(
|
persist(
|
||||||
(set) => ({
|
(set) => ({
|
||||||
isTracking: false,
|
isTracking: false,
|
||||||
promptBeforeReset: true,
|
resetPrompt: true,
|
||||||
showTotal: true,
|
showTotal: true,
|
||||||
showCareer: true,
|
showCareer: true,
|
||||||
showEmbedPrompt: true,
|
embedPrompt: true,
|
||||||
|
|
||||||
customColumns: [
|
customColumns: [
|
||||||
{ display: 'battles', showDelta: false },
|
{ display: 'battles', showDelta: false },
|
||||||
|
|||||||
Reference in new issue
Block a user