Compare commits

..

37 commits

Author SHA1 Message Date
Djuri Baars
52ab8df77a Add alt tag to bitaxe logo 2024-12-17 20:28:15 -06:00
Djuri Baars
ca4996dfc8 Add bitaxe icon and modify tests for it 2024-12-17 20:28:15 -06:00
Djuri Baars
d5d3882efb Add vertical screen description option 2024-12-17 20:28:15 -06:00
22fffd1f64 still untested 2024-12-17 20:28:15 -06:00
2ba647d8ce work-in-progress, untested 2024-12-17 20:28:15 -06:00
Djuri Baars
ff62c40384 Improvements for xs screens 2024-12-17 20:28:15 -06:00
Djuri Baars
aa0630fe06 Fix screen selector UI, add screenshot maker 2024-12-17 20:28:15 -06:00
Djuri Baars
6950036437 Dependencies update, add switch for frontlight off when dark 2024-12-17 20:28:15 -06:00
Djuri Baars
5bcbff9167 Fix LittleFS image generation 2024-12-17 20:28:15 -06:00
Djuri Baars
7fc580cb3a Fix formatting 2024-12-17 20:28:15 -06:00
Djuri Baars
3b045dbbfa Dependency updates and small fixes 2024-12-17 20:28:15 -06:00
Djuri Baars
735fb7d1d0 Add color mode switcher 2024-12-17 20:28:15 -06:00
Djuri Baars
978f911a54 Fix tests 2024-12-17 20:28:15 -06:00
Djuri Baars
2d1982ae6c Dependency updates, increase fs allowance, split up settings section and add settings 2024-12-17 20:28:15 -06:00
Djuri Baars
220b961d63 Add Mow suffix mode setting 2024-12-17 20:28:15 -06:00
Djuri Baars
e5244c2356 Add Forgejo action
Fix forgejo workflow

Fix workflow

Fix workflow python version

Fix workflow container

Forgejo js image

use upload artifacts fork
2024-12-17 20:28:15 -06:00
Djuri Baars
abeceab14c Change release checker endpoint, update dependencies 2024-12-17 20:28:15 -06:00
Djuri Baars
0828f8e9b8 New patch 2024-12-17 20:28:15 -06:00
Djuri Baars
71ff31f22e New patch 2024-12-17 20:28:15 -06:00
Djuri Baars
51750cc19e Dependency updates 2024-12-17 20:28:15 -06:00
Djuri Baars
4453840dcb Dependency updates 2024-12-17 20:28:15 -06:00
Djuri Baars
367860da2c Dependency updates, add clarification for Nostr Datasource 2024-12-17 20:28:15 -06:00
Djuri Baars
6440749ae8 Dependency updates 2024-12-17 20:28:15 -06:00
Djuri Baars
93d3642d34 Update dependencies, add v8 firmware support 2024-12-17 20:28:15 -06:00
Djuri Baars
5b0eb4c891 Fix currency converter in WebUI 2024-12-17 20:28:15 -06:00
Djuri Baars
a4c0c16cfb Dependency updates 2024-12-17 20:28:15 -06:00
Djuri Baars
52b4c77fc0 Add currency converter, fix for display light toggler 2024-12-17 20:28:15 -06:00
Djuri Baars
907721a481 Add auto-update functionality 2024-12-17 20:28:15 -06:00
Djuri Baars
1e3a975a84 Bugfix and dependency updates 2024-12-17 20:28:15 -06:00
Djuri Baars
3b817593e7 Minor dependency updates 2024-12-17 20:28:15 -06:00
Djuri Baars
183ecd72e6 Add staging source toggle 2024-12-17 20:28:15 -06:00
Djuri Baars
2270d8f85c Improve multi-currency support 2024-12-17 20:28:15 -06:00
dependabot[bot]
b1be5709f9 Bump @vitest/ui from 0.34.7 to 2.0.5
Bumps [@vitest/ui](https://github.com/vitest-dev/vitest/tree/HEAD/packages/ui) from 0.34.7 to 2.0.5.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.0.5/packages/ui)

---
updated-dependencies:
- dependency-name: "@vitest/ui"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 20:28:15 -06:00
dependabot[bot]
41fee8e9b5 Bump vite from 5.4.2 to 5.4.3
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 20:28:15 -06:00
dependabot[bot]
390b3b538a Bump @sveltejs/kit from 2.5.25 to 2.5.26
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.25 to 2.5.26.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.26/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 20:28:15 -06:00
dependabot[bot]
7902295392 Bump sass from 1.77.8 to 1.78.0
Bumps [sass](https://github.com/sass/dart-sass) from 1.77.8 to 1.78.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.77.8...1.78.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 20:28:15 -06:00
dependabot[bot]
51cde017a9 Bump tslib from 2.6.3 to 2.7.0
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.6.3...v2.7.0)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 20:28:15 -06:00
10 changed files with 65 additions and 17 deletions

View file

@ -57,7 +57,8 @@
"showAll": "Alle anzeigen", "showAll": "Alle anzeigen",
"hideAll": "Alles ausblenden", "hideAll": "Alles ausblenden",
"flOffWhenDark": "Displaybeleuchtung aus, wenn es dunkel ist", "flOffWhenDark": "Displaybeleuchtung aus, wenn es dunkel ist",
"luxLightToggleText": "Zum Deaktivieren auf 0 setzen" "luxLightToggleText": "Zum Deaktivieren auf 0 setzen",
"verticalDesc": "Vrtikale Bildschirmbeschreibung"
}, },
"control": { "control": {
"systemInfo": "Systeminfo", "systemInfo": "Systeminfo",

View file

@ -71,7 +71,8 @@
"showAll": "Show all", "showAll": "Show all",
"hideAll": "Hide all", "hideAll": "Hide all",
"flOffWhenDark": "Frontlight off when dark", "flOffWhenDark": "Frontlight off when dark",
"luxLightToggleText": "Set to 0 to disable" "luxLightToggleText": "Set to 0 to disable",
"verticalDesc": "Use vertical screen description"
}, },
"control": { "control": {
"systemInfo": "System info", "systemInfo": "System info",

View file

@ -56,7 +56,8 @@
"showAll": "Mostrar todo", "showAll": "Mostrar todo",
"hideAll": "Ocultar todo", "hideAll": "Ocultar todo",
"flOffWhenDark": "Luz de la pantalla cuando está oscuro", "flOffWhenDark": "Luz de la pantalla cuando está oscuro",
"luxLightToggleText": "Establecer en 0 para desactivar" "luxLightToggleText": "Establecer en 0 para desactivar",
"verticalDesc": "Descripción de pantalla vertical"
}, },
"control": { "control": {
"turnOff": "Apagar", "turnOff": "Apagar",

View file

@ -57,7 +57,8 @@
"showAll": "Toon alles", "showAll": "Toon alles",
"hideAll": "Alles verbergen", "hideAll": "Alles verbergen",
"flOffWhenDark": "Displaylicht uit als het donker is", "flOffWhenDark": "Displaylicht uit als het donker is",
"luxLightToggleText": "Stel in op 0 om uit te schakelen" "luxLightToggleText": "Stel in op 0 om uit te schakelen",
"verticalDesc": "Verticale schermbeschrijving"
}, },
"control": { "control": {
"systemInfo": "Systeeminformatie", "systemInfo": "Systeeminformatie",

View file

@ -158,12 +158,18 @@ nav {
padding: 5px; padding: 5px;
} }
.splitText div:first-child::after { &.verticalDesc > .splitText:first-child {
.textcontainer {
transform: rotate(-90deg);
}
}
.splitText .textcontainer :first-child::after {
display: block; display: block;
content: ''; content: '';
margin-top: 0px; margin-top: 0px;
border-bottom: 2px solid; border-bottom: 2px solid;
margin-bottom: 3px; // margin-bottom: 3px;
} }
.splitText { .splitText {
@ -293,3 +299,7 @@ nav {
input[type='number'] { input[type='number'] {
text-align: right; text-align: right;
} }
.lightMode .bitaxelogo {
filter: brightness(0) saturate(100%);
}

View file

@ -9,7 +9,7 @@
}; };
export let className = 'btclock-wrapper'; export let className = 'btclock-wrapper';
export let verticalDesc = false;
// Define the currency symbols as constants // Define the currency symbols as constants
const CURRENCY_USD = '$'; const CURRENCY_USD = '$';
const CURRENCY_EUR = '['; const CURRENCY_EUR = '[';
@ -44,21 +44,22 @@
</script> </script>
<div class={className} id={className}> <div class={className} id={className}>
<div class="btclock"> <div class={'btclock' + (verticalDesc ? ' verticalDesc' : '')}>
{#each status.data as char} {#each status.data as char}
{#if isSplitText(char)} {#if isSplitText(char)}
<div class="splitText"> <div class="splitText">
<div class="textcontainer">
{#if char.split('/').length} {#if char.split('/').length}
<span class="top-text">{char.split('/')[0]}</span> <span class="top-text">{char.split('/')[0]}</span>
<hr />
<span class="bottom-text">{char.split('/')[1]}</span> <span class="bottom-text">{char.split('/')[1]}</span>
{/if} {/if}
</div>
<!-- {#each char.split('/') as part} <!-- {#each char.split('/') as part}
<div class="flex-items">{part}</div> <div class="flex-items">{part}</div>
{/each} --> {/each} -->
</div> </div>
{:else if char.startsWith('mdi')} {:else if char.startsWith('mdi')}
<div class="digit icon"> <div class={'digit icon' + (char.endsWith('bitaxe') ? ' icon-img' : '')}>
{#if char.endsWith('rocket')} {#if char.endsWith('rocket')}
<RocketIcon></RocketIcon> <RocketIcon></RocketIcon>
{/if} {/if}
@ -68,6 +69,9 @@
{#if char.endsWith('bolt')} {#if char.endsWith('bolt')}
<ZapIcon></ZapIcon> <ZapIcon></ZapIcon>
{/if} {/if}
{#if char.endsWith('bitaxe')}
<img src="/bitaxe.webp" class="bitaxelogo" alt="BitAxe logo" />
{/if}
</div> </div>
{:else if char === 'STS'} {:else if char === 'STS'}
<div class="digit sats">S</div> <div class="digit sats">S</div>
@ -82,8 +86,22 @@
</div> </div>
</div> </div>
<style> <style lang="scss">
.icon { .icon {
fill: currentColor; fill: currentColor;
} }
.btclock-wrapper .btclock .icon.icon-img {
// padding: 0 15px;
aspect-ratio: 1;
width: calc(100 / 7);
img {
max-width: 95%;
}
}
.bitaxelogo {
transform: rotate(-90deg);
}
</style> </style>

View file

@ -318,6 +318,15 @@
label={$_('section.settings.suffixShareDot')} label={$_('section.settings.suffixShareDot')}
/> />
</Col> </Col>
<Col md="6" xl="12" xxl="6">
<Input
id="verticalDesc"
bind:checked={$settings.verticalDesc}
type="switch"
bsSize={$uiSettings.inputSize}
label={$_('section.settings.verticalDesc')}
/>
</Col>
{#if !$settings.actCurrencies} {#if !$settings.actCurrencies}
<Col md="6" xl="12" xxl="6"> <Col md="6" xl="12" xxl="6">

View file

@ -151,7 +151,11 @@
<hr /> <hr />
{#if $status.data} {#if $status.data}
<section class={lightMode ? 'lightMode' : 'darkMode'}> <section class={lightMode ? 'lightMode' : 'darkMode'}>
<Rendered status={$status} className="btclock-wrapper"></Rendered> <Rendered
status={$status}
className="btclock-wrapper"
verticalDesc={$settings.verticalDesc}
></Rendered>
</section> </section>
{$_('section.status.screenCycle')}: {$_('section.status.screenCycle')}:
<a <a

BIN
static/bitaxe.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import { initMock, settingsJson } from '../shared'; import { initMock, settingsJson, statusJson } from '../shared';
test.beforeEach(initMock); test.beforeEach(initMock);
@ -69,6 +69,9 @@ test('capture screenshots across devices with bitaxe screens', async ({ page },
} }
]; ];
statusJson.data = ['mdi:bitaxe', '', 'mdi:pickaxe', '6', '3', '7', 'GH/S'];
statusJson.rendered = ['mdi:bitaxe', '', 'mdi:pickaxe', '6', '3', '7', 'GH/S'];
await page.goto('/'); await page.goto('/');
await expect(page.getByRole('heading', { name: 'Control' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Control' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Status' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Status' })).toBeVisible();