Compare commits

..

39 commits

Author SHA1 Message Date
b6565ef853 still untested 2024-12-17 18:37:03 -06:00
d49805fe45 work-in-progress, untested 2024-12-17 18:37:03 -06:00
Djuri Baars
653a39d0a3 Improvements for xs screens 2024-12-12 23:04:13 +01:00
Djuri Baars
68c247f3cc Fix screen selector UI, add screenshot maker 2024-12-12 19:50:36 +01:00
Djuri Baars
25e91b2086 Dependencies update, add switch for frontlight off when dark 2024-12-10 14:49:44 +01:00
Djuri Baars
f0fa58b5ea Fix LittleFS image generation 2024-11-29 00:57:07 +01:00
Djuri Baars
b8ed628bf5 Fix formatting 2024-11-29 00:13:43 +01:00
Djuri Baars
00af5f6521 Dependency updates and small fixes 2024-11-29 00:10:33 +01:00
Djuri Baars
51cce2ee9f Add color mode switcher 2024-11-28 23:30:14 +01:00
Djuri Baars
de99a221d6 Fix tests 2024-11-28 17:49:38 +01:00
Djuri Baars
93482b3be2 Dependency updates, increase fs allowance, split up settings section and add settings 2024-11-28 17:40:10 +01:00
Djuri Baars
d74e9dab60 Add Mow suffix mode setting 2024-11-27 10:03:32 +01:00
Djuri Baars
da3c70285d Add Forgejo action
Fix forgejo workflow

Fix workflow

Fix workflow python version

Fix workflow container

Forgejo js image

use upload artifacts fork
2024-11-26 17:35:26 +01:00
Djuri Baars
5066032a55 Change release checker endpoint, update dependencies 2024-11-25 23:58:21 +01:00
Djuri Baars
5346938159 New patch 2024-11-05 13:15:22 +01:00
Djuri Baars
c8e68faf69 New patch 2024-11-05 13:15:06 +01:00
Djuri Baars
eeeb0ee62c Dependency updates 2024-11-05 13:05:46 +01:00
Djuri Baars
384b4317c4 Dependency updates 2024-10-23 00:30:52 +02:00
Djuri Baars
9867988a09 Dependency updates, add clarification for Nostr Datasource 2024-10-01 20:34:41 +02:00
Djuri Baars
6f0e343429 Dependency updates 2024-09-25 00:53:52 +02:00
Djuri Baars
95aa9d67d1 Update dependencies, add v8 firmware support 2024-09-21 15:40:13 +02:00
Djuri Baars
7d82b1e1a9 Fix currency converter in WebUI 2024-09-18 01:49:18 +02:00
Djuri Baars
761c7f2991 Dependency updates 2024-09-16 21:22:34 +02:00
Djuri Baars
1447917955 Add currency converter, fix for display light toggler 2024-09-16 21:15:56 +02:00
Djuri Baars
6c40b54273 Add auto-update functionality 2024-09-11 20:16:55 +02:00
Djuri Baars
1c2d8dcdd0 Bugfix and dependency updates 2024-09-11 02:26:10 +02:00
Djuri Baars
1fa62ca88d Minor dependency updates 2024-09-09 14:51:20 +02:00
Djuri Baars
2fffb3ef02 Add staging source toggle 2024-09-05 13:42:16 +02:00
Djuri Baars
3d69570099 Improve multi-currency support 2024-09-05 13:10:58 +02:00
Djuri Baars
3342e6a532
Merge pull request #15 from btclock/dependabot/npm_and_yarn/vitest/ui-2.0.5 2024-09-05 04:22:44 +03:00
Djuri Baars
97519a1ae7
Merge pull request #14 from btclock/dependabot/npm_and_yarn/vite-5.4.3 2024-09-05 04:22:07 +03:00
Djuri Baars
0843fae200
Merge pull request #17 from btclock/dependabot/npm_and_yarn/sveltejs/kit-2.5.26 2024-09-05 04:21:49 +03:00
Djuri Baars
87b53165bf
Merge pull request #16 from btclock/dependabot/npm_and_yarn/sass-1.78.0 2024-09-05 04:21:37 +03:00
Djuri Baars
53a242582c
Merge pull request #13 from btclock/dependabot/npm_and_yarn/tslib-2.7.0 2024-09-05 04:20:49 +03:00
dependabot[bot]
b5d384023b
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-09-05 01:15:21 +00:00
dependabot[bot]
af81b14b86
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-09-04 01:25:08 +00:00
dependabot[bot]
80d1211f91
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-09-04 01:25:01 +00:00
dependabot[bot]
eafe9d6341
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-09-04 01:24:36 +00:00
dependabot[bot]
1d5efa42e8
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-09-04 01:24:27 +00:00
10 changed files with 17 additions and 65 deletions

View file

@ -57,8 +57,7 @@
"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,8 +71,7 @@
"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,8 +56,7 @@
"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,8 +57,7 @@
"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,18 +158,12 @@ nav {
padding: 5px; padding: 5px;
} }
&.verticalDesc > .splitText:first-child { .splitText div:first-child::after {
.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 {
@ -299,7 +293,3 @@ 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,22 +44,21 @@
</script> </script>
<div class={className} id={className}> <div class={className} id={className}>
<div class={'btclock' + (verticalDesc ? ' verticalDesc' : '')}> <div class="btclock">
{#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' + (char.endsWith('bitaxe') ? ' icon-img' : '')}> <div class="digit icon">
{#if char.endsWith('rocket')} {#if char.endsWith('rocket')}
<RocketIcon></RocketIcon> <RocketIcon></RocketIcon>
{/if} {/if}
@ -69,9 +68,6 @@
{#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>
@ -86,22 +82,8 @@
</div> </div>
</div> </div>
<style lang="scss"> <style>
.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,15 +318,6 @@
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,11 +151,7 @@
<hr /> <hr />
{#if $status.data} {#if $status.data}
<section class={lightMode ? 'lightMode' : 'darkMode'}> <section class={lightMode ? 'lightMode' : 'darkMode'}>
<Rendered <Rendered status={$status} className="btclock-wrapper"></Rendered>
status={$status}
className="btclock-wrapper"
verticalDesc={$settings.verticalDesc}
></Rendered>
</section> </section>
{$_('section.status.screenCycle')}: {$_('section.status.screenCycle')}:
<a <a

Binary file not shown.

Before

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, statusJson } from '../shared'; import { initMock, settingsJson } from '../shared';
test.beforeEach(initMock); test.beforeEach(initMock);
@ -69,9 +69,6 @@ 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();